Get Trip Invoice
https://sandbox-api.gozem.co/courier/v1/trips/{trip_id}/invoiceFetch invoice details for a completed trip.
Path parameters
Trip ID (TRP_xxx format or numeric ID)
Response 200
The invoice for a completed trip
Trip completion timestamp
Driver who performed the delivery
Driver name
Driver phone number
Vehicle plate number (license plate)
Vehicle type and details
Invoiced amounts, one line item per stop
Invoiced line items, adding up to `total`
Line item amount
Line item label (e.g., dropoff address)
Sub-label (e.g., Delivery 1)
Currency code (e.g., XOF)
Subtotal amount
Total amount
Invoice number
Invoice issuance timestamp
How the trip was paid
Payment method used (e.g., cash, mobile money)
Payment completion timestamp
Payment status
Trip must be completed to generate invoice
Itinerary as delivered
Total distance in kilometers
Dropoff addresses, in delivery order
Total duration in minutes
Pickup location address
Trip title
Unique trip identifier
Human-readable outcome. Defaults to `Ok`.
Always `true` on a success response.
Errors
Every failure returns the same envelope. Branch on code — it is the stable contract; message is human-facing and may be reworded or localized. See the error reference for what each code means.