post

/projects/{project_id}/subscriptions/plans

Creates a subscription plan.

Authorization

basic

Request Parameters

1 Path Parameter

Request Body

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
name
object

Plan name. Value consists of pairs “localization”:“plan name”.

required
charge
object

Billing details.

required
id
integer

Subscription plan ID.

external_id
string

Plan external ID (32 characters).

description
object

Plan description. Value consists of pairs “localization”:“plan description”.

group_id
string

Group ID the plan is linked to.

expiration
object

Subscription expiration details.

trial
object

Trial period details.

grace_period
object

Grace period details.

billing_retry
object

Billing retry details.

refund_period
integer

Period of time that user can refund the payment for a subscription plan (in days).

tags
array[string]

Plan tags.

status
object

Responses

Сreated.

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
external_id
string
plan_id
integer

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
1 path param not set
project_id
$$.env
2 variables not set
username
password