Webhooks för prenumerationer
Nyttolasten som skickas till din webhook-slutpunkt när en prenumeration skapas, uppdateras eller ändrar status. Hantera varje händelse för att hålla dina poster synkroniserade.
Prenumerations Webhook Händelser
En prenumeration genererar en händelse i varje steg av sin livscykel:Använda subscription.updated för synkronisering i realtid
Webhooken subscription.updated utlöses när som helst ett prenumerationsfält ändras, vilket gör att du kan hålla din applikationsstatus synkroniserad utan att behöva fråga API:et upprepade gånger:
Webhook Payload Schema
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.