curl -X POST https://checkout.noxpay.io/v2/naas/submerchants/static_link \
-H "api-key: <key>" \
-H "X-Signature: <signed-body-signature>" \
-H "Content-Type: application/json" \
-d '{
"timestamp": "2026-05-27T14:30:00Z",
"payload": {
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado"
}
}'
import requests
body, sig = sign_envelope({
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado",
})
response = requests.post(
"https://checkout.noxpay.io/v2/naas/submerchants/static_link",
headers={"api-key": "<key>", "X-Signature": sig, "Content-Type": "application/json"},
data=body,
)
print(response.json())
const { body, signature } = signEnvelope({
correlation_id: "a1b2c3d4-e5f6-4789-abcd-000000000001",
link_path: "plano-basico",
currency_code: "TRX_USDT_S2UZ",
amount_fiat: 99.90,
webhook: "https://yourserver.com/payment-webhook",
return_url: "https://acme.com/obrigado",
});
const response = await fetch("https://checkout.noxpay.io/v2/naas/submerchants/static_link", {
method: "POST",
headers: { "api-key": "<key>", "X-Signature": signature, "Content-Type": "application/json" },
body,
});
const data = await response.json();
{ "link": "https://checkout.noxpay.io/pay/acmepay/plano-basico" }
{ "error": "link_path already exists for this sub-merchant" }
{ "error": "sub-merchant has no portal account" }
NaaS — Submerchant Management
Create Static Link
POST /v2/naas/submerchants/static_link — create a permanent static payment link for a sub-merchant.
curl -X POST https://checkout.noxpay.io/v2/naas/submerchants/static_link \
-H "api-key: <key>" \
-H "X-Signature: <signed-body-signature>" \
-H "Content-Type: application/json" \
-d '{
"timestamp": "2026-05-27T14:30:00Z",
"payload": {
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado"
}
}'
import requests
body, sig = sign_envelope({
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado",
})
response = requests.post(
"https://checkout.noxpay.io/v2/naas/submerchants/static_link",
headers={"api-key": "<key>", "X-Signature": sig, "Content-Type": "application/json"},
data=body,
)
print(response.json())
const { body, signature } = signEnvelope({
correlation_id: "a1b2c3d4-e5f6-4789-abcd-000000000001",
link_path: "plano-basico",
currency_code: "TRX_USDT_S2UZ",
amount_fiat: 99.90,
webhook: "https://yourserver.com/payment-webhook",
return_url: "https://acme.com/obrigado",
});
const response = await fetch("https://checkout.noxpay.io/v2/naas/submerchants/static_link", {
method: "POST",
headers: { "api-key": "<key>", "X-Signature": signature, "Content-Type": "application/json" },
body,
});
const data = await response.json();
{ "link": "https://checkout.noxpay.io/pay/acmepay/plano-basico" }
{ "error": "link_path already exists for this sub-merchant" }
{ "error": "sub-merchant has no portal account" }
Creates a static payment link for a sub-merchant. The link resolves the sub-merchant’s slug automatically and routes checkout through their account.
Response
The
correlation_id is required for this endpoint, but it does not go in the top-level envelope — pass it inside payload instead.The sub-merchant must have completed KYB and have a portal account.
link_path must be unique per sub-merchant and is permanent once created.Payload fields
| Field | Type | Required | Description |
|---|---|---|---|
correlation_id | string (UUID) | Yes | UUID returned by Enroll Sub-merchant. |
link_path | string | Yes | URL path segment. Letters, numbers, _ and - only. Max 32 characters. Must be unique per sub-merchant. |
currency_code | string | Yes | Currency code for this link (e.g. TRX_USDT_S2UZ, BTC). |
amount_fiat | number | No | Fixed BRL amount. Omit to allow the payer to enter the amount. |
amount_crypto | number | No | Fixed crypto amount. Mutually exclusive with amount_fiat. |
webhook | string | No | URL that receives a POST notification when the payment completes. |
return_url | string | No | URL the payer is redirected to after checkout. |
Response 201 Created
{ "link": "https://checkout.noxpay.io/pay/acmepay/plano-basico" }
link is constructed from the sub-merchant’s alias (set via Set Alias). If no alias has been set, an auto-generated slug is used.
400 — missing required fields; link_path format invalid; or link_path already exists for this sub-merchant.
404 — correlation_id not found or does not belong to this master merchant.
422 — sub-merchant has no portal account yet (KYB not completed).
curl -X POST https://checkout.noxpay.io/v2/naas/submerchants/static_link \
-H "api-key: <key>" \
-H "X-Signature: <signed-body-signature>" \
-H "Content-Type: application/json" \
-d '{
"timestamp": "2026-05-27T14:30:00Z",
"payload": {
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado"
}
}'
import requests
body, sig = sign_envelope({
"correlation_id": "a1b2c3d4-e5f6-4789-abcd-000000000001",
"link_path": "plano-basico",
"currency_code": "TRX_USDT_S2UZ",
"amount_fiat": 99.90,
"webhook": "https://yourserver.com/payment-webhook",
"return_url": "https://acme.com/obrigado",
})
response = requests.post(
"https://checkout.noxpay.io/v2/naas/submerchants/static_link",
headers={"api-key": "<key>", "X-Signature": sig, "Content-Type": "application/json"},
data=body,
)
print(response.json())
const { body, signature } = signEnvelope({
correlation_id: "a1b2c3d4-e5f6-4789-abcd-000000000001",
link_path: "plano-basico",
currency_code: "TRX_USDT_S2UZ",
amount_fiat: 99.90,
webhook: "https://yourserver.com/payment-webhook",
return_url: "https://acme.com/obrigado",
});
const response = await fetch("https://checkout.noxpay.io/v2/naas/submerchants/static_link", {
method: "POST",
headers: { "api-key": "<key>", "X-Signature": signature, "Content-Type": "application/json" },
body,
});
const data = await response.json();
{ "link": "https://checkout.noxpay.io/pay/acmepay/plano-basico" }
{ "error": "link_path already exists for this sub-merchant" }
{ "error": "sub-merchant has no portal account" }

