Customers
About the Customer API
Endpoints
The Customer object
{
"id": "5f886c22fe5dd800318f8092",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phoneNumber": "+19545556666",
"createdTime": "2022-08-18T01:10:16.000Z",
}Name
Type
Description
Create a customer
Create a customer.
Authorizations
apikeystringRequired
Body
firstNamestringRequiredExample:
The first name of the customer.
JohnlastNamestringRequiredExample:
The last name of the customer.
DoephoneNumberstringRequiredExample:
The phone number of the customer.
+123456789Responses
200
The customer was created successfully.
application/json
400
Bad request.
application/json
401
Unauthorized.
application/json
post
/customersList customers
Retrieves a list of customers that matches the criteria.
Authorizations
apikeystringRequired
Query parameters
emailstring · emailOptionalExample:
Only customers with this email will be returned.
[email protected]limitinteger · int32 · min: 1OptionalDefault:
The limit of items per page in the response.
20Example: 10pageinteger · int32 · min: 1OptionalDefault:
Specify the page to retrieve. You will need to use it if you want to retrieve specific pages.
1Example: 1Responses
200
Results that match the criteria.
application/json
400
Bad request.
application/json
401
Unauthorized.
application/json
get
/customersRetrieve a customer
Retrieve a customer by its ID.
Authorizations
apikeystringRequired
Path parameters
customerIdstringRequiredExample:
A unique identifier for the customer.
507f191e810c19729de860jkResponses
200
The customer was retrieved successfully.
application/json
401
Unauthorized.
application/json
404
Not found.
application/json
get
/customers/{customerId}Last updated
Was this helpful?