The Serialized Logistics V2 API channel is an extension of the Serialized Logistics application. The Serialized Logistics V2 API endpoints are used for creating orders and adding a new delivery to an order.


Next to the Serialized Logistics V2 API, you can configure the webhook. Give the endpoint URL of the subscribing system and when there is a change in the status of an order, Movilitas.Cloud sends the order details to that system. To verify the webhook settings, you can manually execute a webhook. A webhook log is also available to verify the success of the webhook and the order details sent to the external system.


You can configure the Serialized Logistics V2 API and the webhook by following the steps explained below. For more information on the general channel actions, see Managing Channels for a Tenant (Overview).


List of Procedures


Configuring a Serialized Logistics V2 API Channel


Procedure


1. Go to Movilitas.Cloud Console --> My tenants.

2. Select the tenant or click Open tenant next to it.

3. On the Tenant Dashboard, select the Channels tab. The application displays the list of channels assigned to the tenant.



4. Click the + icon (Create channel). The application displays the Create channel dialog.


5. Select Shopfloor channel as the type and click Create. The application displays the Create Channel page with an empty form to give the parameters of the channel.


6. Enter a name for the channel and select Serialized Logistics V2 API as the source.


7. Click Create Channel.

  • The application informs you about the additional costs. After confirming the creation, the application displays the Edit Channel page.
  • The channel key is also generated that you will need when sending the API requests to the Movilitas.Cloud application. You can find and copy the channel key at the top of the Edit shopfloor channel panel.
  • Optionally, you can modify the name of the channel at any time.  


Example:



Next Steps


To communicate over the Serialized Logistics V2 API:

  1. Configure the Serialized Logistics application.
  2. Obtain an authentication token after creating the API key and secret.
  3. Copy and keep the channel key of the Serialized Logistics V2 API channel for the API communication.


For more information, see Before You Send Any API Request and Serialized Logistics V2 API.


Back to the list of procedures


Configuring Webhook


Webhook enables Movilitas.Cloud to send the order details to an external system when there is a change in the status of an order. Provide the endpoint URL of the subscribing system and activate sending webhooks.


Procedure


1. Go to Movilitas.Cloud Console --> My tenants.

2. Select the tenant or click Open tenant next to it.

3. On the Tenant Dashboard, select the Channels tab. The application displays the list of channels assigned to the tenant.

4. To search for a Serialized Logistics V2 API channel, use the search field and the filters:

  • Enter the channel name in the search field.
  • Select the status.
  • Select Serialized Logistics V2 API as the source.
  • Select Shopfloor channel as the type.

5. To view the channel information, click on the channel name or the edit icon (Edit channel) next to the channel. The application displays the Serialized Logistics V2 API channel details, the Webhook Settings panel, and the Webhook Logs.


The following example illustrates the case when we are configuring webhook from scratch:



6. Provide the endpoint URL to receive the details of an inbound external order when there is a change in the status of the order.


7. If authorization is required to send messages to the specified endpoint, select the Authorization checkbox and configure the security settings. The required fields are marked with an asterisk (*) in the form.


FieldDescription
Authorization TypesSelect the type of authorization. The supported value is API Key.
KeyEnter the key as expected by the subscribing system. For example, "API-Key".
Value
Enter the API key value that was generated in an external system, for example, the SAP client.
Add to
Specify where to add the credentials in the request. The supported value is Header.



8. Activate webhook by selecting the Active checkbox.


The following example illustrates the case when authorization is also set for the webhook:



9. Click Save.


The webhook is configured. If there is a change in the status of an order in the Serialized Logistics application, Movilitas.Cloud sends the order data to the configured endpoint.


Next Steps


Test the webhook settings manually by providing the order ID of an existing order.


Back to the list of procedures


Testing Webhook


To test the webhook settings, you can manually execute a webhook by providing the order ID of an existing order.


Before You Begin


Make sure that the order is existing in the Serialized Logistics application.


Procedure


1. Open the endpoint URL of the external system in your browser.

2. Go to Movilitas.Cloud Console --> My tenants.

3. Select the tenant or click Open tenant next to it.

4. On the Tenant Dashboard, select the Channels tab. The application displays the list of channels assigned to the tenant.

5. To search for a Serialized Logistics V2 API channel, use the search field and the filters:

  • Enter the channel name in the search field.
  • Select the status.
  • Select Serialized Logistics V2 API as the source.
  • Select Shopfloor channel as the type.

6. To view the channel information, click on the channel name or the edit icon (Edit channel) next to the channel. The application displays the Serialized Logistics V2 API channel details, the Webhook Settings panel, and the Webhook Logs.


7. On the Webhook Settings panel, enter the order ID in the Order ID field and click Execute.


Movilitas.Cloud sends the order data to the external system through a webhook.


Example:



8. Verify the order data in the webhook logs and in the external system.


If the log belonging to the order is in successful status (green checkmark icon) and you can see the order data in the external system, your webhook settings are correct. Next to the log, an indicator (i) icon is displayed to show that the webhook was manually executed.


The following example illustrates the case when the webhook was successful, and the webhook settings are correct:




Result:


When there is a change in the status of an order in the Serialized Logistics application, Movilitas.Cloud automatically sends the order details to the subscribed system through a webhook without human intervention.


Back to the list of procedures


Viewing Webhook Logs


A log is created each time the order details are sent through a webhook due to a status change. The logs are collected in a separate table. For each log, you can see the status of the request, the date and time when the update was sent, and the order ID. An indicator (i) icon next to the log helps you to identify the manually executed webhooks (manually sent messages).


You can search for a log by entering the order ID and filtering on the status (success or failed). You can expand the log to verify the order details sent in the webhook and the response from the external system (if any).


Procedure


1. Open the endpoint URL of the external system in your browser.

2. Go to Movilitas.Cloud Console --> My tenants.

3. Select the tenant or click Open tenant next to it.

4. On the Tenant Dashboard, select the Channels tab. The application displays the list of channels assigned to the tenant.

5. To search for a Serialized Logistics V2 API channel, use the search field and the filters:

  • Enter the channel name in the search field.
  • Select the status.
  • Select Serialized Logistics V2 API as the source.
  • Select Shopfloor channel as the type.

6. To view the channel information, click on the channel name or the edit icon (Edit channel) next to the channel. The application displays the Serialized Logistics V2 API channel details, the Webhook Settings panel, and the Webhook Logs.


Example:



7. On the Webhook Logs panel, investigate the logs.

  • If you see a green checkmark icon next to the log, sending the order details for the status change was successful.
  • If you see a red exclamation mark icon next to the log, sending the order details for the status change failed.
  • If you see an (i) indicator icon next to the log, the message was manually sent to the endpoint URL.


8. Search for a log by entering the order ID in the search field and selecting the status of the log. The logs are filtered based on the search criteria.


9. To view the order details sent in the log, expand the log by clicking > (Expand).


In the following example, we are searching for all the logs for order ID "Order220125-2" and are viewing the details of the last log:

  • There were four status changes of the order (four logs). All of them were sent automatically because there is no indicator (i) icon next to them.
  • Each log was successful (green checkmark icon on the left).
  • Each log contains the order details for the specific status change.
  • The last log is expanded to view the order details sent in the webhook and the response from the external system.
  • The order details contain data related to the order, the line items, and the deliveries. Status is provided for the order, for the deliveries, and for the line items under a delivery. For each delivery, it is possible to verify the expected quantity versus the received quantity per line item.




Back to the list of procedures