Updates subscription plan parameters.
object Plan name. Value consists of pairs "localization":"plan name". | |||||||||||||||||||
object Billing details. | |||||||||||||||||||
| |||||||||||||||||||
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. If this parameter is not passed, the default values (0 days) are used. | |||||||||||||||||||
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 | |||||||||||||||||||
OK.
{- "charge": {
- "amount": 20,
- "currency": "USD",
- "period": {
- "type": "month",
- "value": 1
}, - "prices": [
- {
- "amount": 17,
- "currency": "EUR",
- "setup_fee": 1.5
}, - {
- "amount": 2000,
- "currency": "JPY",
- "setup_fee": 2.5
}
]
}, - "description": {
- "en": "3x 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"
}, - "tags": null,
- "trial": {
- "type": "day",
- "value": 7
}
}
{- "charge": {
- "amount": 20,
- "currency": "USD",
- "period": {
- "type": "month",
- "value": 1
}, - "prices": [
- {
- "amount": 17,
- "currency": "EUR",
- "setup_fee": 1.5
}, - {
- "amount": 2000,
- "currency": "JPY",
- "setup_fee": 2.5
}
]
}, - "description": {
- "en": "3x more experience!"
}, - "expiration": {
- "type": "day",
- "value": 0
}, - "external_id": "exp",
- "grace_period": {
- "type": "day",
- "value": 2
}, - "billing_retry": {
- "value": 1
}, - "refund_period": null,
- "group_id": null,
- "id": 241082,
- "localized_name": "Experience boost",
- "name": {
- "en": "Experience boost"
}, - "project_id": 40797,
- "status": {
- "value": "active"
}, - "tags": [ ],
- "trial": {
- "type": "day",
- "value": 7
}, - "type": "all"
}