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"
}
Create a price plan
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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Payload to create price plan
Request to create a price plan
Response for Create and Get price plan requests
Request to create a price plan