Menu
Webhooks
Notifications the platform receives from the payment processor.
| Operation | Method and path |
|---|---|
| Revolut's event webhook | POST /webhooks/revolut |
| Stripe's event webhook | POST /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.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Revolut-Request-Timestamp | header | string | yes | unix milliseconds |
Revolut-Signature | header | string | yes | v1=<hex> |
Request body (RawEvent): object
Answer 200 (WebhookAck): the result — string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 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.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Stripe-Signature | header | string | yes | t=<unix seconds>,v1=<hex> |
Request body (RawEvent): object
Answer 200 (WebhookAck): the result — string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 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.