Webhook Langganan
Payload yang dikirim ke endpoint webhook Anda saat langganan dibuat, diperbarui, atau berubah status. Tangani setiap event agar catatan Anda tetap sinkron.
Peristiwa Webhook Langganan
Langganan memancarkan event pada setiap tahap siklus hidupnya:Menggunakan subscription.updated untuk Sinkronisasi Waktu Nyata
Webhook subscription.updated dipicu setiap kali bidang langganan berubah, memungkinkan Anda menjaga status aplikasi tetap sinkron tanpa harus melakukan polling:
Skema Payload Webhook
Subscription payload sent on a webhook. It carries every field of
SubscriptionResponse, plus the grace-period deadline.
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 Time when the grace period ends. The subscription moves to on_hold or
to cancelled at this time.
Read in the same query as the rest of the payload, so it always comes
from the row snapshot that produced status. It is set whenever the
subscription sits in a window at that moment. A delayed event of another
type therefore carries the deadline too, next to a past_due status.