你好!
我调用接口
https://transact.ti.com/v2/store/products?gpn=ISO7640FMDW¤cy=USD&exclude-evms=true&page=0&size=20
用系统给的例子中的产品编号AFE7799
获取的结果为{"content":[{"tiPartNumber":"AFE7799IABJ","genericPartNumber":"AFE7799","buyNowUrl":"https://www.ti.com/product/AFE7799/part-details/AFE7799IABJ",
"quantity":153,"limit":10,"inventory":[],"pricing":[{"currency":"USD","priceBreaks":[{"priceBreakQuantity":1,"price":729.928},{"priceBreakQuantity":100,"price":660.71},
{"priceBreakQuantity":250,"price":641.833},{"priceBreakQuantity":1000,"price":629.248}]}],"description":"Quad-channel RF transceiver with dual feedback paths",
"minimumOrderQuantity":1,"standardPackQuantity":90,"exportControlClassificationNumber":"5A991B","htsCode":"8542390001","pinCount":400,"packageType":"AFE7799IABJ_400_FCBGA_ABJ",
"packageCarrier":"TRAY","customReel":false,"lifeCycle":"ACTIVE"}],"first":true,"last":true,"totalPages":1,"totalElements":1,"numberOfElements":1,"size":20,"number":0}
当用产品编号 ISO7640FMDW 获取的结果为{"content":[],"first":true,"last":true,"totalPages":0,"totalElements":0,"numberOfElements":0,"size":20,"number":0};
但是我在TI商城是能查看到ISO7640FMDW的信息
请帮忙分析一下原因,谢谢!
您尝试把URL中的gpn改成opn后看返回的结果是否是全的。
HI,我换成opn后用transact.ti.com/.../products
{"errors":[{"errorCode":"ERR-TICOM-INV-API-1001","type":"ValidationError","section":"QueryParameter","field":"gpn","reason":"Invalid gpn","message":"Required request parameter 'gpn' for method parameter type String is not present"}]}
Hi,
商城看到产品信息和API调用的product catalog 信息不一定是匹配的,我们建议还是以API调取的库存为准进行API下单。 第一次返回的是正确的信息。