Skip to content

Subscription events
Webhook

Request

Sent for a subscription created from an order through this API, when it is created, each time it renews, and each time its status changes.

  • subscription.created: the first payment succeeded and the subscription was set up. This is the event for that first payment; payload.transaction is the payment.
  • subscription.renewed: a renewal charge succeeded. payload.transaction is the payment, payload.invoice is the invoice it paid, and payload.subscription.next_billing_date is the next charge. A renewal that fails sends subscription.past_due instead.
  • subscription.paused: billing was paused. Also sent by PUT /subscriptions/pause, which skips the next charge.
  • subscription.resumed: billing was resumed.
  • subscription.cancelled: the subscription was cancelled.
  • subscription.past_due: a charge failed and the subscription is past due.

Every subscription event carries the subscription's current state in payload.subscription and a payload.message: SUBSCRIPTION_CREATED, SUBSCRIPTION_RENEWED or SUBSCRIPTION_STATUS_CHANGED, and a payment on the subscription in payload.transaction. subscription.renewed also carries payload.invoice, since a renewal is billed as an invoice.

Skipping a charge with PUT /subscriptions/pause sends subscription.paused but does not change the subscription's status; payload.subscription.pause_next_period is true instead.

Headers
X-Dime-Signaturestringrequired

v1= followed by the hex HMAC-SHA256 of the raw body, keyed with the endpoint's signing_secret.

Example:v1=5f2b8c0e9a7d4c1b3e6f8a2d4c6e8b0a1c3e5f7a9b2d4f6a8c0e2b4d6f8a0c2e
X-Dime-Signature-Versionstringrequired

Signing scheme. Always v1.

Example:v1
Value:"v1"
X-Dime-Event-Idstringrequired

The body's event_id.

Example:evt_V1StGXR8Z5jdHi6BmyT2
X-Dime-Event-Typestringrequired

The body's event_type.

Example:payment.succeeded
X-Dime-Attemptstringrequired

The attempt number, 1 for the first and up to 9 with retries.

Example:1
Bodyapplication/jsonrequired
event_idstringrequired

Unique per event, and the same on every redelivery and replay of it. Use it to discard duplicates.

Example:"evt_V1StGXR8Z5jdHi6BmyT2"
event_typestringrequired

What happened. Branch on this, and ignore values you do not recognise: new events may be added.

Enum:"subscription.created""subscription.renewed""subscription.paused""subscription.resumed""subscription.cancelled""subscription.past_due"
Example:"subscription.paused"
occurred_atstring, (date-time)required

When Dime sent the event. Events can arrive out of order; use this to order them.

Example:"2026-10-27T15:04:07.112Z"
owner_typestringrequired
Example:"merchant"
Value:"merchant"
owner_idstring or nullrequired

Your merchant token.

Example:"m82yalYupLIdpAz"
addon_subscription_idnull

Always null.

Example:null
resource_typestringrequired
Enum:"payment""refund""chargeback""customer""card_request""subscription""invoice""order""bank_transfer""bank_account"
Example:"subscription"
Value:"subscription"
resource_idstring or nullrequired

The token of the record the event is about: a transaction's for payment and refund, otherwise the token of the kind named by resource_type.

Example:"txn_20261027_PBFpP02"
payloadobjectrequired
signature_versionstringrequired
Example:"v1"
Value:"v1"
POST
subscriptionEvent
Payload
{ "event_id": "evt_Lm4pQ8rT2vX6zB1nC9kW", "event_type": "subscription.paused", "occurred_at": "2026-10-27T18:12:40.330Z", "owner_type": "merchant", "owner_id": "m82yalYupLIdpAz", "addon_subscription_id": null, "resource_type": "subscription", "resource_id": "sub_pESz9qv3_M4rhjWUy_KMaAVBqb_XyCKvmZ", "payload": { "message": "SUBSCRIPTION_STATUS_CHANGED", "subscription": { … }, "transaction": { … } }, "signature_version": "v1" }

Responses

Return any 2xx within 7 seconds to acknowledge. Otherwise Dime retries automatically for about 3 days; see Webhooks guide. Replay a delivery sooner, or after it has FAILED, with POST /webhook-events/{token}/replay.