Skip to main content
POST
/
common
/
voucher
/
pdf
Voucher PDF/ZIP
curl --request POST \
  --url https://uat-interface.haipay.asia/common/voucher/pdf \
  --header 'Content-Type: application/json' \
  --data '
{
  "appId": 123,
  "orderNos": [
    "<string>"
  ],
  "sign": "<string>",
  "getFee": 123,
  "isAmount": 123,
  "getSubject": 123,
  "lang": "<string>"
}
'
"<string>"

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer<int64>
required

Business ID (obtained from the backend)

orderNos
string[]
required

Payout order number list, at least 1, max 100

sign
string
required

Signature

getFee
integer

Whether to display fee: 0=hide, 1=show, default: 0

isAmount
integer

Amount display mode: 0=actual credited amount, 1=order amount, default: 0

getSubject
integer

Whether to display remark: 0=hide, 1=show, default: 0

lang
string

Voucher language: zh/en, default: zh

Response

Success: single order returns PDF (application/pdf), multiple orders return ZIP (application/zip)

PDF file (single order)

Last modified on June 24, 2026