請教一下
我用retrieve(POST)
用廠內的採購單號(YM-TEST2024-04-16_135213)是可以取訂單狀態
但使用History(GET)目前是失敗的StatusCode:401
是用是時間區間去取訂單,方法和異常訊息如下
可以麻煩你幫看一下那錯了嗎?
History(GET)
URL有加test:transact.ti.com/.../test
URL沒有加test:transact.ti.com/.../history
2個都是失敗的,異常訊息:
以下是錯誤的訊息:
{StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
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
Connection: keep-alive
Date: Mon, 24 Jun 2024 02:37:55 GMT
Server: Apache
WWW-Authenticate: Bearer realm="null",error="invalid_token",error_description="keymanagement.service.InvalidAPICallAsNoApiProductMatchFound: Invalid API call as no apiproduct match found"
Content-Length: 159
Content-Type: application/json
}}