Get Pickup Locations according to the results of filtration by Search Request.
Query parameters
-
Search radius in KM.
-
Search term string.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Value.
-
Condition Type.
-
Page size.
-
Current page.
-
Sales Channel Type.
-
Sales Channel code.
-
Sorting field.
-
Sorting direction.
-
Product SKU.
GET
/V1/inventory/in-store-pickup/pickup-locations/
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/inventory/in-store-pickup/pickup-locations/'
Response examples (200)
{
"items": [
{
"pickup_location_code": "string",
"name": "string",
"email": "string",
"fax": "string",
"contact_name": "string",
"description": "string",
"latitude": 42.0,
"longitude": 42.0,
"country_id": "string",
"region_id": 42,
"region": "string",
"city": "string",
"street": "string",
"postcode": "string",
"phone": "string",
"extension_attributes": {}
}
],
"search_request": {
"area": {
"radius": 42,
"search_term": "string"
},
"filters": {
"country": {
"value": "string",
"condition_type": "string"
},
"postcode": {
"value": "string",
"condition_type": "string"
},
"region": {
"value": "string",
"condition_type": "string"
},
"region_id": {
"value": "string",
"condition_type": "string"
},
"city": {
"value": "string",
"condition_type": "string"
},
"street": {
"value": "string",
"condition_type": "string"
},
"name": {
"value": "string",
"condition_type": "string"
},
"pickup_location_code": {
"value": "string",
"condition_type": "string"
}
},
"page_size": 42,
"current_page": 42,
"scope_type": "string",
"scope_code": "string",
"sort": [
{
"field": "string",
"direction": "string"
}
],
"extension_attributes": {
"products_info": [
{
"sku": "string",
"extension_attributes": {}
}
]
}
},
"total_count": 42
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<items type="array">
<item>
<pickup-location-code>string</pickup-location-code>
<name>string</name>
<email>string</email>
<fax>string</fax>
<contact-name>string</contact-name>
<description>string</description>
<latitude type="float">42.0</latitude>
<longitude type="float">42.0</longitude>
<country-id>string</country-id>
<region-id type="integer">42</region-id>
<region>string</region>
<city>string</city>
<street>string</street>
<postcode>string</postcode>
<phone>string</phone>
<extension-attributes>
</extension-attributes>
</item>
</items>
<search-request>
<area>
<radius type="integer">42</radius>
<search-term>string</search-term>
</area>
<filters>
<country>
<value>string</value>
<condition-type>string</condition-type>
</country>
<postcode>
<value>string</value>
<condition-type>string</condition-type>
</postcode>
<region>
<value>string</value>
<condition-type>string</condition-type>
</region>
<region-id>
<value>string</value>
<condition-type>string</condition-type>
</region-id>
<city>
<value>string</value>
<condition-type>string</condition-type>
</city>
<street>
<value>string</value>
<condition-type>string</condition-type>
</street>
<name>
<value>string</value>
<condition-type>string</condition-type>
</name>
<pickup-location-code>
<value>string</value>
<condition-type>string</condition-type>
</pickup-location-code>
</filters>
<page-size type="integer">42</page-size>
<current-page type="integer">42</current-page>
<scope-type>string</scope-type>
<scope-code>string</scope-code>
<sort type="array">
<sort>
<field>string</field>
<direction>string</direction>
</sort>
</sort>
<extension-attributes>
<products-info type="array">
<products-info>
<sku>string</sku>
<extension-attributes>
</extension-attributes>
</products-info>
</products-info>
</extension-attributes>
</search-request>
<total-count type="integer">42</total-count>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>