Skip to main content

1. Overview

Description:
  • Generate payout voucher PDF files based on payout order numbers(Only when the order status is “Success” or “Failed”). When only one order number is provided, a single PDF file is returned; when multiple orders are provided, a ZIP package containing multiple PDFs is returned.
Request Method:
  • HTTP Method: POST
  • Content-Type: application/json
Endpoint: /common/voucher/pdf

2. Request Parameters

Request Body: JSON

3. Request Examples

3.1 Single Order Example (Returns PDF)

Sample Request Body:

3.2 Multiple Orders Example (Returns ZIP)

Sample Request Body:

4. Response Description

4.1 Success Response

  • HTTP Status Code: 200
  • Response Body: Binary file stream
    • When orderNos contains only one order:
      • Returns a single PDF file
      • Content-Type is usually application/pdf
    • When orderNos contains multiple orders:
      • Returns a ZIP package
      • Content-Type is usually application/zip
Recommendation:
  • Determine the file type based on the Content-Type response header and file size, and save the body as a binary file.
  • The file name can be defined by the merchant,or by the response header Content-Disposition ,for example: “attachment;filename*=UTF-8”vouchers_20251229200623.zip`.
  • The request time for this API interface will increase based on the number of orders, potentially reaching over 30 seconds. Please ensure the stability of the network.

4.2 Error Response

When parameter validation fails, signature verification fails, IP is not in the whitelist, or PDF/ZIP generation fails, the API returns a JSON error structure, for example:
Last modified on July 13, 2026