Actions
Actions are the primary mechanism through which Payment Methods are managed, and implementing actions correctly is the most important part of integrating with this API.
Receiving Action Notifications
There are two ways that Payment Processors can learn about actions that need to be performed:
- The
action_required
webhook - The
actionRequired
property in the Get All Accounts response
Our recommended implementation is to accept webhooks but to also poll the Get All Accounts endpoint regularly (at least once per day) to ensure that actions aren't missed.
Handling Actions
Upon receiving an action request, processors must take whatever steps are required to handle that action.
Webhooks
sequenceDiagram autonumber participant l as Liberis participant p as Payment Processor l --) p : Webhook sent p ->> l: Get Account by Id p --) p : Handle the action p --) l : Report the result
Get All Accounts
sequenceDiagram autonumber participant l as Liberis participant p as Payment Processor p ->> l : Get All Accounts loop if actionRequired p ->> l: Get Account by Id activate p p --) p : Handle the action p --)l : Report the result deactivate p end
Possible Actions
Name | Reason | Is Successful When |
---|---|---|
| Check that the payment processor is able to apply the split. | The merchant id matches both the details in the There are no issues with the merchant's account that might prevent the application of the requested split. |
| Informs the payment processor to commence application of the split. | Successfully enabled the given split % for this merchant. |
| This Payment Account is expected to have a 0 balance for an extended period, but Liberis still has an active contract with the merchant. | Acknowledges the receipt of this action. Payment Processors may stop calling the |
| A paused Payment Account should be resumed. | Acknowledges the receipt of this action. If they previously stopped, Payment Processors must now resume calling the |
| The split is no longer needed. | Successfully removed the split for this merchant. Note: this action must be sent if the Payment Processor removes the split for any reason, even if it was not triggered by Liberis. |
| The split percentage has changed. | Successfully enabled the new split % for this merchant. |
| The split is active (or paused) and the merchant has received a new advance. | Acknowledges the change after updating the split % and remaining balance as required. Note that new documents may also be available for download. If the split was previously paused, Payment Processors must now resume calling the |
Recording the Result
Submit the result of an action performed by the Payment Processor using the Post Action Result endpoint.
Actions should only be performed when theactionRequired
property contains a value, except for theFINISH
action, which can be sent at any time to inform Liberis that the split is no longer in place.
Error Reasons
Error | Meaning |
---|---|
| The |
| This merchant's revenue cannot be redirected to a settlement account at this time. |
| A split cannot be applied to this merchant's account at this time. |
| Liberis has requested that the Payment Processor uses a payment method ( |
| The Payment Processor is currently withholding all funds from the merchant and therefore cannot action this request. |
| The merchant is not transacting and therefore the Payment Processor cannot action this request. |
| The action could not be performed for an unspecified reason. Note that this should not be used for transient faults that could be fixed through routine retries by the Payment Processor. |
Updated 4 days ago