API Reference
Generate a new payment link for receiving payments
Authorizations
x-api-keystringRequired
API key for authentication. Get your API key from the KiraPay dashboard.
Body
currencystringRequiredExample:
Currency symbol for the payment
USDCreceiverstringRequiredExample:
Wallet address to receive the payment
0x1234567890abcdef1234567890abcdef12345678pricenumberRequiredExample:
Payment amount
100namestringRequiredExample:
Name or description of the payment link
Product PaymentredirectUrlstring · uriOptionalExample:
Optional URL to redirect after successful payment
https://example.com/successResponses
200
Payment link created successfully
application/json
400
Invalid request parameters
application/json
401
Unauthorized - Invalid or missing API key
application/json
500
Internal server error
application/json
post
/link/generatePOST /api/link/generate HTTP/1.1
Host: kirapay-api.holatech.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"currency": "USDC",
"receiver": "0x1234567890abcdef1234567890abcdef12345678",
"price": 100,
"name": "Product Payment",
"redirectUrl": "https://example.com/success"
}{
"message": "Payment link created successfully",
"data": {
"url": "https://kirapay.focalfossa.site/pay/ABC123"
}
}Last updated
Was this helpful?