Repository › Forums › Support › Expiry dates for WooCommerce PRO › REST API | FEATURES
- This topic has 2 replies, 2 voices, and was last updated 9 months, 2 weeks ago by Soft79.
- AuthorPosts
- December 19, 2025 at 1:23 am #21458James bellParticipant
Please can you explain how we can obtain the following:
Product get requests for simple products & Vatiations
– List of Product Expiry Dates
– List of matching quantity.Product API Updates for Simple & Variation:
– Via updating meta data key _j79_wcxd_sort_key with a date such as January 5, 2026 12:00 AM this seems to add a new date line but with the same api update I increased the overall quantity and only the overrall quanity changed and the date line January 5, 2026 12:00 AM had quantity 0.
Would it be possible to be able to add new dates with new stock.
For example Carrots:
Current: DATE: 10-12-2025 QTY: 10
UPDATE -> Add DATE: 16-12-2025 QTY: 5
AFTER UPDATE: 10-12-2025 QTY: 10 & DATE: 16-12-2025 QTY: 5
Is this possible to obtain? thank you guys we love the l=plugin so far but this is just letting us down at the moment.
December 22, 2025 at 9:30 pm #21463Soft79KeymasterSorry for the late reply. We’ll get back to you in a few days.
December 29, 2025 at 11:38 am #21465Soft79KeymasterWe don’t have special endpoints for REST API, but you can use the product’s meta fields as follows:
_j79_wcxd_expiriesshould be in this format:2018-01-12 x 5, 2018-03-20 x 10. It contains the expiry dates and quantities separated by a comma_j79_wcxd_sort_keyis only used for ordering of the products on the ‘Edit products’-page. It should contain the date of the oldest expiry date of a product, e.g.2018-01-12
Please note that we format the dates as YYYY-MM-DD.
For more detail, please check out method
Save()inSOFT79_WCXD_Product_Logic.php. - AuthorPosts
- You must be logged in to reply to this topic.