partner

POST /v1/partner/orders/{orderId}/lines/{lineId}/customer-notified

Report that you told your customer about a held order line.

All partner endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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/orders/{orderId}/lines/{lineId}/customer-notified \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "channel": <string<email, in_app, email_and_in_app, sms, other>>, "sent_at": <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

Call this after you have told your own customer that one of their order lines is on hold, in answer to partner.order_fulfilment_failed, partner.domain_transfer_failed or partner.domain_registration_failed. Requires partner.domains. Until you call it, our staff see only that you were told (the webhook was delivered), never that the customer was. Once it is recorded, the hold reads "Customer told by partner at …". It is a record, never an action. Nothing is retried, released, refunded or cancelled: a held line stays held until we deliver it. It is idempotent. The first report is kept; a repeat returns 200 with what was first recorded, so a retry after a timeout is safe. A line that is not (or no longer) on hold is also a 200, with held: false and nothing recorded. The tenancy fence is the one cancelPartnerOrder uses: an order in an org you do not reach, or a line that is not on that order, is a 404 carrying details[].code = unknown_reference; an order you did not place is a 422 carrying not_yours. A sent_at in the future, or an unknown channel, is a 422. An order whose customer account no longer exists here is a 409 carrying details[].code = account_gone, and nothing is recorded.

Parameters

NameTypeRequiredWhat it is
orderId (path)stringYesOur order id, as carried in data.order_id on the hold event you are answering.
lineId (path)stringYesOur order line id, as carried in data.line_id on the hold event. It must belong to orderId.

Request body

NameTypeRequiredWhat it is
channelstring<email, in_app, email_and_in_app, sms, other>YesHow you told your customer.
sent_atstringYesWhen you told them. Must not be in the future (a few minutes of clock skew is accepted).

Response

NameTypeRequiredWhat it is
order_idstringYes—
line_idstringYes—
heldbooleanYesWhether the line is on hold now. false means nothing was recorded.
recordedbooleanYestrue when THIS call recorded the report; false when one was already recorded (the first is kept) or the line is not on hold.
customer_notified_atobjectYesThe recorded time you told the customer, or null when nothing is recorded.
channelobjectYesThe recorded channel, or null when nothing is recorded.

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 429