Webhooks are a way to customize your software with real time updates from Partial.ly. Partial.ly can send any URL you specify details when specific events occur, such as a payment plan being opened, payment succeeded, or a payment fails.
Webhooks will post a JSON formatted document to your URL. To verify that the webhook is coming from Partial.ly, and that the data has not been tampered with, Partial.ly will also add the Partially-Signature header to the webhook request. The value of this header will be the sha-256 HMAC of the posted body, using your your API key as the secret key. Your API key can be found in your Partial.ly merchant portal by going to Settings and then general.

Configuring webhooks

To add a webhook, log in to the Partial.ly merchant portal, click Settings, then webhooks.


You can also test your webhook by sending fake events using the webhook testing tool, by clicking the Test webhooks link on the webhook settings page. This will send a test webhook to the URL you provide, and display the request and response bodies.


Webhook format

All webhooks will have the following keys:

The type of event
The id of the event
Data specific to the event

The following events are currently supported:

Sent when a new payment plan is opened
Sent when a scheduled payment is successful
Sent when a scheduled payment fails
Sent when a payment plan is fully paid
Sent when a payment plan defaults due to 3 consecutive failed payments