Alipay
communityChina leading digital payment platform by Ant Group with 1 billion+ users. Offers mobile payments, money transfers, financial services, and merchant payment integration.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
/gateway.doCreate a payment order for merchant checkout
Parameters
methodalipay.trade.page.payoptionalsubjectorder title (stringrequiredreturn_urlredirect URL (stringrequiredout_trade_nomerchant order ID (stringrequiredtotal_amountamount in CNY (stringrequiredReturns
payment_url, trade_no, out_trade_noPOST
/gateway.doQuery the status of a payment
Parameters
methodalipay.trade.queryoptionalout_trade_nomerchant order ID (stringrequiredReturns
trade_no, status, total_amount, buyer_id, pay_timePOST
/gateway.doProcess a refund for a completed payment
Parameters
methodalipay.trade.refundoptionaltrade_noAlipay trade ID (stringrequiredrefund_amountamount to refund in CNY (stringrequiredrefund_reasonstringoptionalReturns
refund_id, status, refund_amount, refund_timePOST
/gateway.doTransfer funds to Alipay user
Parameters
amountCNY amount (stringrequiredmethodalipay.fund.trans.uni.transferoptionalout_biz_notransfer order ID (stringrequiredpayee_inforecipient account info (objectrequiredReturns
order_id, status, amount, pay_date