文档中心 > API类目 > 银泰开放平台(内部)

alibaba.mos.current.receivable.bill.create (创建租赁应收单据)

创建租赁应收单据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
receivable_bill_dto ReceivableBillDto 可选 应收账单实体
  • └ tax_exclude_amount
  • Number
  • 可选
  • 1
  • 不含税金额
  • └ gmt_modified
  • Date
  • 可选
  • 2021-08-04 11:12:13
  • 修改时间
  • └ counter_no
  • String
  • 可选
  • 1
  • 专柜号
  • └ old_no
  • String
  • 可选
  • 1
  • 结算单号
  • └ department_code
  • String
  • 可选
  • 1
  • 部门编号
  • └ creator_id
  • String
  • 可选
  • 1
  • 创建人id
  • └ creator_name
  • String
  • 可选
  • 系统
  • 创建人名称
  • └ discount_amount
  • Number
  • 可选
  • 1
  • 优惠金额
  • └ ou_code
  • String
  • 可选
  • I57
  • OUCode
  • └ supplier_code
  • String
  • 可选
  • 1
  • 供应商编号
  • └ consume_date
  • Date
  • 可选
  • 2021-08-04 11:12:13
  • 核销日期
  • └ source
  • String
  • 可选
  • 1
  • 来源
  • └ change_amount
  • Number
  • 可选
  • 1
  • 修改金额
  • └ batch_id
  • Number
  • 可选
  • 1
  • 结算批次号
  • └ type
  • Number
  • 可选
  • 5
  • 类型:5,租金 6,费用账单
  • └ counter_name
  • String
  • 可选
  • 专柜名称
  • 专柜名称
  • └ is_first
  • Number
  • 可选
  • 1
  • 是否首期 1是 0否
  • └ area_name
  • String
  • 可选
  • 柜区名称
  • 柜区名称
  • └ limit
  • Number
  • 可选
  • -1
  • 截断 不需要传
  • └ store_name
  • String
  • 可选
  • HZ01
  • 门店名称
  • └ id
  • Number
  • 可选
  • 1
  • id
  • └ supplier_name
  • String
  • 可选
  • 1
  • 供应商名称
  • └ department_name
  • String
  • 可选
  • 1
  • 部门名称
  • └ brand_name
  • String
  • 可选
  • 1
  • 品牌名称
  • └ start
  • Number
  • 可选
  • -1
  • 开始位置 不需要传
  • └ adjust_amount
  • Number
  • 可选
  • 1
  • 调整金额
  • └ received_amount
  • Number
  • 可选
  • 1
  • 已付金额
  • └ gmt_create
  • Date
  • 可选
  • 2021-08-04 11:12:13
  • 创建时间
  • └ version
  • Number
  • 可选
  • 1
  • 版本号
  • └ ou_name
  • String
  • 可选
  • 1
  • ou 名称
  • └ tags
  • String
  • 可选
  • 1
  • 标记
  • └ receive_amount
  • Number
  • 可选
  • 1
  • 应收金额
  • └ store_no
  • String
  • 可选
  • 1
  • 门店号
  • └ area_code
  • String
  • 可选
  • 1
  • 柜区编号
  • └ brand_id
  • Number
  • 可选
  • 1
  • 品牌id
  • └ contract_id
  • Number
  • 可选
  • 1
  • 合同id
  • └ after_adjust_amount
  • Number
  • 可选
  • 1
  • 调整后金额
  • └ sync_shop
  • Number
  • 可选
  • 1
  • 同步到商户中心 0-否 1-是
  • └ attributes
  • String
  • 可选
  • {}
  • 原对象json
  • └ statement_status
  • Number
  • 可选
  • 1
  • 结算状态 1未结算,2部分结算,3已结算,4取消
  • └ tax_amount
  • Number
  • 可选
  • 1
  • 税额
  • └ contract_code
  • String
  • 可选
  • 1
  • 合同号
  • └ booking_month
  • String
  • 可选
  • 2021-09-01
  • 记账月
  • └ currency_code
  • String
  • 可选
  • CNY
  • 货币编码
  • └ status
  • Number
  • 可选
  • 1
  • 状态:1,正常 2,待审核 0,不通过
