Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › REST API fields › Reply To: REST API fields
July 24, 2018 at 5:55 am
#9132
Daniel
Participant
Thank you for the example, but I am afraid the original question was how to add a extra field in an ORDER.
We tried, something like this:
POST server_url/wp-json/ppom/v1/set/order/?order_id=14&secret_key=secret&fields={“9”:{[
{
“option”: “Option 1”,
“price”: “1,20”,
“id”: “option1”
}]]}
Where id_product=9 and id_order=14.
The endpoint doesn’t give an error, but doesn’t add the fields neither.
Should the id_product (9 in my example) be the line item id of the order?
Using this endpoint will automatically add the price to the order price or we have to do it manually?
A sample request might be really helpful.
Thank you!