Payments
Recharge Webhooks
Subscription billing for Shopify and other e-commerce stores. Receive subscription, charge, order, customer and address events.
Connecting Recharge to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Recharge. Then:
- 1Create the webhook through the Recharge API (POST /webhooks) with your Hookbase ingest URL as the address and the topic you want
- 2Copy the API Client Secret of the token you used into this Hookbase source
- 3Hookbase verifies X-Recharge-Webhook-Signature (48 hour window, matching Recharge's retries). The body doesn't name its topic, so the event type is the resource (subscription, charge, ...); use one source per topic when routes need the exact topic
- 4Recharge waits 5 seconds and deletes a webhook that still fails after 48 hours of retries
Signature verification
Set the source's provider to recharge and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256 of "{t}.{body}", hex-encoded, sent as "t=<unix seconds>,v1=<hex>"
- Header
- X-Recharge-Webhook-Signature
- Where to find the secret
- The API Client Secret of the API token that created the webhook (Tools and apps → API tokens → your token). It is not the API token itself. Recharge documents signing for webhooks created through the API.
Recharge event types
5 of the events people route most often. Hookbase accepts every event Recharge sends, whether or not it is listed here.
subscription
Topics subscription/created, updated, activated, cancelled, deleted, skipped, ...
charge
Topics charge/created, paid, failed, refunded, upcoming, ...
order
Topics order/created, processed, cancelled, deleted, ...
customer
Topics customer/created, updated, activated, deactivated, ...
address
Topics address/created, address/updated
What a Recharge webhook looks like
A address payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"address": {
"id": 19248493,
"address1": "1933 Manning",
"city": "los angeles",
"country_code": "US",
"customer_id": 17191222,
"created_at": "2018-10-17T09:01:39",
"zip": "90025"
}
}Start receiving Recharge webhooks
Create a source, paste the URL into Recharge, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free