...
Code Block |
---|
|
{
"status": "PendingFulfilment",
"message": "Request processed successfully",
"data": {
"provider_response_code": "00",
"provider": "CheddaAccountOnePipe",
"errors": null,
"error": null,
"provider_response": {
"account_number": "9012807653",
"mandate_id": "3949004",
"mandate_desc": "A bottle of beer",
"mandate_type": "STATIC|FIXED|FORCED",
"account_reference": "2349066870818",
"account_name": "Akin Olunloye",
"currency_code": "NGN",
"customer_email": "uju@gmail.com",
"bank_name": "Polaris Bank Limited",
"bank_code": "076",
"status": "PendingFulfilment",
"created_on": "2021-11-01-19-11-55",
}
}
} |
Get Mandates
This service accepts the customer_ref
and returns all the mandates on the account.
Request:
Code Block |
---|
|
{
"request_ref": "{{request-ref}}",
"request_type": "get_mandates",
"auth": {
"type": null,
"secure": null,
"auth_provider": "OnePipe",
"route_mode": null
},
"transaction": {
"mock_mode": "Live",
"transaction_ref": "{{transaction-ref}}",
"transaction_desc": "A random transaction",
"transaction_ref_parent": null,
"amount": 0,
"customer": {
"customer_ref": "{{phone_number}}",
"firstname": "Akin",
"surname": "Olunloye",
"email": "akin@gmail.com",
"mobile_no": "2349066870818"
},
"meta": {
},
"details": {
}
}
} |
Response:
Code Block |
---|
|
{
"status": "Successful",
"message": "Request processed successfully",
"data": {
"provider_response_code": "00",
"provider": "OnePipe",
"errors": null,
"error": null,
"provider_response": [
{
"account_number": "9012807653",
"mandate_id": "3949004",
"mandate_desc": "A bottle of beer",
"mandate_type": "STATIC|FIXED|FORCED",
"account_reference": "2349066870818",
"status": "PendingFulfilment",
"created_on": "2021-11-01-19-11-55",
},
{
"account_number": "9012807653",
"mandate_id": "3949009944",
"mandate_desc": "A shot of vodka",
"mandate_type": "STATIC|FIXED|FORCED",
"account_reference": "2349066870818",
"status": "Fulfiled",
"created_on": "2021-11-01-19-11-55",
}
]
}
} |