Invoices

Get an invoice with items, payments, refunds and timeline

GET
/v1/stores/{storeId}/invoices/{orderId}

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
orderId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/stores/string/invoices/string"
{  "invoice": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "external_ids": {      "property1": "string",      "property2": "string"    },    "number": -9007199254740991,    "uniqueId": "string",    "env": "live",    "status": "pending",    "paymentSummary": "string",    "fulfilmentSummary": "string",    "completionKind": "automatic",    "email": "string",    "currency": "string",    "totalMinor": -9007199254740991,    "paidMinor": -9007199254740991,    "refundedMinor": -9007199254740991,    "paymentMethod": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "label": "string",      "provider": "string"    },    "items": [      {        "name": "string",        "variant": "string",        "qty": -9007199254740991,        "imageUrl": "string"      }    ],    "source": "string",    "buyerCountry": "string",    "createdAt": "string",    "paidAt": "string",    "archived": true,    "note": "string",    "invoiceUrl": "string",    "storeCurrency": {      "currency": "string",      "rate": "string",      "rateDate": "string",      "totalMinor": -9007199254740991,      "refundedMinor": -9007199254740991    },    "subtotalMinor": -9007199254740991,    "discountMinor": -9007199254740991,    "methodFeeMinor": -9007199254740991,    "taxMinor": -9007199254740991,    "taxIncludedMinor": -9007199254740991,    "taxLabel": "string",    "shippingMinor": -9007199254740991,    "couponCode": "string",    "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",    "buyerIp": "string",    "userAgent": "string",    "asn": "string",    "discordUserId": "string",    "discordUsername": "string",    "referrerHost": "string",    "couponDiscountMinor": -9007199254740991,    "volumeDiscountMinor": -9007199254740991,    "taxRateBp": -9007199254740991,    "preTaxTotalMinor": -9007199254740991,    "shippingZone": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "shippingSpeed": {      "name": "string",      "estimateMinDays": -9007199254740991,      "estimateMaxDays": -9007199254740991    },    "cashback": {      "state": "scheduled",      "amountMinor": -9007199254740991,      "reversibleMinor": -9007199254740991,      "currency": "string",      "at": "string"    },    "unavailableChoice": {      "state": "open",      "choice": "refund",      "amountMinor": -9007199254740991,      "currency": "string",      "manual": true,      "offeredAt": "string",      "chosenAt": "string"    },    "completionEmail": {      "state": "string",      "to": "string",      "createdAt": "string",      "sentAt": "string"    },    "undoableRefundMinor": -9007199254740991,    "p2p": {      "method": "string",      "recipient": "string",      "note": "string"    },    "crypto": {      "ticker": "string",      "network": "string",      "address": "string",      "amount": "string",      "received": "string"    },    "attribution": {      "property1": "string",      "property2": "string"    },    "metadata": {      "property1": "string",      "property2": "string"    },    "billingAddress": {      "property1": null,      "property2": null    },    "shippingAddress": {      "property1": null,      "property2": null    },    "dashboardNote": "string",    "expiresAt": "string",    "statusReason": "string",    "refundableMinor": -9007199254740991,    "agent": {      "browser": "string",      "os": "string",      "device": "string"    }  },  "session": {    "startedAt": "string",    "lastSeenAt": "string",    "durationMs": -9007199254740991,    "pageviews": -9007199254740991,    "entryPath": "string",    "exitPath": "string",    "referrerHost": "string",    "channel": "string",    "utm": {      "property1": "string",      "property2": "string"    },    "country": "string",    "browser": "string",    "os": "string",    "device": "string",    "pages": [      {        "path": "string",        "at": "string",        "engagedMs": -9007199254740991      }    ]  },  "deliveryLogs": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "lineId": "e698cdee-c4ef-4d12-b0ea-7c98b2fc64a8",      "productName": "string",      "deliveryType": "string",      "state": "string",      "attempts": -9007199254740991,      "lastError": "string",      "httpStatus": -9007199254740991,      "durationMs": -9007199254740991,      "hasDetail": true,      "createdAt": "string",      "completedAt": "string"    }  ],  "lines": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",      "addonId": "ed930881-3f27-4e25-9365-ff53ffbcfa14",      "parent": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "variantName": "string"      },      "imageUrl": "string",      "productName": "string",      "variantName": "string",      "parcel": {        "weightGrams": 0,        "lengthMm": 0,        "widthMm": 0,        "heightMm": 0      },      "qty": -9007199254740991,      "unitPriceMinor": -9007199254740991,      "discountMinor": -9007199254740991,      "totalMinor": -9007199254740991,      "costMinor": -9007199254740991,      "costCurrency": "string",      "deliveryType": "string",      "customFieldValues": {        "property1": "string",        "property2": "string"      },      "deliveredQty": -9007199254740991,      "fulfilmentState": "string",      "serviceState": "string",      "shippingState": "string",      "tracking": {        "carrier": "string",        "number": "string",        "url": "string"      },      "deliveryMessage": "string",      "items": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "serial",          "value": "string",          "file": {            "name": "string",            "size": 0,            "downloadPath": "string"          },          "replaced": true,          "revoked": true,          "isReplacement": true,          "replacedAt": "string",          "replacementReason": "string"        }      ],      "isAddon": true,      "serviceMessage": "string",      "serviceCompletedAt": "string",      "customFieldsSubmittedAt": "string"    }  ],  "attempts": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "provider": "string",      "methodLabel": "string",      "state": "string",      "amountMinor": -9007199254740991,      "capturedMinor": -9007199254740991,      "currency": "string",      "externalId": "string",      "failureMessage": "string",      "completionKind": "string",      "buyerProof": "string",      "dashboardUrl": "string",      "createdAt": "string"    }  ],  "refunds": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "lineAllocations": [        {          "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d",          "amountMinor": "string"        }      ],      "amountMinor": -9007199254740991,      "currency": "string",      "kind": "string",      "state": "string",      "reason": "string",      "externalId": "string",      "failureMessage": "string",      "createdAt": "string",      "resolvedAt": "string",      "reverseCashback": true,      "reverseCommission": true,      "undoable": true,      "reversedAt": "string",      "reversalReason": "string"    }  ],  "shipments": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "carrier": "string",      "trackingNumber": "string",      "trackingUrl": "string",      "status": "string",      "statusMessage": "string",      "checkpoints": [        {          "status": "string",          "message": "string",          "location": "string",          "at": "string"        }      ],      "items": [        {          "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d",          "qty": -9007199254740991        }      ],      "createdAt": "string",      "deliveredAt": "string"    }  ],  "returns": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "status": "string",      "reason": "string",      "merchantNote": "string",      "refundMinor": -9007199254740991,      "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521",      "items": [        {          "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d",          "qty": -9007199254740991        }      ],      "requestedAt": "string",      "decidedAt": "string",      "receivedAt": "string"    }  ],  "bookings": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d",      "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",      "startsAt": "string",      "endsAt": "string",      "timeZone": "string",      "status": "held",      "merchantNote": "string"    }  ],  "events": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "string",      "message": "string",      "actorType": "string",      "createdAt": "string"    }  ]}