commerce

POST /v1/orders/{orderId}/lines/{lineId}/auth-code

Send a new authorisation (EPP) code for your domain transfer.

All commerce 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 billing.payment.manage 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/orders/{orderId}/lines/{lineId}/auth-code \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "auth_code": <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

For a held domain_transfer line whose hold.accepts_new_code is true: the registrar refused the code. The new code is stored as a secret, sent to the registrar exactly as typed (only surrounding whitespace is removed) and the transfer is retried at once. A line not held for its code is a 409; at most 5 codes per line per hour (429). Requires billing.payment.manage.

Parameters

NameTypeRequiredWhat it is
orderId (path)stringYes—
lineId (path)stringYes—

Request body

NameTypeRequiredWhat it is
auth_codestringYesThe new authorisation (EPP) code, exactly as the current registrar gave it.

Response

NameTypeRequiredWhat it is
statusstring<retrying>Yes—

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 429 · 503