POST
/
subscriptions
curl --request POST \
  --url https://api.live.paisr.tech/{version}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer": "<string>",
  "auto_renew": true,
  "trial_period": 182.5,
  "items": [
    {
      "option_id": "<string>",
      "quantity": 2
    }
  ]
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "status": "<string>",
    "session": null
  }
}

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 subscription.

The body is of type object.

Response

200
application/json
Successfully created subscription.

The response is of type object.