Repository › Forums › Support › Expiry dates for WooCommerce PRO › REST API | FEATURES

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21458
    James bell
    Participant

    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.

    #21463
    Soft79
    Keymaster

    Sorry for the late reply. We’ll get back to you in a few days.

    #21465
    Soft79
    Keymaster

    We don’t have special endpoints for REST API, but you can use the product’s meta fields as follows:

    • _j79_wcxd_expiries should 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_key is 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() in SOFT79_WCXD_Product_Logic.php.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.