SnozeDevelopers
API referenceBilling

Prepare a workspace billing PDF

Returns a fresh receipt or invoice PDF URL, generating an invoice when needed. Requires billing:read; the order must belong to this exact workspace. Send an Idempotency-Key for retries.

POST
/v1/workspaces/{workspaceId}/billing/invoices/{orderId}/document
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
orderId*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/billing/invoices/string/document"
{  "data": {    "url": "string"  }}