- Overview
- Payments
- Payouts
- Reserved Account
Create PayLink
POST
https://devapi.collect.africa/payments/links
Last modified:2025-04-19 09:05:16
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
string
optional
Default:
Airtime
decription
string
optional
Default:
For Airtime Transactions
amount
integer <int32>
optional
Default:
200
Example
{
"name": "Airtime",
"decription": "For Airtime Transactions",
"amount": 200
}
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/links' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Airtime",
"decription": "For Airtime Transactions",
"amount": 200
}'
Responses
🟢200OK
application/json
Body
message
string
optional
Example:
Pay Link Created
data
object
optional
id
integer
optional
Default:
0
Example:
475
short_code
string
optional
Example:
lsvpt8mdsg
currency
string
optional
Example:
NGN
type
string
optional
Example:
payment
name
string
optional
Example:
Blessing Makaraba
amount
integer
optional
Default:
0
Example:
77700
created_at
string
optional
Example:
2022-01-27T04:14:05.200Z
Example
{
"message": "Pay Link Created",
"data": {
"id": 475,
"short_code": "lsvpt8mdsg",
"currency": "NGN",
"type": "payment",
"name": "Blessing Makaraba",
"amount": 77700,
"created_at": "2022-01-27T04:14:05.200Z"
}
}
🟠400Bad Request