Customers
Create customer
Changed onCreates a new customer (buyer or seller). If a customer with the same email/phone already exists for this account, the existing record is updated and returned.
Either email or phone (with prefix) is required.
post/customers
Request
- Base URLhttps://your-subdomain.truust.io/2.0
- URLhttps://your-subdomain.truust.io/2.0/customers
- AuthHTTP bearer
Request body
Example request
{
"name": "John Doe",
"email": "john@example.com",
"prefix": "+34",
"phone": "612345678"
}Response
Customer created or updated
Example response
{
"self": "/2.0/customers/abc123",
"prefix": "+34"
}Changes
- info
added the new optional request property
/ - info
added the new optional request property
- info
added the new optional request property
- info