alitrip.btrip.supplychain.vacation.order.payment.address (商旅度假-订单支付-获取收银台地址)

商旅度假-订单支付-获取收银台地址

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
vacation_payment_address_request VacationPaymentAddressRequest 必须 支付收银台获取参数
  • └ btrip_sub_order_id
  • String
  • 可选
  • 0
  • 子单id,不填或者0表示主单支付,大于0的值表示多次支付
  • └ btrip_order_id
  • String
  • 必须
  • 1012314154
  • 订单id
  • └ btrip_user_id
  • String
  • 必须
  • 123145
  • 商旅用户id

响应参数

名称 类型 示例值 描述
data VacationPaymentAddressResultDTO 收银台地址信息
  • └ url
  • String
  • https:xxx.com
  • 收银台地址
  • └ last_payment_timestamp
  • Number
  • 123124414
  • 最晚支付时间,毫秒时间戳
result_success Boolean true 请求是否成功
result_code String 200 结果码,200代表成功,其他失败
result_msg String Invalid Params 参数异常

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripSupplychainVacationOrderPaymentAddressRequest req = new AlitripBtripSupplychainVacationOrderPaymentAddressRequest();
AlitripBtripSupplychainVacationOrderPaymentAddressRequest.VacationPaymentAddressRequest obj1 = new AlitripBtripSupplychainVacationOrderPaymentAddressRequest.VacationPaymentAddressRequest();
obj1.setBtripSubOrderId("0");
obj1.setBtripOrderId("1012314154");
obj1.setBtripUserId("123145");
req.setVacationPaymentAddressRequest(obj1);
AlitripBtripSupplychainVacationOrderPaymentAddressResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_supplychain_vacation_order_payment_address_response>
    <data>
        <url>https:xxx.com</url>
        <last_payment_timestamp>123124414</last_payment_timestamp>
    </data>
    <result_success>true</result_success>
    <result_code>200</result_code>
    <result_msg>Invalid Params</result_msg>
</alitrip_btrip_supplychain_vacation_order_payment_address_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部