POST
/
invoices
/
{id}
/
pay
curl --request POST \
  --url https://sandbox-api.billingrails.com/v1/invoices/{id}/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "integration_id": "<string>",
  "allowed_payment_methods": [
    "<string>"
  ],
  "callback_url": "<string>"
}'
{
  "invoice_id": "<string>",
  "checkout_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json

Pay invoice payload

The body is of type object.

Response

200 - application/json

Checkout URL generated

The response is of type object.