Skip to main content

Generate Payment Code

URL: https://api-sandbox.accessbankplc.com/breezepay/GeneratePaymentCode

Description : This API is used to generate the payment code that is required to carry out BreezePay transactions.

Method: POST

Media Type: application/json

Request Parameter Definition

S/NTypeParameter NameParameter RequiredDescription
1stringaccount_numberRequiredCustomer’s account number
2stringamountRequiredTransaction amount.
3stringchannel_codeRequiredClient application code.
4stringphone_numberRequiredCustomer’s phone number.
5stringtransaction_referenceRequiredClient transaction reference generated for the generate code request. e.g BZ56787895717798678
6stringtransaction_typeRequiredType of transaction e.g POS, WEB etc
7stringdebit_statusStatus of funds held on customer account
8stringhash_valueSha256 of selected transaction data

Expected Response

S/NTypeParameter NameDescription
1stringresponse_codeResponse code to indicate success or failure.
2stringresponse_messageResponse description to provide more details, e.g., error description.
3stringpayment_codeCode generated by the request
4stringexpiry_datetimeDate and time that generated payment code will expire.

Sample Payload

Request:

{
"account_number": "0729399845",
"amount": 10,
"channel_code": "YOUR CHANNELCODE",
"phone_no": "08143567932",
"transaction_ref": "TEST123OPI1249l9Gae",
"transaction_type": "POS",
"debit_status":"00",
"hash_value": " c22cf7c1b0070e5903fa9fb6e49ea1e1",
"inst_code": ""
}

Response:

{
"response_code": "00",
"response_message": "Successful Request",
"response_data": {
"payment_code": "3632033",
"expiry_datetime": "12/10/2024 16:28:52"
}
}