Customers
The Customers resource is designed to manage customer data effectively by providing endpoints for various operations. It enables you to create new customer records, retrieve a list of existing customers, update details for specific customers, and remove customer records when necessary. This API is essential for maintaining accurate and up-to-date customer information within your application, ensuring seamless integration and efficient data handling.
Get all customers
A filter on the list based on the createdTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
- gt–return values where the createdTime field is after this timestamp
- gte–return values where the createdTime field is after or equal to this timestamp
- lt–return values where the createdTime field is before this timestamp
- lte–return values where the createdTime field is before or equal to this timestamp
A filter on the list based on the updatedTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:
- gt–return values where the updatedTime field is after this timestamp
- gte–return values where the updatedTime field is after or equal to this timestamp
- lt–return values where the updatedTime field is before this timestamp
- lte–return values where the updatedTime field is before or equal to this timestamp
A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.
A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.
A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.
Only return customers with the given email
Only return customers with the given IDs
Only return customers where requestToBeForgotten is true or false
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
Creates a new customer object
The unique identifier of a customer.
5823594808A locale designator that combines the two-letter ISO 639-1 language code with the ISO 3166-1 alpha-2 country code.
en_USThe type of customer.
individualPossible values: Usually used to disable the customer. The default is true. If false, attempts to create orders for the customer will fail.
true201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
Retrieves the details of a customer by supplying the unique identifier of the customer
Customer ID
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
Updates an existing customer
Customer ID
The identifier of the default source attached to this customer.
src_fd74a5c5-0163-469a-ae8e-031f0259b576If true, indicates this customer has submitted a request to be forgotten.
trueThe type of customer.
individualPossible values: A locale designator that combines the two-letter ISO 639-1 language code with the ISO 3166-1 alpha-2 country code
en_USUsually used to disable the customer. The default is true. If false, attempts to create orders for the customer will fail.
true200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
Permanently deletes a customer by supplying the unique identifier of the customer
Customer ID
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
No content
Attaches a source to a customer
Customer ID
Source ID
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
Detaches a source from a customer
Customer ID
Source ID
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
No content
Last updated
