Get Pickup Locations according to the results of filtration by Search Request

GET /V1/inventory/in-store-pickup/pickup-locations/

Get Pickup Locations according to the results of filtration by Search Request.

Query parameters

Responses

  • 200 Success.

    Hide response attributes Show response attributes object

    Search results for providing pickup locations.

    • items array[object] Required

      Represents sources projection on In-Store Pickup context. Realisation must follow immutable DTO concept. Partial immutability done according to restriction of current Extension Attributes implementation.

      Hide items attributes Show items attributes object

      Represents sources projection on In-Store Pickup context. Realisation must follow immutable DTO concept. Partial immutability done according to restriction of current Extension Attributes implementation.

    • search_request object Required

      Endpoint used to search Pickup Locations by different parameters: - by attribute filters fields @see \Magento\InventoryInStorePickupApi\Api\Data\SearchRequest\FiltersInterface - by distance to the address @see \Magento\InventoryInStorePickupApi\Api\Data\SearchRequest\AreaInterface Also, endpoint supports paging and sort orders.

      Hide search_request attributes Show search_request attributes object
      • area object

        Filter by Distance to the Address. Pickup Locations will be filtered by distance according to the geo-position of the entered address. Required fields for the address are country and one of the field: region or city or postcode.

        Hide area attributes Show area attributes object
      • filters object

        Filter to filter by Fields. Each field may be filtered with different condition type. Supported condition types restricted by @see \Magento\Framework\Api\SearchCriteriaInterface

        Hide filters attributes Show filters attributes object
        • country object

          Filter for Pickup Location search.

          Hide country attributes Show country attributes object
        • postcode object

          Filter for Pickup Location search.

          Hide postcode attributes Show postcode attributes object
        • region object

          Filter for Pickup Location search.

          Hide region attributes Show region attributes object
        • Filter for Pickup Location search.

          Hide region_id attributes Show region_id attributes object
        • city object

          Filter for Pickup Location search.

          Hide city attributes Show city attributes object
        • street object

          Filter for Pickup Location search.

          Hide street attributes Show street attributes object
        • name object

          Filter for Pickup Location search.

          Hide name attributes Show name attributes object
        • Filter for Pickup Location search.

          Hide pickup_location_code attributes Show pickup_location_code attributes object
      • page_size integer

        Page size.

      • current_page integer Required

        Current page.

      • scope_type string Required

        Sales Channel Type.

      • scope_code string Required

        Sales Channel code.

      • sort array[object]

        Data object for sort order.

        Hide sort attributes Show sort attributes object

        Data object for sort order.

      • ExtensionInterface class for @see \Magento\InventoryInStorePickupApi\Api\Data\SearchRequestInterface

        Hide extension_attributes attribute Show extension_attributes attribute object
        • products_info array[object]

          Product Info Data Transfer Object.

          Hide products_info attributes Show products_info attributes object

          Product Info Data Transfer Object.

          • sku string Required

            Product SKU.

          • ExtensionInterface class for @see \Magento\InventoryInStorePickupApi\Api\Data\SearchRequest\ProductInfoInterface

    • total_count integer Required

      Total count.

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Hide parameters attributes Show parameters attributes object

        Error parameters item

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object

      Error parameters item

    • trace string

      Stack trace

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"
}