Get Invoice
Retrieves the details of a single invoice, including its line items, amounts, history and the payments recorded against it.
HTTP Request
- URL:
/invoices/{id} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_INVOICEorREAD_WRITE_INVOICE
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the invoice (not the invoice number). |
cURL Example
curl --location '<BASE_URL>/invoices/665f2310d5775459152d6dd8' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The invoice was returned successfully.
- 400 Bad Request: The invoice ID is not valid.
- 401 Unauthorized: The access token is missing or invalid.
- 403 Forbidden: The access token does not have the required scope.
- 404 Not Found: No invoice exists with this ID.
Sample JSON Response
{
"success": true,
"data": {
"id": "665f2310d5775459152d6dd8",
"entityId": "INV-1001",
"order": "664f2310d5775459152d6dd8",
"orderEntityId": "ORD-1042",
"company": "664dec6cd5775459152d4922",
"customer": "664dec6cd5775459152d4926",
"customerDetails": {
"firstName": "Maria",
"lastName": "Lopez",
"email": "maria.lopez@northwindsupply.com",
"phoneNumber": "512-555-0142"
},
"companyDetails": {
"name": "Northwind Supply",
"email": "ap@northwindsupply.com",
"phoneNumber": "512-555-0100"
},
"billingAddress": {
"billingAddressId": "664dec6cd5775459152d4923",
"firstName": "Maria",
"lastName": "Lopez",
"address1": "4100 Industrial Blvd",
"city": "Austin",
"state": { "name": "Texas", "code": "TX" },
"country": { "name": "United States", "code": "US" },
"zipcode": "78744"
},
"shippingAddress": {
"shippingAddressId": "664dec6cd5775459152d4924",
"firstName": "Maria",
"lastName": "Lopez",
"address1": "4100 Industrial Blvd",
"address2": "Dock 3",
"city": "Austin",
"state": { "name": "Texas", "code": "TX" },
"country": { "name": "United States", "code": "US" },
"zipcode": "78744"
},
"lineItems": [
{
"id": "665f2310d5775459152d6ddb",
"lineItemId": "664f2310d5775459152d6ddb",
"productId": "663a0cbe516313e5bc94ab30",
"variantId": null,
"name": "Safety Glasses",
"sku": "SFTY-4006",
"productSku": "SFTY-4006",
"image": "https://cdn.example.com/products/safety-glasses.webp",
"options": [],
"quantity": 12,
"price": 45,
"extendedPrice": 540,
"discountAmount": 0,
"isFreeGift": false,
"selectedCurrencyPrice": null
}
],
"currency": { "currency": "USD", "symbol": "$" },
"selectedCurrency": null,
"selectedCurrencyAmount": null,
"subTotal": 540,
"lineDiscountAmount": 0,
"discountAmount": 0,
"shippingCost": 12,
"shippingDiscountAmount": 0,
"taxAmount": 0,
"storeCreditAmount": 0,
"additionalCosts": [],
"total": 552,
"shipmentDetails": {
"shippingMethod": {
"shippingMethodId": "663a0afe4587085935a4fa0d",
"name": "flatRate",
"label": "Flat Rate",
"type": null
}
},
"status": "partially_paid",
"issuedDate": "2026-07-13T08:39:44.791Z",
"dueDate": "2026-08-12T08:39:44.791Z",
"paidAmount": 200,
"payments": [
{
"id": "666f2310d5775459152d6ff0",
"entityId": "PMT-1008",
"source": "invoice",
"amount": 200,
"amountReceived": 200,
"currency": { "currency": "USD", "symbol": "$" },
"status": "captured",
"methodName": "wire",
"methodLabel": "Wire Transfer",
"type": "manual",
"gatewayRef": "WIRE-20260723-001",
"notes": null,
"refundedAmount": 0,
"createdBy": { "id": "6489b2479467bbcf8c3d33aa", "name": "ERP Connector", "type": "api" },
"createdAt": "2026-07-23T10:20:00.000Z"
}
],
"paymentTerm": {
"paymentTermId": "663a0afe4587085935a4fb90",
"name": "Net 30",
"paymentDueDays": 30,
"dueType": "net"
},
"termsAndConditions": "Payment due within 30 days.",
"notes": null,
"createdBy": { "id": null, "name": "Store", "type": "store" },
"voidedAt": null,
"voidedBy": null,
"voidReason": null,
"timeline": [
{
"type": "event",
"event": {
"subject": "Store created an invoice",
"description": "Store created a new invoice for Order #ORD-1042 with a total amount of $552.00. Status: Open."
},
"user": { "id": null, "name": "Store", "type": "store" },
"createdAt": "2026-07-13T08:39:44.816Z"
}
],
"metaFields": [],
"createdAt": "2026-07-13T08:39:44.816Z",
"updatedAt": "2026-07-23T10:20:00.000Z"
}
}
Response Details
Invoice Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the invoice. |
entityId | String | Invoice number. |
order | String | ID of the linked order. Empty for standalone invoices. |
orderEntityId | String | Order number of the linked order. |
company | String | ID of the billed company. |
customer | String | ID of the billed customer. |
customerDetails | Object | Customer firstName, lastName, email and phoneNumber. |
companyDetails | Object | Company name, email and phoneNumber. |
billingAddress | Object | Billing address. |
shippingAddress | Object | Shipping address. |
lineItems | Array | Invoiced items. See Line Item Object. |
currency | Object | Store currency currency (code) and symbol. All amounts use this currency. |
selectedCurrency | Object | Currency the customer shopped in, with its exchange rate. |
selectedCurrencyAmount | Object | Invoice amounts in the customer's selected currency. |
subTotal | Number | Sum of all line totals. |
lineDiscountAmount | Number | Total line-level discount. |
discountAmount | Number | Order-level discount. |
shippingCost | Number | Shipping charge. |
shippingDiscountAmount | Number | Discount on shipping. |
taxAmount | Number | Tax. |
storeCreditAmount | Number | Store credit used. |
additionalCosts | Array | Extra charges, each with name and amount. |
total | Number | Invoice total. |
shipmentDetails | Object | Shipping method used. |
status | String | Invoice status. See Invoice Statuses. |
issuedDate | String | Date the invoice was issued. |
dueDate | String | Date payment is due. |
paidAmount | Number | Amount paid so far. |
payments | Array | Payments recorded against this invoice. See Payment Object. |
paymentTerm | Object | Payment term name, paymentDueDays and dueType (net or fulfillment). |
termsAndConditions | String | Terms shown on the invoice. |
notes | String | Notes. |
createdBy | Object | Who created the invoice (id, name, type). |
voidedAt | String | Date the invoice was voided. |
voidedBy | Object | Who voided the invoice. |
voidReason | String | Reason the invoice was voided. |
timeline | Array | Invoice history events. |
metaFields | Array | Custom field values. See Metafields. |
createdAt | String | Date and time the invoice was created (ISO 8601). |
updatedAt | String | Date and time the invoice was last updated (ISO 8601). |
Line Item Object
| Field | Type | Description |
|---|---|---|
id | String | Invoice line ID. |
lineItemId | String | ID of the matching order line. |
productId | String | Product ID. |
variantId | String | Variant ID. |
name | String | Item name. |
sku | String | SKU. |
options | Array | Variant options. |
quantity | Number | Quantity invoiced. |
price | Number | Unit price. |
extendedPrice | Number | Line total. |
discountAmount | Number | Line discount. |
selectedCurrencyPrice | Object | Line prices in the customer's selected currency. |
Payment Object
| Field | Type | Description |
|---|---|---|
id | String | Payment ID. |
entityId | String | Payment number. |
amount | Number | Amount applied to this invoice. |
status | String | Payment status, for example captured. |
methodName, methodLabel | String | Payment method, for example wire / Wire Transfer. |
gatewayRef | String | Payment reference number. |
notes | String | Payment notes. |
createdBy | Object | Who recorded the payment. |
createdAt | String | Date and time the payment was recorded. |
Invoice Statuses
| Status | Meaning |
|---|---|
draft | The invoice is not finalized yet. |
open | The invoice is waiting for payment. |
partially_paid | Part of the total has been paid. |
paid | The invoice is fully paid. |
void | The invoice was cancelled. |