Skip to main content

Webhooks for authorizations

These webhooks are related to the authorization flow

Events​

walley:authorization:created​

This webhook is triggered whenever an authorization is created using the authorization endpoint.

{
"Type": "walley:authorization:created",
"Timestamp": "2024-01-30T10:02:31.2700113+00:00",
"Payload": {
"CustomerToken": "0a96881b-295a-4154-a867-865fc912619c",
"AuthorizationId": "c31e9218-6a19-4b2f-8992-affc9dca1c41",
"Reference": "01478520",
"ActionReference": "Action 1234",
"CreatedOn": "2024-01-30T10:02:31.2700113+00:00"
}
}

walley:authorization:authorized​

This webhook is triggered whenever an authorization is successful, and will be closely followed by a walley:order:created webhook.

{
"Type": "walley:authorization:authorized",
"Timestamp": "2024-01-30T10:02:31.2700113+00:00",
"Payload": {
"CustomerToken": "0a96881b-295a-4154-a867-865fc912619c",
"AuthorizationId": "c31e9218-6a19-4b2f-8992-affc9dca1c41",
"Reference": "01478520",
"ActionReference": "Action 1234",
"CreatedOn": "2024-01-30T10:02:31.2700113+00:00"
}
}

walley:authorization:retrying​

This webhook is triggered whenever an authorization was unseccessful, but there will be additional attempts according to the AttemptSchedule provided when creating the authorization.

{
"Type": "walley:authorization:retrying",
"Timestamp": "2024-01-30T10:02:31.2700113+00:00",
"Payload": {
"CustomerToken": "0a96881b-295a-4154-a867-865fc912619c",
"AuthorizationId": "c31e9218-6a19-4b2f-8992-affc9dca1c41",
"Reference": "01478520",
"ActionReference": "Action 1234",
"CreatedOn": "2024-01-30T10:02:31.2700113+00:00",
"CurrentAttempt" : 1,
"MaxAttempt" : 5,
"Reason" : "SERVICE_UNAVAILABLE"
}
}

walley:authorization:failed​

This webhook is triggered whenever an authorization was unsuccessful, and no further attempt will be performed. Either because this was the last attempt in the AttemptSchedule, or because we deemed the failure unsolvable.

{
"Type": "walley:authorization:failed",
"Timestamp": "2024-01-30T10:02:31.2700113+00:00",
"Payload": {
"CustomerToken": "0a96881b-295a-4154-a867-865fc912619c",
"AuthorizationId": "c31e9218-6a19-4b2f-8992-affc9dca1c41",
"Reference": "01478520",
"ActionReference": "Action 1234",
"CreatedOn": "2024-01-30T10:02:31.2700113+00:00",
"CurrentAttempt" : 1,
"MaxAttempt" : 5,
"Reason" : "PAYMENT_METHOD_EXPIRED"
}
}