cURL
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==" }
Get a list of price plans
Query Parameters
Filterable Fields
type
status
Searchable Fields
_search
Sortable Fields
_sort
updated_at DESC, id ASC
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
10
Response for list price plans request
Show child attributes