Skip to content
Last update: January 30, 2024

FullfillmentCenters query

This connection allows you to search for fulfillment centers.

Argument

Argument Description
after {String} A cursor value to paginate through the results.
first {Int} The number of pages in a single query.
storeId {String} The Id of the store to retrieve pages from.
query {String} Performs the full-text search.
sort {String} Specifies the sorting order of the returned products.
fullfillmentCentersIds {String} Identifies fullfillment centers. This argument is exclusive! If set, it overrides all other arguments.

Possible returns

Possible return Description
FulfillmentCenterConnection A data type that describes a fulfillment center.

Examples

{
  fulfillmentCenters(
    fulfillmentCenterIds: ["vendor-fulfillment", "los-angeles-fulfillment"]
  ) {
    totalCount
    items {
      id
      name
      shortDescription
      address {
        city
        countryCode
      }
    }
  }
}
{
  "data": {
    "fulfillmentCenters": {
      "totalCount": 1,
      "items": [
        {
          "id": "vendor-fulfillment",
          "name": "Los Angeles Branch",
          "shortDescription": null,
          "address": {
            "city": "Los Angeles",
            "countryCode": "USA"
          }
        }
      ]
    }
  }
}    
{
  products (storeId:"B2B-store")
  {
    items{
      name
      availabilityData
      {
        isActive
        inventories
        {
          fulfillmentCenterId
          fulfillmentCenterName
          inStockQuantity
        }
      }
    }
  }
}
{
  "data": {
    "products": {
      "items": [
        {
          "name": "1\" Steel Carriage Bolt, Grade 5, Chrome Plated Finish, 1/4\"-20 Dia/Thread Size, 5 PK",
          "availabilityData": {
            "isActive": true,
            "inventories": [
              {
                "fulfillmentCenterId": "tulsa-branch",
                "fulfillmentCenterName": "Tennessee Branch",
                "inStockQuantity": 10
              },
              {
                "fulfillmentCenterId": "vendor-fulfillment",
                "fulfillmentCenterName": "Los Angeles Branch",
                "inStockQuantity": 10
              }
            ]
          }
        },
        {
          "name": "Eye Bolt,Carbon Steel 4.6,M6x70,PK25",
          "availabilityData": {
            "isActive": true,
            "inventories": [
              {
                "fulfillmentCenterId": "vendor-fulfillment",
                "fulfillmentCenterName": "Los Angeles Branch",
                "inStockQuantity": 9
              },
              {
                "fulfillmentCenterId": "c20d27cdb09c4c7abd5d78a71510ab83",
                "fulfillmentCenterName": "New York Branch",
                "inStockQuantity": 9
              },
              {
                "fulfillmentCenterId": "tulsa-branch",
                "fulfillmentCenterName": "Tennessee Branch",
                "inStockQuantity": 9
              },
              {
                "fulfillmentCenterId": "142ba5568ae4454aad553ece41b9c3b5",
                "fulfillmentCenterName": "Chicago Branch",
                "inStockQuantity": 0
              }
            ]
          }
        },
        {
          "name": "Eyebolt, 1/2-13,3/8In",
          "availabilityData": {
            "isActive": true,
            "inventories": [
              {
                "fulfillmentCenterId": "vendor-fulfillment",
                "fulfillmentCenterName": "Los Angeles Branch",
                "inStockQuantity": 245
              }
            ]
          }
        }
      ]
    }
  }
}