POST
/
credit-transactions
curl --request POST \
  --url https://eu.sequencehq.com/api/credit-transactions \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'On-Behalf-Of: <on-behalf-of>' \
  --data '{
  "grantId": "746fc7f2-8098-4fe7-953c-7d51c580a126",
  "reason": "Refund",
  "invoiceId": "6cedbb5e-4f77-4217-b8d4-020e7e4d33c9",
  "billingRunId": "cbe82021-90bb-47cc-a665-eda41ec4ee5b",
  "type": "DEBIT",
  "amount": "10"
}'
{
  "id": "4a1da26e-4f4a-4607-9597-9652138afcf1",
  "grantId": "746fc7f2-8098-4fe7-953c-7d51c580a126",
  "reason": "Refund",
  "invoiceId": "6cedbb5e-4f77-4217-b8d4-020e7e4d33c9",
  "billingRunId": "cbe82021-90bb-47cc-a665-eda41ec4ee5b",
  "type": "DEBIT",
  "amount": "10",
  "createdAt": "2022-10-07T14:12:08.826121Z"
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

On-Behalf-Of
string
required

The Sequence account that this request is made on behalf of.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Body

application/json

Response

201
application/json

Created

The response is of type object.