Skip to main content

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_INVOICE or READ_WRITE_INVOICE

Path Parameters​

ParameterTypeDescription
idStringRequired. 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​

FieldTypeDescription
idStringUnique identifier of the invoice.
entityIdStringInvoice number.
orderStringID of the linked order. Empty for standalone invoices.
orderEntityIdStringOrder number of the linked order.
companyStringID of the billed company.
customerStringID of the billed customer.
customerDetailsObjectCustomer firstName, lastName, email and phoneNumber.
companyDetailsObjectCompany name, email and phoneNumber.
billingAddressObjectBilling address.
shippingAddressObjectShipping address.
lineItemsArrayInvoiced items. See Line Item Object.
currencyObjectStore currency currency (code) and symbol. All amounts use this currency.
selectedCurrencyObjectCurrency the customer shopped in, with its exchange rate.
selectedCurrencyAmountObjectInvoice amounts in the customer's selected currency.
subTotalNumberSum of all line totals.
lineDiscountAmountNumberTotal line-level discount.
discountAmountNumberOrder-level discount.
shippingCostNumberShipping charge.
shippingDiscountAmountNumberDiscount on shipping.
taxAmountNumberTax.
storeCreditAmountNumberStore credit used.
additionalCostsArrayExtra charges, each with name and amount.
totalNumberInvoice total.
shipmentDetailsObjectShipping method used.
statusStringInvoice status. See Invoice Statuses.
issuedDateStringDate the invoice was issued.
dueDateStringDate payment is due.
paidAmountNumberAmount paid so far.
paymentsArrayPayments recorded against this invoice. See Payment Object.
paymentTermObjectPayment term name, paymentDueDays and dueType (net or fulfillment).
termsAndConditionsStringTerms shown on the invoice.
notesStringNotes.
createdByObjectWho created the invoice (id, name, type).
voidedAtStringDate the invoice was voided.
voidedByObjectWho voided the invoice.
voidReasonStringReason the invoice was voided.
timelineArrayInvoice history events.
metaFieldsArrayCustom field values. See Metafields.
createdAtStringDate and time the invoice was created (ISO 8601).
updatedAtStringDate and time the invoice was last updated (ISO 8601).

Line Item Object​

FieldTypeDescription
idStringInvoice line ID.
lineItemIdStringID of the matching order line.
productIdStringProduct ID.
variantIdStringVariant ID.
nameStringItem name.
skuStringSKU.
optionsArrayVariant options.
quantityNumberQuantity invoiced.
priceNumberUnit price.
extendedPriceNumberLine total.
discountAmountNumberLine discount.
selectedCurrencyPriceObjectLine prices in the customer's selected currency.

Payment Object​

FieldTypeDescription
idStringPayment ID.
entityIdStringPayment number.
amountNumberAmount applied to this invoice.
statusStringPayment status, for example captured.
methodName, methodLabelStringPayment method, for example wire / Wire Transfer.
gatewayRefStringPayment reference number.
notesStringPayment notes.
createdByObjectWho recorded the payment.
createdAtStringDate and time the payment was recorded.

Invoice Statuses​

StatusMeaning
draftThe invoice is not finalized yet.
openThe invoice is waiting for payment.
partially_paidPart of the total has been paid.
paidThe invoice is fully paid.
voidThe invoice was cancelled.