syncPurchaseOrders{
"operation": {
"method": "none"
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | pts_oprater | 跟单员ID | int | — | Required | 跟单员ID |
| 2 | po_type | 补货方式 | int | — | Required | 补货方式:0缺货入库,1警报入库,2特采入库,3正常入库,4样品采购入库,5备货采购,6试销采购,7返修入库 ,注意:如果在系统有维护补货方式则使用系统维护的对应关系 |
| 3 | account_proportion | 预付比例(结算方式为款到发货时可选填) | int | — | Optional | 预付比例(结算方式为款到发货时可选填) |
| 4 | ba_id | 支付银行卡账号 | int | — | Optional | 支付银行卡账号(当支付方式为银行卡时,可选填),提供接口getPaymentAccount查询 |
| 5 | alipay_supplier_account | 供应商支付宝账户 | string | — | Optional | 供应商支付宝账户(当供应商收款方式为在线时,可选填) ,接口getSupplierInfo查询 |
| 6 | tracking_no | 跟踪单号 | string | — | Optional | 跟踪单号 |
| 7 | alipay_account | 支付宝账户 | string | — | Optional | 支付宝账户(当支付方式为在线时,可选填) ,提供接口getPaymentAccount查询 |
| 8 | po_is_has_tax | 采购是否含税 | string | — | Optional | 采购是否含税 |
| 9 | date_expected | 预计出厂时间格式 | string | — | Optional | 预计出厂时间格式:YYYY-MM-DD |
| 10 | product_list | 采购产品明细 | object | — | Optional | 采购产品明细,具体见下表 |
| 10.1 | is_qc | 是否质检 | int | — | Optional | 是否质检, 0:否、1:是 |
| 10.2 | note | 备注 | string | — | Optional | 备注 |
| 10.3 | pop_external_number | 外部单号 | int | — | Optional | 外部单号 |
| 10.4 | currency_code | 币种 | string | — | Required | 币种 |
| 10.5 | is_free | 是否赠品 | int | — | Optional | 是否赠品,0:否 1:是 |
| 10.6 | reason | 下单原因 | string | — | Optional | 下单原因 |
| 10.7 | unit_price | 单价 | int | — | Required | 单价 该值需大于0,is_free字段传1后,该值会默认为0,但传值仍需大于0 |
| 10.8 | po_tax_rate | 税率 | int | — | Optional | 税率 |
| 10.9 | qty_expected | 产品数量 | int | — | Required | 产品数量 |
| 10.10 | product_sku | 产品代码 | string | — | Required | 产品代码 |
| 10.11 | qty_free | 赠品数量 | string | — | Optional | 赠品数量 |
| 10.12 | pop_reference_unit_price | 采购参考价 | int | — | Optional | 采购参考价 |
| 11 | is_rebate_tax | 是否退税 | int | — | Optional | 是否退税 0:否 1:是 |
| 12 | to_warehouse_id | 中转仓库ID | string | — | Optional | 中转仓库ID |
| 13 | ref_no | 参考号 | string | — | Optional | 参考号 |
| 14 | pay_type | 支付方式: | int | — | Required | 支付方式:1现金2在线(支付宝)3银行卡 |
| 15 | organization_id | 组织机构Id | string | — | Optional | 组织机构Id |
| 16 | shipping_method_id_head | 供应商运输方式: | int | — | Required | 供应商运输方式:1自提,2快递,3物流,4送货 |
| 17 | operator_purchase | 采购员ID | int | — | Required | 采购员ID |
| 18 | operation_type | 运营方式 | int | — | Required | 运营方式:1代运营,2自运营 |
| 19 | is_1688 | 是否是1688采购单 | int | — | Optional | 是否是1688采购单,0:否1:是。注:1688采购单只能是待确认状态 |
| 20 | account_type | 结算方式 | int | — | Required | 结算方式:1:货到付款2:款到发货3:账期 |
| 21 | warehouse_id | 采购仓库ID | int | — | Required | 采购仓库ID |
| 22 | suppiler_id | 供应商ID | int | — | Required | 供应商ID |
| 23 | po_code | 采购单号 | string | — | Optional | 采购单号,采购单操作类型为1(编辑)时,必填 |
| 24 | bk_id | 支付银行 | int | — | Optional | 支付银行(当支付方式银行卡时,可选填) ,提供接口getPaymentAccount查询 |
| 25 | date_eta | 预计到货时间 | date | — | Optional | 预计到货时间 格式:YYYY-MM-DD |
| 26 | supplier_bk_id | 收款银行 | int | — | Optional | 收款银行(当供应商收款方式为银行卡时,可选填),接口getSupplierInfo查询 |
| 27 | transaction_no | 支付单号 | int | — | Optional | 支付单号 |
| 28 | supplier_ba_id | 支付方式ID | int | — | Optional | 支付方式ID(当供应商收款方式为银行卡时,可选填),接口getSupplierInfo查询 Response.data.paymentAccountList.spmId |
| 29 | pro_code | 申购单号(分销系统用) | string | — | Optional | 申购单号(分销系统用) |
| 30 | po_status | 单据状态 | int | — | Optional | 1:待确认,2:待审核,3:已审核 默认值:待确认解释:待确认:即新建采购单时候的初始状态;待审核:提交确认了采购单,等待审核;已审核:即审核通过,变更为采购在途;注意:采购单操作类型为1(编辑)时,状态只支持 1(待确认) |
| 31 | action_type | 采购单操作类型 | int | — | Required | 采购单操作类型 ADD:创建;EDIT:编辑;默认 ADD |
| 32 | date_create | 创建时间 | date | — | Optional | 创建时间,默认当前时间格式:YYYY-MM-DD |
| 33 | receiver | 收件人ID | int | — | Optional | 收件人ID |
| 34 | supplier_pay_type | 供应商收款方式: | int | — | Required | 供应商收款方式:1现金2在线(支付宝)3银行卡 |
| 35 | single_net_number | 网采单号 | object | — | Optional | 网采单号(可填多个,当是否网采为1时可选填),格式:["101508120001","101508120001"] |
| 36 | currency_code | 币种 | string | — | Required | 币种 |
| 37 | po_is_net | 是否网采, | int | — | Optional | 是否网采,0否,1是,默认0 |
| 38 | pay_ship_amount | 运费 | int | — | Optional | 运费 |
No parameter reference available
The 创建/编辑采购单V3.0 API (syncPurchaseOrders) of 易仓 is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 易仓 version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.