Webhook
Update a webhook
Changed onUpdate a webhook to receive notifications for transaction events
put/webhook
Request
- Base URLhttps://staging.api.mavapay.co/api/v1
- Auth
- API key in header X-API-KEY
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"url": "https://webhook.site/12345678-1234-1234-1234-123456789012",
"secret": "secret"
}Response
Webhook response
Example response
{
"status": "ok",
"data": {
"url": "https://webhook.site/12345678-1234-1234-1234-123456789012",
"secret": "secret",
"event": {
"event": "ping",
"data": {
"message": "This is a test webhook event",
"timestamp": "2021-07-01T12:00:00Z"
}
}
}
}Changes
- info
endpoint added
- info