partner

POST /v1/partner/customers

Link (or create) the organization for one of your own customers.

All partner endpoints

All developer docs

Authentication

Send an API key as a bearer token. The key must carry the partner.domains permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/partner/customers \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "external_id": <string>, "email": <string> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Idempotent on external_id — your own id for that customer. An email we do not know gets a new organization under yours, with a billing profile and no members; an email that already has a Zinn Digital® account is never taken on your say-so and answers 409, recording a consent request the customer answers in their own account. Requires partner.domains.

Request body

NameTypeRequiredWhat it is
external_idstringYesYour own id for the customer.
emailstringYes
namestringNo
countrystringNoISO 3166-1 alpha-2. Used for tax determination and on the invoice.
currencystringNo

Response

NameTypeRequiredWhat it is
external_idstringYes
org_idstringYesThe organization you may act on, as X-Zinn-Org. Empty while the link is not active — a pending link names no organization you may use.
statestring<active, pending_consent, revoked>Yes
created_orgbooleanYesWhether we made this organization for you, or the customer already had one.
has_registrantbooleanYesWhether a registrant contact is on file. An order is refused until it is.
emailstringYes

Errors this endpoint can return

401 · 403 · 409 · 422 · 429