GuidesAPI Reference
Changelog
GuidesAPI Reference
Changelog
  1. Payments
  • Overview
  • Payments
    • Overview
    • Get Payment
      GET
    • Get Payments
      GET
    • Create PayLink
      POST
    • Charge
      POST
    • Payment Initialize
      POST
    • Initialize Crypto Payment
      POST
    • Initialize Card Payment
      POST
  • Payouts
    • Overview
    • Transfer Recipient
      • Create Transfer Recipient
      • Get Transfer Recipients
      • Get Transfer Recipient
    • Transfers
      • Create Transfer
      • Get Transfers
      • Get Transfer
      • Get Transfer By Reference
    • Banks
      GET
    • Account Resolve
      GET
  • Reserved Account
    • Overview
    • Get Reserved Accounts
      GET
    • Get Reserved Account By Reference
      GET
    • Get Reserved Account
      GET
    • Update Reserved Account
      PUT
    • Delete Reserved Account
      DELETE
    • Create Reserved Account
      POST
  1. Payments

Create PayLink

POST
https://devapi.collect.africa/payments/links
Last modified:2025-04-19 09:05:16
Create a payment link

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
Payment Name
Default:
Airtime
decription
string 
optional
Payment Description
Default:
For Airtime Transactions
amount
integer <int32>
optional
The amount to pay
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
200
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
Previous
Get Payments
Next
Charge
Built with