Creates a subscription plan.
required | object Plan name. Value consists of pairs "localization":"plan name". | ||||||||||||||||||
required | object Billing details. | ||||||||||||||||||
| |||||||||||||||||||
project_id | integer Project ID. | ||||||||||||||||||
id | integer Subscription plan ID. | ||||||||||||||||||
external_id | string Plan external ID (32 characters). | ||||||||||||||||||
object Plan description. Value consists of pairs "localization":"plan description". | |||||||||||||||||||
group_id | string Group ID the plan is linked to. | ||||||||||||||||||
object Subscription expiration details. | |||||||||||||||||||
object Trial period details. | |||||||||||||||||||
object Grace period details. | |||||||||||||||||||
object Billing retry details. | |||||||||||||||||||
refund_period | integer Period of time that user can refund the payment for a subscription plan (in days). | ||||||||||||||||||
tags | Array of strings Plan tags. | ||||||||||||||||||
object | |||||||||||||||||||
Сreated.
{- "charge": {
- "amount": 10,
- "currency": "USD",
- "period": {
- "type": "month",
- "value": 1
}, - "prices": [
- {
- "amount": 8,
- "currency": "EUR",
- "setup_fee": 1.5
}, - {
- "amount": 1000,
- "currency": "JPY",
- "setup_fee": 2.5
}
]
}, - "description": {
- "en": "2x more experience!"
}, - "expiration": {
- "type": "day",
- "value": null
}, - "external_id": "exp",
- "grace_period": {
- "type": "day",
- "value": 2
}, - "billing_retry": {
- "value": 1
}, - "refund_period": null,
- "name": {
- "en": "Experience boost"
}, - "status": {
- "value": "active"
}, - "trial": {
- "type": "day",
- "value": 7
}
}
{- "external_id": "exp",
- "plan_id": 241082
}