Pay for a booked trip
Body
-
book_id string
-
payment_token string
Payment token generated by the payment gateway.
-
cents 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"
}