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

Receive signed merchant notification

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

POST /payments/zhifux/notify

Public signed post_form callback for the configured merchant, limited to 8192 body bytes. Verifies exact saved intent and commits an immutable receipt before acknowledgement. Unsigned extra fields are ignored and never authorize funding or closure. Independent authenticated query gates funding. Post-body receipt processing has a two-second deadline; errors and timeout must be retried by the sender. Browser return URLs are not accepted as evidence.

Operation: receiveZhifuxNotification.

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 POST "$NIU_ORIGIN/payments/zhifux/notify" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-binary @request-body

No path, query, or header parameters are declared.

Required.

JSON
{
"type": "object",
"required": [
"merchantNum",
"orderNo",
"amount",
"state",
"sign"
],
"properties": {
"merchantNum": {
"type": "string"
},
"orderNo": {
"type": "string",
"pattern": "^[0-9a-f]{32}$"
},
"amount": {
"type": "string",
"description": "Exact requested decimal CNY amount from the saved intent."
},
"state": {
"type": "string",
"enum": [
"1"
]
},
"sign": {
"type": "string",
"pattern": "^[0-9a-f]{32}$"
}
}
}

Durable verified receipt accepted; does not mean paid or funded

Content type: text/plain.

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

Invalid signed evidence or malformed form

Saved merchant order missing

Body exceeds 8192 bytes

Form content type required

Required form field missing

Integration unavailable or receipt processing timed out; retry notification

Durable receipt storage unavailable; retry notification

Public signed post_form callback for the configured merchant, limited to 8192 body bytes. Verifies exact saved intent and commits an immutable receipt before acknowledgement. Unsigned extra fields are ignored and never authorize funding or closure. Independent authenticated query gates funding. Post-body receipt processing has a two-second deadline; errors and timeout must be retried by the sender. Browser return URLs are not accepted as evidence.