三方作業 #
下載托運單標籤PDF檔 #
該API與既有的三方物流Gorup不同,請務必確認:
ThirdPartyLogistics
。必須先使用
建立托運單標籤PDF檔
取得Callback資訊,再呼叫
下載托運單標籤PDF檔
取得pdf檔案
。
Endpoint URL: https://tw.scm.yahooapis.com/scmapi/api/ThirdPartyLogistics/GetLabelFile
HTTP Method: POST
Request Body #
PDFFileName #
PDF檔案名稱。
資料型態: String Array
必填: 是
說明: 可以一次輸入多筆
Request/Response Sample #
POST /scmapi/api/ThirdPartyLogistics/GetLabelFile
[
"ThirdPartyLabel_20240904161105_1.pdf",
"ThirdPartyLabel_20240904161509_1.pdf"
]
[
{
"FileName": "ThirdPartyLabel_20240904161105_1.pdf",
"PdfBytes": "JVBERi0xLjQKMSAwIG9iago8PAovVGl0bGUgKP7/ZbB6...."
},
{
"FileName": "ThirdPartyLabel_20240904161509_1.pdf",
"PdfBytes": "JVBERi0xLjQKMSAwIG9iago8PAovVGl0bGUgKP7/ZbB6...."
}
]
Response Elements #
若操作成功,API 會回傳 HTTP 200 response。並以 JSON 格式回傳完整的標籤檔案訊息。
FileName #
PDF檔案名稱。
資料型態: String
PdfBytes #
PDF Base64 Encode。
資料型態: String
說明: 收到的內容為Base64 Encode需要Decode後,才能看見標籤文檔可使用任何線上工具進行解碼測試。
- Base64 Decode: https://www.base64decode.net/base64-to-file
- Base64.Guru: https://base64.guru/converter/decode/file