Overview
On this page, we’ll dive into the different invoice endpoints you can use to manage invoices programmatically.
Invoices are orders placed by customers. They contain all the info you might need for each order, from the total purchase amount, customer information, and the product(s) delivered.
On this page, we'll dive into the different invoice endpoints you can use to manage invoices programmatically. We'll look at how to view, create, and update invoices.
Endpoints
- List all invoices
- Search invoices
- Create an invoice
- Retrieve an invoice
- Create a checkout session
- View invoice deliverables
- Mark pending invoice completed
- Mark pending invoice voided
- Issue replacement for completed invoice
The invoice model
The invoice model contains all the information about the invoices stores have, including the type, code, and discount amount.
Properties
- Name
idinteger- Description
The unique identifier for the invoice.
- Name
paymentarray- Description
The array of general payment details. Consists of the following parts:
feeDisplays the platform fee associated with this invoice.gatewayContains payment gateway type, transaction ID, checkout URL, and payment-method-specific metadata such as crypto addresses and requested / received crypto amounts.subtotalPayment subtotal calculation, contains currency, VAT, and total.expires_atAt which time the invoice expires and no longer becomes payable.full_priceShows the full price of the invoice and includes modifiers such as extra amounts (Pay What You Want).original_amountDisplays the original amount of the invoice and excludes modifiers such as extra amounts (Pay What You Want).
- Name
statusarray- Description
The historical array of the invoice's status. Consists of two parts:
historyArray of historical order statuses.statusCurrent order status details.
- Name
webhooksarray- Description
The webhook details, if set.
- Name
feedbackstring- Description
The customer order feedback, if made.
- Name
created_attimestamp- Description
The time at which this invoice was first created.
- Name
updated_attimestamp- Description
The time at which this invoice was last updated.
- Name
store_idinteger- Description
The ID of the store this invoice belongs to.
- Name
coupon_idinteger- Description
The ID of the coupon applied to this order, if set.
- Name
subscription_idinteger- Description
The ID of the subscription belonging to the invoice, if set.
- Name
customer_informationarray- Description
The associated customer's information, consists of:
idSellApp user ID (if logged in).emailCustomer email.countryCustomer country.locationCustomer location (city level).ipCustomer IP.proxiedBoolean; whether the customer is using IP obfuscation software or not.browser_agentBrowser agent used to make the purchase.vatArray of VAT details, consists ofamountin cents andcountryas country code.