- Does
searchCatalogObjectsretrieve all catalog items in the order they were created (or updated)? Is there a way to retrieve catalog objects sorted by their creation date orupdated_attimestamp? - How can we determine whether an item has a discount associated with it? Also, if that discount has a scheduling or timing rule (for example, active only during certain days or hours), which Catalog API objects or fields should we use to retrieve that information?
No, searchCatalogObjects doesn’t return catalog items sorted by created_at or updated_at, and it doesn’t support sorting by those fields. You’ll need to sort the results yourself.
To check if an item has a discount, inspect the related CatalogPricingRule and CatalogDiscount objects. If the discount is scheduled, the pricing rule contains references to the applicable time/schedule information.