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:
- POST /shipments (see here)
- For each line on your shipment do POST /invocations/pack (see here)
- 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:
- POST /inboundShipments (see here)
- For each line on your inbound shipment do POST /invocations/receive (see here)
- 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:
- POST /globalTradeItemLot (see here)
- POST /invocations/countGlobalTradeItemLot (see here)
- 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:
- POST /returnShipments (see here)
- For each line on your return shipment do POST /invocations/receiveReturned (see here)
- 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’.