POST
/
plans
/
{plan_id}
/
options
curl --request POST \
  --url https://api.live.paisr.tech/{version}/plans/{plan_id}/options \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "options": [
    {
      "description": "<string>",
      "unit_price": 1.01,
      "billing_interval": 183,
      "trial_period": 182.5,
      "attributes": {}
    }
  ]
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

plan_id
string
required

The Plan ID.

Body

application/json
The details required to create a price option.
options
object[]

Response

200
application/json
Successfully created plan options.
success
boolean

Indicates if the request was successful.

message
string

A descriptive message regarding the result.