文档
测试

更新条码

POST
https://api.sooxie.com/Stock/UpdateBarCode

接口描述

更新条码

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填
appid
string
应用id
必填
sign
string
签名
必填
timestamp
long
时间戳
必填
accesstoken
string
访问令牌
必填

请求参数

application/json
参数名
类型
描述
必填
list
array
数据列表
必填
barCode
string
示例:string
必填
guid
string
示例:string
必填

响应参数

application/json
参数名
类型
描述
必填
success
boolean
示例:true
必填

说明 / 示例

**请求参数** ```json [ { "barCode": "111111", "guid": "56b0c22190124c55bd851814ef666367" }, { "barCode": "222222", "guid": "56b0c22190124c55bd851814ef666366" }, { "barCode": "333333", "guid": "56b0c22190124c55bd851814ef666365" }, { "barCode": "444444", "guid": "56b0c22190124c55bd851814ef666364" }, { "barCode": "555555", "guid": "56b0c22190124c55bd851814ef666363" }, ] ``` **C#实体** ```cpp public class EntitiesStock { public string BarCode { get; set; } public string Guid { get; set; } } ``` **C#请求实例 NuGet: Flurl, Flurl.Http** ```cpp using Flurl.Http; string url = "https://api.sooxie.com/Stock/UpdateBarCode"; var stock = new List<EntitiesStock>() { new EntitiesStock{ BarCode="111111",Guid =“56b0c22190124c55bd851814ef666367”}, new EntitiesStock{ BarCode="222222",Guid =“56b0c22190124c55bd851814ef666366” }, new EntitiesStock{ BarCode="333333",Guid =“56b0c22190124c55bd851814ef666365”}, new EntitiesStock{ BarCode="444444",Guid =“56b0c22190124c55bd851814ef666364”} }; //省略了请求头 可参考库存列表 var result = await url.PostJsonAsync(stock).ReceiveString(); Console.WriteLine(result); ```