POST
/
v2
/
price_plans
curl --request POST \
  --url https://api.togai.com/v2/price_plans \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --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
}'
{
  "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"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Payload to create price plan

Request to create a price plan

Response

200
application/json

Response for Create and Get price plan requests

Request to create a price plan