Create Payment
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 verified payment.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

Authorization
string
header
required

Use HTTP Basic authentication with api_key as username and api_secret as password. Obtain credentials in Portal > Settings > Developer.

Body

application/json

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.

payment_reference_id
string
required

Merchant payment reference. 1..64; letters, digits, underscores and hyphens. Yes.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
order_amount
string
required

Order amount. Positive; at most 2 decimal places. Yes.

Pattern: ^(?!0+(?:\.0+)?$)[0-9]+(?:\.[0-9]{1,2})?$
order_currency
string
required

Order currency. 3 uppercase characters; valid currency enum. Yes.

Required string length: 3
Pattern: ^[A-Z]{3}$
description
string
required

Order description. 1..256. Yes.

Required string length: 1 - 256
products
object[]
required

Non-empty product list; compact serialized JSON up to 2048 characters.

Minimum array length: 1
customer
object
required

Storage capacity reference: VARCHAR(1024) (shared capacity for the entire object).

payment_currency
enum<string>

Selected payment currency. Conditional.

Available options:
USDT,
USDC
network
enum<string>

Payment network. Conditional.

Available options:
ERC20,
TRC20,
BSC,
SOLANA,
ARBITRUM,
POLYGON
metadata
object

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.

notify_url
string<uri>

Explicit webhook URL. Up to 256; HTTP/HTTPS with a valid host. No.

Maximum string length: 256
Pattern: ^https?://
redirect_url
string<uri>

Post-payment redirect URL. Up to 256; HTTP/HTTPS. No.

Maximum string length: 256
Pattern: ^https?://
cancel_url
string<uri>

Cancellation redirect URL. Up to 256; HTTP/HTTPS. No.

Maximum string length: 256
Pattern: ^https?://

Response

200 - application/json

Create Payment successful

code
string
required

Business result code; success indicates a successful request

Allowed value: "success"
message
string
required

Result message; success indicates a successful request

Allowed value: "success"
timestamp
integer<int64>
required

Response time as a Unix timestamp in milliseconds

data
object
required

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.

success
boolean
required

Whether the request succeeded

trace_id
string

Trace ID used for troubleshooting