/proof/link Get Proof Link
Background
Availability: this API is an external contract published for upcoming integration; the actual availability date is subject to the release confirmation.
Using the merchant order number mchOrderNo, the partner obtains an access link proofUrl to the proof page of a payout order belonging to one of its merchants. The proof type is specified by proofType; currently only APS (payout order) is supported.
The query scope is limited to the primary merchant ID in the X-Merchant-Id request header; subMerchantNo is not required. The subMerchantNo in the response is the merchant ID that owns the payout order found, so the partner can distribute the proof link to the corresponding merchant.
Endpoint
| Item | Value |
|---|---|
| Method | GET |
| Path | /proof/link |
| Content-Type | application/json |
| Purpose | Get the payment proof access link |
Access Requirements
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 (payout order); defaults to APS when omitted. |
Retrieval Rules
- Only orders of merchants under the currently authenticated partner may be queried;
mchOrderNomust match the merchant order number used in Create PIX Out, andproofTypemust match the order's actual type. - The payment proof must already exist. This API only generates an access link; it does not create the proof 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. Failing to get the proof does not mean the payment failed; confirm the transaction result through Query PIX Out. - Use the complete
proofUrlas-is and keep itskeyquery parameter. Treat the link as access to the proof and share it only with intended recipients; the example domain andkeyare for illustration only — the actually returned full URL prevails.
Request Example
GET /proof/link?mchOrderNo=CASHOUT202608160001 HTTP/1.1
Content-Type: application/json
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>"A GET request carries no body. For an actual call, use the current timestamp and a fresh random string, and compute the signature over the actual request path and the full query string; see Request Signing.
Response Fields
The API uses the standard status, msg, and data response structure. The proof link is obtained 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 omitted or null when the request fails. |
data. | string | 64 | On success | Partner-specific. Merchant ID that owns this payout order, identical to the subMerchantNo used in the original payout order placement. |
data. | string | 32 | On success | Merchant order number. |
data. | string | 64 | On success | Platform order number. |
data. | string | 128 | On success | Complete access link to the payment proof page, including the key query parameter; non-empty on success. It is not proof JSON or file content. |
When business processing fails, status is a value other than 200 and the reason is in msg; the link fields must not be used in that case. Failures before business processing, such as signature verification or protocol parsing, may return no data.
Response Examples
Success response example:
{
"status": 200,
"msg": "sucesso",
"data": {
"subMerchantNo": "SUBMERCHANT0001",
"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
}