application/json

Body

  • book_id string
  • payment_token string

    Payment token generated by the payment gateway.

  • cents string

Responses

  • 200 application/json

    Successful payment

    Hide response attributes Show response attributes object
    • id string
    • book_id string
    • cents string
    • status string
POST /payments
curl \
 --request POST 'http://api.mycompany.com/v1/payments' \
 --header "Content-Type: application/json" \
 --data '{"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"
}