文档中心 > API类目 > 信息平台-采购

alibaba.infop.ceres.pr.create (目录商城pr下单接口)

目录pr下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pr_dto PrDto 可选 pr信息
  • └ interface_source_value
  • String
  • 必须
  • ANT_IOT
  • 来源系统
  • └ interface_source_code
  • String
  • 必须
  • 122
  • 来源系统单号
  • └ description
  • String
  • 必须
  • 123
  • 描述
  • └ ou_code
  • String
  • 必须
  • Z50
  • oucode
  • └ actual_requestor
  • String
  • 必须
  • 56771
  • 实际需求方工号
  • └ applicant
  • String
  • 必须
  • 56771
  • 申请人工号
  • pr_line_list
  • PrLineDto []
  • 可选
  • pr行
  • └ sku_id
  • String
  • 可选
  • 1
  • skuid
  • └ item_name
  • String
  • 必须
  • 1
  • 商品名称
  • └ category_code
  • String
  • 必须
  • IA05
  • 类目code
  • └ category_use
  • String
  • 必须
  • ANT_ZD_RCSY
  • 用途规则
  • └ bill_method
  • String
  • 必须
  • AMOUNT
  • 开单方式
  • └ need_by_date
  • Date
  • 可选
  • 2019-07-01 12:28:20
  • 需求时间
  • └ need_by_date_end
  • Date
  • 可选
  • 2019-07-01 12:30:20
  • 需求截止时间
  • └ acceptance_standard
  • String
  • 必须
  • 1
  • 验收标准
  • └ delivery_address_id
  • String
  • 可选
  • 1
  • 收货地址ID
  • └ delivery_address
  • String
  • 可选
  • hfjahf
  • 收货地址
  • └ receiver
  • String
  • 可选
  • 1
  • 接收人工号(为空时默认取applicantUserId)
  • └ quantity
  • String
  • 必须
  • 1
  • 数量
  • └ unit_price
  • String
  • 必须
  • 1
  • 单价
  • └ currency_code
  • String
  • 可选
  • CNY
  • 币种
  • └ remark
  • String
  • 可选
  • 1
  • 备注

响应参数

名称 类型 示例值 描述
result Result Result 系统自动生成
  • └ code
  • String
  • 0
  • 返回码
  • └ message
  • String
  • 成功
  • 接口返回信息
  • └ value
  • String
  • PR1233
  • pr单号
  • └ is_success
  • Boolean
  • true
  • 成功或失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaInfopCeresPrCreateRequest req = new AlibabaInfopCeresPrCreateRequest();
AlibabaInfopCeresPrCreateRequest.PrDto obj1 = new AlibabaInfopCeresPrCreateRequest.PrDto();
obj1.setInterfaceSourceValue("ANT_IOT");
obj1.setInterfaceSourceCode("122");
obj1.setDescription("123");
obj1.setOuCode("Z50");
obj1.setActualRequestor("56771");
obj1.setApplicant("56771");
List<AlibabaInfopCeresPrCreateRequest.PrLineDto> list3 = new ArrayList<AlibabaInfopCeresPrCreateRequest.PrLineDto>();
AlibabaInfopCeresPrCreateRequest.PrLineDto obj4 = new AlibabaInfopCeresPrCreateRequest.PrLineDto();
list3.add(obj4);
obj4.setSkuId("1");
obj4.setItemName("1");
obj4.setCategoryCode("IA05");
obj4.setCategoryUse("ANT_ZD_RCSY");
obj4.setBillMethod("AMOUNT");
obj4.setNeedByDate(StringUtils.parseDateTime("2019-07-01 12:28:20"));
obj4.setNeedByDateEnd(StringUtils.parseDateTime("2019-07-01 12:30:20"));
obj4.setAcceptanceStandard("1");
obj4.setDeliveryAddressId("1");
obj4.setDeliveryAddress("hfjahf");
obj4.setReceiver("1");
obj4.setQuantity("1");
obj4.setUnitPrice("1");
obj4.setCurrencyCode("CNY");
obj4.setRemark("1");
obj1.setPrLineList(list3);
req.setPrDto(obj1);
AlibabaInfopCeresPrCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_infop_ceres_pr_create_response>
    <result>
        <code>0</code>
        <message>成功</message>
        <value>PR1233</value>
        <is_success>true</is_success>
    </result>
</alibaba_infop_ceres_pr_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

返回
顶部