To meet the future requirements of handling products and aligning with Scalepoint's architecture, we have developed this new way of integrating with Scalepoint.
Functionality is based on events and REST API. This solution enables us to inform our suppliers and let our suppliers update us on e.g. stock, delivery, etc. As a Supplier, you could integrate with Scalepoint for receiving orders and updated order status and also be able to publish order related information via events.
This solution includes a ORDER-CREATED event and Order Data API.
Every time when ClaimShop receives the order from shop, ecc publishes a ORDER-CREATED event to event-api. Event Api publishes the event to the defined suppliers web-hooks service. Supplier uses Order Data API to fetch all the details about the specific order by using the Order Token received part of the ORDER-CREATED event.
For example, when ClaimShop publishes an order the ORDER-CREATED event looks like below
{
"eventType": "order_created",
"payloadVersion": "1.0.0",
"correlationId": "8418F893-02AF-43AF-802B-F7F71C243969",
"timestamp": "2018-12-27T08:46:36+0200",
"case": {
"uuid": "91c034af-a24f-42e7-81cb-a293d466f445",
"number": "CH60158270",
"externalClaimId": "",
"token": "c.8418F893-02AF-43AF-802B-F7F71C243969",
"caseType": "contentClaim"
},
"orderToken": "BC6270D7-B0FB-434F-BF83-93E361C335CD"
}
As a supplier you use the orderToken in order to get the full details about the order using Order Data API. For example in this case the URL looks like below
https://www.scalepoint.com/api/Orders?ExternalId=BC6270D7-B0FB-434F-BF83-93E361C335CD
** High level architecture diagram of the solution: **
Supplier Integration Sequence Diagram
Supplier Backend: Supplier backend system which could be able to integrate with Scalepoint backend systems
Authorization Server: Please refer to the documentation about details of authentication process.
Event API: Please refer to the documentation about details of event api and how to receive events using webhooks mechanism
Order Data REST API: Please refer to the documentation on how order data REST API works.