特殊价格修改
接口地址 |
/id/b1s/v1/SpecialPrices |
接口API功能描述 |
特殊价格接口 |
调用方式 |
PATCH |
可涵盖范围 |
采购核价单、业务报价单 |
请求地址参数
参数名称 |
参数说明 |
地址示例 |
(id) |
在地址中加入(特殊价格id)返回指定特殊价格信息 |
/id/b1s/v1/SpecialPrices(id) |
返回参数
参数名称 |
上级参数 |
参数描述 |
参数类型 |
参数说明 |
SpecialPriceDataAreas |
返回值 |
List |
指定单张时无此层级 |
|
ItemCode |
物料代码 |
|||
CardCode |
业务伙伴代码 |
|||
Price |
价格 |
|||
Currency |
币种 |
|||
Valid |
是否可用 |
可用-tYES;不可用-tNO |
||
ValidFrom |
SpecialPriceDataAreas |
可用起始日期 |
String |
|
ValidTo |
SpecialPriceDataAreas |
可用结束日期 |
String |
|
PriceListNum |
SpecialPriceDataAreas |
价格清单编号 |
int |
返回样例:会更新SpecialPriceDataAreas
{
"odata.metadata": "https://api-service.sperp.myhuaweicloud.com/b1s/v1/$metadata#SpecialPrices/@Element",
"ItemCode": "102040001",
"CardCode": "C100056",
"Price": 123,
"Currency": "CNY",
"DiscountPercent": 0,
"PriceListNum": 0,
"AutoUpdate": "tNO",
"SourcePrice": "sc_PrimaryCurrency",
"Valid": "tYES",
"U_DocEntry": "ll",
"U_MinRepQty": 0,
"U_FreeTxt": "",
"U_PymntGroup": "ll",
"U_Rate": 0,
"SpecialPriceDataAreas": [
{
"PriceCurrency": "CNY",
"AutoUpdate": "tNO",
"Dateto": "2025-02-17",
"Discount": 0,
"SpecialPrice": 123,
"DateFrom": "2025-01-17",
"BPCode": "C100056",
"PriceListNo": 0,
"ItemNo": "102040001",
"RowNumber": 0,
"U_DocEntry": "ll",
"U_MinRepQty": 0,
"U_FreeTxt": "",
"U_PymntGroup": "ll",
"U_Rate": 0,
"SpecialPriceQuantityAreas": []
};
{
"PriceCurrency": "CNY",
"AutoUpdate": "tNO",
"Dateto": "2026-02-17",
"Discount": 0,
"SpecialPrice": 123,
"DateFrom": "2026-01-17",
"BPCode": "C100056",
"PriceListNo": 0,
"ItemNo": "102040001",
"RowNumber": 0,
"U_DocEntry": "ll",
"U_MinRepQty": 0,
"U_FreeTxt": "",
"U_PymntGroup": "ll",
"U_Rate": 0,
"SpecialPriceQuantityAreas": []
}
]
}