Events: deal_started
Triggered when a deal is funded by Liberis, marking it as active.
{
"id": "6e17e99c-d2fc-48d6-b60a-d543c5c8aa52",
"api_version": "1.0",
"event": "deal_started",
"created_date": "2023-02-06T13:40:00Z",
"data": {
"deal_id": "5001a000002bsyxcch",
"type": "Renewal",
"balance": "15000.00",
"currency": "GBP",
"start_date": "2023-02-06T13:40:00Z",
"pricing": {
"repayment_amount": "15000.00",
"funded_amount": "10000.00",
"split_percent": "20",
"factor_rate": "1.5",
"estimated_length_months": "9"
},
"references": {
"application": "5001a000002axxeef",
"merchant": "6f07701-96d0-4d1a-b82c-ad6c069014fe",
"external_merchant": "M_12432_4345"
},
"actions": {
"notify": "<url>"
}
}
}
| Field | Datatype | Description |
|---|---|---|
| deal_id | string | The ID of the Deal in Liberis' system. |
| type | string | The type of deal that has started. |
| balance | string | The remaining balance on the deal. |
| currency | string | The three-letter ISO currency code. |
| start_date | string | An ISO date string indicating when the deal was activated. |
| pricing | object | The agreed pricing for the deal. |
| repayment_amount | string | |
| funded_amount | string | |
| split_percent | string | |
| factor_rate | string | |
| estimated_length_months | string | |
| references | object | A list of ids for related objects |
| application | string | The ID of the Application in Liberis' system. |
| merchant | guid | The ID of the Merchant in Liberis' system (also known as the LiberisId). |
| external_merchant | string | The ID of the Merchant in the Partner's system (as supplied to Liberis by the Partner). |
| actions | object | (Some payment types only): A list of actions that can be performed in response to receiving this webhook. |
| notify | string | "The URL to call to inform Liberis of the result of your attempt to process this webhook. See Replying to Webhook Actions for more details." |
Events: deal_complete
Triggered when an active deal is concluded normally, indicating its inactive status.
{
"id": "6e17e99c-d2fc-48d6-b60a-d543c5c8aa52",
"api_version": "1.0",
"event": "deal_complete",
"created_date": "2023-02-06T13:40:00Z",
"data": {
"deal_id": "5001a000002bsyxcch",
"end_date": "2023-02-06T13:40:00Z",
"references": {
"application": "5001a000002axxeef",
"merchant": "6f07701-96d0-4d1a-b82c-ad6c069014fe",
"external_merchant": "M_12432_4345"
},
"actions": {
"notify": "<url>"
}
}
}| Field | Datatype | Description |
|---|---|---|
| deal_id | string | The ID of the Deal in Liberis' system. |
| end_date | string | An ISO date string indicating when the deal completed |
| references | object | A list of IDs related to the merchant |
| application | string | The ID of the application in Liberis' system |
| merchant | guid | The ID of the merchant in Liberis' system (also known as the LiberisId) |
| external_merchant | string | The ID of the Merchant in the Partner's system (as supplied to Liberis by the Partner). |
| actions | object | A list of actions that can be performed in response to receiving this webhook. |
| notify | string | "The URL to call to inform Liberis of the result of your attempt to process this webhook. See Replying to Webhook Actions for more details." |
Events: deal_renewed
This webhook is used to inform partners that a merchant's deal is complete because it was renewed by a new deal. The shape of the data is the same as the deal_complete webhook above. If a deal is renewed you should expect a deal_renewed webhook for the original deal and a deal_started webhook for the new deal to arrive in quick succession.
{
"id": "6e17e99c-d2fc-48d6-b60a-d543c5c8aa52",
"api_version": "1.0",
"event": "deal_renewed",
"created_date": "2023-02-06T13:40:00Z",
"data": {
"deal_id": "5001a000002bsyxcch",
"end_date": "2023-02-06T13:40:00Z",
"references": {
"application": "5001a000002axxeef",
"merchant": "6f07701-96d0-4d1a-b82c-ad6c069014fe",
"external_merchant": "M_12432_4345"
}
}
}| Field | Datatype | Description |
|---|---|---|
| deal_id | string | The ID of the Deal in Liberis’ system. |
| end_date | string | An ISO date string indicating when the deal completed |
| references | object | A list of IDs related to the merchant |
| application | string | The ID of the application in Liberis' system |
| merchant | guid | The ID of the merchant in Liberis' system (also known as the LiberisId) |
| external_merchant | string | The ID of the Merchant in the Partner's system (as supplied to Liberis by the Partner). |