trade.get( 獲取單筆交易的部分資訊)介面

chatGPT發表於2023-02-11

一、公共引數

  1. 請求地址:


  2. trade.get( 獲取單筆交易的部分資訊)介面

    2.公共請求引數

3.公共響應引數


二、請求引數

三、響應引數

四、請求示例

$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TradeGetRequest;
$req->setFields("tid,type,status,payment,orders");
$req->setTid("123456789");
$resp = $c->execute($req, $sessionKey);

五、響應示例

<trade_get_response>
    <trade>
        <seller_nick>我在測試</seller_nick>
        <buyer_nick>我在測試</buyer_nick>
        <title>麥包包</title>
        <type>fixed(一口價)</type>
        <created>2000-01-01 00:00:00</created>
        <sid>NP1021246146</sid>
        <tid>2231958349</tid>
        <seller_rate>true</seller_rate>
        <buyer_rate>true</buyer_rate>
        <status>TRADE_NO_CREATE_PAY</status>
        <payment>200.07</payment>
        <discount_fee>200.07</discount_fee>
        <adjust_fee>200.07</adjust_fee>
        <post_fee>200.07</post_fee>
        <total_fee>200.07</total_fee>
        <pay_time>2000-01-01 00:00:00</pay_time>
        <end_time>2000-01-01 00:00:00</end_time>
        <modified>2000-01-01 00:00:00</modified>
        <consign_time>2000-01-01 00:00:00</consign_time>
        <received_payment>200.07</received_payment>
        <commission_fee>200.07</commission_fee>
        <buyer_memo>上衣要大一號</buyer_memo>
        <seller_memo>好的</seller_memo>
        <alipay_no>2009112081173831</alipay_no>
        <buyer_message>要送的禮物的,不要忘記的哦</buyer_message>
        <pic_path>
        <num_iid>3424234</num_iid>
        <price>200.07</price>
        <cod_fee>12.07</cod_fee>
        <cod_status>EW_CREATED(訂單已建立)</cod_status>
        <shipping_type>free</shipping_type>
        <num>1</num>
        <point_fee>0</point_fee>
        <real_point_fee>0</real_point_fee>
        <buyer_obtain_point_fee>0</buyer_obtain_point_fee>
        <is_daixiao>true</is_daixiao>
        <is_wt>true</is_wt>
        <arrive_interval>1</arrive_interval>
        <arrive_cut_time>16:00</arrive_cut_time>
        <consign_interval>48</consign_interval>
        <service_tags>
            <logistics_tag>
                <order_id>123456</order_id>
                <logistic_service_tag_list>
                    <logistic_service_tag>
                        <service_tag>comFee=1211;comTim=1;companyCode=SF;</service_tag>
                        <service_type>FAST</service_type>
                    </logistic_service_tag>
                </logistic_service_tag_list>
            </logistics_tag>
        </service_tags>
        <o2o>crm</o2o>
        <o2o_guide_id>123456</o2o_guide_id>
        <o2o_guide_name>西湖門店導購員1</o2o_guide_name>
        <o2o_shop_id>123456</o2o_shop_id>
        <o2o_shop_name>西湖門店</o2o_shop_name>
        <o2o_delivery>inshop</o2o_delivery>
        <o2o_out_trade_id>123456</o2o_out_trade_id>
        <orders>
            <order>
                <title>山寨版測試機器</title>
                <pic_path>
                <price>200.07</price>
                <num_iid>2342344</num_iid>
                <sku_id>5937146</sku_id>
                <refund_status>SUCCESS(退款成功)</refund_status>
                <status>TRADE_NO_CREATE_PAY</status>
                <oid>2231958349</oid>
                <total_fee>200.07</total_fee>
                <payment>200.07</payment>
                <discount_fee>200.07</discount_fee>
                <adjust_fee>1.01</adjust_fee>
                <divide_order_fee>21.00</divide_order_fee>
                <part_mjz_discount>21.00</part_mjz_discount>
                <sku_properties_name>顏色:桔色;尺碼:M</sku_properties_name>
                <item_meal_name>M8原裝電池:便攜支架:M8專用座充:莫凡保護袋</item_meal_name>
                <num>1</num>
                <outer_sku_id>81893848</outer_sku_id>
                <outer_iid>152e442aefe88dd41cb0879232c0dcb0</outer_iid>
                <buyer_rate>true</buyer_rate>
                <seller_rate>true</seller_rate>
                <seller_type>B(商城商家)</seller_type>
                <is_daixiao>true</is_daixiao>
                <ticket_outer_id>123456abcd</ticket_outer_id>
                <ticket_expdate_key>100FFFFFF02374020000002001020304000A</ticket_expdate_key>
                <is_www>true</is_www>
                <store_code>南京QDHEWL-0004</store_code>
                <tmser_spu_code>裝潢干支裝服務</tmser_spu_code>
                <et_ser_time>2015-04-15 13:00</et_ser_time>
                <et_shop_name>測試預約門店地址</et_shop_name>
                <et_verified_shop_name>測試核銷門店地址</et_verified_shop_name>
                <et_plate_number>浙A11111</et_plate_number>
                <sub_order_tax_fee>0</sub_order_tax_fee>
                <sub_order_tax_rate>0</sub_order_tax_rate>
                <zhengji_status>1</zhengji_status>
                <sub_order_tax_promotion_fee>0</sub_order_tax_promotion_fee>
                <tax_free>true</tax_free>
                <tax_coupon_discount>0</tax_coupon_discount>
                <special_refund_type>priceProtect</special_refund_type>
                <is_devalue_fee>true</is_devalue_fee>
            </order>
        </orders>
        <et_ser_time>2015-04-15 13:00</et_ser_time>
        <et_shop_name>介面測試新增門店_0304055043555</et_shop_name>
        <et_verified_shop_name>測試核銷門店地址</et_verified_shop_name>
        <et_plate_number>浙A11111</et_plate_number>
        <order_tax_fee>0</order_tax_fee>
        <eticket_service_addr>杭州市賣魚橋小學</eticket_service_addr>
        <o2o_et_order_id>193753681999224</o2o_et_order_id>
        <order_tax_promotion_fee>0</order_tax_promotion_fee>
        <pmtp>GAP_MCARD^1001|</pmtp>
        <buyer_open_uid>AAHk5d-EAAeGwJedwSFu0XXX</buyer_open_uid>
    </trade></trade_get_response>

六、異常示例

<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法引數</sub_msg></error_response>

七、錯誤碼解釋

八、API工具

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70026630/viewspace-2934882/,如需轉載,請註明出處,否則將追究法律責任。

相關文章