GET
/
price_plans
curl --request GET \
  --url https://api.togai.com/price_plans \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "um.1zYnCiM9Bpg.lv25y",
      "version": 1,
      "type": "BILLING",
      "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,
          "anniversaryCycle": false
        },
        "supportedCurrencies": [
          "USD"
        ],
        "activeCurrencies": [
          "USD"
        ]
      },
      "updatedAt": "2020-01-01T00:00:00Z",
      "createdAt": "2020-01-01T00:00:00Z"
    }
  ],
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}

Deprecated: This API is deprecated and will be removed in a future release. Please use the List price plans V2 API instead for updated functionality.

Authorizations

Authorization
string
header
required

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

Query Parameters

nextToken
string
Example:

"eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="

pageSize
number
Example:

10

Response

200
application/json
Response for list price plans request
data
object[]
required

Data of price plan list

nextToken
string
context
object