For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoices

Get invoices

get

Retrieves all invoices for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve invoices for.

Example: 411486491630370816
Query parameters
typestring · enumOptionalPossible values:
customer_idstring · flake-idOptionalExample: 411486491630370816
order_idstring · flake-idOptionalExample: 411486491630370816
referencestringOptional
billing_emailstringOptional
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return in a single request.

afterstring · flake-idOptional

Returns items after the specified ID. Used for forward pagination through results.

Example: 411486491630370816
beforestring · flake-idOptional

Returns items before the specified ID. Used for backward pagination through results.

Example: 411486491630370816
ascbooleanOptional

Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.

Responses
200

OK

application/json
idstring · flake-idRequiredExample: 411486491630370816
numberinteger · int64Required

Sequential number of the invoice within its store

referencestringRequired

Human readable reference of the invoice

typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
store_idstring · flake-idRequiredExample: 411486491630370816
customer_idstring · flake-idRequiredExample: 411486491630370816
order_idstring · flake-idRequiredExample: 411486491630370816
refund_idstring · flake-idOptionalExample: 411486491630370816
parent_invoice_idstring · flake-idOptionalExample: 411486491630370816
currencystringRequired

Three-letter currency code of the invoice

discount_amountinteger · int64Required

Total discount in smallest currency unit (e.g., cents)

subtotal_amountinteger · int64Required

Total before tax in smallest currency unit

tax_amountinteger · int64Required

Total tax in smallest currency unit

giftcard_usage_amountinteger · int64Required

Amount paid using gift cards in smallest currency unit

total_amountinteger · int64Required

Total of the invoice in smallest currency unit

file_keystring · nullableOptional

Optional storage key of the generated invoice document

file_sizeinteger · nullableOptional

Optional size of the generated invoice document in bytes

created_atstring · date-timeRequired

Date and time when the invoice was created

issued_atstring · date-timeRequired

Date and time when the invoice was issued

get/v1/stores/{storeId}/invoices

Download invoice

get

Retrieves a temporary download URL for the invoice PDF.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store the invoice belongs to.

Example: 411486491630370816
invoiceIdstring · flake-idRequired

The ID of the invoice to download.

Example: 411486491630370816
Responses
200

OK

application/json
download_urlstringRequired

Temporary URL the invoice document can be downloaded from

get/v1/stores/{storeId}/invoices/{invoiceId}/download

Last updated

Was this helpful?