Get Pickup Locations according to the results of filtration by Search Request
Get Pickup Locations according to the results of filtration by Search Request.
Query parameters
-
searchRequest[area][radius] integer
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.
-
searchRequest[pageSize] integer
Page size.
-
searchRequest[currentPage] integer
Current page.
-
searchRequest[scopeType] string
Sales Channel Type.
-
searchRequest[scopeCode] string
Sales Channel code.
-
Sorting field.
-
Sorting direction.
-
Product SKU.
GET /V1/inventory/in-store-pickup/pickup-locations/
curl \
-X 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 (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}