Customers
Create a customer
Creates new customer.
Do not create customers via this endpoint unless you are performing a bulk import from your system or have been advised by FlatPeak support. Instead, use Connect, which will automatically create customers as part of its flow.
POST
/
customers
Authorizations
Authorization
string
headerrequiredAuthenticate with bearer_token
you obtained from /login endpoint.
Body
reference_id
string
A reference that is meaningful to you, for example, an ID from your system.
Response
201 - application/json
This object represents a customer of your business.
id
string
requiredFlatPeak unique object Id.
object
string
requiredRepresents the object’s type.
live_mode
boolean
requiredHas the value true if the object exists in live mode or the value false if the object exists in test mode.
reference_id
string
A reference that is meaningful to you, for example, an ID from your system.
locations
string[]
An array of FlatPeak location IDs that are associated with this object.
time_created
string
requiredTime when the object was created, in UTC.
account_id
string
requiredFlatPeak unique account id
Was this page helpful?