Skip to main content

Create a new webhook

POST 

/api/v1/stores/:storeId/webhooks

Registers a webhook URL that Coinsnap will call whenever a selected invoice event occurs.

Available events

EventTriggered when
NewInvoice created
ProcessingPayment received, awaiting confirmation
SettledPayment confirmed, payout sent
ExpiredInvoice expired before payment

Coinsnap signs each delivery with an HMAC-SHA256 signature using the secret you provide. Verify the X-Coinsnap-Sig header in your endpoint to confirm authenticity.

Tip: Omit events to subscribe to all four event types.

Request

Responses

Successfully created the webhook