Auto-deduct Voucher

POST /api/open/alipay/v1/merchant/order/sync

This page discuss the extended information for auto-deduct voucher scenarios, please also check the base API.

Order Status


Notification can start from any status below and status can be skipped if necessary, but not in reverse.

Order Status

Description

Card Wallet Display

TICKETED

When the voucher is issued.

Issue voucher in Card Wallet.

image.png



Below is the extra fields of this scenario, please also check the base API fields.

Request parameters

tradeNo string  

The transaction number provided by Alipay.

amount object  

The original amount of this order.

Show child parameters

payAmount object  

The actual amount user paid for this order.

Show child parameters

extInfo object  REQUIRED

Show child parameters

Response parameters

result Result  REQUIRED

A metadata object indicates the result of the request.

Show child parameters

orderId string  REQUIRED

The order ID from AlipayHK

orderStatus string  REQUIRED

Refer 'Order Status' tab above.

distributeResult Array<OrderDataDistributeInfo>  REQUIRED

Business result

Show child parameters
API Explorer

Request

Case
Gift Card
Request Body

Response

Response Body

Result/Error codes

CodeValueMessageFurther action
SUCCESSSsuccess

success

PARAM_ILLEGALFRequest is invalid, usually missing parameters.
ORDER_STATUS_INVALIDFThe order status is illegal. The status is not matched or the state machine does not support changes to this status
UNKNOWN_EXCEPTIONUUnknown error. Merchants can try later first & contact with AlipayHK
UN_SUPPORT_BUSINESSFThe service is not supported. eg: The merchant is not onboard & the API is offline