POST api/purchase/placepo
生成采购单
Request Information
URI Parameters
None.
Body Parameters
采购单参数
PlacePurchaseOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| DealerId |
供货商ID |
integer |
None. |
| SourceType |
来源类型 1 北迈 2 POP |
integer |
None. |
| SourcePoId |
来源单号 |
string |
None. |
| ReceiveWay |
收货方式:1 送货 2 自提 |
integer |
None. |
| Receiver |
收货人 |
string |
None. |
| TelPhone |
收货人电话 |
string |
None. |
| ProvinceId |
省份ID |
integer |
None. |
| CityId |
城市ID |
integer |
None. |
| AreaId |
地区ID |
integer |
None. |
| Address |
收货地址 |
string |
None. |
| BookAmount |
定金 |
decimal number |
None. |
| IsOpenInvoice |
是否开发票 |
integer |
None. |
| ComingDate |
要求到货日期 |
date |
None. |
| Memo |
备注 |
string |
None. |
| plist |
商品信息 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"<DealerId>k__BackingField": 1,
"<SourceType>k__BackingField": 2,
"<SourcePoId>k__BackingField": "sample string 3",
"<ReceiveWay>k__BackingField": 4,
"<Receiver>k__BackingField": "sample string 5",
"<TelPhone>k__BackingField": "sample string 6",
"<ProvinceId>k__BackingField": 7,
"<CityId>k__BackingField": 8,
"<AreaId>k__BackingField": 9,
"<Address>k__BackingField": "sample string 10",
"<BookAmount>k__BackingField": 11.0,
"<IsOpenInvoice>k__BackingField": 12,
"<ComingDate>k__BackingField": "2025-12-14T20:15:32.3465373+08:00",
"<Memo>k__BackingField": "sample string 13",
"<detailList>k__BackingField": [
{
"<StockId>k__BackingField": 1,
"<Quantity>k__BackingField": 2,
"<InPrice>k__BackingField": 3.0
},
{
"<StockId>k__BackingField": 1,
"<Quantity>k__BackingField": 2,
"<InPrice>k__BackingField": 3.0
}
],
"<plist>k__BackingField": "sample string 14"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
(json对象)PoCode:value
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |