HomeGuidesRecipesAPI ReferenceChangelog
API Reference
Guides
API Reference

2.18 Cancellation & Refunds: Collection Requests

Cancellation and refunds are available for collection requests in Nigeria through Peer to Peer bank transfers.

πŸ“˜

This is only available in Nigeria for collection requests

Refund flow

1 Endpoint to refund collection

a. endpoint /collections/{id}/refund - path param id is the id returned from submit collection request

POST {baseUrl}/collections/{id}/refund

b. with a status 200 if the collection is in the right state ( complete or cancelled status)
c. 200 response means refund is being processed.
d. expect a 400 validation error or 500 otherwise.

  1. Refund Statuses
StatusDescription
pending_refundRefund request is received and is currently being processed, waiting for feedback from payment provider.
refundedRefund is complete, fund has been received by the customer.
refund_failedWe’ve tried to refund the payment 5 times and it still failed, advisable to retry after a few hours.

🚧

Failed Refund

If we get a failed response from the refund request, we will retry for 5 attempts to get a refunded state. If however refund fails after then it is advisable to try again after a couple of hours. If you continuously receive a refund_failed state after your third attempt, we advise reaching out to our team. This will mostly occur if there are banking network issues in Nigeria on the customers side.

Cancelled Flow

1 Endpoint to cancel collection

a. endpoint /collections/{id}/cancel - path param id is the id returned from submit collection request

POST {baseUrl}/collections/{id}/cancel

b. with a status 200 if the collection is in the right status
c. 200 response indicates the collection request is cancelled
d. status updated to cancelled
e. if after the payment has been cancelled we eventually receive the deposit (assuming the customer has proceeded to make the deposit payment within the expiry time) we’ll then trigger the refund process.

2 Cancelled Statuses

StatusDescription
cancelledCollection request has been cancelled and would be refunded if we receive the collection.