Setting information when creating via API
-
I need to be able to pass options and the value provided by this plugin via API. Normally, when doing so via the website directly, when the POST request is sent and data is encoded using application/x-www-form-urlencoded, the following parameters are passed:
&pi_delivery_type=delivery&pi_delivery_date=21S May 2021&pi_system_delivery_date=2021/05/21&pi_delivery_time=&
My question is how to pass these parameters when creating an order via API, for example using the JSON for the order:
{ "payment_method": "cod", "payment_method_title": "Cash on Delivery", "billing": { "first_name": "Noorani", "last_name": "Bakerally", "address_1": "Abattoir Road", "address_2": "", "postcode": "230", "country": "MU", "email": "[email protected]", "phone": "+23059290805" }, "shipping": { "first_name": "Noorani", "last_name": "Bakerally", "address_1": "Abattoir Road", "address_2": "", "postcode": "230", "country": "MU", "email": "[email protected]", "phone": "+23059290805" }, "line_items": [{ "product_id": 2323, "quantity": 1 }] }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Setting information when creating via API’ is closed to new replies.