CrossPayFX API
Developers

Build on CrossPayFX

Signed APIs, idempotent requests and webhooks for predictable payment operations.

OpenAPI JSON 13 endpoints
Base URL https://crosspayfx.com
Authentication Merchant RSA signature / Checkout session token / Platform notification signature
Response format JSON: { code, message, data, request_id }
OpenAPI JSON Import this file into Postman, Swagger UI or any OpenAPI 3 client.

Authentication

Sign with RSA-SHA256 and send the base64 result as X-Sign. X-Timestamp has a 5-minute window; X-Nonce is single-use.

Merchant notification: the platform POSTs to your configured notify_url and signs the raw body with X-Platform-Sign. Verify it with the platform public key.

Hosted checkout endpoints use the opaque token from checkout_url instead of merchant RSA signatures.

Signature string (newline separated): METHOD, PATH, SORTED_QUERY, SHA256(RAW_BODY), MERCHANT_NO, TIMESTAMP, NONCE

Payments

2
POST /api/v1/payment-orders

Create a payment order or checkout session

Creates a payment order for the authenticated merchant. When method is omitted, a hosted checkout session is created and checkout_url is returned instead of an order. When method is card, qr or subscription, amount, country and currency are required (subscription create mode uses amount 0.00). Subscription orders return a QR code in pay_url; scan it to complete subscription or payment + subscription binding.

