CorefinityCorefinityDocs
Open the Control PanelControl Panel
Billing · 13 of 16

Download an invoice PDF

Step two of downloading an invoice's PDF: answers the file the link names, for the person the link was given to, while it lasts. Your right to read the account's billing is checked again, and each download is recorded in the company's activity.

GET/api/corestack/billing/pdf/{token}

Path parameters

tokenstringRequired

The token at the end of download_url, as POST /corestack/billing/invoices/{invoice}/pdf answered it.

Returns

200 The invoice, as a PDF file named for the invoice number.

Fields of the 200 answer

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403billing_forbiddenBilling is for the organisation's owner and billing contacts. Ask one of them to do this.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
404pdf_missingThe PDF of this invoice could not be found. Open a ticket and we will send it.
409pdf_pendingThe invoice's PDF is not ready yet. Try again in a few minutes.
410link_expiredThis link has expired. Open the invoice and download again.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/billing/pdf/string \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
"string"
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT