Create Payment Link
POST /link/generate
API ReferencePOST /link/generateUse this endpoint to generate a secure payment link. Provide details such as currency, receiver address, amount, and product name, with an optional redirect URL. The API will return a unique link that can be shared with users to complete the payment.
Authentication
All requests require authentication via the x-api-key header:
x-api-key: YOUR_API_KEYReplace YOUR_API_KEY with your actual key from the KiraPay dashboard.
Headers
Content-Type
application/json
x-api-key
your-api-key
Request Body Fields
receiver
string
Ethereum wallet address (42 characters starting with 0x) where payments will be sent
YES
price
number
Payment amount in the specified currency (must be ≥ 0)
YES
name
string
Product name
YES
redirectUrl
string
redirect on successful payment
NO
Request Body
Request Example (cURL)
Request Example (Nodejs)
Response Fields
message
string
Response status message, always "success" for successful requests
data.url
string
Payment link
code
number
HTTP status code
Response
Last updated
Was this helpful?