Skip to main content

Welcome to our Dev Docs!

Payment Bearer Expiring

This webhook notifies you about a payment bearer that is due to expire soon (typically a credit card). You probably want to inform your customer and ask them to provide new payment information. This hook will be triggered even for contracts that have ended, but you can filter such contracts in your webhook handler.

Typical Scenario

The credit card expires in one month and you want to show the customer a notification, that the current payment method will be invalid shortly.

HTTP/1.1
POST /billwerk-hook
Host: example.com
Content-Type: application/json

{
    "Event" : "PaymentBearerExpiring",
    "ContractId" : "51d970c8eb596a1168df119a",
    "ExpiryDate" : "2013-12-22T11:11:11Z"
}