Receive outbound subscription webhook

Sent to the same endpoint, signed and retried exactly like the payment webhook.

Event types:

EventWhen sent
subscription.createdThe subscription was created after its first payment was confirmed.
subscription.renewedA renewal was paid; a payment.succeeded for the renewal's payment is sent too.
subscription.payment_failedA renewal failed or needs the shopper to authenticate; the subscription is past_due.
subscription.canceledThe subscription ended.
subscription.upgradedAn upgrade was applied; amount is the new amount. When the upgrade was charged, a payment.succeeded for its payment is sent too.

data.payment_id is present on subscription.created, subscription.renewed and subscription.upgraded (when the upgrade was charged) only.

Payload
data
object
required
string
required

Unique per event; the same value as X-RezolvePay-Event-Id.

string
enum
required
Allowed:
string
required

ISO-8601 UTC; the same value as X-RezolvePay-Timestamp.

Headers
string
required

Hex HMAC-SHA256 of timestamp + "." + raw_body, keyed with your webhook secret.

string
required

ISO-8601 UTC; the timestamp the signature covers.

string
required

Unique per event. Use it to process each event once.

Responses

LoadingLoading…