/erp/sc/routing/purchase/purchaseChangeOrder/createPurchaseChangeOrder{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/purchase/purchaseChangeOrder/createPurchaseChangeOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"wid": 1,
"supplier_id": 1,
"order_sn": "PO220714001",
"contact_person": "张三",
"contact_number": "1345467576",
"settlement_method": 7,
"settlement_description": "现金结算",
"shipping_price": 1,
"payment_method": 1,
"purchase_currency": "CNY",
"shipping_currency": "CNY",
"other_currency": "CNY",
"rate": 1,
"other_fee": 20,
"fee_part_type": 1,
"remark": "",
"prepay_percent": 1,
"is_tax": 1,
"opt_uid": 21,
"product_list": [
{
"id": 12,
"quantity_real": "100",
"remark": "",
"fnsku": "FN001",
"sid": 10,
"quantity_per_case": 1,
"cases_num": 1,
"price": 100,
"tax_rate": 1,
"product_id": 123
}
],
"new_product_list": [
{
"quantity_real": 100,
"remark": "",
"fnsku": "FN002",
"sid": 2,
"quantity_per_case": 1,
"cases_num": 1,
"price": 200,
"tax_rate": 2,
"product_id": 334
}
]
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | wid | 系统仓库id | integer | — | Required | 系统仓库id |
| 2 | supplier_id | 系统供应商id | integer | — | Required | 系统供应商id |
| 3 | order_sn | 采购单号 | string | — | Required | 采购单号 |
| 4 | contact_person | 联系人 | string | — | Optional | 联系人 |
| 5 | contact_number | 联系方式 | string | — | Optional | 联系方式 |
| 6 | settlement_method | 结算方式 | integer | — | Required | 结算方式:7 现结,8 月结 |
| 7 | settlement_description | 结算描述 | string | — | Optional | 结算描述 |
| 8 | shipping_price | 运费 | number | — | Optional | 运费 |
| 9 | payment_method | 支付方式 | integer | — | Optional | 支付方式:1 网银转账,2 网上支付 |
| 10 | purchase_currency | 采购币种 | string | — | Required | 采购币种 |
| 11 | shipping_currency | 运费币种 | string | — | Required | 运费币种 |
| 12 | other_currency | 其他费用币种 | string | — | Required | 其他费用币种 |
| 13 | rate | 汇率 | number | — | Required | 汇率 |
| 14 | other_fee | 其他费用 | number | — | Optional | 其他费用 |
| 15 | fee_part_type | 费用分配方式 | integer | — | Required | 费用分配方式:0 不分配,1 按金额,2 按数量 |
| 16 | remark | 变更单备注 | string | — | Optional | 变更单备注 |
| 17 | prepay_percent | 预付比例 | number | — | Optional | 预付比例 |
| 18 | is_tax | 是否含税 | integer | — | Optional | 是否含税:0 否,1 是 |
| 19 | opt_uid | 采购员U | integer | — | Required | 采购员U |
| 20 | product_list | 采购单子项 | array<object> | — | Required | 采购单子项 |
| 20.1 | id | 采购单子项id | integer | — | Required | 采购单子项id |
| 20.2 | quantity_real | 实际采购量 | string | — | Required | 实际采购量 |
| 20.3 | remark | 备注 | string | — | Optional | 备注 |
| 20.4 | fnsku | fnsku | string | — | Optional | FNSKU |
| 20.5 | sid | 店铺 | integer | — | Optional | 店铺 ,对应查询亚马逊店铺列表接口对应字段【sid】 |
| 20.6 | quantity_per_case | 单箱数量 | integer | — | Optional | 单箱数量 |
| 20.7 | cases_num | 箱数 | integer | — | Optional | 箱数 |
| 20.8 | price | 含税单价 | number | — | Required | 含税单价 |
| 20.9 | tax_rate | 税率 | number | — | Optional | 税率 |
| 20.10 | product_id | 产品 | integer | — | Required | 产品 |
| 20.11 | expect_arrive_time | 预计到货时间 | string | — | Optional | 预计到货时间,格式:"Y-m-d" |
| 21 | new_product_list | 新增采购单子项 | array<object> | — | Optional | 新增采购单子项 |
| 21.1 | quantity_real | 实际采购量 | integer | — | Required | 实际采购量 |
| 21.2 | remark | 备注 | string | — | Optional | 备注 |
| 21.3 | fnsku | fnsku | string | — | Optional | FNSKU |
| 21.4 | sid | 店铺 | integer | — | Optional | 店铺 ,对应查询亚马逊店铺列表接口对应字段【sid】 |
| 21.5 | quantity_per_case | 单箱数量 | integer | — | Optional | 单箱数量 |
| 21.6 | cases_num | 箱数 | integer | — | Optional | 箱数 |
| 21.7 | price | 含税单价 | number | — | Required | 含税单价 |
| 21.8 | tax_rate | 税率 | number | — | Optional | 税率 |
| 21.9 | product_id | 本地产品id | integer | — | Required | 本地产品id |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 提示信息 | string | success | Required | 提示信息 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | C1309FC7-1EC2-9B67-901A-2A0156CC7C25 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-05-20 11:48:25 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | order_sn | 采购变更单号 | string | PR220520003 | Required | 采购变更单号 |
The 创建已完成的采购变更单 API (/erp/sc/routing/purchase/purchaseChangeOrder/createPurchaseChangeOrder) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.