✨Create Payment
In this section, you’ll learn how to create a payment link using the PayRam API for customers to make payments easily.

URL Details
BASE_URL
Your PayRam Site URL — find it under Settings → Site URL in your dashboard. Include the port if you installed on one.
https://pay.example.com
API Endpoint
Endpoint to create a new payment link.
/api/v1/payment
Headers
API-Key
Your unique PayRam API key generated from your dashboard.
811b12035f0dfa8ffd62296df3c98b27
Content-Type
Format of the request data.
application/json
Request Body
customerEmail
Yes
Customer’s email address where the payment link will be associated.
test@payram.com
customerID
Yes
Unique identifier for the customer.
1
amountInUSD
Yes
The payment amount in USD.
10
invoiceID
No
Your own invoice reference. Returned as invoice_id in the payment webhook.
INV-0090
expire
No
When the payment link expires, as an RFC 3339 timestamp. Defaults to 24 hours from creation.
2026-08-20T10:00:00Z
currency
No
Restricts the payment to a single currency. Omit to let the customer choose.
USDC
network
No
Restricts the payment to a single blockchain. Use together with currency.
BASE
curl request
Before running the command, replace the placeholders with your actual details:
${BASE_URL} → Your PayRam server URL
<your_api_key> → Your PayRam API key
Replace the request body fields with real customer data
curl response
Last updated