POST/charges/initialize
Start a payment
Creates a payment and gives you a link. Send your customer to that link — they confirm with their Rainpay PIN and the money lands in your business account.
amountRequired. Whole kobo. ₦5,000 is 500000.referenceOptional. Your own reference. Must be unique; we make one if you leave it out.customer_emailOptional.customer_nameOptional.descriptionOptional. Shown to the customer.metadataOptional. Any JSON object you want back later.
curl -X POST https://web.rainpay.ng/api/public/v1/charges/initialize \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{ "amount": 500000, "description": "Order 1042" }'Response
{
"data": {
"reference": "RPC-M2XK9P-A7B3C1",
"amount": 500000,
"currency": "NGN",
"status": "pending",
"expires_at": "2026-01-14T10:31:00.000Z",
"checkout_url": "https://web.rainpay.ng/pay/RPC-M2XK9P-A7B3C1"
}
}