alibaba.mos.fin.current.transac.create (MIS同步关联交易单)

MIS同步关联交易单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 RelatedTransactionMisDTO 必须 关联交易单主信息
  • └ submit_name
  • String
  • 必须
  • mayucheng
  • 提交人姓名
  • └ respective_period
  • Date
  • 必须
  • 2000-01-01 00:00:00
  • 所属期间
  • └ old_no
  • String
  • 必须
  • 1
  • 老系统唯一编号
  • └ remark
  • String
  • 可选
  • 1
  • 备注
  • └ attribute
  • String
  • 可选
  • {}
  • 属性
  • └ submit_id
  • String
  • 必须
  • 1
  • 提交人id
  • └ biz_type
  • Number
  • 必须
  • 1
  • 费用项业务类型,用来查询费用项信息
  • └ supplier_code
  • String
  • 必须
  • 1
  • 供应商编号
param1 RelatedTransactionDetailMisDTO 必须 关联交易单详情
  • └ amount
  • String
  • 必须
  • 0
  • 金额
  • └ receive_store_no
  • String
  • 必须
  • 1
  • 接收方门店编号
  • └ send_company_id
  • Number
  • 必须
  • 1
  • 发送方公司id
  • └ send_store_no
  • String
  • 必须
  • 1
  • 发送方门店编号
  • └ num
  • BigDecimal
  • 必须
  • 1
  • 数量
  • └ send_store_name
  • String
  • 必须
  • 1
  • 发送方门店名称
  • └ attribute
  • String
  • 可选
  • {}
  • 属性
  • └ receive_store_name
  • String
  • 必须
  • 1
  • 接收方门店名称
  • └ receive_company_id
  • Number
  • 必须
  • 1
  • 接收方公司id
  • └ send_department_code
  • String
  • 必须
  • 1
  • 部门编码
  • └ charge_type_id
  • String
  • 必须
  • 1
  • 费用项编码
  • └ receive_department_code
  • String
  • 必须
  • 1
  • 部门编码
  • └ respective_period
  • Date
  • 必须
  • 2000-01-01 00:00:00
  • 所属期间

响应参数

名称 类型 示例值 描述
trace_id String 1 trace_id
total String 1 total
data RelatedTransactionResponse [] com.alibaba.mos.current.data.dto.transaction.RelatedTransactionResponse
  • └ rt_id
  • Number
  • 1
  • 关联交易单主属性id
  • └ rt_detail_id_list
  • Number []
  • 关联交易单行数据id
is_async String 1 is_async
attributes Json {} attributes
initialize String 1 initialize
err_message String 1 err_message
status Boolean 1 1

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosFinCurrentTransacCreateRequest req = new AlibabaMosFinCurrentTransacCreateRequest();
AlibabaMosFinCurrentTransacCreateRequest.RelatedTransactionMisDTO obj1 = new AlibabaMosFinCurrentTransacCreateRequest.RelatedTransactionMisDTO();
obj1.setSubmitName("mayucheng");
obj1.setRespectivePeriod(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setOldNo("1");
obj1.setRemark("1");
obj1.setAttribute("{}");
obj1.setSubmitId("1");
obj1.setBizType(1L);
obj1.setSupplierCode("1");
req.setParam0(obj1);
AlibabaMosFinCurrentTransacCreateRequest.RelatedTransactionDetailMisDTO obj2 = new AlibabaMosFinCurrentTransacCreateRequest.RelatedTransactionDetailMisDTO();
obj2.setAmount("0");
obj2.setReceiveStoreNo("1");
obj2.setSendCompanyId(1L);
obj2.setSendStoreNo("1");
obj2.setNum("1");
obj2.setSendStoreName("1");
obj2.setAttribute("{}");
obj2.setReceiveStoreName("1");
obj2.setReceiveCompanyId(1L);
obj2.setSendDepartmentCode("1");
obj2.setChargeTypeId("1");
obj2.setReceiveDepartmentCode("1");
obj2.setRespectivePeriod(StringUtils.parseDateTime("2000-01-01 00:00:00"));
req.setParam1(obj2);
AlibabaMosFinCurrentTransacCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_fin_current_transac_create_response>
    <trace_id>1</trace_id>
    <total>1</total>
    <data>
        <related_transaction_response>
            <rt_id>1</rt_id>
        </related_transaction_response>
    </data>
    <is_async>1</is_async>
    <attributes>{}</attributes>
    <initialize>1</initialize>
    <err_message>1</err_message>
    <status>1</status>
</alibaba_mos_fin_current_transac_create_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

返回
顶部