ステータスを変更(active
、canceled
、またはnon_renewing
)したり、次の請求日を延期することによって、サブスクリプションを更新します。
cancel_subscription_payment | boolean
| ||
status | string ステータス。 | ||
object 請求の延期。 | |||
user_id | string ユーザーID。 | ||
object | |||
|
OK。
{- "status": "active"
}
{- "charge_amount": 0.03,
- "currency": "USD",
- "date_create": "2018-09-21T16:54:59+0300",
- "date_end": null,
- "date_last_charge": "2018-09-21T16:55:05+0300",
- "date_next_charge": "2018-09-21T16:55:05+0300",
- "id": 24953579,
- "plan": {
- "billing_retry": {
- "value": 1
}, - "charge": {
- "amount": 0.03,
- "currency": "USD",
- "period": {
- "type": "day",
- "value": 1
}
}, - "description": null,
- "expiration": {
- "type": "day",
- "value": 0
}, - "external_id": "lowcost",
- "grace_period": {
- "type": "day",
- "value": 2
}, - "group_id": "newPlans",
- "id": 66001,
- "localized_name": null,
- "name": null,
- "project_id": 18404,
- "refund_period": null,
- "status": {
- "value": "active"
}, - "tags": null,
- "trial": {
- "type": "day",
- "value": 0
}, - "type": "all"
}, - "product": null,
- "status": "active",
- "user": {
- "id": "jb1",
- "name": "J.Black"
}
}