Skip to main content
POST
/
accounts
/
{account_id}
/
price_plans
curl --request POST \
--url https://api.togai.com/accounts/{account_id}/price_plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "ASSOCIATE",
"pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
"effectiveFrom": "2022-07-04",
"effectiveUntil": "2022-10-04"
}'
{
  "accountId": "G234DZZKBKACATFFGVGEMERFI",
  "accountName": "ACME Enterprise - Account2",
  "pricingSchedules": [
    {
      "id": "sch.4325kbjedsc.34dww",
      "pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
      "pricePlanName": "ENTERPRISE_PLAN",
      "startDate": "2022-12-02T00:00:00Z",
      "endDate": "9999-01-01T00:00:00Z"
    }
  ]
}
Deprecated: This API is deprecated and will be removed in a future release. Please use the Bulk edit schedules of an account instead for updated functionality.

Authorizations

Authorization
string
header
required

Path Parameters

account_id
string
required
Maximum length: 50
Example:

Body

application/json
effectiveFrom
string<date>
required
effectiveUntil
string<date>
required
mode
enum<string>
Available options:
ASSOCIATE,
DISASSOCIATE
pricePlanId
string
pricePlanDetailsOverride
object
pricingRulesOverride
object[]
retainStartOffsets
boolean
preActions
PreAction · object[]

Response

accountId
string
required
Maximum length: 50
accountName
string
required
pricingSchedules
object[]
required