Push merchant data and get a customer token

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

JSON object describing the merchant. Send Content-Type: application/json. Unknown
properties are ignored.

Merchant data to merge into Nortly. Only shopId is required; every other property is
optional and updates the stored value only when present. A property present with null or
a non-string value is rejected with 400.

string
required

Shopify shop identifier: either the numeric id (1234567890) or the full GID
(gid://shopify/Shop/1234567890). A value that does not start with gid:// is
treated as the numeric id. Required, non-empty.

string

The shop's *.myshopify.com domain. Optional. It is returned as domain by GET /customer.

string

Shop or company name. Optional.

string

Main contact email of the shop. Optional.

string

Country of the shop, free text. Optional.

string

Industry of the shop, free text. Optional.

string

The shop's Shopify plan, free text (for example Basic or Plus). Optional. It is stored for the merchant in Nortly but is not returned by GET /customer.

string

Short description of what the shop sells. Optional.

string

The shop's public (custom) domain. Optional.

contacts
array of objects

Contacts to create or update, matched by email. Optional; omitted leaves the existing contacts as they are, and contacts you do not list are never removed.

contacts
Responses

429

Too 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.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json