Menu

Webhooks

Notifications the platform receives from the payment processor.

OperationMethod and path
Revolut's event webhookPOST /webhooks/revolut
Stripe's event webhookPOST /webhooks/stripe

Revolut's event webhook#

POST /webhooks/revolut · operation revolutWebhook

Called by the payment provider, not by customers: the request is authenticated by the provider's signature headers. Plain-text answers. This call is not charged.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
Revolut-Request-Timestampheaderstringyesunix milliseconds
Revolut-Signatureheaderstringyesv1=<hex>

Request body (RawEvent): object

Answer 200 (WebhookAck): the result — string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400—no body or a malformed payload
401—the signature does not verify
500—processing failed (the provider retries)
503—payments through this provider are not available

Example

curl -X POST 'https://api.weird.ro/webhooks/revolut' \
  -H "Revolut-Request-Timestamp: <Revolut-Request-Timestamp>" \
  -H "Revolut-Signature: <Revolut-Signature>"

Stripe's event webhook#

POST /webhooks/stripe · operation stripeWebhook

Called by the payment provider, not by customers: the request is authenticated by the provider's signature header. Plain-text answers. This call is not charged.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
Stripe-Signatureheaderstringyest=<unix seconds>,v1=<hex>

Request body (RawEvent): object

Answer 200 (WebhookAck): the result — string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400—no body or a malformed payload
401—the signature does not verify
500—processing failed (the provider retries)
503—payments through this provider are not available

Example

curl -X POST 'https://api.weird.ro/webhooks/stripe' \
  -H "Stripe-Signature: <Stripe-Signature>"

This page is generated from the API's public document; it changes when the document does.