Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › REST API fields › Reply To: REST API fields
Hi!
I am sorry but I don’t understand what it is this 2209 and which information is “mytextchange”.
In my case I have a user ordering an order (order_id=14) of a product (product_id=9) and added one extra option.
I created the basic order with WooCommerce REST API: POST server_url/wp-json/wc/v2/orders
And now want to add the PPOM extra field:
POST server_url/wp-json/ppom/v1/set/order/?order_id=14&secret_key=secret&fields=[{“9”:{????]
If my options are (using GET server_url/wp-json/ppom/v1/get/product/?product_id=9&secret_key=secret):
{
“status”: “success”,
“message”: “Meta found 1”,
“meta_id”: 1,
“product_id”: 9,
“ppom_fields”: [
{
“title”: “Fields title 1”,
“type”: “quantities”,
“data_name”: “Fields name 1”,
“description”: “Opcions to add”,
“required”: “”,
“options”: [
{
“option”: “Option 1”,
“price”: “1,20”,
“min”: “0”,
“max”: “”,
“id”: “option1”
}]
}]
}
What shall I add on the “????” of the Rest API request?
Thank you in advance!