Accounts
List pricing schedules of an account
Returns a list of pricing schedules of an account with pagination and sort.
GET
/
accounts
/
{account_id}
/
pricing_schedules
curl --request GET \
--url https://api.togai.com/accounts/{account_id}/pricing_schedules \
--header 'Authorization: <authorization>'
{
"data": [
{
"pricePlanId": "pp.bs8932bf328"
},
{
"startDate": "2080-10-04T00:00:00Z",
"endDate": "2099-10-04T00:00:00Z",
"pricePlanDetails": {
"supportedCurrencies": [
"USD"
],
"activeCurrencies": [
"USD"
],
"pricingCycleConfig": {
"interval": "MONTHLY",
"startOffset": {
"dayOffset": "4",
"monthOffset": "NIL"
},
"gracePeriod": 3
},
"usageRateCards": [
{
"displayName": "Local Rides",
"usageMeterId": "um.1zYnCiM9Bpg.1zYn",
"ratePlan": {
"pricingModel": "TIERED",
"slabs": [
{
"order": 1,
"startAfter": 0,
"priceType": "FLAT"
}
]
},
"rateValues": [
{
"currency": "USD",
"slabRates": [
{
"rate": 40,
"order": 1
}
]
}
]
}
],
"fixedFeeRateCards": [
{
"id": "addon.2077efUBMXo.DyzlZ",
"displayName": "Maintenance",
"rateValues": [
{
"currency": "USD",
"rate": 10
}
]
}
],
"minimumCommitment": {
"displayName": "Minimum Commitment",
"rateValues": [
{
"currency": "USD",
"rate": 10
}
]
}
}
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
account_id
string
requiredaccount_id corresponding to an account
Query Parameters
nextToken
string
pageSize
number
start_date
string
end_date
string
Response
200 - application/json
data
object[]
nextToken
string
previousToken
string
curl --request GET \
--url https://api.togai.com/accounts/{account_id}/pricing_schedules \
--header 'Authorization: <authorization>'
{
"data": [
{
"pricePlanId": "pp.bs8932bf328"
},
{
"startDate": "2080-10-04T00:00:00Z",
"endDate": "2099-10-04T00:00:00Z",
"pricePlanDetails": {
"supportedCurrencies": [
"USD"
],
"activeCurrencies": [
"USD"
],
"pricingCycleConfig": {
"interval": "MONTHLY",
"startOffset": {
"dayOffset": "4",
"monthOffset": "NIL"
},
"gracePeriod": 3
},
"usageRateCards": [
{
"displayName": "Local Rides",
"usageMeterId": "um.1zYnCiM9Bpg.1zYn",
"ratePlan": {
"pricingModel": "TIERED",
"slabs": [
{
"order": 1,
"startAfter": 0,
"priceType": "FLAT"
}
]
},
"rateValues": [
{
"currency": "USD",
"slabRates": [
{
"rate": 40,
"order": 1
}
]
}
]
}
],
"fixedFeeRateCards": [
{
"id": "addon.2077efUBMXo.DyzlZ",
"displayName": "Maintenance",
"rateValues": [
{
"currency": "USD",
"rate": 10
}
]
}
],
"minimumCommitment": {
"displayName": "Minimum Commitment",
"rateValues": [
{
"currency": "USD",
"rate": 10
}
]
}
}
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}