billing

GET /v1/orders/{orderId}/payment-request

Download an unpaid order's payment request as a PDF.

All billing 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 endpoint checks billing.view; 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 GET https://api.zinndigital.com/v1/orders/{orderId}/payment-request \
  -H "Authorization: Bearer zdk_live_…"

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

P6c-027: an unpaid order is a payment request, never an invoice. The tax invoice is issued only once the order is paid (then it is under /v1/invoices); until then this is the document a customer can send to whoever pays. Titled and worded as a payment request, says it is not a tax invoice, and is numbered by the order reference, never an invoice number. Issuer, buyer, lines, tax and totals are built by the same snapshot rules the invoice will use. Rendered on request and never stored, in the requested or the account's language (bounded by the provider's languages, as the invoice PDF is).

Parameters

NameTypeRequiredWhat it is
orderId (path)UuidYesThe order's id.
locale (query)stringNoLanguage to render in. Defaults to the account's own. A language this platform does not ship, or one the account's provider does not offer, is a 422.

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 503