Skip to main content

Customer Exit Arrears

Webhook 

Type: customer.exit_arrears_block.v1

This webhook occurs when a customer has been in arrears and then exits arrears by paying their overdue invoices, meaning they are now unblocked from using two. Merchants will receive the webhook only once

Payload​

The data object in the payload contains the buyer company name and organization number of the buyer who has exited arrears.

Example​

{
"specversion": "1.0",
"id": "01FBJ0PYJ7931K0CJ6GMP8N3WG",
"type": "customer.exit_arrears_block.v1",
"time": "2023-06-21T12:34:56.123456Z",
"source": "https://api.two.inc",
"subject": "exit_arrears_block",
"twomerchantid": "b6b9d5d1-f6b7-4e15-9703-9c32c6e5c1c2",
"message": (
"TWO B2B AS (1307839) have exited arrears and are now able to purchase with Two B2B again"
),
"data": {
"buyer_company_name": "TWO B2B AS",
"buyer_organization_number": "13078389",
}
}

Triggering in sandbox​

There is no active trigger to send this webhook as it runs as a cronjob on a daily schedule if the exit arrears conditions are met for any customer from this merchant. The SVIX portal however allows for test events to be sent to a given endpoint

Request​

Responses​

Successful Response