Getting a Customer's Details

This is used to fetch the customer details for the CUSTOMER_ID specified in the URI.

GET http://scriptlock.com/api/customer/{CUSTOMER_ID}

Example: GET /api/customer/{CUSTOMER_ID} HTTP/1.1 Host: scriptlock.com Authorization: Basic 63f9db5f7b532f1879df8dd751e185d5

The following responses may be returned:

  • 302 Found
  • 404 Not Found

Adding New Customers

This is used to add a new customer.

POST http://scriptlock.com/api/customer
company, firstname, lastname, email

Example: POST /api/customer HTTP/1.1 Host: scriptlock.com Authorization: Basic 63f9db5f7b532f1879df8dd751e185d5 Content-Length: 93 Content-Type: application/x-www-form-urlencoded company=Example+Company+Inc.&firstname=Example&lastname=Customer&email=customer%40example.com

The following responses may be returned:

  • 201 Created
  • 409 Conflict

Modifying Customer Details

This is used to modify the customer record for the CUSTOMER_ID specified in the URI.

PUT http://scriptlock.com/api/customer/{CUSTOMER_ID}
company, firstname, lastname, email

Example: PUT /api/customer/{CUSTOMER_ID} HTTP/1.1 Host: scriptlock.com Authorization: Basic 63f9db5f7b532f1879df8dd751e185d5 Content-Length: 93 Content-Type: application/x-www-form-urlencoded company=Example+Company+Inc.&firstname=Example&lastname=Customer&email=customer%40example.com

The following responses may be returned:

  • 200 OK
  • 304 Not Modified

Getting a List of Customers

This is used to fetch a list of your customers.

GET http://scriptlock.com/api/customers

Example: GET /api/customers HTTP/1.1 Host: scriptlock.com Authorization: Basic 63f9db5f7b532f1879df8dd751e185d5

The following responses may be returned:

  • 200 OK
  • 204 No Content

Deleting a Customer

This is used to delete the customer record for the CUSTOMER_ID specified in the URI.

DELETE http://scriptlock.com/api/customer/{CUSTOMER_ID}

Example: DELETE /api/customer/{CUSTOMER_ID} HTTP/1.1 Host: scriptlock.com Authorization: Basic 63f9db5f7b532f1879df8dd751e185d5

The following responses may be returned:

  • 410 Gone
  • 409 Conflict

Note: All licenses issued to this customer will also be revoked.

SSL Certificate Authority
SSL Certificate Authority