Get the Add-ons for Items in an Order via REST API with Product Add-Ons

it is not possible with Product Add-Ons to Get the Add-ons for Items in an Order via API.

As per Product Add Ons API Docs (docs/api/orders.md) the route wp-json/wc/v1/product-add-ons/order/ should retrieve or Get the Add-ons for Items in an Order… but it’s not working on version 3.0.32 (latest as of the date of this post).

We are expecting the API to give the results as per documentation, but instead, we are getting this error:
{
“code”: “rest_no_route”,
“message”: “No route was found matching the URL and request method”,
“data”: {
“status”: 404
}
}

Looks like API for this plugin has some issues 🙁

Image of problem 2: https://drive.google.com/file/d/1KEUGzHyvIUgVhWW_fZTbyJwRFj0uh9fV/view?usp=sharing

Author

Current Status

Open

Last updated: May 29, 2020

2 comments

Log in to comment on this feature request.

  1. rachelelizabird says:

    This is an old thread, I just wanted to comment that this functionality appears to have been added/fixed at some point. The current version at the time of posting this is 5.0.3 and it is working/the add-ons information is delivered when called via the API.

  2. nvhdab says:

    Just to clarify, the real feature request is to be able to retrieve orders via API as it is intended in you current API docs but not working. Please do not remove this feature, but fix it instead. Thanks.