Skip to content

A customer was created. The data is the customer document, or only the id when the customer has opted out of data sharing

POST

Sent to the URL of a webhook created for customer.created. The body is the event envelope. The request is signed; verify it as the Webhooks guide describes. Delivery is at least once, so dedupe on id.

Media typeapplication/json
object
created_at
required

When the change was detected.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
data
required
Any of:
object
address_1
required
string | null
address_2
required
string | null
city
required
string | null
company_name
required
string | null
country
required
string | null
created_at
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
custom_field_1
required
string | null
custom_field_2
required
string | null
custom_field_3
required
string | null
custom_field_4
required
string | null
customer_code
required
string
customer_group_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
date_of_birth
required

YYYY-MM-DD, or null.

string | null
do_not_sell_share
required

Read-only. Set only through the admin UI or a DSAR request, never through this API.

boolean
dont_email
required
boolean
dont_sms
required
boolean
email
required
string | null
enable_loyalty
required
boolean
first_name
required
string
gender
required
string | null
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
is_walk_in
required

True for the retailer’s single system walk-in customer.

boolean
last_name
required
string | null
mobile
required
string | null
note
required
string | null
on_account_limit
required

The customer’s account credit limit. Integer minor units (cents).

integer
>= -9007199254740991 <= 9007199254740991
phone
required
string | null
state
required
string | null
tax_id
required
string | null
updated_at
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
version
required

Opaque delta-sync version. Increases with every change; use it to detect updates.

string
website
required
string | null
zipcode
required
string | null
id
required

The event id. It is the same on every retry and for every webhook of the event; receivers dedupe on it.

string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
truncated
required

True when data was cut down to the id because the document was too large.

boolean
type
required
string
Allowed value: customer.created

Return any 2xx status within 10 seconds to acknowledge the delivery.