API Reference
Retrieve payment link details by its unique code (public endpoint, no authentication required)
Path parameters
codestringRequiredExample:
Unique code of the payment link
ABC123Responses
200
Payment link retrieved successfully
application/json
404
Payment link not found
application/json
500
Internal server error
application/json
get
/link/{code}GET /api/link/{code} HTTP/1.1
Host: kirapay-api.holatech.app
Accept: */*
{
"message": "Payment link retrieved successfully",
"data": {
"_id": "507f1f77bcf86cd799439011",
"code": "ABC123",
"price": 100,
"tokenOut": {
"symbol": "USDC",
"address": "0x...",
"decimals": 6,
"chain": "ethereum"
},
"receiver": "0x1234567890abcdef1234567890abcdef12345678",
"user": {
"_id": "507f1f77bcf86cd799439012",
"username": "johndoe",
"address": "0x...",
"isVerified": true
},
"name": "Product Payment",
"redirectUrl": "https://example.com/success",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"url": "https://kirapay.focalfossa.site/pay/ABC123"
}
}Last updated
Was this helpful?