List Webhook
Allows the partner to list registered webhooks addresses.
The call must be made using the GET method.
URL
{BaseUrl}/api/v1/webhooks
HTTP Request Body
{
"url": "https://test2.com",
"authorization": "authorization_value"
}
Description of Attributes
ATTRIBUTE | DESCRIPTION | TYPE |
---|---|---|
url (Required) | Destination address of the webhook message | STRING 255 character limit, starting with https:// |
authorization (Optional) | Value that will be sent in the Authorization header to prove that it is Pay2m that is sending the message | STRING 100 character limit |
In case of errors, a json will be returned with the error attribute specifying the reason why the operation was invalidated.
HTTP 404 Response Body - Example
{
"error": "Configuration not found"
}