GET
/
v2
/
price_plans
curl --request GET \
  --url https://api.togai.com/v2/price_plans \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "name": "<string>",
      "description": "<string>",
      "type": "BILLING",
      "pricingCycleConfig": {
        "interval": "WEEKLY",
        "startOffset": {
          "dayOffset": "<string>",
          "monthOffset": "<string>"
        },
        "gracePeriod": 3,
        "anniversaryCycle": true
      },
      "supportedCurrencies": [
        "<string>"
      ],
      "deferredRevenue": true,
      "allowOngoingCycleUpdates": true,
      "id": "<string>",
      "referenceId": "<string>",
      "version": 123,
      "status": "DRAFT",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "nextToken": "<string>"
}

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

Paginated response for price plan

data
object[]
required

Request to create a price plan

nextToken
string