サブスクリプションの一部のパラメーター(plan_id
またはdate_next_charge
)が変更された場合、およびサブスクリプションが更新されるたびに、ウェブフック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"
}
}