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

Book a trip

Book a trip.

Body
Responses
  • 200 object

    Booked trip

    • id integer
    • trip_id string(uuid)
    • status string

      Values are booked, canceled, and paid.

POST /books
curl \
 -X POST http://api.mycompany.com/v1/trips/books \
 -H "Content-Type: application/json" \
 -d '{"trip_id":"string","voucher_code":"string"}'
Request example
{
  "trip_id": "string",
  "voucher_code": "string"
}
Response example (200)
{
  "id": 42,
  "trip_id": "string",
  "status": "booked"
}