Tells Nortly about one merchant (shop) that uses your app and returns a short-lived customer
token for that merchant. Call it from your backend, for example when the merchant opens
your app or when their data changes; never from a browser, because it needs your API key.
Credential. Your API key, sent as Authorization: Bearer <api key> to the Nortly API
host. A request whose key is missing, malformed, unknown or revoked answers
401 unauthorized; revoking a key takes effect on the next request. The key is bound to one
app and allows only this operation, so the data is always attributed to that app.
Partial updates. Only shopId is required. Every other field is optional and is
applied only when you send it: omitted fields keep the value Nortly already has, so you can
send just what changed. A string you send replaces the stored value, including an empty
string. Contacts are matched by email: an existing contact is updated with the fields you
send, a new one is created, and the contact is linked to the shop. Contacts without an
email are ignored.
Asynchronous merge. The merge happens after the response. 200 means the request was
valid and a token was issued, not that the data is already visible. Until the merge has
completed, GET /customer can answer 404 not_found for a merchant that was never
identified before; retry it shortly after. Data that cannot be stored is dropped without
any error being reported to you.
Idempotency. The call is safe to repeat with the same body: the stored data ends up
the same. Every call issues a new token (valid 24 hours); tokens issued earlier stay valid
until they expire. The response carries an X-Request-Id you can quote to support.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
429Too many requests. This response is produced by rate limiting in front of the service and
can answer any route; the service itself never returns it. Its body is not part of this
API's error contract and carries no X-Identify-API-Version. Back off and retry later.