Thetis IMS
Integration

Testing your integration

In this section we describe how you can test your integration without involving end-users. Following the guidelines here you will be able to simulate the actions performed by the end-users.

Sales order integration

When testing your sales order integration you may:

  1. POST /shipments (see here)
  2. For each line on your shipment do POST /invocations/pack (see here)
  3. POST /invocations/createDeliveryNote (see here)

After step 1 you will receive an event of type ‘shipmentCreated’. Furthermore, you will receive one or more events of the types ‘availableStockChanged’ and ‘availabilityChanged’.

After step 2 you will receive one or more events of type ‘physicalStockChanged’. This is, however, conditioned by the availability of the item in question. If it is not possible to draw the item from stock, you will not get this event.

After step 3 you will receive an event of type ‘documentCreated’ with document type equal to ‘DELIVERY_NOTE’.

Purchase order integration

When testing your purchase order integration you may:

  1. POST /inboundShipments (see here)
  2. For each line on your inbound shipment do POST /invocations/receive (see here)
  3. POST /invocations/createGoodsReceipt (see here)

After step 1 you will receive an event of type ‘inboundShipmentCreated’.

After step 2 you will receive one or more events of the type ‘availableStockChanged’, ‘physicalStockChanged’ and ‘availabilityChanged’.

After step 3 you will receive an event of type ‘documentCreated’ with document type equal to ‘GOODS_RECEIPT’.

Stock adjustment integration

When testing your stock adjustment integration you may:

  1. POST /globalTradeItemLot (see here)
  2. POST /invocations/countGlobalTradeItemLot (see here)
  3. POST /invocations/createAdjustmentList (see here)

After step 1 you will receive events of the types ‘availableStockChanged’, ‘physicalStockChanged’ and ‘availabilityChanged’.

After step 2 you will receive an event of the type ‘documentCreated’ with document type equal to ‘ADJUSTMENT_LIST’.

Return integration

When testing your return integration you may:

  1. POST /returnShipments (see here)
  2. For each line on your return shipment do POST /invocations/receiveReturned (see here)
  3. POST /invocations/createReturnReceipt (see here)

After step 1 you will receive an event of type ‘returnShipmentCreated’.

After step 2 you will receive one or more events of the types ‘availableStockChanged’, ‘physicalStockChanged’ and ‘availabilityChanged’.

After step 3 you will receive an event of the type ‘documentCreated’ with document type equal to ‘RETURN_RECEIPT’.