GET
/
price_plans
curl --request GET \
  --url https://api.togai.com/price_plans \
  --header 'Authorization: <authorization>'
{
  "data": [
    {
      "id": "um.1zYnCiM9Bpg.lv25y",
      "name": "Rides - Pro plan",
      "description": "",
      "status": "DRAFT",
      "usageMeters": [
        "um.1zlQTBWlkeO.lB7fh",
        "um.1zYnCiM9Bpg.1zYn"
      ],
      "pricePlanDetails": {
        "pricingCycleConfig": {
          "interval": "MONTHLY",
          "startOffset": {
            "dayOffset": "4",
            "monthOffset": "NIL"
          },
          "gracePeriod": 3
        },
        "usageRateCards": [
          {
            "displayName": "Local Rides",
            "pricingModel": "TIERED",
            "rateConfig": {
              "usageMeterId": "um.1zYnCiM9Bpg.1zYn",
              "slabs": [
                {
                  "rate": 100,
                  "priceType": "PER_UNIT",
                  "startAfter": 0,
                  "order": 1
                },
                {
                  "rate": 40,
                  "priceType": "PER_UNIT",
                  "startAfter": 10,
                  "order": 2
                },
                {
                  "rate": 10,
                  "priceType": "PER_UNIT",
                  "startAfter": 50,
                  "order": 3
                }
              ]
            }
          }
        ]
      },
      "updatedAt": "2020-01-01T00:00:00Z",
      "createdAt": "2020-01-01T00:00:00Z"
    }
  ],
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}

Authorizations

Authorization
string
headerrequired

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

Query Parameters

nextToken
string
pageSize
number

Response

200 - application/json
data
object[]
required
nextToken
string
context
object