Versions Compared

Key

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

This article describes the REST APIs available to support the order process. It gives an overview of existing providers, and log tracing of API calls.

...

APIIn paramsResponseProvider name
GetPrice

Authentication information

A list of part numbers

Price and currency for each part.

NLA code for each part.

Replacement information for each part.

Result codes (message and error on each part)

<PriceProvider>

GetAvailability

Authentication information

A list of part numbers

List of availabilities for each part (if several warehouses)

Result codes (message and error on each part)

<AvailabilityProvider>
GetAddressesAuthentication information

List of addresses

List of order types

Temporary address permission (optional)

Result code (message and error on each address)

<AddressProvider>
AddToOrderCart

Authentication information

A list of part numbers

Order line results

Result codes

<AddToOrderCartProvider>

PlaceOrder / ValidateOrder

Authentication information

Order (header and order lines)

Order (updated if needed with NLA and replacements)

Result codes (message on order, error on order, message on order line, error on order lines)

<PlaceOrderProvider>

<ValidateOrderProvider> (version 5.0)

GetOrders

Authentication information

Orders, one line per order

Result codes

<OrderHistoryProvider>

GetOrderDetails

Authentication information

Order number

Order header, order lines, shipment lines

Result codes

<OrderDetailProvider>
 SigninReturnUrl Success or failure status <AutenticateProvider>
 Authenticate SesssionId User record; name, id, permissions etc.  <AutenticateProvider>

PlaceOrder / ValidateOrder

...

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="PostCustomPlaceOrderServiceSoapBinding" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000">
<readerQuotas maxDepth="32" maxArrayLength="200000000" maxStringContentLength="200000000" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://www.domain.com/WebServices/CustomOrderService/post" binding="basicHttpBinding" bindingConfiguration="PostCustomPlaceOrderServiceSoapBinding" contract="CustomPlaceOrderService.CustomOrderServicePostPort" name="CustomOrderServicePost" />
</client>
</system.serviceModel>

Tracing

Every API provides the possibility to write trace logs. Trace log is turned on using the below xml in profile.config.

...

e1f540ea-f4f8-4e8e-a123-76d451d5dba8 is the GUID of the session. _28 is a counter which will be kept the same for request and respose.


Login / Authenticate

User starts in back end system and navigates to Signifikant, where the Url will contain a session-id to identify the user to the back end system when an order later on is placed, 

Signifikant calls the backend system to authenticate the user, and to get the user record with name, permissions etc.

Or the user starts in Signifikant where the backend system is called with sign-in request. When it returns with a signed in user and a session-id, Signifikant makes an authenticate call as above.


Info
Use tracing files for first error search of APIs. See related article Error search order API for more information.

...