Import Invoice — Fuel Advance
The POST /importinvoice endpoint supports an optional fuel_advance field that allows you to flag an invoice as having a fuel advance. This marks the invoice so the advance can be accounted for during the purchase process.
Overview
When a carrier has received a fuel advance against a load, the invoice can be flagged at submission time by setting fuel_advance to true. This allows your integration to communicate fuel advance status to FactorView as part of the invoice import, keeping your records in sync without a separate step.
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
fuel_advance |
boolean | No | Set to true to flag this invoice as having a fuel advance. Defaults to false if omitted. |
All other fields follow the standard POST /importinvoice specification, and all required fields remain the same.
Examples
Invoice with Fuel Advance
{
"external_id": 98765,
"client_id": 1001,
"debtor_id": 2003,
"invoice_date": "2025-09-10",
"invoice_number": "INV-4421",
"invoice_amount": "2500.00",
"fuel_advance": true
}
Invoice with Fuel Advance and Documents
{
"external_id": 98766,
"client_id": 1001,
"debtor_id": 2003,
"invoice_date": "2025-09-10",
"invoice_number": "INV-4422",
"invoice_amount": "3200.00",
"fuel_advance": true,
"po_ref": "PO-8812",
"docs": [
{
"doc_name": "Rate Confirmation",
"doc_url": "https://linkurl/ratecon-4422.pdf"
}
]
}
Response
The response format is the same as a standard invoice import:
{ "98765": 10542 }
Your external_id is returned with the FactorView submission ID.
Notes
- The
fuel_advancefield is optional. Requests without it behave exactly as before, defaulting to no fuel advance. - Set to
trueif the carrier received a fuel advance against this load. Set tofalseor omit if not. - The flag is stored on the invoice and visible during the purchase review process.
Questions? Contact support@factorview.com
