Creating Transactions
Required Fields
Core Transaction Data
amount- Transaction amountcurrency- Currency codereference- Your unique referencestatementDescriptor- Statement descriptioncallbackUrl- Webhook URL
Mandatory Customer Information
billing.firstName- Customer's first namebilling.lastName- Customer's last namebilling.email- Customer's email addressbilling.customerReference- Your unique customer identifier
Endpoint
POST /api/v1/transactions
Basic Request Example
{
"amount": 100.00,
"currency": "USD",
"reference": "ORDER-123",
"statementDescriptor": "My Store Purchase",
"callbackUrl": "https://your-domain.com/webhook",
"billing": {
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"customerReference": "CUST123"
},
"payment": {
"paymentMethod": "CARD"
}
}
Response
{
"transactionId": "TX123456789",
"reference": "ORDER-123",
"currency": "USD",
"amount": 100.00,
"status": "PENDING",
"message": "Transaction created successfully",
"checkoutUrl": "https://checkout.zepopay.com/TX123456789"
}