Easy Projects Logo

Easy Projects

application programming interface

Customers

Making requests

The ‘Content-Type’ header must be set to ‘application/xml’ or ‘application/json’ to identify the request and response format. The default is ‘application/xml’. All requests must include a basic authorization header.

Get customers
URL: rest/v1/customers
HTTP method: GET
Returns all available customers

Get customer
URL: rest/v1/customers/{ID}
HTTP method: GET
Return customer

Creates customer
URL: rest/v1/customers/{ID}
HTTP method: POST
Request body contains a customer
Returns status code 201 (Created) on success

Update customer
URL: rest/v1/customers/{ID}
HTTP method: PUT
Request body contains a customer
Response with “200 OK” on success

Delete customer
URL: rest/v1/customers/{ID}
HTTP method: DELETE
Response with “200 OK” on success