長弘科技 Acumatica 部落格

Acumatica REST API 介紹

今天介紹如何透過 Acumatica API ( REST API )取得銷售訂單的資料( Sales Orders )。

Acumatica API 有以下特點

  • Acumatica 中的EndPoint 是必須是既有存在或客製的
  • Acumatica API是以Json Format做為資料呈現及交換
  • Acumatica API 中的Authentication 資料依然存在於Session & Cookie
  • URL: http://<InstanceName>/entity/<EndpointName>/<EndpointVersion>/<Entity>

首先可以透過 Google Chrome 安裝 Postman

登入

URL: http://AcumaticaInstance/Entity/Auth/Login

如果 Response Code 是 204 代表登入成功

取 Sales Order 資料

URL: http://www.acumatica.com.tw/Manuf/entity/Default/17.200.001/SalesOrder?$Filter=OrderNbr eq ‘SO005668’

其中$Filter 是oData的用法,如果想知道更多關於oData,可以參考 : https://www.odata.org/documentation/odata-version-3-0/url-conventions/

Web Service EndPoint

 再以 Acumatica 系統中的 Integration > Preferences > Web Service EndPoints 可以查看所有EndPoint及相關欄位資訊

分享文章

Share on facebook
Facebook
Share on linkedin
LinkedIn
Share on google
Google+
Share on twitter
Twitter

相關文章

Copyright © 2021 長弘科技有限公司. All rights reserved