Invoices
Get Invoice Details
GET
Get Invoice Details
Get Invoice Details
Retrieves a single invoice for the current customer. Invoices are created during checkout flows for bookings, products, plans, and more. This endpoint returns the full invoice breakdown, including lines, taxes, totals, currency, and metadata for the location.Authentication
This endpoint requires an authenticated customer session. The invoice must belong to the current customer or to a team the customer manages.Path Parameters
Query Parameters
Comma-separated list of field paths to include in the response. When provided, only the
specified fields are returned — useful for reducing payload size. Supports nested paths
using dot notation. Example:
_shape=InvoiceNumber,TotalAmount,DueAmount,Paid,Lines.Response
The response shape follows theInvoicePreview contract used across checkout and payments. Below is a summary of the most-used fields.
Identification and Status
Customer and Location
Billing To
Amounts and Currency
Lines and Taxes
Array of line items. Each item includes fields such as
Description, Quantity, UnitPrice, SubTotal, TaxAmount, TaxPercentage, and
optional DiscountCode.Usage of Credits (if applicable)
System Fields
Example Response
Usage in Portal
This endpoint is used during checkout and payment flows whenever an existing invoice id is present (e.g., resuming payment or redirecting back from a payment provider). Key usages include:- Checkout flow controller – decides steps when an
invoice_idis present- File:
src/views/checkout/CheckoutLayoutPage.tsx
- File:
- Payment selection and processing (uses invoice data to start payment sessions)
- Files:
src/views/checkout/SignupPaymentPage.tsxsrc/views/public/checkout/booking/components/StripeCheckoutForm.tsxsrc/views/public/checkout/booking/components/SpreedlyCheckoutForm.tsx
- Files:
- Completion step context
- File:
src/views/checkout/SignupCompletePage.tsx
- File:
- Invoice fetching and basket state orchestration
- File:
src/states/useBasketData.tsx(callsendpoints.billing.invoices.onewheninvoice_idis in the URL)
- File:
- Discount code summary UI (reads invoice lines and currency)
- File:
src/views/public/checkout/booking/components/DiscountCodeForm.tsx
- File:
Typical integration pattern
Related Endpoints
POST /en/basket/CreateInvoice– Create an invoice from the current basketPOST /api/public/payments/stripe/createGuestSession– Start a Stripe checkout sessionPOST /api/public/payments/spreedly/createGuestSession– Start a Spreedly payment session