使用 Demandware 的 Netsuite 订单跟踪 API

Netsuite Order Tracking API with Demandware

我们有一个使用 Demandware 作为前端下订单的系统。然后订单详细信息进入 Netsuite (ERP)。我们需要为客户提供订单跟踪功能,让他们可以登录并跟踪他们的订单。这可以在 JSP/PHP/ROR 中构建。我已经安装了 PHP-Toolkit,但没有找到任何订单跟踪 API。

在 localhost 上工作,应该对 NSConfig.php 参数进行哪些更改以测试所提供的样本 API?

$nsendpoint = "2015_1";
$nshost = "https://webservices.netsuite.com";

$nsemail = "jDoe@netsuite.com";
$nspassword = "mySecretPwd";
$nsrole = "3";
$nsaccount = "MYACCT1";

找到一个有用的 link 将 Netsuite 与 PHP 集成,但不确定如何让它工作?

  1. 作为客户,我如何使用 Nestuite Order Tracking API 在前端跟踪订单?
  2. 是否有支持上述功能的 API ?
  3. 我如何以及在何处测试是否有任何 API 订单跟踪可用?

更广泛地说,它如下所示

如有不对请指正

您可以使用 SuiteTalk API 以您选择的任何服务器端语言跟踪订单。 NetSuite 帮助在 Java 和 PHP 中提供了有关使用 SOAP API 的详细信息,对于其他语言,您可能需要付出额外的努力,但是,这是可能的。

在 SuiteTalk 中有用于销售订单和项目履行的 API,因此您可以跟踪订单详细信息及其履行和运输详细信息。

您可以从 SOAP/Suitetalk API 中搜索、更新、创建和删除 orders/fulfilments。

文档可用here as Records Guide and here as platform Guide(可能需要登录 NetSuite)

或者,您可以使用 NetSuite 的 Suitescripts 在您的 NetSuite 帐户中编写 RESTlets 并将它们捆绑(如果您想跨其他 NetSuite 帐户使用),然后使用服务器端语言的 HTTPS 请求对 order/fulfulilment记录。

How do I track the order on frontend as a customer using Nestuite Order Tracking API ?

从前端开始,我建议编写与 NetSuite API 通信的中间件或 Web 服务器,因为您不想公开 API

所需的 NetSUite credentials/tokens

Is there any already available API's that supports the above feature ?

是的,请参阅 syntax/API 上的链接 PDF 帮助 searching/listing orders/fulfilments 或者使用 SuiteScript 和 HTTPs 编写您自己的 RESTlet 代码。

How and where do I test if any API for order tracking is available ?

您需要为此访问 NetSuite 帐户。如果您是测试帐户的 SDN 合作伙伴,则可以申请 NetSuite。如果您的公司不是 SDN 合作伙伴,您可以仅使用您公司的电子邮件 ID 申请社区支持的测试帐户。

Working on localhost, what change should be done in NSConfig.php parameters to test sample API's provided ?

你不能在本地主机上测试,你必须有一个 NetSuite 帐户

$nsendpoint = "2015_1"; //not required to change
$nshost = "https://webservices.netsuite.com"; //once you obtain the NetSuite account will vary based on you data center

$nsemail = "jDoe@netsuite.com"; // your login email
$nspassword = "mySecretPwd"; // your password
$nsrole = "3"; //your role Id (if you are an admin you can leave it)
$nsaccount = "MYACCT1"; // your netsuite account Id