Skip to navigation

Customer Registered Payload

View as Markdown

Reference example only - Coi is the caller here, your endpoint is the receiver. Fired once per customer, as a POST with a JSON body, right after the customer is created: a signup on the store’s login page, “register me” at checkout, a client the merchant adds in the admin, or POST /api/v1/customers.

When the store approves new customers by hand (“אשר לקוחות ידנית”), a new signup is sent with active: false and nothing is sent again when the merchant approves it - use GET /api/v1/customers?email= to check its status later.

Configure the target URL at: Store > Store Settings > “General” tab (כללי) > “Webhook לאחר רישום משתמש”. Needs customer registration on.

Sent with X-Coi-Event: customer.registered, a delivery ID and an X-Coi-Signature you can verify, and retried until your server answers 2xx - see Webhooks overview.

Payload

The payload of this webhook request is an object.
namestringRequired

Customer’s full name (first + last name, trimmed).

emailstringRequiredformat: "email"
Customer's email address.
phonestringRequired

Customer’s phone number, as entered. An empty string when none was given (the login page’s signup form asks for none).

getNewsletterbooleanRequired
Whether the customer opted in to marketing emails at registration.
activebooleanRequired

Whether the customer can log in now. false for a signup waiting for the merchant’s approval, or a client the merchant added as inactive.

Response

200
Successful response