Create a payment

POST /payments
application/json

Body Required

  • user string
  • subscription string
  • amount integer
  • status string
  • payment_method string

Responses

  • 201

    Created

  • 400

    Bad Request

POST /payments
curl \
 -X POST localhost:8080/payments \
 -H "Content-Type: application/json" \
 -d '{"user":"string","subscription":"string","amount":42,"status":"string","payment_method":"string"}'
Request example
{
  "user": "string",
  "subscription": "string",
  "amount": 42,
  "status": "string",
  "payment_method": "string"
}
Request examples
{
  "user": "string",
  "subscription": "string",
  "amount": 42,
  "status": "string",
  "payment_method": "string"
}