Shipit DocumentationShipit Documentation
Home
API
Webhooks
Shipit Delivery Checkout
Shipit Return and Exchange
Shopify Delivery Checkout
  • English
  • Suomi
  • Svenska
  • Eesti
  • Dansk
  • Norsk
Home
API
Webhooks
Shipit Delivery Checkout
Shipit Return and Exchange
Shopify Delivery Checkout
  • English
  • Suomi
  • Svenska
  • Eesti
  • Dansk
  • Norsk
  • Shopify Delivery Checkout

    • Shopify Delivery Checkout
    • Advanced Sorting
    • Understanding Rules
    • Condition Types Reference
    • Priority System: Why Order Matters
    • Common Scenarios
    • Troubleshooting
  • Configuration

    • Settings Overview
    • Automation Workflows
    • How Information Flows
  • Integration & APIs

    • Shipping Method Query
    • Pickup Point Query

Pickup Point Query

This guide explains how to retrieve pickup point information from Shopify orders when customers select delivery to a pickup location.

Overview

When an order is placed through Shopify using Shipit with a pickup point delivery option, the pickup location details are stored as an order metafield. This information includes the pickup point's name, address, and geographic coordinates.

Querying the Metafield

Use Shopify's GraphQL Admin API to fetch the pickup point metafield:

{
  order(id: "gid://shopify/Order/11817062072652") {
    pickupPointMetafield: metafield(namespace: "shipit", key: "pickup_point") {
      id
      value
    }
  }
}

Metafield location:

  • Namespace: shipit
  • Key: pickup_point

Example Response

{
  "data": {
    "order": {
      "pickupPointMetafield": {
        "id": "gid://shopify/Metafield/182176401359180",
        "value": "{\"id\":\"6013\",\"name\":\"Automaatti S-Market Orimattila\",\"address\":\"Erkontie 16\",\"city\":\"ORIMATTILA\",\"postalCode\":\"16300\",\"countryCode\":\"FI\",\"distanceInMeters\":20700,\"distanceInKilometers\":20.7}"
      }
    }
  }
}

The value field contains a JSON string. When parsed, it includes:

{
  "id": "6013",
  "name": "Automaatti S-Market Orimattila",
  "address": "Erkontie 16",
  "city": "ORIMATTILA",
  "postalCode": "16300",
  "countryCode": "FI",
  "distanceInMeters": 20700,
  "distanceInKilometers": 20.7
}

Field Descriptions

FieldTypeDescription
idstringUnique identifier for the pickup point
namestringDisplay name of the pickup location
addressstringStreet address of the pickup point
citystringCity where the pickup point is located
postalCodestringPostal/ZIP code of the pickup point
countryCodestringISO 3166-1 alpha-2 country code
distanceInMetersnumberDistance from customer's address in meters
distanceInKilometersnumberDistance from customer's address in kilometers

Important

The id field is what you need to create shipments via Shipit's API. In this example, the value is 6013.

Using with Shipit API

When creating shipments through Shipit's API, send the id value as the pickupId parameter.

See Shipit's API documentation for complete shipment creation details.

Last Updated: 6/13/26, 7:25 AM
Contributors: Brian Faust
Prev
Shipping Method Query