TI-API: 測試 TI-API: API下单,連接顯示:422 UNPROCESSABLE_ENTITY

Part Number: TI-API

您好,上次測試時間為2023/11 月左右,都還能正常測試下單成功,現在需要在進行測試時,發現使用相同的料號等訊息進行測試下單,發現回應422連接錯誤的訊息,

想請教是什麼原因造成連接錯誤,下面是連接時回復的錯誤訊息

HttpResponseProxy{HTTP/1.1 422 Unprocessable Entity [Server: Apache, Content-Type: application/json, Content-Length: 3961, Access-Control-Allow-Origin: *, Access-Control-Allow-Headers: *, Access-Control-Max-Age: 3600000, Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, X-SF-CORS: true, Date: Thu, 21 Mar 2024 05:57:04 GMT, Connection: close] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 3961,Chunked: false]}}

{"orderInfo":{"orderNumber":"","cartId":"C379558182","checkoutProfileId":"EC0605008FF88CF6E0538620BB8B60D4","currencyCode":"USD","orderDate":"2024-03-21T00:57:01Z","orderEntry":"API","customerPurchaseOrderNumber":"4475 rogerchang","orderStatus":"","orderedBy":"Afra Wan","endCustomerCompanyName":"NEXCOM","application":"Factory automation & control","endEquipment":"Communication module","intendedForMilitary":false,"isProductionOrder":false,"totalOrderSummary":{"subTotal":4.65,"estimatedDiscountAmount":0.00,"estimatedShippingCost":12.00,"estimatedTaxes":0.00,"orderTotal":16.65,"estimatedInventoryTransferFee":null},"discounts":null,"lineItems":[{"tiLineItemNumber":"0","customerLineItemNumber":"1","tiPartNumber":"TPS51206DSQR","customerPartNumber":"3P05120601X00","tiPartDescription":"2A Peak Sink/Source DDR Termination Regulator with VTTREF Buffered Reference for DDR2/3/3L/4","partType":"IC","htsCode":"","coCode":"","quantity":1,"shippedQuantity":0,"unitPrice":0.543,"netPrice":0.54,"dateCode":null,"batchCode":null,"status":"","fees":null,"discounts":null,"packageInformation":{"carrier":"LARGE T&R","delivery":[{"type":"Cut tape","quantity":1}]},"waiverAvailable":"false","trackingAndShipping":[{"shippingFreightAccount":"TI","trackingNumbers":[{"shippingFromCountryCode":"Singapore","serviceLevel":"International economy","shipDate":null,"masterTracking":null,"leg1Carrier":null,"leg1Tracking":null,"leg1TrackingURL":null,"leg2Carrier":null,"leg2Tracking":null,"leg2TrackingURL":null}],"invoices":[],"creditMemo":null}],"customerItemComments":null,"notifications":[]},{"tiLineItemNumber":"1","customerLineItemNumber":"2","tiPartNumber":"TPS7A4700RGWR","customerPartNumber":"3P7A470001X00","tiPartDescription":"1-A, 36-V, low-noise, high-PSRR, low-dropout voltage regulator with enable","partType":"IC","htsCode":"","coCode":"","quantity":1,"shippedQuantity":0,"unitPrice":4.107,"netPrice":4.11,"dateCode":null,"batchCode":null,"status":"","fees":null,"discounts":null,"packageInformation":{"carrier":"LARGE T&R","delivery":[{"type":"Cut tape","quantity":1}]},"waiverAvailable":"false","trackingAndShipping":[{"shippingFreightAccount":"TI","trackingNumbers":[{"shippingFromCountryCode":"Singapore","serviceLevel":"International economy","shipDate":null,"masterTracking":null,"leg1Carrier":null,"leg1Tracking":null,"leg1TrackingURL":null,"leg2Carrier":null,"leg2Tracking":null,"leg2TrackingURL":null}],"invoices":[],"creditMemo":null}],"customerItemComments":null,"notifications":[]}],"shippingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM International Co., Ltd.","addressLine1":"6F., NO. 63, SEC. 1, SANMIN RD","addressLine2":"BANQIAO DIST.,","city":"New Taipei City","stateRegion":"TAIWAN","postalCode":"22070","regionCode":"TW","region":"Taiwan","email":"irenehsu1@nexcom.com.tw","phoneNumber":"2 8226 7786","companyUrl":""billingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM">www.nexcom.com.tw/"},"billingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM International Co., Ltd.","addressLine1":"6F., NO. 63, SEC. 1, SANMIN RD","addressLine2":"BANQIAO DIST.,","city":"New Taipei City","stateRegion":"TAIWAN","postalCode":"22070","regionCode":"TW","region":"Taiwan","email":"irenehsu1@nexcom.com.tw","phoneNumber":"2 8226 7786","companyUrl":""payment":{"type":null,"method":null,"bankTranferApproverEmail":null,"details":null},"taxInfo":{"taxExemption":false},"vatDetails":[],"orderComments":[{"message":"?????????"}],"notifications":[{"topic":"Customer">www.nexcom.com.tw/"},"payment":{"type":null,"method":null,"bankTranferApproverEmail":null,"details":null},"taxInfo":{"taxExemption":false},"vatDetails":[],"orderComments":[{"message":" Freight","detail":"Customer carrier freight options are not available, we are fulfilling your request with TI's freight options"}]},"errors":[{"errorCode":"ERR-TICOM-ORDER-API-0009","type":"Validation","section":"Generic","field":null,"reason":"Invalid Line of Credit. ","message":"Check your line of credit information and provide the correct information and resubmit the request. For additional information refer to https://api-portal.ti.com/order-api-payment","data":null}]}

  • 我看了下报错是你当前的checkout profile中没有valid LOC, 付款信息相关的设置也没有,请联系TI CSC或者负责您公司的TI 销售代表进行协助,谢谢。

  • 您好,已有請公司採購同仁協助處理,今日公司採購同仁有請我再進行測試下單,而剛有進行下單的測試但結果還是相同,還是回應422,請您再協助幫忙確認是甚麼樣的問題,謝謝~~

    HttpResponseProxy{HTTP/1.1 422 Unprocessable Entity [Server: Apache, Content-Type: application/json, Content-Length: 3961, Access-Control-Allow-Origin: *, Access-Control-Allow-Headers: *, Access-Control-Max-Age: 3600000, Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, X-SF-CORS: true, Date: Wed, 27 Mar 2024 08:06:31 GMT, Connection: close] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 3961,Chunked: false]}}

    {"orderInfo":{"orderNumber":"","cartId":"C379597002","checkoutProfileId":"EC0605008FF88CF6E0538620BB8B60D4","currencyCode":"USD","orderDate":"2024-03-27T03:06:28Z","orderEntry":"API","customerPurchaseOrderNumber":"4475 rogerchang","orderStatus":"","orderedBy":"Afra Wan","endCustomerCompanyName":"NEXCOM","application":"Factory automation & control","endEquipment":"Communication module","intendedForMilitary":false,"isProductionOrder":false,"totalOrderSummary":{"subTotal":4.65,"estimatedDiscountAmount":0.00,"estimatedShippingCost":12.00,"estimatedTaxes":0.00,"orderTotal":16.65,"estimatedInventoryTransferFee":null},"discounts":null,"lineItems":[{"tiLineItemNumber":"0","customerLineItemNumber":"1","tiPartNumber":"TPS51206DSQR","customerPartNumber":"3P05120601X00","tiPartDescription":"2A Peak Sink/Source DDR Termination Regulator with VTTREF Buffered Reference for DDR2/3/3L/4","partType":"IC","htsCode":"","coCode":"","quantity":1,"shippedQuantity":0,"unitPrice":0.543,"netPrice":0.54,"dateCode":null,"batchCode":null,"status":"","fees":null,"discounts":null,"packageInformation":{"carrier":"LARGE T&R","delivery":[{"type":"Cut tape","quantity":1}]},"waiverAvailable":"false","trackingAndShipping":[{"shippingFreightAccount":"TI","trackingNumbers":[{"shippingFromCountryCode":"Singapore","serviceLevel":"International economy","shipDate":null,"masterTracking":null,"leg1Carrier":null,"leg1Tracking":null,"leg1TrackingURL":null,"leg2Carrier":null,"leg2Tracking":null,"leg2TrackingURL":null}],"invoices":[],"creditMemo":null}],"customerItemComments":null,"notifications":[]},{"tiLineItemNumber":"1","customerLineItemNumber":"2","tiPartNumber":"TPS7A4700RGWR","customerPartNumber":"3P7A470001X00","tiPartDescription":"1-A, 36-V, low-noise, high-PSRR, low-dropout voltage regulator with enable","partType":"IC","htsCode":"","coCode":"","quantity":1,"shippedQuantity":0,"unitPrice":4.107,"netPrice":4.11,"dateCode":null,"batchCode":null,"status":"","fees":null,"discounts":null,"packageInformation":{"carrier":"LARGE T&R","delivery":[{"type":"Cut tape","quantity":1}]},"waiverAvailable":"false","trackingAndShipping":[{"shippingFreightAccount":"TI","trackingNumbers":[{"shippingFromCountryCode":"Singapore","serviceLevel":"International economy","shipDate":null,"masterTracking":null,"leg1Carrier":null,"leg1Tracking":null,"leg1TrackingURL":null,"leg2Carrier":null,"leg2Tracking":null,"leg2TrackingURL":null}],"invoices":[],"creditMemo":null}],"customerItemComments":null,"notifications":[]}],"shippingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM International Co., Ltd.","addressLine1":"6F., NO. 63, SEC. 1, SANMIN RD","addressLine2":"BANQIAO DIST.,","city":"New Taipei City","stateRegion":"TAIWAN","postalCode":"22070","regionCode":"TW","region":"Taiwan","email":"irenehsu1@nexcom.com.tw","phoneNumber":"2 8226 7786","companyUrl":""billingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM">www.nexcom.com.tw/"},"billingAddress":{"firstName":"emma","lastName":"chen","company":"NEXCOM International Co., Ltd.","addressLine1":"6F., NO. 63, SEC. 1, SANMIN RD","addressLine2":"BANQIAO DIST.,","city":"New Taipei City","stateRegion":"TAIWAN","postalCode":"22070","regionCode":"TW","region":"Taiwan","email":"irenehsu1@nexcom.com.tw","phoneNumber":"2 8226 7786","companyUrl":""payment":{"type":null,"method":null,"bankTranferApproverEmail":null,"details":null},"taxInfo":{"taxExemption":false},"vatDetails":[],"orderComments":[{"message":"?????????"}],"notifications":[{"topic":"Customer">www.nexcom.com.tw/"},"payment":{"type":null,"method":null,"bankTranferApproverEmail":null,"details":null},"taxInfo":{"taxExemption":false},"vatDetails":[],"orderComments":[{"message":" Freight","detail":"Customer carrier freight options are not available, we are fulfilling your request with TI's freight options"}]},"errors":[{"errorCode":"ERR-TICOM-ORDER-API-0009","type":"Validation","section":"Generic","field":null,"reason":"Invalid Line of Credit. ","message":"Check your line of credit information and provide the correct information and resubmit the request. For additional information refer to https://api-portal.ti.com/order-api-payment","data":null}]}

  • Hi Roger, 

    烦请贵司采购联系TI销售代表协助查看Line of credit 的设置,目前系统的报错是没有查询到有效的LOC 与您当前的checkout profile ID有关联。