Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

Receive a signed classic EPay query notification

Generated from the checked-in source. Do not edit this reference by hand.

GET /payments/epay/notify

Bounded to 8192 query bytes. Duplicate or unknown fields are rejected. Verifies the configured merchant and exact saved CNY order, method and amount before binding payment identity and funding exactly once. A browser return is never payment evidence. Post-input processing has a two-second deadline; timeout requires delivery retry. Merchant compatibility and live collection remain unqualified.

Operation: receiveEPayQueryNotification.

No OpenAPI security scheme is required. Other request validation still applies.

JSON
[]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/payments/epay/notify" \
--url-query 'pid=<PID>' \
--url-query 'out_trade_no=<OUT_TRADE_NO>' \
--url-query 'trade_no=<TRADE_NO>' \
--url-query 'type=<TYPE>' \
--url-query 'money=<MONEY>' \
--url-query 'trade_status=<TRADE_STATUS>' \
--url-query 'sign=<SIGN>' \
--url-query 'sign_type=<SIGN_TYPE>'

Location: query. Required.

JSON
{
"type": "string",
"pattern": "^[0-9]{1,32}$"
}

Location: query. Required.

JSON
{
"type": "string",
"pattern": "^[0-9a-f]{32}$"
}

Location: query. Required.

JSON
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
}

Location: query. Required.

JSON
{
"type": "string"
}

Location: query. Required.

JSON
{
"type": "string",
"description": "Exact decimal CNY matching the saved intent."
}

Location: query. Required.

JSON
{
"type": "string",
"const": "TRADE_SUCCESS"
}

Location: query. Required.

JSON
{
"type": "string",
"pattern": "^[0-9a-f]{32}$"
}

Location: query. Required.

JSON
{
"type": "string",
"const": "MD5"
}

Location: query. Optional.

JSON
{
"type": "string",
"maxLength": 1024
}

No request body is declared.

Verified payment committed or replayed; exactly one saved-order credit

Response headers:

JSON
{
"Cache-Control": {
"schema": {
"type": "string",
"const": "no-store"
}
}
}

Content type: text/plain.

JSON
{
"type": "string",
"const": "success"
}

Invalid notification, signature or saved-order evidence

Payment identity conflicts with an existing binding or another order

Integration unavailable or processing deadline exceeded; retry delivery

Durable storage unavailable; retry notification

Bounded to 8192 query bytes. Duplicate or unknown fields are rejected. Verifies the configured merchant and exact saved CNY order, method and amount before binding payment identity and funding exactly once. A browser return is never payment evidence. Post-input processing has a two-second deadline; timeout requires delivery retry. Merchant compatibility and live collection remain unqualified.

Supported scope: implemented