Get Proof Link
Get a proof page access link by merchant order number.
Endpoint
GET/proof/linkAuthentication
Merchant Credential. See Authentication.
Background
Using the merchant order number mchOrderNo, the merchant obtains the proof page access link proofUrl for its own cashout order. The proof type is specified by proofType; currently only APS (cashout order) is supported.
Retrieval Rules
- Only the authenticated merchant's own orders can be queried;
mchOrderNomust match the merchant order number used when placing the payout order, andproofTypemust match the actual type of that order. - The payment proof must already exist. This API only returns an access link; it does not create proofs or change the order status.
- If the order or proof does not exist, no usable link is returned; when the proof does not exist, the status code is
1851(proof not found), see Response Status for status code meanings. Failure to obtain a proof does not mean the payment failed; confirm the transaction result via Query Cashout by Order SN. - Use the complete
proofUrlas-is and preserve itskeyquery parameter. The link should be kept as an access credential and shared only with the intended recipient; the example domain andkeyare for illustration only, and the complete URL actually returned takes precedence.
Request Fields
For authentication headers, see Authentication; they are not listed in the table below.
| Field | Location | Type | Length | Required | Description |
|---|---|---|---|---|---|
mchOrderNo | Query | string | 32 | Yes | Merchant order number used when placing the payout order; must not be blank and must not exceed 32 bytes. |
proofType | Query | string | 16 | No | Proof type; currently only APS (cashout order) is supported; defaults to APS when omitted. |
Request Example
GET /proof/link?mchOrderNo=CASHOUT202608160001 HTTP/1.1
X-Merchant-Id: 92315566000120
X-Timestamp: 1786845600
X-Nonce: 550e8400-e29b-41d4-a716-446655440000
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"GET requests carry no request body. In actual calls, use the current timestamp and a new random string, and compute the signature from the actual request path and the full query string; see Request Signing for details.
Response Fields
The API uses a unified status, msg, data response structure. The proof link is retrieved successfully only when status = 200 and data. is non-empty.
| Field | Type | Length | Returned | Description |
|---|---|---|---|---|
status | int | 4 | Yes | Response code; 200 means the request was processed successfully. |
msg | string | 128 | Yes | Message corresponding to status; sucesso on success. |
data | object | N/A | No | Proof link result; may be absent or null when the request processing fails. |
data. | string | 32 | On success | Merchant order number. |
data. | string | 64 | On success | Platform order number. |
data. | string | 128 | On success | Complete payment proof page access link, including the key query parameter; non-empty on success, and not the proof JSON or file content. |
When business processing fails, status is not 200 and the reason is given in msg; the link fields must not be used in that case. Failures before business processing, such as signature verification or protocol parsing, may result in data being absent.
Response Examples
Success response example:
{
"status": 200,
"msg": "sucesso",
"data": {
"mchOrderNo": "CASHOUT202608160001",
"platOrderNo": "APS202608160000000001",
"proofUrl": "https://proof.example.com/payment?key=PROOF_KEY"
}
}Proof-not-found response example (msg is the literal value 无法找到凭证, meaning "proof not found"):
{
"status": 1851,
"msg": "无法找到凭证",
"data": null
}