This is the documentation for version 1.0
of the API. Last update on Aug 24, 2021.
Base URL
http://api.mycompany.com/v1/trips
This is the documentation for version 1.0
of the API. Last update on Aug 24, 2021.
http://api.mycompany.com/v1/trips
curl \
-X POST http://api.mycompany.com/v1/trips/books \
-H "Content-Type: application/json" \
-d '{"trip_id":"string","voucher_code":"string"}'
{
"trip_id": "string",
"voucher_code": "string"
}
{
"id": 42,
"trip_id": "string",
"status": "booked"
}