Create a Payment Link
Create a new payment link from a template.
Request Parametersโ
Required - 4 fieldsRequired Parameters
`template_id`INTEGER(required)
ID of the template to use for creating the link. Retrieve from the List Templates endpoint.
`team_id`INTEGER(required)
Your team ID. Find this in your Omise Dashboard settings.
`name`STRING(required)
Name/title of the payment link shown to customers.
`amount`INTEGER(required)
Amount in smallest currency unit (e.g., satangs for THB, cents for USD).
Recommended - 2 fieldsRecommended Parameters
`currency`STRING(optional)
Three-letter ISO currency code. Defaults to template currency.
`multiple_usage`BOOLEAN(optional)
Allow multiple payments on this link.
Additional - 3 fieldsAdditional Parameters
Responsesโ
200
Successful creationReturns the created payment link object with payment URL.
{
"id": 789,
"name": "Premium Subscription",
"amount": 299900,
"currency": "thb",
"status": "active",
"payment_url": "https://pay.omise.co/links/abc123",
"multiple_usage": false,
"created_at": "2026-02-14T10:30:00Z",
"template_id": 123,
"team_id": 456
}
400
Bad requestInvalid parameters or missing required fields.
401
UnauthorizedInvalid or missing API key.
Code samplesโ
- cURL
- Node.js
- Python
curl -X POST https://linksplus-api.omise.co/external/links \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template_id": 123,
"team_id": 456,
"name": "Premium Subscription",
"amount": 299900,
"currency": "thb"
}'
const response = await fetch('https://linksplus-api.omise.co/external/links', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
template_id: 123,
team_id: 456,
name: 'Premium Subscription',
amount: 299900,
currency: 'thb'
})
});
const link = await response.json();
console.log('Payment URL:', link.payment_url);
import requests
response = requests.post(
'https://linksplus-api.omise.co/external/links',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'template_id': 123,
'team_id': 456,
'name': 'Premium Subscription',
'amount': 299900,
'currency': 'thb'
}
)
link = response.json()
print(f"Payment URL: {link['payment_url']}")
Payment Links+ API Credentials
Try it outโ
Required - 4 fields
Recommended - 2 fields
Additional - 2 fields
Your IP:
...Loading...