产品
创建产品
课程描述 | 创建新产品 |
端点 | {AnalyticsManagerDataManagerApiAddress}/odata/PostProducts |
付款方式 | 解决方案&帖子 |
请求标题 | {AToken} |
正文 - 表单数据 | 关键词:产品 价值: [ { "ProductSerial": "ProductA1234", "名称": "产品 A", "价格": "13.00", "ProductBrandId": 101, "ProductCategoryId": "0B920541-5F2E-EC11-807E-00155DDF9604", "Description": "产品 A 的描述内容", "ProductBarcode": "1111100010101", "Unit": "gram", // 表示计量单位 “折扣价”:10.99, "ProductPromotionHeader": "好促销", "UnitNumber": 10, // 分配给产品价格的物理单位数。 (例如,每 10 克 100 美元,单位 = 100) "QRCodeLink": "https://product.qr.code.link.com" }, { "ProductSerial": "ProductB1234", "名称": "产品 B", "价格": "23.00", "ProductBrandId": 102, "ProductCategoryId": "7B84077E-0ABC-EA11-833B-D05099D42A29", "Description": "产品 B 的描述内容", "ProductBarcode": "2222200010101", "Unit": "pair", // 表示测量单位 “折扣价”:19.99, "ProductPromotionHeader": "好促销", "UnitNumber": 1, // 分配给产品价格的物理单位数。 (例如,每 10 克 100 美元,单位 = 100) "QRCodeLink": "https://product.qr.code.link.com" }, { "ProductSerial": "ProductA1234", "名称": "产品 C", "价格": "33.00", "ProductBrandId": 96, "ProductCategoryId": "0D920541-5F2E-EC11-807E-00155DDF9604", "Description": "产品 C 的描述内容", "ProductBarcode": "3333300010101", "Unit": "kg", // 表示计量单位 “折扣价”:29.99, "ProductPromotionHeader": "好促销", "UnitNumber": 2, // 分配给产品价格的物理单位数。 (例如,每 10 克 100 美元,单位 = 100) "QRCodeLink": "https://product.qr.code.link.com" } ] |
响应 | { “价值”: [ { "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductA1234", "名称": "产品 A", “价格”:13.0, “公司编号”:1, "ProductCategoryId": "0b920541-5f2e-ec11-807e-00155ddf9604", "Description": "产品 A 的描述内容", "ProductBrandId": 101, "ProductBarcode": "1111100010101", "单位": "克", “折扣价”:10.99, "ProductPromotionHeader": "好促销", “单位编号”:10.0, "QrcodeLink": "https://product.qr.code.link.com", “上次更新日期时间”:空, "CreatedDateTime": "2021-10-16T16:05:50.6651175Z", "EslmiscJson": null, "EslactionLogId": null, “公司”:空, “产品品牌”:null, “产品类别”:空, "EslTags": [], "ProductCurrencyPrices": [], "ProductCustomPrices": [], “产品每日销售”:[] }, { "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductB1234", "名称": "产品 B", “价格”:23.0, “公司编号”:1, "ProductCategoryId": "7b84077e-0abc-ea11-833b-d05099d42a29", "Description": "产品 B 的描述内容", "ProductBrandId": 102, "ProductBarcode": "2222200010101", "单位": "对", “折扣价”:19.99, "ProductPromotionHeader": "好促销", “单位编号”:1.0, "QrcodeLink": "https://product.qr.code.link.com", “上次更新日期时间”:空, "CreatedDateTime": "2021-10-16T16:05:50.6652001Z", "EslmiscJson": null, "EslactionLogId": null, “公司”:空, “产品品牌”:null, “产品类别”:空, "EslTags": [], "ProductCurrencyPrices": [], "ProductCustomPrices": [], “产品每日销售”:[] }, { "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductA1234", "名称": "产品 C", “价格”:33.0, “公司编号”:1, "ProductCategoryId": "0d920541-5f2e-ec11-807e-00155ddf9604", "Description": "产品 C 的描述内容", "ProductBrandId": 96, "ProductBarcode": "3333300010101", "单位": "公斤", “折扣价”:29.99, "ProductPromotionHeader": "好促销", “单位编号”:2.0, "QrcodeLink": "https://product.qr.code.link.com", “上次更新日期时间”:空, "CreatedDateTime": "2021-10-16T16:05:50.6652005Z", "EslmiscJson": null, "EslactionLogId": null, “公司”:空, “产品品牌”:null, “产品类别”:空, "EslTags": [], "ProductCurrencyPrices": [], "ProductCustomPrices": [], “产品每日销售”:[] } ], “计数”:0 } |
备注 | - 请记下“Id”值,因为您需要将其用作稍后更新/删除/链接到其他实体的参考键 - ProductBrandId 是您在创建产品品牌时获得的 ID - ProductCategoryId 是您在创建产品类别时获得的 ID |
阅读产品
课程描述 | 拉取公司账号下创建的产品 |
端点 | {AnalyticsManagerDataManagerApiAddress}/odata/GetProducts |
付款方式 | 的GET |
请求标题 | {AToken} |
响应 | { “价值”: [ { "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductA1234", "Name": "产品新名称", “价格”:113.0, “公司编号”:1, "ProductCategoryId": "0b920541-5f2e-ec11-807e-00155ddf9604", "Description": "产品 A 的描述内容", "ProductBrandId": 101, "ProductBarcode": "1111100010101", "单位": "克", “折扣价”:10.99, "ProductPromotionHeader": "好促销", “单位编号”:10.0, "QrcodeLink": "https://product.qr.code.link.com", "LastUpdateDateTime": "2021-10-16T16:12:44.187Z", "CreatedDateTime": "2021-10-16T16:05:50.667Z", "EslmiscJson": null, "EslactionLogId": null, “公司”:空, “产品品牌”:null, “产品类别”:空, "EslTags": [], "ProductCurrencyPrices": [], "ProductCustomPrices": [], “产品每日销售”:[] }, { "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductB1234", "Name": "产品 B 新名称", “价格”:123.0, “公司编号”:1, "ProductCategoryId": "7b84077e-0abc-ea11-833b-d05099d42a29", "Description": "产品 B 的描述内容", "ProductBrandId": 102, "ProductBarcode": "2222200010101", "单位": "对", “折扣价”:19.99, "ProductPromotionHeader": "好促销", “单位编号”:1.0, "QrcodeLink": "https://product.qr.code.link.com", "LastUpdateDateTime": "2021-10-16T16:12:44.213Z", "CreatedDateTime": "2021-10-16T16:05:50.667Z", "EslmiscJson": null, "EslactionLogId": null, “公司”:空, “产品品牌”:null, “产品类别”:空, "EslTags": [], "ProductCurrencyPrices": [], "ProductCustomPrices": [], “产品每日销售”:[] } ], “计数”:0 } |
更新产品
课程描述 | 更新现有产品 |
端点 | {AnalyticsManagerDataManagerApiAddress}/odata/UpdateProducts |
付款方式 | 补丁 |
请求标题 | {AToken} |
正文 - JSON | [ { "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductA1234", "Name": "产品新名称", “价格”:113.0 }, { "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductB1234", "Name": "产品 B 新名称", “价格”:123.0 }, { "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604", "ProductSerial": "ProductA1234", "Name": "产品 C 新名称", “价格”:133.0, “单位”:“公斤” } ] |
备注 | 必填项: - ID |
删除产品
课程描述 | 删除现有产品 |
端点 | {AnalyticsManagerDataManagerApiAddress}/odata/DeleteProducts |
付款方式 | 删除 |
请求标题 | {AToken} |
正文 - JSON | [ { "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604" }, { "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604" }, { "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604" } ] |
备注 | 必填项: - ID |