Improve security/business rules for endpoints that utilize filtering based on "lastModifiedDateTime" and "lastModifiedDateTime" conditions.

API Version 11.19

Affected endpoints and filter parameters

  • GET v1/inventory: lastModifiedDateTimeCondition, createdDateTimeCondition, availabilityLastModifiedDateTimeCondition, attachmentLastModifiedDateTimeCondition
  • GET v1/inventoryissue: dateCondition, lastModifiedDateTimeCondition
  • GET v1/inventoryReceipt: dateCondition, lastModifiedDateTimeCondition
  • GET v1/inventoryadjustment: dateCondition, lastModifiedDateTimeCondition
  • GET v1/inventoryTransfer: dateCondition, lastModifiedDateTimeCondition
  • GET v1/inventoryTransaction: lastModifiedDateTimeCondition, createdDateTimeCondition
  • GET v2/stocktake: freezeDateTimeCondition, expirationDateTimeCondition, lastModifiedDateTimeCondition
  • GET v1/kitassembly: lastModifiedDateTimeCondition, createdDateTimeCondition
  • GET v1/KitSpecifications: lastModifiedDateTimeCondition, createdDateTimeCondition
  • GET v1/lotserialclass: lastModifiedDateTimeCondition
  • GET v1/carrier: lastModifiedDateTimeCondition
  • GET v1/salesorder: lastModifiedDateTimeCondition
  • GET v1/salesorderbasic: lastModifiedDateTimeCondition
  • GET v1/customer/{customerCd}/salesorder: lastModifiedDateTimeCondition
  • GET v1/customer/{customerCd}/salesorderbasic: lastModifiedDateTimeCondition
  • GET v2/salesorder: lastModifiedDateTimeCondition
  • GET v1/salesordertype: lastModifiedDateTimeCondition
  • GET v1/shipment: shipmentDateCondition, lastModifiedDateTimeCondition

Valid values for all of these are >, >=, < and <=.
If a condition parameter is sent together with its date and has any other value, the endpoint now returns: 400 “Invalid ’’ value ‘’. Accepted values are >, >=, < and <=.” .
Before this change, a bad value was ignored and the list came back unfiltered.