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

These are advantages of using the Product Now:

  • 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.

Syntax

https://$base_url/pde/rest/v5/products?{SellerGLN}&{PDINumber}&{SellerVPN}&{GTIN}&{Quantity}&{BidID}

Example: httphttps://prd-tpn-pna-5.cloud.rest.onetrail.net:8088/pdeproductApi/restv1/v5/products?SellerGLN=8714253023236&PDINumber=C7978A

  • Variables:
    • SellerGLN (multiple ; separated)= provide the GLN from the Seller
    • PDINumber = Onetrail TPN™ PDI number
    • SellerVPN = Seller Vendor part number
    • GTIN = Seller Global Trade Item Number (EAN)
    • Quantity = Quantity for which you want the price and availability
    • BidID = Contract ID for the price of a contract product

...

  • 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

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-OpenApiSample