curl --request POST \
--url https://api-test.paiera.com/v1/payment/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10.00",
"order_currency": "USD",
"payment_currency": "USDT",
"network": "TRC20",
"description": "Product description",
"metadata": {
"source": "merchant"
},
"products": [
{
"name": "Example Product",
"description": "Product description",
"quantity": "2",
"unit_amount": "5.00",
"currency": "USD"
}
],
"customer": {
"id": "customer-001",
"name": "Joe",
"email": "joe@example.com",
"phone": "+12025550100",
"address": {
"country": "SG",
"state": "Singapore",
"city": "Singapore",
"postal_code": "179098",
"line1": "1 Parliament Place"
}
},
"notify_url": "https://merchant.example.com/webhooks/paiera",
"redirect_url": "https://merchant.example.com/payment/result",
"cancel_url": "https://merchant.example.com/payment/cancelled"
}
'import requests
url = "https://api-test.paiera.com/v1/payment/create"
payload = {
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10.00",
"order_currency": "USD",
"payment_currency": "USDT",
"network": "TRC20",
"description": "Product description",
"metadata": { "source": "merchant" },
"products": [
{
"name": "Example Product",
"description": "Product description",
"quantity": "2",
"unit_amount": "5.00",
"currency": "USD"
}
],
"customer": {
"id": "customer-001",
"name": "Joe",
"email": "joe@example.com",
"phone": "+12025550100",
"address": {
"country": "SG",
"state": "Singapore",
"city": "Singapore",
"postal_code": "179098",
"line1": "1 Parliament Place"
}
},
"notify_url": "https://merchant.example.com/webhooks/paiera",
"redirect_url": "https://merchant.example.com/payment/result",
"cancel_url": "https://merchant.example.com/payment/cancelled"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payment_reference_id: 'merchant-order-202609170001',
order_amount: '10.00',
order_currency: 'USD',
payment_currency: 'USDT',
network: 'TRC20',
description: 'Product description',
metadata: {source: 'merchant'},
products: [
{
name: 'Example Product',
description: 'Product description',
quantity: '2',
unit_amount: '5.00',
currency: 'USD'
}
],
customer: {
id: 'customer-001',
name: 'Joe',
email: 'joe@example.com',
phone: '+12025550100',
address: {
country: 'SG',
state: 'Singapore',
city: 'Singapore',
postal_code: '179098',
line1: '1 Parliament Place'
}
},
notify_url: 'https://merchant.example.com/webhooks/paiera',
redirect_url: 'https://merchant.example.com/payment/result',
cancel_url: 'https://merchant.example.com/payment/cancelled'
})
};
fetch('https://api-test.paiera.com/v1/payment/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-test.paiera.com/v1/payment/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payment_reference_id' => 'merchant-order-202609170001',
'order_amount' => '10.00',
'order_currency' => 'USD',
'payment_currency' => 'USDT',
'network' => 'TRC20',
'description' => 'Product description',
'metadata' => [
'source' => 'merchant'
],
'products' => [
[
'name' => 'Example Product',
'description' => 'Product description',
'quantity' => '2',
'unit_amount' => '5.00',
'currency' => 'USD'
]
],
'customer' => [
'id' => 'customer-001',
'name' => 'Joe',
'email' => 'joe@example.com',
'phone' => '+12025550100',
'address' => [
'country' => 'SG',
'state' => 'Singapore',
'city' => 'Singapore',
'postal_code' => '179098',
'line1' => '1 Parliament Place'
]
],
'notify_url' => 'https://merchant.example.com/webhooks/paiera',
'redirect_url' => 'https://merchant.example.com/payment/result',
'cancel_url' => 'https://merchant.example.com/payment/cancelled'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-test.paiera.com/v1/payment/create"
payload := strings.NewReader("{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-test.paiera.com/v1/payment/create")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/payment/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1789349142078,
"data": {
"transaction_id": "acq_example_001",
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10",
"order_currency": "USD",
"hosted_url": "https://checkout-test.paiera.com/?key=<CHECKOUT_KEY>",
"status": "CREATED",
"created_at": "2026-09-17T09:00:00Z",
"expires_at": "2026-09-17T09:30:00Z"
},
"success": true
}Create Payment
Create a hosted stablecoin checkout. The current merchant and payment_reference_id form the idempotency key. See Error codes for business errors. payment_currency and network must be supplied together or both omitted. Metadata keys must start with a letter and contain only letters, digits and underscores. Product quantity is a digit string.
curl --request POST \
--url https://api-test.paiera.com/v1/payment/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10.00",
"order_currency": "USD",
"payment_currency": "USDT",
"network": "TRC20",
"description": "Product description",
"metadata": {
"source": "merchant"
},
"products": [
{
"name": "Example Product",
"description": "Product description",
"quantity": "2",
"unit_amount": "5.00",
"currency": "USD"
}
],
"customer": {
"id": "customer-001",
"name": "Joe",
"email": "joe@example.com",
"phone": "+12025550100",
"address": {
"country": "SG",
"state": "Singapore",
"city": "Singapore",
"postal_code": "179098",
"line1": "1 Parliament Place"
}
},
"notify_url": "https://merchant.example.com/webhooks/paiera",
"redirect_url": "https://merchant.example.com/payment/result",
"cancel_url": "https://merchant.example.com/payment/cancelled"
}
'import requests
url = "https://api-test.paiera.com/v1/payment/create"
payload = {
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10.00",
"order_currency": "USD",
"payment_currency": "USDT",
"network": "TRC20",
"description": "Product description",
"metadata": { "source": "merchant" },
"products": [
{
"name": "Example Product",
"description": "Product description",
"quantity": "2",
"unit_amount": "5.00",
"currency": "USD"
}
],
"customer": {
"id": "customer-001",
"name": "Joe",
"email": "joe@example.com",
"phone": "+12025550100",
"address": {
"country": "SG",
"state": "Singapore",
"city": "Singapore",
"postal_code": "179098",
"line1": "1 Parliament Place"
}
},
"notify_url": "https://merchant.example.com/webhooks/paiera",
"redirect_url": "https://merchant.example.com/payment/result",
"cancel_url": "https://merchant.example.com/payment/cancelled"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payment_reference_id: 'merchant-order-202609170001',
order_amount: '10.00',
order_currency: 'USD',
payment_currency: 'USDT',
network: 'TRC20',
description: 'Product description',
metadata: {source: 'merchant'},
products: [
{
name: 'Example Product',
description: 'Product description',
quantity: '2',
unit_amount: '5.00',
currency: 'USD'
}
],
customer: {
id: 'customer-001',
name: 'Joe',
email: 'joe@example.com',
phone: '+12025550100',
address: {
country: 'SG',
state: 'Singapore',
city: 'Singapore',
postal_code: '179098',
line1: '1 Parliament Place'
}
},
notify_url: 'https://merchant.example.com/webhooks/paiera',
redirect_url: 'https://merchant.example.com/payment/result',
cancel_url: 'https://merchant.example.com/payment/cancelled'
})
};
fetch('https://api-test.paiera.com/v1/payment/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-test.paiera.com/v1/payment/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payment_reference_id' => 'merchant-order-202609170001',
'order_amount' => '10.00',
'order_currency' => 'USD',
'payment_currency' => 'USDT',
'network' => 'TRC20',
'description' => 'Product description',
'metadata' => [
'source' => 'merchant'
],
'products' => [
[
'name' => 'Example Product',
'description' => 'Product description',
'quantity' => '2',
'unit_amount' => '5.00',
'currency' => 'USD'
]
],
'customer' => [
'id' => 'customer-001',
'name' => 'Joe',
'email' => 'joe@example.com',
'phone' => '+12025550100',
'address' => [
'country' => 'SG',
'state' => 'Singapore',
'city' => 'Singapore',
'postal_code' => '179098',
'line1' => '1 Parliament Place'
]
],
'notify_url' => 'https://merchant.example.com/webhooks/paiera',
'redirect_url' => 'https://merchant.example.com/payment/result',
'cancel_url' => 'https://merchant.example.com/payment/cancelled'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-test.paiera.com/v1/payment/create"
payload := strings.NewReader("{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-test.paiera.com/v1/payment/create")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/payment/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payment_reference_id\": \"merchant-order-202609170001\",\n \"order_amount\": \"10.00\",\n \"order_currency\": \"USD\",\n \"payment_currency\": \"USDT\",\n \"network\": \"TRC20\",\n \"description\": \"Product description\",\n \"metadata\": {\n \"source\": \"merchant\"\n },\n \"products\": [\n {\n \"name\": \"Example Product\",\n \"description\": \"Product description\",\n \"quantity\": \"2\",\n \"unit_amount\": \"5.00\",\n \"currency\": \"USD\"\n }\n ],\n \"customer\": {\n \"id\": \"customer-001\",\n \"name\": \"Joe\",\n \"email\": \"joe@example.com\",\n \"phone\": \"+12025550100\",\n \"address\": {\n \"country\": \"SG\",\n \"state\": \"Singapore\",\n \"city\": \"Singapore\",\n \"postal_code\": \"179098\",\n \"line1\": \"1 Parliament Place\"\n }\n },\n \"notify_url\": \"https://merchant.example.com/webhooks/paiera\",\n \"redirect_url\": \"https://merchant.example.com/payment/result\",\n \"cancel_url\": \"https://merchant.example.com/payment/cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1789349142078,
"data": {
"transaction_id": "acq_example_001",
"payment_reference_id": "merchant-order-202609170001",
"order_amount": "10",
"order_currency": "USD",
"hosted_url": "https://checkout-test.paiera.com/?key=<CHECKOUT_KEY>",
"status": "CREATED",
"created_at": "2026-09-17T09:00:00Z",
"expires_at": "2026-09-17T09:30:00Z"
},
"success": true
}payment_currency and network must be supplied together or both omitted. Metadata keys must start with a letter and contain only letters, digits and underscores. Product quantity is a digit string.
See response objects.
Merchant integration sequence
The merchant backend creates a payment and sends the payer to Paiera Checkout. Webhook delivery and merchant polling are independent and may occur in either order. Fulfill the order after a verifiedpayment.completed event or a payment lookup returns COMPLETED. Show the backend-confirmed status after a browser redirect. Deduplicate webhook deliveries by event_id and fulfill each order once, even when both the webhook and polling confirm payment. Use the amounts, currency, network, and address shown in Checkout. For other payment outcomes, use the status reported by Paiera.
Set notify_url for a payment-specific notification address, or configure an enabled Portal webhook that subscribes to the payment event. See Webhook rules for verification and acknowledgements.Authorizations
Use HTTP Basic authentication with api_key as username and api_secret as password. Obtain credentials in Portal > Settings > Developer.
Body
payment_currency and network must be supplied together or both omitted. Metadata keys must start with a letter and contain only letters, digits and underscores. Product quantity is a digit string.
Merchant payment reference. 1..64; letters, digits, underscores and hyphens. Yes.
1 - 64^[A-Za-z0-9_-]+$Order amount. Positive; at most 2 decimal places. Yes.
^(?!0+(?:\.0+)?$)[0-9]+(?:\.[0-9]{1,2})?$Order currency. 3 uppercase characters; valid currency enum. Yes.
3^[A-Z]{3}$Order description. 1..256. Yes.
1 - 256Non-empty product list; compact serialized JSON up to 2048 characters.
1Show child attributes
Show child attributes
Storage capacity reference: VARCHAR(1024) (shared capacity for the entire object).
Show child attributes
Show child attributes
Selected payment currency. Conditional.
USDT, USDC Payment network. Conditional.
ERC20, TRC20, BSC, SOLANA, ARBITRUM, POLYGON Merchant-defined JSON object. Its maximum length is 1,024, and every key at every nesting level must start with a letter and contain only letters, digits, and underscores.
Show child attributes
Show child attributes
Explicit webhook URL. Up to 256; HTTP/HTTPS with a valid host. No.
256^https?://Post-payment redirect URL. Up to 256; HTTP/HTTPS. No.
256^https?://Cancellation redirect URL. Up to 256; HTTP/HTTPS. No.
256^https?://Response
Create Payment successful
Business result code; success indicates a successful request
"success"Result message; success indicates a successful request
"success"Response time as a Unix timestamp in milliseconds
Declared response fields; null values may be omitted. payment_currency and network must be supplied together or both omitted. Metadata keys must start with a letter and contain only letters, digits and underscores. Product quantity is a digit string.
Show child attributes
Show child attributes
Whether the request succeeded
Trace ID used for troubleshooting
