What Are Payment Links?
Payment Links are URLs you can share with customers. When they click the link, a checkout session is automatically created for them. Perfect for:- Email invoices
- Social media bio links
- SMS campaigns
- QR codes
- Donation pages
Create a Payment Link
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
X-API-KEY | Your Vault API Key |
X-OZURA-API-KEY | Your Merchant API Key |
Request Body
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
merchantId | string | Yes | — | Your Merchant ID |
merchantName | string | Yes | — | Business name shown to customer |
amount | string | Yes* | — | Payment amount (e.g., "25.00") |
currency | string | No | "USD" | Currency code |
successUrl | string | Yes | — | Redirect after payment |
cancelUrl | string | Yes | — | Redirect if cancelled |
errorUrl | string | Yes | — | Redirect if failed |
expiresInDays | number | No | 7 | Days until link expires (1-3650) |
usageLimit | number | No | null | Max payments (null for unlimited) |
items or checkoutMode: "donation".
Example Request
Response
Share the Link
Send theurl from the response to your customer:
- A new checkout session is created automatically
- They see the checkout page with the amount you specified
- After payment, they’re redirected to your success URL