GET
/
accounts
/
{account_id}
/
pricing_schedules
curl --request GET \
  --url https://api.togai.com/accounts/{account_id}/pricing_schedules \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "sch.4325kbjedsc.34dww",
      "pricePlanId": "pp.bs8932bf328",
      "version": 1,
      "startDate": "2080-10-04T00:00:00Z",
      "endDate": "2099-10-04T00:00:00Z",
      "isOverriden": false,
      "pricePlanDetails": {
        "supportedCurrencies": [
          "USD"
        ],
        "activeCurrencies": [
          "USD"
        ],
        "pricingCycleConfig": {
          "interval": "MONTHLY",
          "startOffset": {
            "dayOffset": "4",
            "monthOffset": "NIL"
          },
          "gracePeriod": 3,
          "anniversaryCycle": false
        },
        "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",
            "enableProration": false,
            "rateValues": [
              {
                "currency": "USD",
                "rate": 10
              }
            ]
          }
        ],
        "minimumCommitment": {
          "displayName": "Minimum Commitment",
          "rateValues": [
            {
              "currency": "USD",
              "rate": 10
            }
          ]
        }
      }
    }
  ],
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==",
  "previousToken": "eyJwYXlsb2FkIjp7InN0YXJ0X2RhdGUiOiInsic3RhcnRfZGF0ZWxsfSwidG9rZW5UeXBlIjoiUifQ=="
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

account_id corresponding to an account

Query Parameters

nextToken
string
pageSize
number
start_date
string
end_date
string
include_price_plan_info
boolean
compact
boolean

Response

200 - application/json
data
object[]
nextToken
string
previousToken
string