alibaba.icbu.quotation.post (供应商提交报价)

供应商对RFQ进行报价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
md5key String 可选 8cb02c2c9cf4e4fbefe4a77e4e5f31b4
  • 默认值:8cb02c2c9cf4e4fbefe4a77e4e5f31b4
  • 验证
    dto RfqQuotationRemoteDto 可选 报价DTO
    • └ details
    • String
    • 必须
    • have a cordial working relationship
    • 给买家留言
    • └ annex_files_str
    • String
    • 可选
    • fileId:0|fileSavePath:sdcdscdvfdvswejwieahssdcjdvdfv.jpg|fileFlag:add
    • 附件file_str,请通过调用alibaba.icbu.annex.upload结果作为入参
    • sample
    • RfqQuotationPriceRemoteDTO
    • 可选
    • 样本
    • └ remark
    • String
    • 可选
    • 备注
    • └ estimated_date
    • BigDecimal
    • 可选
    • 10
    • 预计时间
    • └ payment
    • String
    • 可选
    • Buyer/Supplier/Negotiable
    • 样品运费支付方
    • └ is_free
    • String
    • 可选
    • Y
    • 是否是免费
    • └ is_support
    • String
    • 可选
    • Y
    • 是否提供样本
    • price_list
    • PriceList []
    • 可选
    • 报价列表
    • └ port
    • String
    • 必须
    • Tin Can port Lagos
    • 目的港
    • └ shipping_terms
    • String
    • 必须
    • FOB
    • 发运条件
    • └ image_str
    • String
    • 可选
    • fileId:0|fileSavePath:sdcdscdvfdvswejwieahssdcjdvdfv.jpg|fileFlag:add|fileDestOrder:0|fileName:pic.jpg
    • 图片image_str,请通过调用alibaba.icbu.annex.upload结果作为入参如果是都个附件通过\r\n分割
    • └ model_num
    • String
    • 可选
    • 10
    • 产品编号
    • └ item_name
    • String
    • 必须
    • phone
    • 产品名称
    • └ fob_price
    • String
    • 必须
    • 100
    • 价格
    • └ quantity
    • String
    • 必须
    • 100
    • 数量
    • └ quantity_unit
    • String
    • 必须
    • Pieces
    • 数量单位
    • └ remark
    • String
    • 必须
    • 备注
    • └ fob_price_unit
    • String
    • 必须
    • USD
    • 价格单位
    • └ rfq_id
    • String
    • 必须
    • sdc34r4gfdvdv
    • RFQID
    • └ payment_terms
    • String
    • 必须
    • L/C
    • 付费条款
    • └ expiry_date
    • Date
    • 必须
    • 2018-12-12 00:00:00
    • 过期时间

    响应参数

    名称 类型 示例值 描述
    result RfqRemoteServiceResult null 请求返回结果信息
    • └ message
    • String
    • success
    • 错误信息
    • result
    • RfqQuotationRemoteDto
    • null
    • 返回结果信息
    • └ id
    • Number
    • 10000
    • 报价ID
    • └ err_type
    • String
    • ILLEGAL_TYPE
    • 错误类型
    • └ success
    • Boolean
    • true
    • 是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaIcbuQuotationPostRequest req = new AlibabaIcbuQuotationPostRequest();
    req.setMd5key("8cb02c2c9cf4e4fbefe4a77e4e5f31b4");
    AlibabaIcbuQuotationPostRequest.RfqQuotationRemoteDto obj1 = new AlibabaIcbuQuotationPostRequest.RfqQuotationRemoteDto();
    obj1.setDetails("have a cordial working relationship");
    obj1.setAnnexFilesStr("fileId:0|fileSavePath:sdcdscdvfdvswejwieahssdcjdvdfv.jpg|fileFlag:add");
    AlibabaIcbuQuotationPostRequest.RfqQuotationPriceRemoteDTO obj2 = new AlibabaIcbuQuotationPostRequest.RfqQuotationPriceRemoteDTO();
    obj2.setRemark("无");
    obj2.setEstimatedDate("10");
    obj2.setPayment("Buyer/Supplier/Negotiable");
    obj2.setIsFree("Y");
    obj2.setIsSupport("Y");
    obj1.setSample(obj2);
    List<AlibabaIcbuQuotationPostRequest.PriceList> list4 = new ArrayList<AlibabaIcbuQuotationPostRequest.PriceList>();
    AlibabaIcbuQuotationPostRequest.PriceList obj5 = new AlibabaIcbuQuotationPostRequest.PriceList();
    list4.add(obj5);
    obj5.setPort("Tin Can port Lagos");
    obj5.setShippingTerms("FOB");
    obj5.setImageStr("fileId:0|fileSavePath:sdcdscdvfdvswejwieahssdcjdvdfv.jpg|fileFlag:add|fileDestOrder:0|fileName:pic.jpg");
    obj5.setModelNum("10");
    obj5.setItemName("phone");
    obj5.setFobPrice("100");
    obj5.setQuantity("100");
    obj5.setQuantityUnit("Pieces");
    obj5.setRemark("无");
    obj5.setFobPriceUnit("USD");
    obj1.setPriceList(list4);
    obj1.setRfqId("sdc34r4gfdvdv");
    obj1.setPaymentTerms("L/C");
    obj1.setExpiryDate(StringUtils.parseDateTime("2018-12-12 00:00:00"));
    req.setDto(obj1);
    AlibabaIcbuQuotationPostResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_icbu_quotation_post_response>
        <result>
            <message>success</message>
            <result>
                <id>10000</id>
            </result>
            <err_type>ILLEGAL_TYPE</err_type>
            <success>true</success>
        </result>
    </alibaba_icbu_quotation_post_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

    返回
    顶部