Get Source Invoices
https://api.flxpoint.com/source-invoicesUse this when you want to pull source invoice data through the API.
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
This endpoint lists source invoices. The returned invoices will always be sorted by their `insertedAt` time ascending (oldest first).
Request
filterPurchaseOrderIdqueryintegerFilter to only include invoices of a specific PO
filterCreatedAfterquerystring (date-time)Filter to only include invoices created after a specific date-time
filterSourceIdqueryintegerFilter to only include invoices from a particular source. When using a source token this value will be ignored as it will be implicit to use the source tokens source ID
isAccountingSyncedquerybooleanFilter to only include invoices that have been synced to an Accounting Integration
isForSyncedAccountingPurchaseOrderquerybooleanFilter to only include those tied to purchase orders that have been synced to an Accounting Integration. Does not relate to the whether or not the invoice has been synced.
filterPageNumberqueryintegerCurrent Page
filterPageSizequeryintegerNumber of entries per page
idsqueryarray[integer]Finds elements matching these IDs. Max 50
hasAccountingSyncErrorquerybooleanFilters returned "invoices" based on whether they encountered an accounting sync error during channel synchronization.
Example request
/source-invoicescurl -X GET "https://api.flxpoint.com/source-invoices" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN"Responses
200OKapplication/json
idintegerinvoiceStatusobjectnamestringUnpaidPaidCreditedRefundedhandlestringunpaidpaidcreditedrefundedinsertedAtstring (date-time)updatedAtstring (date-time)purchaseOrderIdintegerfulfillmentRequestIdintegerrmaIdintegersourceIdintegerpurchaseOrderNumberstringfulfillmentRequestNumberstringinvoiceNumberstringinvoiceDatestring (date-time)totalCostnumbertotalProductCostnumbertotalShippingCostnumbertotalFeeCostnumbertotalTaxCostnumbertotalOtherCostnumbertotalQuantityintegeraccountingSyncedbooleanaccountingSyncErrorstringexternalAccountingIdstringinvoiceItemsarray[InvoiceItem]idintegerinvoiceIdintegerinvoiceItemTypeobjectrequirednamestringProductShippingFeeTaxOtherhandlestringproductshippingfeetaxothersourceVariantIdinteger (int64)costnumberskustringrequiredtitlestringquantityintegerperUnitCostnumberexternalAccountingItemIdstringcustomFieldsarray[Source Invoice Custom Field]idintegernamestringvaluestringtotalCreditCostnumbercustomFieldsarray[Source Invoice Custom Field]idintegernamestringvaluestringcommissionnumberdeprecatedvendorPayoutIdinteger[
{
"id": 0,
"invoiceStatus": {
"name": "Unpaid",
"handle": "unpaid"
},
"insertedAt": "2026-04-20T00:00:00Z",
"updatedAt": "2026-04-20T00:00:00Z",
"purchaseOrderId": 0,
"fulfillmentRequestId": 0,
"rmaId": 0,
"sourceId": 0,
"purchaseOrderNumber": "string",
"fulfillmentRequestNumber": "string",
"invoiceNumber": "string",
"invoiceDate": "2026-04-20T00:00:00Z",
"totalCost": 0,
"totalProductCost": 0,
"totalShippingCost": 0,
"totalFeeCost": 0,
"totalTaxCost": 0,
"totalOtherCost": 0,
"totalQuantity": 0,
"accountingSynced": true,
"accountingSyncError": "string",
"externalAccountingId": "string",
"invoiceItems": [
{
"id": 0,
"invoiceId": 0,
"invoiceItemType": {
"name": null,
"handle": null
},
"sourceVariantId": 0,
"cost": 0,
"sku": "string",
"title": "string",
"quantity": 0,
"perUnitCost": 0,
"externalAccountingItemId": "string",
"customFields": [
null
]
}
],
"totalCreditCost": 0,
"customFields": [
{
"id": 0,
"name": "string",
"value": "string"
}
],
"commission": 0,
"vendorPayoutId": 0
}
]401Unauthorized
No schema documented for this status.
404Not Found
No schema documented for this status.
OpenAPI fragment
{
"get": {
"summary": "Get Source Invoices",
"description": "This endpoint lists source invoices. The returned invoices will always be sorted by their `insertedAt` time ascending (oldest first).",
"parameters": [
{
"schema": {
"type": "integer"
},
"in": "query",
"name": "filterPurchaseOrderId",
"description": "Filter to only include invoices of a specific PO"
},
{
"schema": {
"type": "string",
"format": "date-time"
},
"in": "query",
"name": "filterCreatedAfter",
"description": "Filter to only include invoices created after a specific date-time"
},
{
"schema": {
"type": "integer"
},
"in": "query",
"name": "filterSourceId",
"description": "Filter to only include invoices from a particular source. When using a source token this value will be ignored as it will be implicit to use the source tokens source ID"
},
{
"schema": {
"type": "boolean"
},
"in": "query",
"name": "isAccountingSynced",
"description": "Filter to only include invoices that have been synced to an Accounting Integration"
},
{
"schema": {
"type": "boolean"
},
"in": "query",
"name": "isForSyncedAccountingPurchaseOrder",
"description": "Filter to only include those tied to purchase orders that have been synced to an Accounting Integration. Does not relate to the whether or not the invoice has been synced."
},
{
"schema": {
"type": "integer",
"default": 1
},
"in": "query",
"name": "filterPageNumber",
"description": "Current Page"
},
{
"schema": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 100
},
"in": "query",
"name": "filterPageSize",
"description": "Number of entries per page"
},
{
"schema": {
"type": "array",
"maxItems": 50,
"example": "123,456,789",
"uniqueItems": true,
"items": {
"type": "integer"
}
},
"in": "query",
"name": "ids",
"description": "Finds elements matching these IDs. Max 50",
"style": "form",
"explode": false
},
{
"schema": {
"type": "boolean"
},
"in": "query",
"name": "hasAccountingSyncError",
"description": "Filters returned \"invoices\" based on whether they encountered an accounting sync error during channel synchronization."
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Invoice"
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found"
}
}
}
}