Skip to main content

Ant Peer Response Table

Overview

All response maintains a standard set of http response codes as well as an operation status within the response body (in status parameter), major operation status are defined below.

STATUS CODEDESCRIPTION
00"Successfully cancelled mandate"
06"Loan tenure does not match payment schedule"
07"BVN cannot be null or empty!!"
08"Linked account cannot be null or empty!!"
09"Phone number cannot be null or empty!!"
79"Loan Reference cannot be null or empty!!"
79"LoanReference not found"
80"Loan Mandate is not active"
90"Payment Reference was not found"
200Requests have been received and processed. Response will contain expected parameters in body
201 Records have been created successfully.
401 Authorization failed. Endpoint requires authorization. General oauth2 errors are to be expected E.g. “unauthorized” or “invalid token

Sample Response body

"error": "unauthorized", "error_description": "Full authentication is required to access this resource"

Response headers

ache-control: no-store content-encoding: gzip contenttype: application/json;charset=UTF-8 date: Mon, 24 Feb 2020 19:06:45 GMT pragma: no-cache transfer-encoding: chunked vary: accept-encoding www-authenticate: Bearer realm="merchant-service", error="unauthorized", error_description="Full authentication is required to access this resource" x-content-type-options: nosniff x-xssprotection: 1; mode=block

403 Access to endpoint is either restricted or some other limitation is in place
404Non-existent data was requested.