Payloads
The Payload object
idstringoptionalPublic payload identifier.
current_waypointstringoptionalPublic ID of the current waypoint, when one is set.
pickupobjectoptionalPickup place for the payload.
dropoffobjectoptionalDropoff place for the payload.
returnobjectoptionalReturn place for the payload.
waypointsarray of objectsoptionalOrdered waypoint resources for the payload.
entitiesarray of objectsoptionalEntity resources attached to the payload.
cod_amountcurrencyoptionalCash-on-delivery amount.
cod_currencycurrencyoptionalThree-letter currency code for cash-on-delivery.
cod_payment_methodstringoptionalCash-on-delivery payment method.
payment_methodstringoptionalPayment method associated with the payload.
metaobjectoptionalAdditional payload metadata.
updated_attimestampoptionalTimestamp when the payload was last updated.
created_attimestampoptionalTimestamp when the payload was created.
{
"id": "payload_x9Z2Lm8QpA",
"current_waypoint": "place_1A2b3C4d5E",
"pickup": {
"id": "place_1A2b3C4d5E",
"name": "Warehouse 7"
},
"dropoff": {
"id": "place_9Z8y7X6w5V",
"name": "Customer Dock"
},
"return": null,
"waypoints": [],
"entities": [],
"cod_amount": null,
"cod_currency": null,
"cod_payment_method": null,
"payment_method": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/payloadsCreate a Payload
Creates a payload containing route endpoints and optional entities. Provide either pickup/dropoff endpoints or a waypoint list, then attach entities as needed.
pickupobjectoptionalPickup place data, address string, or place ID for the payload.
dropoffobjectoptionalDropoff place data, address string, or place ID for the payload.
returnobjectoptionalOptional return place data, address string, or place ID for the payload.
waypointsarray of objectsoptionalOrdered route stops for the payload.
entitiesarray of objectsoptionalEntities, packages, or items attached to the payload.
typestringrequiredPayload type. Required when creating a payload.
providerstringoptionalProvider identifier associated with the payload.
cod_amountcurrencyoptionalCash-on-delivery amount.
cod_currencycurrencyoptionalThree-letter currency code for cod_amount. Required when cod_amount is supplied.
cod_payment_methodenumoptionalCash-on-delivery payment method. Required when cod_amount is supplied. One of card, check, cash, bank_transfer.
metaobjectoptionalAdditional payload metadata.
/v1/payloadscurl -X POST https://api.fleetbase.io/v1/payloads \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"pickup": "10 Bayfront Avenue, Singapore 018956",
"dropoff": "80 Mandai Lake Rd, Singapore 729826",
"type": "food_delivery"
}'{
"id": "payload_oz5R9Z6",
"current_waypoint": null,
"pickup": null,
"dropoff": null,
"return": null,
"waypoints": [],
"entities": [],
"cod_amount": null,
"cod_currency": null,
"cod_payment_method": null,
"meta": [],
"updated_at": "2023-12-27T09:40:21.000000Z",
"created_at": "2023-12-27T09:40:21.000000Z"
}/v1/payloads/:idRetrieve a Payload
Retrieve a Payload.
/v1/payloads/:idcurl https://api.fleetbase.io/v1/payloads/:id \
-H "Authorization: Bearer flb_live_…"/v1/payloadsQuery Payloads
Returns payloads for the current company. Use pagination and sort parameters to page through payload records.
limitintegeroptionalMaximum number of payloads to return.
offsetintegeroptionalNumber of payloads to skip before returning results.
sortstringoptionalSort expression for the payload query.
/v1/payloadscurl https://api.fleetbase.io/v1/payloads?limit=25&offset=0&sort=created_at \
-H "Authorization: Bearer flb_live_…"/v1/payloads/:idUpdate a Payload
Updates a payload's route endpoints, waypoints, entities, cash-on-delivery settings, or metadata. The response returns the updated payload with route and entity data.
pickupobjectoptionalReplacement pickup place data, address string, or place ID for the payload.
dropoffobjectoptionalReplacement dropoff place data, address string, or place ID for the payload.
returnobjectoptionalReplacement return place data, address string, or place ID for the payload.
waypointsarray of objectsoptionalReplacement waypoint list. Sending route endpoint fields without waypoints removes existing waypoints.
entitiesarray of objectsoptionalReplacement entities, packages, or items attached to the payload.
typestringoptionalPayload type.
providerstringoptionalProvider identifier associated with the payload.
cod_amountcurrencyoptionalCash-on-delivery amount.
cod_currencycurrencyoptionalThree-letter currency code for cod_amount.
cod_payment_methodenumoptionalCash-on-delivery payment method. One of card, check, cash, bank_transfer.
metaobjectoptionalAdditional payload metadata.
/v1/payloads/:idcurl -X PUT https://api.fleetbase.io/v1/payloads/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"entities": [
{
"name": "UltraHD 4K Smart TV",
"description": "65-inch high-definition smart TV with vibrant colors and a sleek design.",
"currency": "USD",
"price": 1200.00
},
{
"name": "Bluetooth Wireless Headphones",
"description": "Noise-cancelling, over-ear headphones with long-lasting battery life.",
"currency": "USD",
"price": 250.00
},
{
"name": "Smart Fitness Watch",
"description": "Water-resistant fitness watch with heart rate monitor and GPS tracking.",
"currency": "USD",
"price": 199.99
}
]
}'/v1/payloads/:idDelete a Payload
Delete a Payload.
/v1/payloads/:idcurl -X DELETE https://api.fleetbase.io/v1/payloads/:id \
-H "Authorization: Bearer flb_live_…"