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

Authorizations

Authorization
string
header
required

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

Body

application/json
The details required to create a plan.
title
string
required

Short description about the plan

summary
string
required

A detailed summary explaining what the plan is about.

currency
string
required

Currency code in ISO 4217 format.

options
object[]

Response

200
application/json
Successfully created plan.
success
boolean
default:true

Indicates if the request was successful.

data
object