API reference
Payment links
Links and QR codes your customers open to pay you, with a fixed or open amount.
GET /v1/links
Your payment links
The key's account's links in its mode, newest first (limit, default 50). Requires links:read.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer |
Responses
- 200 The links.
Request
curl -X GET "$KULPAY_URL/v1/links" \ -H "Authorization: Bearer $KULPAY_KEY"
200 Response application/json
{
"data": [
{
"account_id": "3KUXPz8rTq1Lm2Nb4Vc6Xs7Za9e",
"active": true,
"amount": "1500.00",
"created_at": "2026-10-22T09:30:00Z",
"currency": "MZN",
"description": "Order 981",
"expires_at": "2026-11-22T00:00:00Z",
"id": "3L4aB1cD2eF3gH4iJ5kL6mN7oP8",
"mode": "live",
"reference": "ORD-981",
"slug": "k7Q2xM9p",
"url": "https://gateway.kulpay.pavulla.com/pay/k7Q2xM9p",
"usage_limit": 1,
"used_count": 0
}
],
"total": 1
}
POST /v1/links
Create a payment link
A page the customer opens to pay you, with a fixed amount or, leaving it out, an amount the customer chooses (owner, 2026-10-22). Share its url as a link or a QR code. usage_limit caps how many payments it takes (0, no limit); expires_at (RFC 3339) ends it; reference (3 to 128 characters) is your own, carried on every payment through it. The link belongs to the key's account and mode; its payments are the account's, with the usual payment.* webhooks. Requires links:write.
Request body application/json required
| Field | Type | Description |
|---|---|---|
amount | string | A decimal string, e.g. "1500.00"; leave it out for an amount the customer chooses. |
currency | string | |
description | string | |
expires_at | string (date-time) | |
reference | string | |
usage_limit | integer |
Responses
- 201 The link.
- 400
invalid_requestorinvalid_link: a field is invalid; theerrorslist names each. - 403
insufficient_scope: the key lackslinks:write.
Request
curl -X POST "$KULPAY_URL/v1/links" \
-H "Authorization: Bearer $KULPAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": "1500.00",
"currency": "MZN",
"description": "Order 981",
"expires_at": "2026-11-22T00:00:00Z",
"reference": "ORD-981",
"usage_limit": 1
}'
201 Response application/json
{
"account_id": "3KUXPz8rTq1Lm2Nb4Vc6Xs7Za9e",
"active": true,
"amount": "1500.00",
"created_at": "2026-10-22T09:30:00Z",
"currency": "MZN",
"description": "Order 981",
"expires_at": "2026-11-22T00:00:00Z",
"id": "3L4aB1cD2eF3gH4iJ5kL6mN7oP8",
"mode": "live",
"reference": "ORD-981",
"slug": "k7Q2xM9p",
"url": "https://gateway.kulpay.pavulla.com/pay/k7Q2xM9p",
"usage_limit": 1,
"used_count": 0
}
400 Error · invalid_link application/problem+json
{
"code": "invalid_link",
"detail": "One or more fields on the payment link request are invalid.",
"error": {
"code": "invalid_link",
"message": "One or more fields on the payment link request are invalid."
},
"errors": [
{
"code": "out_of_range",
"field": "amount",
"message": "amount must be greater than zero."
}
],
"legacy_code": "gateway.invalid_link",
"status": 400,
"title": "Invalid payment link",
"type": "about:blank"
}
403 Error · insufficient_scope application/problem+json
{
"code": "insufficient_scope",
"detail": "missing required scope: links:write",
"error": {
"code": "insufficient_scope",
"message": "missing required scope: links:write"
},
"missing_scope": "links:write",
"status": 403,
"title": "Forbidden",
"type": "about:blank"
}
GET /v1/links/{id}
A payment link
One of the key's account's links in its mode; another account's, or the other mode's, is 404. Requires links:read.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string |
Responses
- 200 The link.
- 404
not_found: no such link for this key.
Request
curl -X GET "$KULPAY_URL/v1/links/{id}" \
-H "Authorization: Bearer $KULPAY_KEY"
200 Response application/json
{
"account_id": "3KUXPz8rTq1Lm2Nb4Vc6Xs7Za9e",
"active": true,
"amount": "1500.00",
"created_at": "2026-10-22T09:30:00Z",
"currency": "MZN",
"description": "Order 981",
"expires_at": "2026-11-22T00:00:00Z",
"id": "3L4aB1cD2eF3gH4iJ5kL6mN7oP8",
"mode": "live",
"reference": "ORD-981",
"slug": "k7Q2xM9p",
"url": "https://gateway.kulpay.pavulla.com/pay/k7Q2xM9p",
"usage_limit": 1,
"used_count": 0
}
404 Error · not_found application/problem+json
{
"code": "not_found",
"detail": "No such payment link.",
"error": {
"code": "not_found",
"message": "No such payment link."
},
"legacy_code": "gateway.not_found",
"status": 404,
"title": "Not found",
"type": "about:blank"
}
DELETE /v1/links/{id}
Deactivate a payment link
Stops the link taking payments; it is kept, so a customer who opens it is told it no longer works. Deactivating it again changes nothing. Only the key's own account's links in its mode (another's is 404). Requires links:write.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string |
Responses
- 200 The link, inactive.
- 404
not_found: no such link for this key.
Request
curl -X DELETE "$KULPAY_URL/v1/links/{id}" \
-H "Authorization: Bearer $KULPAY_KEY"
200 Response application/json
{
"account_id": "3KUXPz8rTq1Lm2Nb4Vc6Xs7Za9e",
"active": false,
"amount": "1500.00",
"created_at": "2026-10-22T09:30:00Z",
"currency": "MZN",
"description": "Order 981",
"expires_at": "2026-11-22T00:00:00Z",
"id": "3L4aB1cD2eF3gH4iJ5kL6mN7oP8",
"mode": "live",
"reference": "ORD-981",
"slug": "k7Q2xM9p",
"url": "https://gateway.kulpay.pavulla.com/pay/k7Q2xM9p",
"usage_limit": 1,
"used_count": 0
}
404 Error · not_found application/problem+json
{
"code": "not_found",
"detail": "No such payment link.",
"error": {
"code": "not_found",
"message": "No such payment link."
},
"legacy_code": "gateway.not_found",
"status": 404,
"title": "Not found",
"type": "about:blank"
}