The Delivery Service REST API is available atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/microservices-patterns/ftgo-application/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8089. It tracks couriers and dispatches them to pick up and drop off orders. Couriers register their availability through this API, and dispatchers or consumers can query the current state of any delivery.
POST /couriers//availability
Updates whether a courier is currently available to accept delivery assignments. When a courier becomes available, the Delivery Service can assign pending deliveries to them.Path parameters
The unique ID of the courier whose availability is being updated.
Request body
Set to
true when the courier is available to accept deliveries, or false when they are unavailable.Response
This endpoint returns no response body. A200 OK status indicates the availability was updated successfully.
Status codes
| Code | Meaning |
|---|---|
200 OK | Courier availability updated. |
Example
GET /deliveries/
Returns the current status of a delivery, including its state, the assigned courier, and the list of pending courier actions.Path parameters
The unique ID of the delivery to look up.
Response
Core information about the delivery.
The ID of the courier currently assigned to this delivery, or
null if no courier has been assigned yet.The ordered list of actions the assigned courier must perform to complete the delivery.
Status codes
| Code | Meaning |
|---|---|
200 OK | Delivery found and status returned. |
404 Not Found | No delivery exists with the given deliveryId. |