There are two requirements for receiving instant payments. All users of instant payments must implement the first requirement. However, we recommend implementing both because receiving return requests, particularly in cases of fraud, promote network health and safety.
Receiving Payments: Handle the receipt of incoming instant payments.
Receiving Return Requests: Handle the receipt of incoming return requests related to instant payments previously received.
For incoming instant payments, the only event you must handle is posted. Upon this event, you are required to notify your customers that the transferred funds are now available. You have the option to also act on the under_review and rejected events if you choose.
Event
Description
Your Action
.under_review
Lead is manually reviewing the incoming instant payment.
(Optional) Inform your customer that incoming funds are pending.
.posted
Lead posted the incoming instant payment to your account.
(Mandatory) Inform your customer of available funds.
.rejected
Lead rejected the incoming instant payment.
(Optional) Look at the rejection hash to investigate why rejection occurred.
Incoming instant payments require no further action on your part. However, if the original incoming payment was defective (e.g., fraud, duplicate, or technical error), a return may be requested.
The counterparty financial institution will send a return_request if they want a payment they previously sent to be returned. The return_request is structured as a sub-object of the original instant_payment.
A single instant_payment may eventually have multiple return_request sub-objects. However, only one incoming return_request will require a response at any given time.
The lifecycle of a return_request sub-object begins after the original instant_payment reaches posted status. The only incoming return_request status that triggers an event is response_needed.
Return Request Status
Description
Webhook
response_needed
You received an incoming return request that requires a response from you.
Yes
accepted
You accepted the incoming return request by initiating an outgoing return.
No
rejected
You rejected the incoming return request and provided a reason why.
The return_request_response_needed event indicates that a new return request has been received which requires your response and a potential return of funds as soon as possible. Listening to this event and taking action is required.
Event
Description
Your Action
return_request_response_needed
You received an incoming return request that requires a response from you.
(Mandatory) Begin your review process and respond as soon as possible, or, at the latest, by the 10th business day.
The rejection endpoint is below. Accepting a return request is combined with the return endpoint itself which is covered in the returns and rejections section.
For incoming return requests, you are required to investigate and respond by accepting or rejecting the request as soon as possible or, at the latest, by the 10th business day. If this deadline is not met, Lead will automatically reject the return request on your behalf to maintain our compliance with network requirements.
Endpoint
Description
POST /instant_payments/{id}/reject_return_request
Reject the active return request associated with an instant payment.