Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

shopee.logistics.GetAirwayBill獲取不到面單,提示訂單狀態不支持 #10

Open
g-pyusr opened this issue Mar 18, 2021 · 6 comments

Comments

@g-pyusr
Copy link

g-pyusr commented Mar 18, 2021

官方檔案寫著

Use this API to get airway bill for orders. AirwayBill is only fetchable when the order status is under READY_TO_SHIP and RETRY_SHIP.

我查看了訂單狀態,確認是READY_TO_SHIP

@YamiOdymel
Copy link
Member

你的包裹是航空包裹嗎?你的目的是要做什麼 🤔?

@g-pyusr
Copy link
Author

g-pyusr commented Mar 18, 2021

列印物流面單,我現在只能列印賣家宅配和,偶爾能列印711

@YamiOdymel
Copy link
Member

Airway Bill 是航空包裹才能使用的,你可能找錯 API 了?

@g-pyusr
Copy link
Author

g-pyusr commented Mar 18, 2021

image
如圖片上的面單你們是用那個介面獲取的,我用shopee.logistics.GetForderWaybill這個api介面獲取也是一樣

@YamiOdymel
Copy link
Member

YamiOdymel commented Mar 18, 2021

想要得到這個出貨單,其實不簡單…相關討論可以參考

有沒有api直接生成寄件單的PDF,我沒有找到他 #7

@hpcslag
Copy link
Member

hpcslag commented Jul 14, 2021

粗略回應一下新版蝦皮取得訂單的流程

目前應該是透過蝦皮的 API 開啟一個物流單的 Task,這個 API 會回傳一個 Task URL ,只要去 get 這個 URL 就可以拿到所有物流的單。

詳情請參考:
https://open.shopee.com/documents?module=3&type=1&id=382&version=1

其中 result 裡面有一項 airway_bill 會給予 PDF(OK, Hi-Life), PNG, HTML 格式的物流單。

pylist pushed a commit to pylist/shopeego that referenced this issue Jul 15, 2021
由於蝦皮在取得訂單詳細資訊時,在 `buyer_cancel_reason`、`cancel_reason` 時常會出現 0 值,使程式讀取出來 `json.Unmarshal` 會出現這樣的錯誤:

```
 ReadString: expects " or n, but found 0, error found in teacat#10 byte of ...|reason": 0, "recipie|..., bigger context ...|
```

注意於 `reason": 0` 處, reason 原應為字串,但有時系統會回傳數值。

因此對本列表進行更新。
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants