Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solutionDOCS

      alipay.acquire.createandpay

      Auto-debit creation & payment interface -- alipay.acquire.createandpay

      Merchant creates trade through this Interface and conduct withholding payment or initiate payment with checkout counter under the circumstances that all conditions are met.


      #Request

      #Service address

      Environment

      HTTPS request URL

      Production environment

      https://intlmapi.alipay.com/gateway.do

      Test environment

      https://mapi.alipaydev.com/gateway.do

      #Request parameters

      ParameterType(length)DescriptionRequiredExample
      Basic parameter
      serviceStringService NameYalipay.acquire.createandpay
      partnerString(16)Partner ID that is composed of 16 digits beginning with 2088.Y2088101568358171
      _input_charsetStringThe charset with which the request data is encoded. UTF-8 is supported.Yutf-8
      sign_typeStringSign type. RSA2, RSA, and MD5 are supported. Use uppercase.YMD5
      signStringSign valueY85bf83f78d5cefb804bd805532fc688e
      notify_urlString(190)The URL for receiving asynchronous notifications after the payment is completed.Nhttp://api.test.alipay.net/atinterface/receive_notify.htm
      Business parameter
      out_trade_noString(64)Unique order ID in Alipay’s merchant websiteY4652151518967003
      subjectString(256)Goods title/trade tile/order subject/order key word etc.
      The length of this parameter is up to 128 Chinese characters.
      YPayment by sound wave –royalty distribution-sky
      product_codeString(32)

      Order placement used to distinguish the business type:

      The following 5 types are supported at present:

      • FOREX_GENERAL_WITHHOLDING: For auto debit.
      • GENERAL_WITHHOLDING: For China domestic auto debit.
      YFOREX_GENERAL_WITHHOLDING or GENERAL_WITHHOLDING
      total_feenumber (9,2)Total fee of this order. The range of values is [0.01, 100000000], such value can have up to two digits after the decimal point.Y10
      bodyString(400)Specific description of the trade. In case of a variety of goods, please accumulate the character strings descrbing the goods, and transmit the same to body.Niphone cellphone
      show_urlString(400)Hyperlink for the show of goods on the webpage of checkout counter.Nhttp://www.taobao.com/product/113714.html
      currencyString(8)Settlement currency.
      Currency and trans_currency cannot be different foreign currency.

      Y

      USD
      trans_currencyString(8)Pricing currency for the transaction, if it is not CNY, the CNY amount user will be charged will be calculated based on trans_currency and exchange rate.YUSD
      agreement_infoString(256)

      Be Used for transferring the agreement informaiotn between user and Alipay, json format, refer to agreement_info.

      Y{"agreement_no":"20141107000377985008"}
      extend_paramsString(128)

      Be used for transmitting specific business information of the merchant; this parameter will only be valid if merchant and Alipay agree to transmit this parameter and reach an agreement on the implication of this parameter.

      For example, store ID and other information under the circumstance that payment can be made through sound wave; such information shall be written in the format of json.

      Merchant direct-contract with Alipay: N

      System provider: Y

      {"STORE_ID":"BJ_ZZ_001","STORE_NAME":"Muku in the Dreieichstrabe","SECONDARY_MERCHANT_ID":"A80001","SECONDARY_MERCHANT_NAME":"Muku","SECONDARY_MERCHANT_ INDUSTRY":"7011"}
      trade_informationString(6000)

      Information about the trade industry. See trade_information for details.

      Y{"business_type":"1","hotel_name":"zlidu, sluhg-987, 889utng","check_in_time":"2018-10-20","check_out_time":"2018-10-22"}


      #trade_information

      ParameterType(length)DescriptionRequiredExample
      business_typeStringBusiness type. 5 types are supported.
      1: Hotel
      2: AIR
      3: Overseas study consulting
      4: Sales of goods
      5: Others, including all the other business types that do not fall into the above 4 categories. For example, mobile data service recharge, airport pick up service, etc.
      If more than one type is involved, separate type values with vertical bar (|).
      Y1|2|3|4|5
      or
      1
      hotel_nameStringHotel name that consists of numbers, letters, spaces, and special characters including ,.<>()[]/\-,. If more than one hotel name exists, separate values with vertical bar (|). Specify this field only when business_type is 1 (Hotel).Yzlidu, sluhg-987, 889utng
      check_in_timeDateCheck-in time. Format: yyyy-MM-dd. Timezone: GMT +8. Specify this field only when business_type is 1 (Hotel).Y2018-10-20
      check_out_timeDateCheck-out time. Format: yyyy-MM-dd. Timezone: GMT +8. Specify this field only when business_type is 1 (Hotel).Y2018-10-22
      flight_numberStringFlight number. If flight transfer exists, separate flight numbers with vertical bar (|). Specify this field only when business_type is 2 (AIR).YNWS 996|TWF 8854
      departure_timeDate

      Departure time.

      Format: yyyy-MM-dd HH:mm

      Timezone: GMT +8. 

      If flight transfer exists, separate time values with vertical bar (|). Specify this field only when business_type is 2 (AIR).

      Y2018-10-22 20:49
      admission_notice_urlStringIf business_type is 3 (Overseas study consulting), the URL of admission notice (image) must be specified.Yhttps://www.iconfont.cn/search/index?test
      goods_infoString

      Goods information that includes SKU names and corresponding quantities, in the format of SKU_name^quantity. If more than one goods exists, separate values with vertical bar (&#166;). Specify this field only when business_type is 4 (Sales of goods).

      Ypencil^2|eraser^5|iPhone XS 256G^1
      total_quantityNumberTotal quantities of all goods in one order. Specify this field only when business_type is 4 (Sales of goods).Y8
      other_business_typeStringIf business_type is 5 (Others), specify the business type in details.YAirport pick up service

      #agreement_info

      ParameterType(length)DescriptionRequiredExample
      agreement_noStringRepresent the agreement number that user signed in Alipay.such as agreement deduct number.N20141107000377985008



      #Response

      #Synchronous response

      ParameterType(length)DescriptionRequiredExample
      Basic parameters
      is_successString

      Request succeeds or not. Successful request does not mean the business is accepted and processed successfully.

      T: success

      F: failure

      YT
      sign_typeStringSign type. DSA, RSA, and MD5 are supported. Use uppercase.NMD5
      signStringSign valueNea489fc31da63253ba b52ed77fb45eb7
      errorString

      This parameter does not exist if request succeeds;

      This parameter is error coade if request fails; please refer to System errors

      NILLEGAL_SIGN
      Business parameters
      result_codeString(32)Response code of the processing result of order placement and payment; please refer to Business response codes.YORDER_SUCCESS_ PAY_SUCCESS
      trade_noString(64)Trade number of the trade in Alipay system 16 bits at least, 64 bits at most

      N

      2013112311001004940000384027
      out_trade_noString(64)Unique order ID in order system in corresponding merchant’s website other than Alipay trade number.Uniqueness of this parameter in merchant’s website shall be guaranteed. This is a parameter transmitted upon corresponding request, which shall be returned in its original shape.

      N

      7085502131376415
      buyer_user_idString(30)Unique Alipay user ID corresponding to Buyer’s Alipay logon ID.16 numbers beginning with 2088

      N

      2088102105236945
      buyer_logon_idString(100)Buyer’s Alipay logon ID, may be email or phone number. Part of information is hidden.

      N

      138****0011
      currencyString(8)Settlement currency. Same as the input.

      N

      CNY
      trans_currencyString(8)Pricing currency for the transaction. Same as the input.

      N

      CNY
      forex_rateStringExchange rate between foreign currency and CNY.

      N

      6.0939
      total_feeNumberTotal transaction amount of the order in CNY.

      N

      10.00
      trans_amountNumberTotal pricing of the order, in the pricing currency trans_currency. It will be null if the trans_currency is CNY

      N

      10.00
      detail_error_codeString(48)Give cause description to the response code returned. Please refer to Business errors. If the response code of result_code is ORDER_SUCCESS_PAY_S UCCESS, this parameter shall not be returned.

      N

      TRADE_BUYER_NOT_MATCH
      detail_error_desString(64)Give literal statement as to the detailed error code. If the response code of result_code is ORDER_SUCCESS_PAY_S UCCESS, this parameter shall not be returned.

      N

      Trade does not match with buyer
      display_messageString(64)Give literal statement as to the detailed error message. If the response code of result_code is ORDER_SUCCESS_PAY_S UCCESS, this parameter shall not be returned.

      N

      Trade does not match with buyer


      #Asynchronous response

      ParameterType(length)DescriptionRequiredExample

      Basic parameter

      notify_timeDateTime of sending notify. Format: yyyy-MM-dd
      HH:mm:ss

      Y

      2013-11-27 15:45:58
      notify_typeStringNotigy type

      Y

      trade_status_sync
      notify_idStringNotify authencitation ID

      Y

      ac05099524730693a8b
      330c5ecf72da978
      sign_typeStringSign type. DSA, RSA, and MD5 are supported. Use uppercase.

      Y

      MD5
      signStringSign value

      Y

      601510b7970e52cc63d b0f44997cf70e
      notify_action_typeString

      Notify action type:

      Create: createDirectPayTradeBy BuyerAction

      Pay: payByAccountAction

      Refund: refundFPAction

      Cancel: reverseAction

      Close: closeTradeAction

      Finish: finishFPAction

      NpayByAccountAction
      Business parameter
      out_trade_noString(64)Unique order ID in order system in ccorresponding merchant’s website other than Alipay trade number.
      Uniqueness of this parameter in merchant’s website shall be guaranteed. This is a parameter transmitted upon corresponding request, which shall be returned in its orginal shape.

      N

      5431395578198135
      subjectString(256)Goods title/trade tile/order subject/order key word etc.
      This pramater is in the first column in Alipay trade details and is important for account checking. This is a parameter transmitted upon corresponding request, which shall be returned in its orginal shape.

      N

      soundwave_pay-royalty distribution-sky
      trade_noString(64)Trade number of the trade in Alipay system
      16 bits at least, 64 bits at most

      N

      2013112711001004940 
      000394507
      trade_statusStringPlease refer to Trade Status for the value range of current trade status

      N

      WAIT_BUYER_PAY
      gmt_createDateTime of creating this trade. Format: yyyy-MM-dd HH:mm:ss.

      N

      2013-11-27 15:45:57
      gmt_paymentDateTime of paying for this trade by buyer. Format: yyyy-MM-dd
      HH:mm:ss.

      N

      2013-11-27 15:45:57
      seller_emailString(100)Seller’s Alipay account, may be email and phone number

      N

      test@alitest.com
      buyer_emailString(100)Buyer’s Alipay account, may be email or phone number

      N

      13882390011
      seller_idString(30)Unique Alipay user ID corresponding to Seller’s Alipay account
      16 numbers beginning with 2088

      N

      2088101106499364
      buyer_idString(30)Unique Alipay user ID corresponding to buyer’s Alipay account
      16 numbers beginning with 2088

      N

      2088102105236945
      priceNumberThis is a price parameter transmitted upon corresponding request, which shall be returned in its orginal shape.

      N

      1.00
      quantityNumberThis is a quantity parameter transmitted upon corresponding request, which shall be returned in its orginal shape.

      N

      10
      total_feeNumberTotal transaction amount of the order in CNY.

      N

      10.00
      trans_amountNumberTotal pricing of the order, in the pricing currency trans_currency. It will be null if the trans_currency is CNY

      N

      10.00
      currencyString(8)Settlement currency

      N

      CNY
      trans_currencyString(8)Pricing currency

      N

      CNY
      forex_rateStringExchange rate between foreign currency and CNY

      N

      6.0939
      bodyString(400)Remark, description and details of the order.
      This is a body parameter transmitted upon corresponding request, which shall be returned in its orginal shape.

      N

      Hello
      refund_feeNumberRefunded amount returned in refund notify. Unit: Yuan.

      N

      1.00
      out_biz_noString(64)Merchant’s business ID, mainly refers to the refund application number returned in refund notify.

      N

      HZRF001
      paytools_pay_amountString(512)Information about the amount successfully paid through each channel; please refer to

      paytools_pay_amount.

      N

      [{"MCARD":"7.94"},{"TMPOINT":"1.69"},{"BANK CARD":"5.55"}]
      extra_common_paramString(256)This parameter returned upon corresponding request parameter:passback_parameters

      N

      test


      #paytools_pay_amount

      ParameterType(length)DescriptionRequiredExample
      ALIPAYA CCOUNTStringRepresent the amount paid by balance in Alipay account; unit: Yuan

      N

      1.23
      MCARDStringRepresent the amount paid by merchant’s prepaid card; unit: Yuan

      N

      7.94
      MDISCOUNTStringRepresent the amount paid by merchant’s discount coupon; unit: Yuan

      N

      1.23
      TMPOINTStringRepresent the amount paid by Tmall point; unit: Yuan

      N

      1.69
      COUPONStringRepresent the amount paid by coupon; unit: Yuan

      N

      1.23
      POINTStringRepresent the amount paid by Point Treasury; unit: Yuan

      N

      1.23
      DISCOUNTStringRepresent the amount paid by account discount; unit: Yuan

      N

      1.23
      BANKCARDStringRepresent the amount paid by bank card; unit: Yuan

      N

      5.55
      MONEYFUNDStringRepresent the amount paid by Balance Treasury; unit: Yuan

      N

      1.23
      BAITIAOStringThe payment amount which use blank note.
      Unit: RMB.

      N

      1.23
      MCOUPONstringThe payment amount which use red envelope.
      Unit: RMB

      N

      2.21
      PCARDStringThe payment amount which use Alipay card.
      Unit: RMB.

      N

      2.13
      PCREDITstringThe payment amount which use Alipay credit.
      Unit: RMB

      N

      1.23



      #Error codes

      #Business errors

      Error code

      Description

      ORDER_FAILThe ordering fails.
      ORDER_SUCCESS_PAY_SUCCESSBoth the ordering and the payment succeed.
      ORDER_SUCCESS_PAY_FAILThe ordering succeeds, but the payment fails.
      ORDER_SUCCESS_PAY_INPROCESSThe ordering succeeds and the payment is under processing.
      UNKNOWNThe processing result is unknown.


      #Business errors

      Error code

      Description

      TRADE_SETTLE_ERRORVerification of royalty distribution information fails.
      TRADE_BUYER_NOT_MATCHThe buyer is unmatched.
      CONTEXT_INCONSISTENTTrade information has been altered.
      TRADE_HAS_SUCCESSThe payment of trade has been made.
      TRADE_HAS_CLOSEThe trade has been closed.
      REASON_ILLEGAL_STATUSThe trade status is illegal.
      EXIST_FORBIDDEN_WORDBanned words are included in order information.
      PARTNER_ERRORPartner information is incorrect.
      ACCESS_FORBIDDENHas no right to use the product.
      SELLER_NOT_EXISTThe seller does not exist.
      BUYER_NOT_EXISTThe buyer does not exist.
      BUYER_ENABLE_STATUS_FORBIDThe buyer status is illegal and the trade cannot be continued.
      BUYER_SELLER_EQUALThe seller and the buyer have the same account and the trade cannot be conducted.
      INVALID_PARAMETERParameter is invalid.
      UN_SUPPORT_BIZ_TYPEUnsupported business type
      INVALID_RECEIVE_ACCOUNTThe seller is not included in receiving account list.
      BUYER_PAYMENT_AMOUNT_DAY_LIMIT_ERRORThe buyer’s payment on the payment day exceeds limit.
      ERROR_BUYER_CERTIFY_LEVEL_LIMITThe buyer fails to pass verification conducted by People’s Bank of China.
      ERROR_SELLER_CERTIFY_LEVEL_LIMITThe seller fails to pass verification conducted by People’s Bank of China.
      CLIENT_VERSION_NOT_MATCHThe wallet version is obsolete. Please update it to the latest version before use.
      AUTH_NO_ERROR

      Authorization number is wrong for which the possible reasons include:

      • The merchant owning the authorization number is not the same as the request merchant;
      • The payer owning the authorization number is not the same as the request payer;
      • The available capital under the authorization number is less than the request unlocked capital;
      • The status of the authorization number is not authorized;

      The receiver owning the authorization number is not the same as the request receiver.

      BUYER_BANKCARD_BALANCE_NOT_ENOUGHBuyer bankcard balance is not enough.
      PULL_MOBILE_CASHIER_FAILFail to pull mobile cashier.
      PAYMENT_FAILFail to payment.
      MOBILE_PAYMENT_SWITCH_OFFWireless switch is closed, unable to pay.
      SOUNDWAVE_PARSER_FAILSoundwave/barcode parse fail.
      ERROR_BALANCE_PAYMENT_DISABLEBalance payment function is closed.
      ORDER_UN_SUPPORT_PROMOTEThis order does not support the specified discount.
      BUYER_BALANCE_NOT_ENOUGHBuyer balance is not enough.
      SELLER_BEEN_BLOCKEDSeller account is blocked.
      BEYOND_PAY_RESTRICTIONBeyond pay restriction.
      BEYOND_PER_RECEIPT_RESTRICTIONThe seller amount receivable more than month restriction.
      TOTAL_FEE_EXCEEDOrder amount exceed the limit.
      VOUNCHER_NOT_EXISTMerchant coupons does not exist.
      BUYER_PAYMENT_COUNT_DAY_LIMIT_ERRORBuyer payment count of one day exceed the limit.
      BUYER_PAYMENT_COUNT_MONTH_LIMIT_ERRORBuyer payment count of one month exceed the limit.
      CLIENT_NOT_ONLINEUser client is not online, so that unable pull mobile cashier.
      TRADE_STATUS_ERRORTrade status error.
      BUYER_PAYMENT_AMOUNT_MONTH_LIMIT_ERRORBuyer payment amount of one month exceed the limit.
      PRODUCT_AMOUNT_LIMIT_ERRORProduct amount exceed the limit.
      PAYMENT_REQUEST_HAS_RISKPayment has risk.
      DUPLICATE_PAY_CURRENCY_NOT_EQUALDuplicate payment currency is inconsistent with the first payment currency.
      AGREEMENT_NOT_EXISTAgreement information is not exist.
      AGREEMENT_INVALIDAgreement is invalid.
      AGREEMENT_ERRORAbnormal agreement information.
      NO_PAYMENT_INSTRUMENTS_AVAILABLEThere is not available payment instruments.
      USER_LOGONID_DUPThe user’s logonid is duplicated with other people (special case when a user is using cell phone number as logon id)
      EXCHANGE_AMOUNT_OR_CURRENCY_ERRORThe exchange amount or currency is error


      #Access errors

      Error code

      Description

      ILLEGAL_SIGNIllegal signature.
      ILLEGAL_DYN_MD5_KEYDynamic key information is incorrect.
      ILLEGAL_ENCRYPTEncryption is incorrect.
      ILLEGAL_ARGUMENTParameter is incorrect.
      ILLEGAL_SERVICEService parameter is incorrect.
      ILLEGAL_USERUser ID is incorrect.
      ILLEGAL_PARTNERPartner ID is incorrect.
      ILLEGAL_EXTERFACEInterface configuration is incorrect.
      ILLEGAL_PARTNER_EXTERFACEPartner’s interface information is incorrect.
      ILLEGAL_SECURITY_PROFILEMatching private key configuration has not been found.
      ILLEGAL_AGENTAgency ID is incorrect.
      ILLEGAL_SIGN_TYPEThe signature type is incorrect.
      ILLEGAL_CHARSETThe character set is illegal.
      HAS_NO_PRIVILEGEHas no right to visit.
      INVALID_CHARACTER_SETThe character set is invalid.


      #System errors

      Error code

      Description

      SYSTEM_ERRORAlipay system error
      SESSION_TIMEOUTSession timeout
      ILLEGAL_TARGET_SERVICEWrong  target_service
      ILLEGAL_ACCESS_SWITCH_SYSTEMMerchant is not allowed to visit system of this type.
      EXTERFACE_IS_CLOSEDThe interface has been closed.


      #Trade status

      CodeDescription
      WAIT_BUYER_PAYThe trade has been established and is waiting for the buyer to make payment.
      TRADE_CLOSED
      • Trade closed whose payment has not been completed within specified time;
      • Trades closed whose payment has been fully returned when the trade completes.
      TRADE_SUCCESSThe trade succeeds and is operable, such as multi-level royalty distribution, refund, etc.
      TRADE_PENDINGWait for the seller to collect payment (if the seller’s account is frozen after the buyer has made the payment).
      TRADE_FINISHEDThe trade succeeds and finishes and is not operable.


      #Payment channel

      CodePayment channel
      00Alipay Coupon
      10Alipay balance
      60Alipay pre-deposit card
      30Points
      70Credit payment
      40Discount coupon
      80Prepaid card
      90Credit payment (consumption credit)
      100Special Alipay account for financial management
      101Merchant’s shop card
      102Merchant’s discount coupon
      103Blank note
      104Red envelope


      #Samples

      #Request sample

      http://intlmapi.alipay.com/gateway.do?sign=e624817634ecb0ebb7e0fe0bd8dc8c83&sign_type=MD5&_input_charset=utf-8&product_code=FOREX_GENERAL_WITHHOLDING&currency=SGD&agreement_info=%7B%22agreement_no%22%3A%2220160919512380190999%22%7D&partner=2088121123456783&notify_url=https%3A%2F%2Fpaysi-paygw.grabtaxi.com%2Fv1%2Fthirdparty%2Fnotification%2Falipay%2Fcharge%2F&subject=TEST+%28IOS-8838290-2-012%29&total_fee=14.30&trans_currency=SGD&it_b_pay=1h&out_trade_no=84a9fbebc3eb44fcb4bfce70c98bf08c&buyer_id=2088602228546999&service=alipay.acquire.createandpay


      #Response sample

      #Synchronous response sample

      Business is accepted and processed normally, and acquiring is created successfully:


      copy
      <?xml version="1.0" encoding="utf-8"?>
      <alipay>
      <is_success>T</is_success>
      <request><param name="body">soundwave_pay-royalty-sky</param>
      <param name="operator_id">55</param><param name="subject">soundwave_pay-royalty-sky</param>
      <param name="sign_type">MD5</param>
      <param name="out_trade_no">7085502131376415</param>
      <param name="dynamic_id">kfylrwezsbeqhh553e</param>
      <param name="royalty_parameters"> [{"serialNo":"1","transOut":"2088101126765726","transIn":"208810112670840
      2","amount":"1.00","desc":"royalty distribution test 1"}]
      </param>
      <param name="royalty_type">ROYALTY</param>
      <param name="total_fee">10</param>
      <param name="partner">2088101106499364</param>
      <param name="quantity">10</param>
      <param name="dynamic_id_type">soundwave</param>
      <param name="alipay_ca_request">2</param>
      <param name="sign">a1cb41a4019351965d4418c9cb933f0f</param>
      <param name="_input_charset">UTF-8</param>
      <param name="price">1</param>
      <param name="it_b_pay">1d</param>
      <param name="product_code">SOUNDWAVE_PAY_OFFLINE</param>
      <param name="service">alipay.acquire.createandpay</param>
      <param name="seller_id">2088101106499364</param>
      </request>
      <response>
      <alipay>
      <buyer_logon_id>138****0011</buyer_logon_id>
      <buyer_user_id>2088102105236945</buyer_user_id>
      <out_trade_no>7085502131376415</out_trade_no>
      <result_code>ORDER_SUCCESS_PAY_SUCCESS</result_code>
      <trade_no>2013112311001004940000384027</trade_no></alipay>
      </response>
      <sign>ea489fc31da63253bab52ed77fb45eb7</sign>
      <sign_type>MD5</sign_type>
      </alipay>


      Request succeeds, business processing fails:

      copy
      <?xml version="1.0" encoding="utf-8"?>
      <alipay>
      <is_success>T</is_success>
      <request><param name="body">soundwave_pay-royalty distribution-sky</param>
      <param name="operator_id">55</param><param name="subject">soundwave_pay-royalty distribution-sky</param>
      <param name="sign_type">MD5</param>
      <param name="out_trade_no">7085502131376415</param>
      <param name="dynamic_id">kfylrwezsbeqhh553e</param>
      <param name="royalty_parameters"> [{"serialNo":"1","transOut":"2088101126765726","transIn":"208810112670840
      2", "amount":"1.00", "desc":"royalty distribution test 1"}]
      </param>
      <param name="royalty_type">ROYALTY</param>
      <param name="total_fee">10</param>
      <param name="partner">2088101106499364</param>
      <param name="quantity">10</param>
      <param name="dynamic_id_type">soundwave</param>
      <param name="alipay_ca_request">2</param>
      <param name="sign">a1cb41a4019351965d4418c9cb933f0f</param>
      <param name="_input_charset">UTF-8</param>
      <param name="price">1</param>
      <param name="it_b_pay">1d</param>
      <param name="product_code">SOUNDWAVE_PAY_OFFLINE</param>
      <param name="service">alipay.acquire.createandpay</param>
      <param name="seller_id">2088101106499364</param>
      </request>
      <response>
      <alipay>
      <result_code>ORDER_FAIL</result_code>
      <detail_error_code>TRADE_BUYER_NOT_MATCH</detail_error_code><detail_error_des>trade does not match with buyer</detail_error_des>
      <trade_no>2013112311001004940000384027</trade_no>
      </alipay>
      </response>
      <sign>ea489fc31da63253bab52ed77fb45eb7</sign>
      <sign_type>MD5</sign_type>
      </alipay>


      Output when Request fails or the data accessed is wrong:

      copy
      <?xml version="1.0" encoding="utf-8"?>
      <alipay>
      <is_success>F</is_success>
      <error>ILLEGAL_SIGN</error>
      </alipay>


      #Asynchronous response sample

      http://address defined by merchant/alipay/notify_url.php?notify_id=ac05099524730693a8b330c5ecf72da978&seller_email=zhuzhanghu%40alitest.com&notify_type=trade_status_sync&buyer_email=13882390011&sign=601510b7970e52cc63db0f44997cf70e&trade_no=2013112711001004940000394507&buyer_id=2088102105236945&quantity=10&total_fee=10.00&price=1.00&gmt_create=2013-11-27+15%3A45%3A57&out_trade_no=5431395578198135&seller_id=2088101106499364&notify_time=2013-11-27+15%3A45%3A58&subject=%E5%A3%B0%E6%B3%A2%E6%94%AF%E4% BB%98-%E5%88%86%E8%B4%A6-sky&trade_status=WAIT_BUYER_PAY&sign_type=MD5