Good day. I would like to know how I can specify a pickup location when placing an order using the standard API? The store_locator module is installed, everything is configured, and judging by the source code of the module, we can say that before placing an order, the fn_store_locator_api_orders_create_before_place_order hook is triggered, which should process the selected pickup point.
The possibility to select pickup points via API was added in 4.15.2. The syntax should be the following:
{
...
"select_store": {
"0": {
"shipping_method_id": pickup_location_id
},
...
in case vendors are present in the order
"1": {
"shipping_method_id": pickup_location_id
}
...
}
...
}