Create agent payment session
curl --request POST \
--url https://uat-api.clinkbill.com/api/order/payment-session \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"customerEmail": "<string>",
"amount": 1.5,
"currency": "<string>"
}
'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/order/payment-session")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customerEmail\": \"<string>\",\n \"amount\": 1.5,\n \"currency\": \"<string>\"\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/order/payment-session"
payload = {
"customerEmail": "<string>",
"amount": 1.5,
"currency": "<string>"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({customerEmail: '<string>', amount: 1.5, currency: '<string>'})
};
fetch('https://uat-api.clinkbill.com/api/order/payment-session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"msg": "<string>",
"data": {
"sessionId": "<string>",
"expireTime": "2026-07-30 12:00:00"
}
}"<string>"Agent Payment Session
Create Agent Payment Session
Create agent payment session
POST
/
order
/
payment-session
Create agent payment session
curl --request POST \
--url https://uat-api.clinkbill.com/api/order/payment-session \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"customerEmail": "<string>",
"amount": 1.5,
"currency": "<string>"
}
'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/order/payment-session")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customerEmail\": \"<string>\",\n \"amount\": 1.5,\n \"currency\": \"<string>\"\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/order/payment-session"
payload = {
"customerEmail": "<string>",
"amount": 1.5,
"currency": "<string>"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({customerEmail: '<string>', amount: 1.5, currency: '<string>'})
};
fetch('https://uat-api.clinkbill.com/api/order/payment-session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"msg": "<string>",
"data": {
"sessionId": "<string>",
"expireTime": "2026-07-30 12:00:00"
}
}"<string>"Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Headers
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Body
application/json