Pay for a booked trip

POST /payments

Body

  • book_id string
  • payment_token string

    Payment token generated by the payment gateway.

  • cents string

Responses

  • 200

    Successful payment

    Hide response attributes Show response attributes object
    • id string
    • book_id string
    • cents string
    • status string
POST /payments
curl \
 -X POST http://api.mycompany.com/v1/payments \
 -H "Content-Type: application/json" \
 -d '{"book_id":"string","payment_token":"string","cents":"string"}'
Request example
{
  "book_id": "string",
  "payment_token": "string",
  "cents": "string"
}
Request examples
{
  "book_id": "string",
  "payment_token": "string",
  "cents": "string"
}
Response examples (200)
{
  "id": "string",
  "book_id": "string",
  "cents": "string",
  "status": "string",
  "": "string"
}
Response examples (200)
{
  "id": "string",
  "book_id": "string",
  "cents": "string",
  "status": "string",
  "": "string"
}