POST
/
payments
curl --request POST \
  --url https://sandbox-api.billingrails.com/v1/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "<string>",
  "invoice_id": "<string>",
  "order_id": "<string>",
  "payment_request_id": "<string>",
  "credit_grant_id": "<string>",
  "reference": "<string>",
  "succeeded_at": "2023-11-07T05:31:56Z"
}'
{
  "payment": {
    "object": "payment",
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "reference": "<string>",
    "status": "pending",
    "description": "<string>",
    "currency": "<string>",
    "amount": 123,
    "account_id": "<string>",
    "payment_method_id": "<string>",
    "payment_method": {
      "object": "payment_method",
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "type": "<string>",
      "status": "<string>",
      "channel": "<string>",
      "details": {},
      "account_id": "<string>",
      "account_name": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Payment recorded successfully

The response is of type object.