Credits
Get a credit grant
Get a credit grant by ID
GET
/
credits
/
{id}
Headers
Authorization
string
requiredYour API credentials. Eg. Basic {credentials}
.
Sequence-Version
enum<string>
Use this header to select an API version
Available options:
2024-07-30
Path Parameters
id
string
requiredCredit grant ID
Response
200 - application/json
id
string
requiredCredit Grant ID
sequenceAccountId
string
requiredSequence account ID
customerId
string
requiredCustomer ID
type
enum<string>
requiredType of the Credit - will either be CASH or USAGE
Available options:
CASH
, USAGE
currency
enum<string>
requiredCurrency
Available options:
ARS
, AUD
, BRL
, CAD
, CHF
, CNY
, COP
, CZK
, DKK
, EUR
, GBP
, HKD
, ILS
, JPY
, KRW
, MXN
, NOK
, NZD
, PLN
, SEK
, SGD
, THB
, USD
, UYU
, ZAR
name
string
requiredName of the Credit - will either be the currency or name of the metric
originalAmount
string
requiredAmount of credits originally granted
currentBalance
string
requiredAmount remaining of Credits Granted
costOfCredit
string
requiredCost of credit grant
createdAt
string
requiredThe created at
metricId
string
Usage metric ID (if type is USAGE)
expiryDate
string
Last Day Credit Grant can be consumed
taxRateId
string
Tax Rate ID for Credit Purchase
effectiveDate
string
First Day Credit Grant can be consumed