API reference
Payment links
Create a payment link and read it back.
Create a payment link
POST/payment-links
Create a shareable pay page. Send an Idempotency-Key so a retry does not create a second link.
titlestringrequired
What the customer is paying for. 2–120 characters.
amountKobointegerrequired
Amount in kobo.
descriptionstring
Shown on the pay page. Optional.
usagestring
reusable (default) or single. A single link stops after one paid session.
expiresAtdatetime
When the link stops accepting payments. Optional.
Request body
{
"title": "Silk wrap dress",
"amountKobo": 6500000,
"description": "Size 10",
"usage": "reusable"
}Response
{
"statusCode": 201,
"message": "Success",
"error": null,
"timestamp": 1762440000000,
"version": "v2",
"path": "/api/v1/pg/v1/payment-links",
"data": {
"id": "6c1d8e20-7a44-4f0b-8e55-1b2c3d4e5f60",
"slug": "silk-wrap-dress",
"url": "https://www.staging.cswitch.com/dashboard/checkout/silk-wrap-dress",
"title": "Silk wrap dress",
"description": "Size 10",
"amountKobo": 6500000,
"currency": "NGN",
"usage": "reusable",
"active": true,
"expiresAt": null,
"paidCount": 0,
"environment": "test",
"createdBy": "c4e8a1b0-2d55-4a61-9f30-7b8c9d0e1f23",
"createdAt": "2026-11-06T15:00:00.000Z"
}
}Get a payment link
GET/payment-links/{id}
Read one payment link, including how many times it has been paid.
idstringrequired
The link id returned when you created it.
Response
{
"statusCode": 200,
"message": "Success",
"error": null,
"timestamp": 1762440000000,
"version": "v2",
"path": "/api/v1/pg/v1/payment-links/6c1d8e20-7a44-4f0b-8e55-1b2c3d4e5f60",
"data": {
"id": "6c1d8e20-7a44-4f0b-8e55-1b2c3d4e5f60",
"slug": "silk-wrap-dress",
"url": "https://www.staging.cswitch.com/dashboard/checkout/silk-wrap-dress",
"title": "Silk wrap dress",
"description": "Size 10",
"amountKobo": 6500000,
"currency": "NGN",
"usage": "reusable",
"active": true,
"expiresAt": null,
"paidCount": 1,
"environment": "test",
"createdBy": "c4e8a1b0-2d55-4a61-9f30-7b8c9d0e1f23",
"createdAt": "2026-11-06T15:00:00.000Z"
}
}