Skip to main content

Invoice Object

A successful GET from a invoices endpoint will return an invoice object.

For unsuccessful requests, please refer to Error Handling and Error Codes.

Example Object

200 /v1/invoices/12904
  {
"id": 12904,
"status": "closed",
"due_amount": 45.01,
"paid_amount": 35.01,
"discount_amount": 10,
"balance_remaining": 0,
"payments": [
{
"amount" : 45.01,
"date" : "2023-04-25T23:59:59+00:00",
"status": "paid",
"method": {
"id": 12,
"type": "ach/card",
"last4": 1234
},
"charges": [
{
"id": 123,
"amount": 123
}
]
}
],
"start_datetime": "2023-04-09T00:00:00+00:00",
"end_datetime": "2023-04-15T23:59:59+00:00",
"customer": {
"id": 108,
"name": "Dealer name"
},
"charges": [
{
"id": 123,
"move_id": 85788, // optional, only if charge type is move
"type": "move",
"status": "paid",
"disputed": false,
"dispute_reason": "description...",
"discount_amount": 12.00,
"discount_reason": "description...",
"due_amount": 45.01,
"paid_amount": 45.01,
"balance_remaining": 0,
"details": [
{
"name": "Transport",
"amount": 44.87,
"notes": "Standard transport cost of move",
"mileage_band": {
"rate": 6,
"type": "flat",
"distance_start": 0,
"distance_end": 666,
"contract": {
"begin_date": "2023-08-01T04:00:00+00:00",
"end_date": "2028-08-31T04:00:00+00:00",
"workflowset_id": 3
}
}
},
{
"name": "Surge",
"amount": 0.14,
"notes": "uber ride service"
}
]
}
]
}

Response Field Descriptions

FieldTypeDescription
idNumberThe unique identifier of the invoice.
statusStringThe status of the invoice:
acquiring - The invoice is still being updated with active moves. Once the invoice is closed, it will no longer be updated with new charges.
processing - The invoice is being processed and moves can no longer be added to it.
closed - The invoice is settled and will no longer receive any changes.
due_amountNumberThe amount due on the invoice.
paid_amountNumberThe amount paid on the invoice.
discount_amountNumberThe discount amount applied to the invoice if any.
balance_remainingNumberThe remaining balance for the invoice.
start_datetimeStringThe start date and time of the invoice.
end_datetimeStringThe end date and time of the invoice.
amountNumberThe amount that was paid for a specific transaction.
dateStringThe date and time of the payment.
statusStringThe status of the payment on the invoice:
processing - The payment is being processed.
paid - The payment has been processed and the invoice is paid.
failed - The payment has failed to process. The failure reason will also be included to give more context as to why the payment failed.
methodObjectAn object containing payment method information.
idNumberThe unique identifier of the charge.
move_idNumberThe identifier of the move associated with the charge (optional).
typeStringThe type of the charge:
fee - An additional charge added to the invoice. This is usually a credit card transaction fee.
move - A charge that is related to a move.
one-time - A one-time charge (i.e. onboarding fee).
prepaid - The charge related to prepaid product move packages.
statusStringThe status of the charge:
unpaid - The initial status of an invoice that stays until partial or full payment has been received.
partial - The status used when a partial payment has been received that leaves a balance due.
paid - The final status that indicates the full payment has been received.
disputedBooleanIndicates whether the charge is disputed.
dispute_reasonStringThe reason for the dispute (if applicable).
discount_amountNumberThe discount amount applied to the charge.
discount_reasonStringThe reason for the discount (if applicable).
nameStringThe name/type of the charge detail:
delay - The charge if a driver was delayed during the move (i.e. vehicle was not ready, paperwork not ready, etc)
fuel - The charge applied when the driver had to add fuel to the vehicle to complete the move.
insurance - The charge for a move that required an additional insurance charge outside of the standard insurance rate.
partial - The charge for a move that was canceled after the driver was already dispatched.
ride - The charge when a move requires an additional ride. This usually occurs when a move has been canceled when the driver was already dispatched and the driver needs to get to their next destination.
surge - The charge for surge pricing for rideshare.
toll - The charge applied if there was a toll paid during the move.
tow - The charge applied if a tow was required due to issues with the vehicle.
amountNumberThe amount of the charge detail.
notesStringAdditional notes or description for the charge detail.
rateNumberThe rate of the mileage band.
typeStringThe type of the mileage band:
flat - A flat rate for the mileage band.
per - A rate based on miles traveled.
distance_startNumberThe starting distance of the mileage band.
distance_endNumberThe ending distance of the mileage band.
begin_dateStringThe start date of the contract.
end_dateStringThe end date of the contract.
workflowset_idNumberThe id of the workflow set of the contract.