Palbase Payments · API
GET
/payments/invoices/{invoice_id}Get an invoice
Answers the invoice. One not paid, voided or refused yet is read again from its provider first: paid on its page, or marked at the provider, it says so. One whose making was cut short (status creating or draft) is carried on by this reading — a write at the provider, never a second invoice.
Called by your server, with the project's secret key.
Path
invoice_idstring · requiredThe invoice's id, as Palbase gave it.curl
curl -X GET "https://<your-ref>.palbase.studio/payments/invoices/<invoice_id>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation GetInvoice of payments's contract.