curl --request POST \
--url https://dev.seqhq.io/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
curl --request POST \
--url https://dev.seqhq.io/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"
}Your API credentials. Eg. Basic {credentials}.
The Sequence account that this request is made on behalf of.
Use this header to select an API version
2024-07-30 Credit Grant ID
"746fc7f2-8098-4fe7-953c-7d51c580a126"
Credit Transaction Type
"DEBIT"
Number of units added or consumer
"10"
Transaction Reason
"Refund"
Invoice ID where Credit was consumed
"6cedbb5e-4f77-4217-b8d4-020e7e4d33c9"
Billing Run ID where Credit was consumed
"cbe82021-90bb-47cc-a665-eda41ec4ee5b"
Created
Credit Grant ID
"5a0faea3-7ad5-4a83-a420-09bb6576f7e6"
Credit Transaction Type
"CREDIT"
Number of units added or consumed
"10"
Date of transaction
"2024-01-01"
Credit Transaction ID
"c770d296-ef09-459b-b8dd-42c334e00dab"
Transaction Reason
"because"
Invoice ID where Credit was consumed
"c6864c69-42a3-4966-8c22-1c56d7375a05"
Billing Run ID where Credit was consumed
"e95256be-08e7-4585-b3c7-fa9928aacd90"