Customer
Manage customers and their details, including company, contact, and payment information.
You can create, update, delete, and search for customers with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/customer/index
Returns a paginated and filterable list of customers.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching customers
object
object
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "company": "Acme Corp", "country": "Italy" }, "per-page": 20, "page": 1, "sort": "company"}
Responses
Section titled “ Responses ”List of customers
object
Example
{ "customer_id": "c-1", "company": "Acme Corp", "email": "info@acme.com", "country": "Italy", "project_id": "p-1", "project_name": "Project X"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/customer/view/{id}
Retrieve a customer by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the customer to retrieve
Responses
Section titled “ Responses ”Customer found
object
Example
{ "customer_id": "c-1", "company": "Acme Corp", "email": "info@acme.com", "country": "Italy", "project_id": "p-1", "project_name": "Project X"}
Customer not found