For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Search docs
/
Ask AI
Dev Portal
Docs
API Reference
Learn
Community
Changelog
Developer
Developer
Developer
Developer
GraphQL
B2B
Queries
invoice
Copy page
Get the details of an invoice. Requires IP authentication.
Arguments
invoiceId
Integer
Required
The invoice id. This field is required.
Returns
an optional InvoiceType
id
String
createdAt
Integer
The created timestamp of the invoice
updatedAt
Integer
The updated timestamp of the invoice
storeHash
String
The store's store hash
customerId
String
The customer id of the invoice
externalId
String
The external id of the invoice
externalCustomerId
String
The external customer id of the invoice
invoiceNumber
String
The invoice number of the invoice
type
String
The type of the invoice
dueDate
Integer
The due date of the invoice
status
Integer
The status of the invoice. (0: open, 1: partial paid, 2: completed)
orderNumber
String
The order number of the invoice
purchaseOrderNumber
String
The purchase order number of the invoice
details
GenericScalar
The details of the invoice
pendingPaymentCount
Integer
The pending payment count of the invoice
source
Integer
The source of the invoice
originalBalance
InvoiceBalanceType
The original balance of the invoice
Show 2 properties
openBalance
InvoiceBalanceType
The open balance of the invoice
Show 2 properties
notAllowedPay
Integer
Can this invoice allow payment
bcInformation
BCInfomation
The information of the invoice
Show 4 properties
extraFields
list of optional InvoiceExtraFieldsType
The extra fields of the invoice
Show 2 properties
timeOffset
Integer
The time offset
storeInfo
InvoiceStoreInfoType
The store information
Show 8 properties
channelId
Integer
The channel id of the invoice
channelName
String
The channel name of the invoice
companyInfo
CompanyInfoType
Company information of invoice
Show 9 properties
orderUserId
Integer
The order user id