Payload được gửi đến endpoint webhook của bạn khi một đăng ký được tạo, cập nhật hoặc thay đổi trạng thái.
| Sự kiện | Mô tả |
|---|---|
subscription.active | Đăng ký đã được kích hoạt thành công |
subscription.updated | Đối tượng đăng ký đã được cập nhật (bất kỳ thay đổi nào về trường đều kích hoạt sự kiện này) |
subscription.on_hold | Đăng ký bị tạm hoãn do gia hạn không thành công |
subscription.renewed | Đăng ký được gia hạn cho kỳ thanh toán tiếp theo |
subscription.plan_changed | Kế hoạch đăng ký đã được nâng cấp, hạ cấp hoặc sửa đổi |
subscription.cancelled | Đăng ký đã bị hủy |
subscription.failed | Việc tạo đăng ký đã thất bại trong quá trình tạo ủy quyền |
subscription.expired | Đăng ký đã đạt đến cuối kỳ hạn |
subscription.updated cho Đồng Bộ Thời Gian Thựcsubscription.updated sẽ được kích hoạt bất cứ khi nào có bất kỳ trường đăng ký nào thay đổi, cho phép bạn giữ trạng thái ứng dụng của mình đồng bộ mà không cần polling:
Response struct representing subscription details
Addons associated with this subscription
Billing address details for payments
Indicates if the subscription will cancel at the next billing date
Timestamp when the subscription was created
Currency used for the subscription payments
AED, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SZL, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Customer details associated with the subscription
Additional custom data associated with the subscription
Meters associated with this subscription (for usage-based billing)
Timestamp of the next scheduled billing. Indicates the end of current billing period
Wether the subscription is on-demand or not
Number of payment frequency intervals
Time interval for payment frequency (e.g. month, year)
Day, Week, Month, Year Timestamp of the last payment. Indicates the start of current billing period
Identifier of the product associated with this subscription
Number of units/items included in the subscription
Amount charged before tax for each recurring payment in smallest currency unit (e.g. cents)
Current status of the subscription
pending, active, on_hold, cancelled, failed, expired Unique identifier for the subscription
Number of subscription period intervals
Time interval for the subscription period (e.g. month, year)
Day, Week, Month, Year Indicates if the recurring_pre_tax_amount is tax inclusive
Number of days in the trial period (0 if no trial)
Cancelled timestamp if the subscription is cancelled
Number of remaining discount cycles if discount is applied
The discount id if discount is applied
Timestamp when the subscription will expire
Saved payment method id used for recurring charges
Tax identifier provided for this subscription (if applicable)