- Overview
- Payments
- Payouts
- Reserved Account
Payment Initialize
POST
https://devapi.collect.africa/payments/initialize
Last modified:2025-04-19 10:07:15
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
email
string
required
Default:
test@gmail.com
amount
integer <int32>
required
Default:
15000
reference
string
required
Default:
12345
callback_url
string
optional
first_name
string
optional
Default:
Musa
middle_name
string
optional
Default:
Amarachi
last_name
string
optional
Default:
Ade
phone_number
string
optional
Default:
08000000000
payment_link_code
string
optional
plan_code
string
optional
Example
{
"email": "test@gmail.com",
"amount": 15000,
"reference": "12345",
"callback_url": "string",
"first_name": "Musa",
"middle_name": "Amarachi",
"last_name": "Ade",
"phone_number": "08000000000",
"payment_link_code": "string",
"plan_code": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://devapi.collect.africa/payments/initialize' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "test@gmail.com",
"amount": 15000,
"reference": "12345",
"callback_url": "string",
"first_name": "Musa",
"middle_name": "Amarachi",
"last_name": "Ade",
"phone_number": "08000000000",
"payment_link_code": "string",
"plan_code": "string"
}'
Responses
🟢200OK
application/json
Body
message
string
optional
Example:
Checkout Initialized
data
object
optional
reference
string
optional
Example:
ref111
short_code
string
optional
Example:
SC_cksacmabu000001p27jj2e93u
checkout_url
string
optional
Example:
https://staging-checkout.collect.africa?short_code=SC_cksacmabu000001p27jj2e93u
Example
{
"message": "Checkout Initialized",
"data": {
"reference": "ref111",
"short_code": "SC_cksacmabu000001p27jj2e93u",
"checkout_url": "https://staging-checkout.collect.africa?short_code=SC_cksacmabu000001p27jj2e93u"
}
}
🟠400Bad Request