Merchant RSA signature Payments
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
JSON body
NameTypeRequiredDescriptionExample
merchant_order_no string Required Merchant-side order number, max 64 chars. Also used as the idempotency key. ORDER-20261114-001
method string Optional Acquiring method: card, qr or subscription. Omit to create a checkout session. card
amount string Optional Positive decimal string, max 2 decimal places. Required for card/qr; subscription pay mode requires > 0 and subscription create mode requires 0.00. 100.00
country string Optional ISO 3166-1 alpha-2 country code. Required when method is present; subscription supports RU only. RU
currency string Optional ISO 4217 three-letter currency code. Required when method is present; subscription supports RUB only. RUB
subscription_mode string Optional Subscription mode: create (subscription QR, amount 0) or pay (pay then bind subscription). Inferred from amount when omitted. create
client_login string Optional Merchant user identifier (email, phone or internal user id). Required when method=subscription. user-10001
account_bank string Optional Payer bank/operator ID. Required when method=subscription and subscription_mode=pay. 1000000001
description string Optional Order description, max 32 chars. Required when method=subscription. Monthly subscription
return_url string Optional HTTPS return URL after payment. https://merchant.example/return
notify_url string Optional HTTPS server notification URL. https://merchant.example/notify
lang string Optional Hosted checkout language: en, zh or ru. Defaults to en when method is omitted. en
card object Optional Card data. Required when method=card. Card data is never stored in logs.
card.card_number string Required 12-19 digits; spaces and hyphens are removed. 4000000000000000
card.cvv string Required 3-5 digits. 123
card.expiry_month string Optional Two-digit month, or use expiry. 11
card.expiry_year string Optional Two or four digit year, or use expiry. 2026
card.expiry string Optional Alternative expiry in MM/YY format. 11/26
card.email string Required Cardholder email. buyer@example.com
card.first_name string Required Cardholder first name. John
card.last_name string Required Cardholder last name. Doe
card.billing_info object Optional Optional billing address.
card.billing_info.bill_address string Optional Street address. 155 Osceola Rd
card.billing_info.bill_country string Optional Numeric country code. 840
card.billing_info.bill_state string Optional State or region. FL
card.billing_info.bill_city string Optional City. Belleair
card.billing_info.bill_zip string Optional Postal code. 33756
card.billing_info.bill_phone string Optional Phone number. 7275109811
Response
200 Payment order or checkout session created.
{
    "code": 0,
    "message": "OK",
    "data": {
        "order_no": "P20261114120000ABCDEF",
        "merchant_order_no": "ORDER-20261114-001",
        "method_code": "card",
        "country_code": "RU",
        "currency": "RUB",
        "amount": "100.00",
        "status": 3
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
401 Missing or invalid signature.
{
    "code": 1021,
    "message": "Unauthorized",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Invalid parameter or unavailable method.
{
    "code": 1001,
    "message": "Invalid parameter: amount",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
GET /api/v1/payment-orders/{merchant_order_no}

Query a payment order

Returns the latest local state of a payment order by merchant order number. Channel details are not exposed.

Merchant RSA signature Payments
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Path parameters
NameTypeRequiredDescriptionExample
merchant_order_no string Required Merchant order number. ORDER-20261114-001
Response
200 Payment order state.
{
    "code": 0,
    "message": "OK",
    "data": {
        "order_no": "P20261114120000ABCDEF",
        "merchant_order_no": "ORDER-20261114-001",
        "status": 3,
        "pay_url": null,
        "paid_at": null
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
404 Payment order not found.
{
    "code": 1004,
    "message": "Not found",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}

Beneficiaries

4
GET /api/v1/beneficiaries

List beneficiaries

Returns a paginated beneficiary list for the authenticated merchant. Account numbers are masked; ciphertext and hashes are never returned.

Merchant RSA signature Beneficiaries
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Query parameters
NameTypeRequiredDescriptionExample
page integer Optional Page number, default 1. 1
page_size integer Optional Page size, 1-100, default 10. 10
status integer Optional 1 enabled, 2 disabled; 0 means all. 0
kyc_status integer Optional 1 pending, 2 reviewing, 3 approved, 4 rejected; 0 means all. 0
name string Optional Partial beneficiary name. John
bank_code string Optional Exact bank code. SBER
Response
200 Beneficiary page.
{
    "code": 0,
    "message": "OK",
    "data": {
        "total": 1,
        "list": [
            {
                "id": 1,
                "name": "John Doe",
                "country_code": "RU",
                "currency": "RUB",
                "account_number_mask": "**** **** 1234",
                "status": 1,
                "kyc_status": 1
            }
        ]
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
POST /api/v1/beneficiaries

Create a beneficiary

Creates a beneficiary for payouts. The account number is encrypted at rest and returned only as a mask. SBP and bank accounts require a bank_code.

Merchant RSA signature Beneficiaries
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
JSON body
NameTypeRequiredDescriptionExample
beneficiary_type integer Required 1 person, 2 company, 3 merchant self. 1
name string Required Beneficiary name, max 128 chars. John Doe
country_code string Required ISO 3166-1 alpha-2 country code. RU
currency string Required ISO 4217 three-letter currency code. RUB
account_type integer Required 1 card, 2 SBP, 3 bank account. 2
account_number string Required Account number or card number, max 64 chars. 40817810000000000001
bank_code string Optional Bank code. Required for SBP and bank account types. SBER
Response
200 Beneficiary created.
{
    "code": 0,
    "message": "OK",
    "data": {
        "id": 1,
        "name": "John Doe",
        "country_code": "RU",
        "currency": "RUB",
        "account_type": 2,
        "account_number_mask": "**** **** 0001",
        "status": 1,
        "kyc_status": 1
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
409 Beneficiary already exists.
{
    "code": 1005,
    "message": "Beneficiary already exists",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Invalid parameter or disabled bank.
{
    "code": 1001,
    "message": "Invalid parameter: account_number",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
GET /api/v1/beneficiaries/{id}

Get a beneficiary

Returns one beneficiary owned by the authenticated merchant.

Merchant RSA signature Beneficiaries
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Path parameters
NameTypeRequiredDescriptionExample
id integer Required Beneficiary ID. 1
Response
200 Beneficiary detail.
{
    "code": 0,
    "message": "OK",
    "data": {
        "id": 1,
        "name": "John Doe",
        "country_code": "RU",
        "currency": "RUB",
        "account_number_mask": "**** **** 0001",
        "status": 1
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
404 Beneficiary not found.
{
    "code": 1004,
    "message": "Not found",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
POST /api/v1/beneficiaries/{id}/disable

Disable a beneficiary

Disables a beneficiary so it can no longer be used for new payouts. Existing payout records are not changed.

Merchant RSA signature Beneficiaries
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Path parameters
NameTypeRequiredDescriptionExample
id integer Required Beneficiary ID. 1
Response
200 Beneficiary disabled.
{
    "code": 0,
    "message": "OK",
    "data": {
        "id": 1,
        "status": 2
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
404 Beneficiary not found.
{
    "code": 1004,
    "message": "Not found",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}

Payouts

3
POST /api/v1/payouts

Create a payout

Creates a payout, withdrawal or third-party transfer for the authenticated merchant. Funds are frozen in a database transaction, then submitted upstream. The beneficiary country and currency must match the request.

Merchant RSA signature Payouts
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
JSON body
NameTypeRequiredDescriptionExample
payout_type integer Required 1 payout, 2 withdrawal, 3 third-party transfer. 1
country_code string Required ISO 3166-1 alpha-2 country code; must match the beneficiary. RU
currency string Required ISO 4217 currency; must match the beneficiary. RUB
amount string Required Positive integer string, no decimal point. 1000
beneficiary_id integer Required Enabled beneficiary owned by the merchant. 1
idempotency_key string Required Unique merchant idempotency key, max 64 chars. Repeating the same request returns the first result; different parameters conflict. PAYOUT-20261114-001
remarks string Optional Optional remark, max 256 chars. Supplier invoice 1001
Response
202 Payout accepted and submitted.
{
    "code": 0,
    "message": "Accepted",
    "data": {
        "payout": {
            "payout_no": "P20261114120000ABCDEF",
            "status": 2,
            "amount": "1000",
            "fee_amount": "0",
            "currency": "RUB"
        },
        "upstream_ok": true,
        "idempotent": false
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
409 Idempotency key conflicts with different parameters.
{
    "code": 1005,
    "message": "Idempotency key conflicts with different parameters",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Insufficient balance, invalid beneficiary or payout channel unavailable.
{
    "code": 1019,
    "message": "Insufficient available balance",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
GET /api/v1/payouts/{payout_no}

Get a payout

Returns the local state of one payout owned by the authenticated merchant. Account data is masked.

Merchant RSA signature Payouts
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Path parameters
NameTypeRequiredDescriptionExample
payout_no string Required Platform payout number. P20261114120000ABCDEF
Response
200 Payout detail.
{
    "code": 0,
    "message": "OK",
    "data": {
        "payout_no": "P20261114120000ABCDEF",
        "status": 4,
        "amount": "1000",
        "currency": "RUB",
        "account_number_mask": "**** **** 0001"
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
404 Payout not found.
{
    "code": 1004,
    "message": "Not found",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
POST /api/v1/payouts/{payout_no}/query

Query payout status upstream

Queries the payout state from the upstream channel and updates the local record when the upstream response is authoritative. Returns both the local payout and the upstream result.

Merchant RSA signature Payouts
Headers
NameTypeRequiredDescriptionExample
X-Merchant-No string Required 商户号(merchant_sn) M10001
X-Timestamp integer Required Unix 秒级时间戳,允许偏差 5 分钟 1770000000
X-Nonce string Required 16-64 位随机串,防重放 8f3c2a1b9d4e6f70
X-Sign string Required RSA-SHA256 签名(base64) base64-signature
Path parameters
NameTypeRequiredDescriptionExample
payout_no string Required Platform payout number. P20261114120000ABCDEF
Response
200 Local payout plus upstream query result.
{
    "code": 0,
    "message": "OK",
    "data": {
        "payout": {
            "payout_no": "P20261114120000ABCDEF",
            "status": 4
        },
        "upstream_ok": true,
        "upstream": {
            "code": 0,
            "result": {
                "status": "2"
            }
        }
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
404 Payout not found.
{
    "code": 1004,
    "message": "Not found",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}

Hosted checkout

3
GET /api/v1/checkout-sessions/{session_no}

Get checkout options

Returns the payment methods available for a hosted checkout session. The session token is required and is not a merchant RSA signature.

Checkout session token Hosted checkout
Path parameters
NameTypeRequiredDescriptionExample
session_no string Required Checkout session number. CS0123456789ABCDEF
Query parameters
NameTypeRequiredDescriptionExample
token string Required Opaque checkout token from checkout_url. 0123456789abcdef0123456789abcdef
Response
200 Available checkout methods.
{
    "code": 0,
    "message": "OK",
    "data": {
        "country_code": "RU",
        "currency": "RUB",
        "amount": "100.00",
        "methods": [
            "card",
            "subscription"
        ],
        "method_meta": [
            {
                "code": "card",
                "name_en": "Card",
                "name_zh": "银行卡",
                "name_ru": "Банковская карта",
                "icon": "fa-credit-card"
            },
            {
                "code": "subscription",
                "name_en": "Subscription",
                "name_zh": "订阅",
                "name_ru": "Подписка",
                "icon": "fa-repeat"
            }
        ],
        "theme": {
            "primary_color": "#2563EB",
            "logo_url": "",
            "title": ""
        }
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Invalid or expired session token.
{
    "code": 1030,
    "message": "Checkout session invalid or expired",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
GET /api/v1/checkout-sessions/{session_no}/status

Get checkout payment status

Returns the current payment status for the checkout session and actively queries the upstream channel for QR/card orders still in progress. The session token is required.

Checkout session token Hosted checkout
Path parameters
NameTypeRequiredDescriptionExample
session_no string Required Checkout session number. CS0123456789ABCDEF
Query parameters
NameTypeRequiredDescriptionExample
token string Required Opaque checkout token from checkout_url. 0123456789abcdef0123456789abcdef
Response
200 Checkout order status.
{
    "code": 0,
    "message": "OK",
    "data": {
        "order_no": "P20261114120000ABCDEF",
        "status": 3,
        "next_action": {
            "type": "qrcode",
            "url": "https://qr.nspk.ru/AD..."
        },
        "pay_url": "https://qr.nspk.ru/AD...",
        "pay_type": "qrcode",
        "error_code": null,
        "error_msg": null,
        "queried": true
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Invalid or expired session token.
{
    "code": 1030,
    "message": "Checkout session invalid or expired",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
POST /api/v1/checkout-sessions/{session_no}/pay

Submit a checkout payment

Submits a payment for a hosted checkout session. The token and method must match the session; card data is required for card payments, subscription fields are required for subscription payments, and card data is never stored in logs.

Checkout session token Hosted checkout
Path parameters
NameTypeRequiredDescriptionExample
session_no string Required Checkout session number. CS0123456789ABCDEF
JSON body
NameTypeRequiredDescriptionExample
token string Required Opaque checkout token. 0123456789abcdef0123456789abcdef
method string Required Payment method enabled for this session: card, qr or subscription. card
card object Optional Card data, required when method=card.
card.card_number string Required Card number, 12-19 digits. 4000000000000000
card.cvv string Required 3-5 digits. 123
card.expiry string Optional MM/YY, or use expiry_month and expiry_year. 11/26
card.email string Required Cardholder email. buyer@example.com
card.first_name string Required Cardholder first name. John
card.last_name string Required Cardholder last name. Doe
subscription_mode string Optional create for a zero-amount subscription QR, pay for payment + subscription binding; inferred from amount when omitted. create
client_login string Optional Merchant user identifier, required when method=subscription. user-10001
description string Optional Subscription description, max 32 chars, required when method=subscription. Monthly subscription
account_bank string Optional Bank/operator ID, required when method=subscription and amount > 0. 1000000001
Response
200 Payment created.
{
    "code": 0,
    "message": "OK",
    "data": {
        "order_no": "P20261114120000ABCDEF",
        "merchant_order_no": "ORDER-1001",
        "status": 3,
        "pay_url": "https://example.com/pay"
    },
    "request_id": "8f3c2a1b9d4e6f70"
}
409 Checkout submission already in progress.
{
    "code": 1032,
    "message": "Checkout submit in progress",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}
422 Token, method or card data invalid.
{
    "code": 1031,
    "message": "Checkout method unavailable",
    "data": null,
    "request_id": "8f3c2a1b9d4e6f70"
}

Merchant notifications

1
POST notify_url

Merchant payment result notification

The platform POSTs this JSON body to the notify_url supplied when the payment order is created. The URL is merchant-defined; notify_url is shown here as the target, not as a platform endpoint.

Signature: X-Platform-Sign = base64(RSA-SHA256(platform private key, raw request body)). Verify it with the platform public key over the exact received bytes; do not re-serialize the JSON before verification.

Retry: return any 2xx within 10 seconds. Non-2xx or timeout is retried about once per 60 seconds, up to 5 deliveries; later deliveries enter a dead-letter stream for manual handling.

Idempotency: the same event may be delivered more than once. Deduplicate by event_id and/or order_no; do not create duplicate business records.

Only status 4 (success) and 5 (failed) trigger notifications. If no notify_url was supplied, no notification is sent; use the payment query API instead.

Platform notification signature Merchant notifications
Headers
NameTypeRequiredDescriptionExample
Content-Type string Required Always application/json. application/json
X-Platform-Sign string Required base64(RSA-SHA256(platform private key, raw body)); verify with the platform public key. base64-signature
JSON body
NameTypeRequiredDescriptionExample
event_id string Required Unique delivery ID. Use it together with order_no to deduplicate repeated notifications. evt_7f3c2a1b9d4e6f70
merchant_order_no string Required Merchant order number supplied when creating the payment. M20261114001
order_no string Required Platform payment order number. P20261114120000ABCDEF
status integer Required 4 = success, 5 = failed. Only these final statuses trigger a merchant notification. 4
amount string Required Decimal string in the order currency. Do not parse as floating point. 100.00
currency string Required ISO 4217 currency code. USD
paid_at integer Optional Unix timestamp in seconds; null when the payment is not successful. 1794540479
request_id string Optional Platform request ID for tracing. 8f3c2a1b9d4e6f70
Example payload
{
    "event_id": "evt_7f3c2a1b9d4e6f70",
    "merchant_order_no": "M20261114001",
    "order_no": "P20261114120000ABCDEF",
    "status": 4,
    "amount": "100.00",
    "currency": "USD",
    "paid_at": 1794540479,
    "request_id": "8f3c2a1b9d4e6f70"
}
Response
200 Any 2xx response is accepted as success. The response body is ignored.
OK
500 Non-2xx, timeout or network error: the notification is retried.

Need integration help?

Contact the team for API credentials, corridor availability and integration review.

Contact Developer Support