我用retrieve(POST)
用廠內的採購單號是可以取訂單狀態
但使用History(GET)目前是失敗的StatusCode:422
是用是時間區間去取訂單,方法和異常訊息如下
可以麻煩你幫看一下那錯了嗎?
History(GET)
URL:transact-pre.ti.com/.../history
異常訊息:
StatusCode:422
{"errors":[{"errorCode":"ERR-BKG-ORDER-HIST-API-0040","type":"ValidationError","reason":"Invalid filter(s)","message":"No orders found based on your request. Verify and correct your filters and resubmit the request. For help, contact TI API Support https://api-portal.ti.com/support"}]}
您好,请问您需要获取的是测试环境里的数据还是正式系统里的数据。 如果你是要获取我们测试系统里面的记录的话需要使用端口 https://transact.ti.com/v2/backlog/orders/history/test 。 谢谢。
修正URL後還是無法取得資料
請在協助確認
History(GET)
URL:https://transact.ti.com/v2/backlog/orders/history/test?startDate=2024-04-01&endDate=2024-04-12
異常訊息:
StatusCode:401
{"fault":{"faultstring":"Invalid API call as no apiproduct match found","detail":{"errorcode":"keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"}}}