receivable_bill_detail_dto ReceivableBillDetailDto [] 可选
  • 最大列表长度:999
  • 应收详情账单实体
    • └ tax_exclude_amount
    • Number
    • 可选
    • 1
    • 不含税金额
    • └ charge_type_id
    • String
    • 可选
    • 1
    • 费用类型id
    • └ gmt_modified
    • Date
    • 可选
    • 2021-08-04 11:12:13
    • 修改时间
    • └ charge_type_name
    • String
    • 可选
    • 1
    • 费用类型名称
    • └ end_date
    • Date
    • 可选
    • 2021-08-04 11:12:13
    • 费用结束日期
    • └ old_no
    • String
    • 可选
    • 1
    • 结算单号
    • └ discount_amount
    • Number
    • 可选
    • 1
    • 折扣金额
    • └ source
    • Number
    • 可选
    • 1
    • 单据来源
    • └ change_amount
    • Number
    • 可选
    • 1
    • 修改金额
    • └ limit
    • Number
    • 可选
    • 1
    • 截断 不需要传
    • └ id
    • Number
    • 可选
    • 1
    • id
    • └ receive_type
    • Number
    • 可选
    • 1
    • 收取方式(0:预收,1:一次性费用,2:固定金额,3:抽成保底,4:租赁费用新增,5:手续费)
    • └ start
    • Number
    • 可选
    • 1
    • 开始位置 不需要传
    • └ adjust_amount
    • Number
    • 可选
    • 1
    • 调整金额
    • └ received_amount
    • Number
    • 可选
    • 1
    • 已付金额
    • └ tax_code
    • String
    • 可选
    • 1
    • 税码
    • └ gmt_create
    • Date
    • 可选
    • 2021-08-04 11:12:13
    • 创建时间
    • └ version
    • Number
    • 可选
    • 0
    • 版本号
    • └ tags
    • String
    • 可选
    • 0
    • 字段标记
    • └ receive_amount
    • Number
    • 可选
    • 0
    • 应付金额
    • └ tax_rate
    • String
    • 可选
    • 0
    • 税率
    • └ bill_id
    • Number
    • 可选
    • 0
    • 账单id
    • └ after_adjust_amount
    • Number
    • 可选
    • 0
    • 调整后金额
    • └ attributes
    • String
    • 可选
    • 0
    • 原始对象的json数据
    • └ cost_number
    • String
    • 可选
    • 0
    • 数量:(电费:千瓦时)
    • └ tax_amount
    • Number
    • 可选
    • 0
    • 税额
    • └ currency_code
    • String
    • 可选
    • 0
    • 金额编码
    • └ start_date
    • Date
    • 可选
    • 2021-08-04 11:12:13
    • 费用开始日期
    • └ status
    • Number
    • 可选
    • 1
    • 状态(1未结算,2部分结算,3已结算,4取消)

    响应参数

    名称 类型 示例值 描述
    result MultiResult {} 返回结果
    • └ trace_id
    • String
    • 1
    • 追踪Id
    • └ total
    • Number
    • 1
    • 总数
    • └ async_result
    • String
    • {}
    • 异步结果
    • └ datas
    • String []
    • [{}]
    • 数据
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ err_code
    • String
    • 1
    • 错误码
    • └ is_async
    • Boolean
    • true
    • 是否异步
    • └ attributes
    • String
    • 1
    • 属性
    • └ initialize
    • Boolean
    • true
    • 初始化
    • └ err_message
    • String
    • 1
    • 错误消息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaMosCurrentReceivableBillCreateRequest req = new AlibabaMosCurrentReceivableBillCreateRequest();
    AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDto obj1 = new AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDto();
    obj1.setTaxExcludeAmount(1L);
    obj1.setGmtModified(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj1.setCounterNo("1");
    obj1.setOldNo("1");
    obj1.setDepartmentCode("1");
    obj1.setCreatorId("1");
    obj1.setCreatorName("系统");
    obj1.setDiscountAmount(1L);
    obj1.setOuCode("I57");
    obj1.setSupplierCode("1");
    obj1.setConsumeDate(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj1.setSource("1");
    obj1.setChangeAmount(1L);
    obj1.setBatchId(1L);
    obj1.setType(5L);
    obj1.setCounterName("专柜名称");
    obj1.setIsFirst(1L);
    obj1.setAreaName("柜区名称");
    obj1.setLimit(-1L);
    obj1.setStoreName("HZ01");
    obj1.setId(1L);
    obj1.setSupplierName("1");
    obj1.setDepartmentName("1");
    obj1.setBrandName("1");
    obj1.setStart(-1L);
    obj1.setAdjustAmount(1L);
    obj1.setReceivedAmount(1L);
    obj1.setGmtCreate(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj1.setVersion(1L);
    obj1.setOuName("1");
    obj1.setTags("1");
    obj1.setReceiveAmount(1L);
    obj1.setStoreNo("1");
    obj1.setAreaCode("1");
    obj1.setBrandId(1L);
    obj1.setContractId(1L);
    obj1.setAfterAdjustAmount(1L);
    obj1.setSyncShop(1L);
    obj1.setAttributes("{}");
    obj1.setStatementStatus(1L);
    obj1.setTaxAmount(1L);
    obj1.setContractCode("1");
    obj1.setBookingMonth("2021-09-01");
    obj1.setCurrencyCode("CNY");
    obj1.setStatus(1L);
    req.setReceivableBillDto(obj1);
    List<AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDetailDto> list3 = new ArrayList<AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDetailDto>();
    AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDetailDto obj4 = new AlibabaMosCurrentReceivableBillCreateRequest.ReceivableBillDetailDto();
    list3.add(obj4);
    obj4.setTaxExcludeAmount(1L);
    obj4.setChargeTypeId("1");
    obj4.setGmtModified(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj4.setChargeTypeName("1");
    obj4.setEndDate(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj4.setOldNo("1");
    obj4.setDiscountAmount(1L);
    obj4.setSource(1L);
    obj4.setChangeAmount(1L);
    obj4.setLimit(1L);
    obj4.setId(1L);
    obj4.setReceiveType(1L);
    obj4.setStart(1L);
    obj4.setAdjustAmount(1L);
    obj4.setReceivedAmount(1L);
    obj4.setTaxCode("1");
    obj4.setGmtCreate(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj4.setVersion(0L);
    obj4.setTags("0");
    obj4.setReceiveAmount(0L);
    obj4.setTaxRate("0");
    obj4.setBillId(0L);
    obj4.setAfterAdjustAmount(0L);
    obj4.setAttributes("0");
    obj4.setCostNumber("0");
    obj4.setTaxAmount(0L);
    obj4.setCurrencyCode("0");
    obj4.setStartDate(StringUtils.parseDateTime("2021-08-04 11:12:13"));
    obj4.setStatus(1L);
    req.setReceivableBillDetailDto(list3);
    AlibabaMosCurrentReceivableBillCreateResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_mos_current_receivable_bill_create_response>
        <result>
            <trace_id>1</trace_id>
            <total>1</total>
            <async_result>{}</async_result>
            <datas>
                <string>[{}]</string>
            </datas>
            <success>true</success>
            <err_code>1</err_code>
            <is_async>true</is_async>
            <attributes>1</attributes>
            <initialize>true</initialize>
            <err_message>1</err_message>
        </result>
    </alibaba_mos_current_receivable_bill_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

    返回
    顶部