cURL
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" }
Create a new credit transaction
Your API credentials. Eg. Basic {credentials}.
Basic {credentials}
The Sequence account that this request is made on behalf of.
Use this header to select an API version
2024-07-30
Created
The response is of type object.
object