Invoices
Create and send invoices from your products, exactly like the dashboard’s Invoices page. An invoice starts as a draft; sending it creates a one-time payment link, emails the customer a branded invoice with a PDF attached, and marks it sent. When the customer pays through the hosted invoice it flips to paid and payment.completed fires for the underlying charge. Invoices are sandbox-aware: a test key only sees and creates sandbox invoices. Line items reference products in your workspace: one_time products use their catalog price unless the line passes unit_price (cents), open_ended products require it. The unit price on the invoice is what the hosted checkout charges, even if the product’s price changes later.
Create an invoice
Create a draft invoice. Nothing is emailed until you send it, or pass send: true to create and send in one call.
https://paysio.com/api/v1/invoicesAuthorizations
Secret key (sk_*). Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.
Body
Required unless customer_id is given. The customer is found by email or created.
Bill an existing customer; its email on file is used when customer_email is omitted.
Shown on the invoice; used when creating the customer.
[{ "product_id": "uuid", "quantity": 2, "unit_price": 1500 }]. unit_price (cents) is required for open_ended products and an optional rate override for one_time ones; the hosted checkout charges exactly the unit price on the invoice.
A workspace discount code. Rejected if it applies to none of the lines.
Free text shown on the invoice and PDF.
Statement descriptor override.
ISO 8601 date.
Create and send in one call (default false).
List invoices
List invoices, newest first.
https://paysio.com/api/v1/invoicesAuthorizations
Any API key. Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.
Query parameters
1-100, default 10
Cursor for pagination
draft, sent, viewed, processing (Debit & Payouts payment settling), paid or void
Only invoices for one customer
Retrieve an invoice
Retrieve an invoice. Includes hosted_invoice_url and, once sent, pay_url.
https://paysio.com/api/v1/invoices/:idAuthorizations
Any API key. Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.
Send an invoice
Create the payment link (first send only), email the invoice with the PDF attached, and mark it sent. Re-sending emails again and reuses the link. emailed is false when the platform has no outbound email configured.
https://paysio.com/api/v1/invoices/:id/sendAuthorizations
Secret key (sk_*). Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.
Void an invoice
Void an unpaid invoice and deactivate its payment link. Paid invoices cannot be voided.
https://paysio.com/api/v1/invoices/:id/voidAuthorizations
Secret key (sk_*). Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.