Webhooks de suscripción
La carga útil enviada a tu endpoint de webhook cuando se crea, actualiza o cambia de estado una suscripción. Gestiona cada evento para mantener tus registros sincronizados.
Eventos de Webhook de Suscripción
Una suscripción emite un evento en cada etapa de su ciclo de vida:Usando subscription.updated para sincronización en tiempo real
El webhook subscription.updated se activa cada vez que cambia cualquier campo de la suscripción, lo que te permite mantener el estado de tu aplicación sincronizado sin tener que hacer polling:
Esquema de Carga Útil del 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.