在订阅中的某些参数(plan_id
、date_next_charge
)发生变化以及每次续订订阅时,我们都会向您的 webhook URL 发送通知update_subscription
。
notification_type required | string 通知类型。 | ||||||||||
object 带有自定义项目设置的对象。 | |||||||||||
object 订阅详情(对象)。 | |||||||||||
| |||||||||||
object 用户详情(对象)。 | |||||||||||
返回以指示处理成功。
提供的信息出错时返回(例如,缺少必需的参数、授权失败等)。
返回以指示您的服务器存在的暂时性错误。
{- "notification_type": "string",
- "settings": {
- "merchant_id": 0,
- "project_id": 0
}, - "subscription": {
- "date_next_charge": "string",
- "plan_id": "string",
- "product_id": "string",
- "subscription_id": 0,
- "tags": [
- "string"
]
}, - "user": {
- "id": "string",
- "name": "string"
}
}
{- "error": {
- "code": "INCORRECT_AMOUNT",
- "message": "Incorrect amount"
}
}