I am using the ION WM API / wmwebservice_rest / {warehouse} / loads / {loadid}

The input document is a BOD Custom:
<SyncInt_LoadId> <DataArea> <Sync> <TenantID>Infor</TenantID> <AccountingEntityID/> <LocationID/> <ActionCriteria> <ActionExpression actionCode="Replace"/> </ActionCriteria> </Sync> <Int_LoadId>
<Int_LoadId> <whseid>xxxxxx_wmwhse10</whseid> <loadid>909001</loadid> <route>5001</route> <externalid>0000000301</externalid> <status>0</status> <carrierid>123456</carrierid> <trailertype>Pallet</trailertype> <drivername>Carlos</drivername> <trailerid>5556</trailerid> <stops> <stop> <loadstopid>1</loadstopid> <loadorderdetails> <shipmentorderid>0000000170</shipmentorderid> </loadorderdetails> </stop> <stop> <loadstopid>1</loadstopid> <loadorderdetails> <shipmentorderid>0000000168</shipmentorderid> </loadorderdetails> </stop> </stops> <action>A</action> <idkey>1</idkey> </Int_LoadId> </Int_LoadId> </DataArea> </SyncInt_LoadId>
|
The mapping XPath is:
{
"fieldOverrides": null,
"hrefs": [{
"ref": null,
"url": null
}],
"loadid": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/loadid"},
"route": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/route"},
"externalid": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/externalid"},
"status": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/status"},
"carrierid": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/carrierid"},
"trailertype": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/trailertype"},
"drivername": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/drivername"},
"trailerid": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/trailerid"},
"stops": [
{
"stop": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/stops/stop/loadstopid"},
"loadorderdetails": [
{ "shipmentorderid": {"IonApiRef":"SyncInt_LoadId/DataArea/Int_LoadId/Int_LoadId/stops/stop/loadorderdetails/shipmentorderid"}}
]
}
]
}
|
The document is created fine, but it only takes the first stop of the first document.
The query is like being able to generate the repetitive structure of stops.