Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Product Now

The new version of the Onetrail Product Now service allows for much faster and more efficient connection to the Onetrail services. It has been developed in order to reduce our footprint and maximize efficiency. Here are the ins and outs of this new Product Now version.

Benefits

...

  • RESTful services have a smaller footprint than SOAP, Parsing JSON is less computationally heavy and memory intensive then XML, however we can still support XML as well.
  • Improved efficiency allows us to support bulk requests as well as single requests, this will allow buyers to retrieve multiple items with 1 request rather than multiple single requests.
  • The health check will allow you to monitor the availability and uptime of the service.
  • On daily bases you can retrieve a list of changed products and via the bulk request, retrieve the updated products.

Syntax

https://$base_url?{SellerGLN}&{PDINumber}&{SellerVPN}&{GTIN}&{Quantity}&{BidID}

...

  • Remarks:
    • At least one of the product numbers is mandatory;
    • Can now handle bulk requests as well as the usual single requests. (For bulk requests the URL is:  https://rest.onetrail.net/productApi/v1/products/bulk)

    • Uses basic authentication and user managed in the TPN Manager.

    • It's now RESTful, no longer SOAP.

  • Request Types:
    • For retrieving the list of changed products or single product request, the GET request type is used.

    • For retrieving a list of products (bulk) the POST request type is usedIn previous versions of Onetrail Product Now, HTTP-GET, REST and SOAP requests were all valid request types. With the current version we've streamlined to accept REST requests only. There are many reasons why, but the main benefits of REST over other request types are as mentioned above: It has a smaller footprint that SOAP, can handle JSON and XML as well as other data types, it's also generally faster, more efficient and requires less bandwidth.
  • Response:
    • If no Seller GLN is specified, the response will contain all products from Sellers that matches the Request of which the buyer has prices
  • Remarks:
    • The JSON response is based on the PRD version 3.1 output
    • The result can contain multiple Onetrail PDI items. In that case the response will contain n-times an ns2:product element
    • The result can contain multiple Seller items per Onetrail PDI item. In that case the response will contain n-time an ns2:sellerInfo element
    Method: GET
  • Body: JSON/XML content. To set the content type you can use the following in your HTTP header:
    • application/json
    • application/xml
  • Authentication:

    • With our update to Product Now, it also comes new improved authentication and user management. Every buyer and seller who is set up in the Onetrail TPN Manager will automatically have the rights to submit PnA requests. Previously Onetrail required Buyer credentials for a specific seller, but now it's not necessary.

Downloads

    • Product Now requests. 

Downloads

Please find below the OpenApi definition for Product Now.You'll need to load use a OpenAPI/Swagger file, this is only for JSON. Here's an example of what it should be like.

Download: ProductNow-OpenApiSampleOpenApiV1.json