Initiate a payment
STATUSES
PENDING = "PENDING" - A transaction record has been created but user hasn't started anything
NO_CONSENT = "NO_CONSENT", - User interacted with the payment but later cancelled the flow
AWAITING_AUTHORIZATION = "AWAITING_AUTHORIZATION", - User needs to authorize payment on app
PROCESSING = "PROCESSING", - Payment made by user and it's processing and awaiting confirmation
COMPLETED = "COMPLETED", - Payment confirmed to have left customers account, awaiting confirmation on receipt
SETTLED = "SETTLED", - Payment has settled in the settlement account. (You can now give value)
REFUNDED = "REFUNDED", - Payment refunded/rejected
FAILED = "FAILED", - Payment failed /rejected by bank
EXPIRED = "EXPIRED", - Payment link has expired. New call should be made
CANCELLED = "CANCELLED", - Payment cancelled by system
Client identifier for the API.
sdfgfd-sdfgf4d-sdfgfdsd-sdfgfdsThe amount to be paid.
5The currency of the payment.
GBPThe account to settle the payment.
987d28af0dReference for the transaction.
34534redf3d00A description or reason for the payment.
GiftURL for webhook notifications related to this payment.
https://webhook.site/481927c8-36d7-4cc0-a9de-49562206d9b1URL to redirect after payment.
https://wikipedia.comPayment initiated successfully.
Bad Request - Invalid data or missing required fields.
Unauthorized - Missing or invalid X-CLIENTID header.
Server error
POST /initiate-payment/ HTTP/1.1
Host: endozapi.celergate.net
Authorization: Bearer YOUR_SECRET_TOKEN
X-CLIENTID: text
Content-Type: application/json
Accept: */*
Content-Length: 356
{
"amount": 5,
"currency": "GBP",
"settlement_account": "987d28af0d",
"transaction_ref": "34534redf3d00",
"narration": "Gift",
"webhook_url": "https://webhook.site/481927c8-36d7-4cc0-a9de-49562206d9b1",
"redirect_url": "https://wikipedia.com",
"payer": {
"first_name": "Ahmad",
"last_name": "Sharafudeen",
"email_address": "ahmadsharafudeen@gmail.com",
"address": "Lugbe, Abuja"
}
}{
"reference": "202503131111096386ed356c98f9a4",
"hosted_url": "https://endozpay.celergate.net?payload=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXltZW50X2lkIjo1MywicmVmZXJlbmNlIjoiMzQ1MzRyZWRmM2QwMCIsImFtb3VudCI6NS4wLCJjdXJyZW5jeSI6Ilx1MDBhMyIsImNsaWVudCI6IkVuZG96IERldiJ9.qC5iILRh0zmSD0jMpY4Csv9UZHBZ3sGmcCFipGzz6qs"
}Last updated