Bank Payment Request
Request a bank payment to a PEEX user by sending their IBAN account number. This endpoint handles bank money transactions through various banking operators.
Overview
The bank payment request endpoint enables the initiation of bank payments to Peex users.
Key Features:
- Bank payments via an IBAN account
- Real-time transaction tracking
- AML/CFT compliance verification
- Comprehensive sender and recipient information
Request
Method: POST
URL: {{base_url}}clients/request_bank_payment
Headers:
SECRETKEY: Your API secret keyContent-Type:application/json
Required Parameters:
bank_address: Bank full address of the beneficiarybank_swift: Bank swift code of the beneficiarybank_iban: Bank IBAN of the beneficiaryamount: The amount to be sentaml_cft: Compliance confirmation (must be1)fxrate: the rate will be used to convert from_currency to_currencysender_first_name: Sender's first namesender_last_name: Sender's last namesender_mobile_phone: Sender's mobile phonesender_country: Sender's countryfirst_name: Beneficiary's first namelast_name: Beneficiary's last nameto_country: Beneficiary's country (ISO Alpha 2)purpose: Transaction purposefund_origin: Fund origin
Optional Parameters:
bank_name: Bank name in which the beneficiary will receive the fundto_currency: Destination currency (default: XAF)sender_email: Sender's emailsender_city: Sender's sender_cityemail: The user email to whom the payment will be donemobile_phone: The user mobile_phone to whom the payment will be documentationto_currency: The destination currency (optional default XAF )first_name: the beneficiary first namelast_name: the beneficiary last name
cURL Request
curl -X POST \
https://sandbox.peexit.com/api/v1/clients/request_bank_payment \
-H 'SECRETKEY: ########-####-####-####-############' \
-H 'Content-Type: application/json' \
-d '{
"bank_name": "CCA",
"bank_address": "Douala Bonamoussadi",
"bank_iban": "1245451245878754",
"bank_swift": "CM1245",
"track_id": "TEST_dev_042",
"amount": 1,
"aml_cft": 1,
"fxrate": 1.0,
"from_currency": "XAF",
"to_currency": "XAF",
"to_country": "CM",
"transaction_type": "bank",
"mobile_phone": "+237677777777",
"sender_first_name": "TEST",
"sender_last_name": "TEST",
"sender_email": "peex@peex.com",
"sender_mobile_phone": "+237666667777",
"sender_country": "CM",
"purpose": "Familial Aid",
"fund_origin": "Salary"
}'
Response
Status 200 - Success
The transaction object with status information:
request.id: Transaction IDrequest.amount: Transaction amountrequest.status: Transaction status (new, pending, paid, failed)request.from_currency: Source currencyrequest.to_currency: Destination currencyrequest.bank_iban: IBAN accountrequest.bank_swift: bank swift coderequest.bank_address: bank addressrequest.bank_name:bank namerequest.payment_proof: Payment proof (if available)request.identifier_by: Recipient identifier (if available)request.track_id: Your tracking referencerequest.type: Transaction type ("bank")
Success Response
{
"request": {
"id": 195416,
"amount": 1,
"status": "new",
"from_currency": "XAF",
"to_currency": "XAF",
"payment_proof": null,
"identifier_by": "690597777",
"track_id": "fess-TEST0011",
"bank_name": "CCA BANK",
"bank_address": "Douala Bonanoussadi",
"bank_iban": "1245451245878754",
"bank_swift": "CCAMCMCYXXX",
"type": "bank",
}
}
Error Handling
Status 422 - Unprocessable Entity
This track_id already exists in our system
Status 401 - Unauthorized
Invalid or missing secret key.
existing track_id
{
"error": {
"statusCode": 422,
"name": "UnprocessableEntityError",
"message": "This transaction reference has already been used!"
}
}
Authentication error response
{
"error": {
"statusCode": 401,
"name": "UnauthorizedError",
"message": "The key provided doest not exists in our system"
}
}
Parameter Details
Purpose Values
FAMILY: Family supportBUSINESS: Business transactionsEDUCATION: Educational expensesMEDICAL: Medical expenses- Other predefined purposes
Fund Origin Values
SALARY: Employment salarySALES_AND_BUSINESS_DEVELOPMENT: Business incomeINVESTMENT: Investment returns- Other compliance-approved origins
Transaction Lifecycle
- New - Transaction created successfully
- Pending - Payment initiated, awaiting confirmation
- Paid - Transaction completed successfully
- Failed - Transaction failed (reason in payment_proof)
- Canceled - Transaction canceled manually
- Rejected - Transaction rejected (reason provided)
Next Steps
After creating a payment request: