Versions Compared

Key

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

...

The Message exchange API for Buyers supports the real time price and availabilitysending orders.

Design

The Message exchange API for Sellers is payload agnostic, meaning the service is generic for all order related message types and thus not aware of the content of the message. Message validation (schema validation in case of XML) needs to be performed outside of the service. The API supports JSON, XML and EDIFACT.

The Message exchange API Service for Buyers is payload agnostic and supports JSON and XML.

Message definitions

Onetrail supports JSON, XML and EDIFACT for the REST servicesMessage exchange API. The message documentation and definitions can be found here: Message Types

...

  • Method: POST
  • Body: XML or EDIFACT content

From Onetrail to Seller

This API needs to be implemented by the seller.

https://$base_url/tradingpartner/{fromGLN}/msgtype/{msgType}/msg/{msgID}

Example: https://acc-rest.onetrailseller.netcom/tradingpartner/8714253023366/msgtype/Order/msg/OrdReqTest001

  • base_url:
    • Acceptance: to be provided by the Seller
    • Production: to be provided by the Seller
  • Variables:
    • {fromGLN} = GLN for the buyer sending the message
    • {msgType} = Order
    • {msgID} = the unique messageID
  • Method: POST
  • Body: XML, JSON or EDIFACT content

From Buyer to Onetrail (Order)

...

  • Method: POST
  • Body: XML, EDIFACT or JSON content
    • for JSON, please contact your consultant for additional requirements like namespaces.

From Onetrail to Buyer

The buyer needs to implement a REST API that matches the below definition.

https://$base_url/exchange/rest/tradingpartner/{toGLN}/msgtype/{msgType}/msg/{msgID}

Example: https://rest.buyer.com/exchange/rest/tradingpartner/8714253023366/msgtype/OrderResponse/msg/OrdRspTest001

  • Variables:
    • {toGLN} = provide the GLN for the buyer, or use fixed value unknown otherwise
    • {msgType} = OrderResponse, DespatchAdvice or Invoice
    • {msgID} = the unique messageID
  • Method: POST
  • Body: XML or EDIFACT content

Security

The REST service uses basic authentication and TLS 1.2 security settings. Credentials will be provided by Onetrail., Seller or Buyer.