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

Shipping Method Query

This guide explains how to retrieve shipping method information from Shopify orders to use with Shipit's API.

Overview

When an order is placed through Shopify using Shipit, the shipping method details are stored as an order metafield. The shipit_service_id is the critical value needed to create shipments via Shipit's API.

Querying the Metafield

Use Shopify's GraphQL Admin API to fetch the shipping method metafield:

{
  order(id: "gid://shopify/Order/12017520017740") {
    shippingMethodMetafield: metafield(namespace: "shipit", key: "shipping_method") {
      id
      value
    }
  }
}

Metafield location:

  • Namespace: shipit
  • Key: shipping_method

Example Response

{
  "data": {
    "order": {
      "shippingMethodMetafield": {
        "id": "gid://shopify/Metafield/184574640718156",
        "value": "{\"service_name\":\"Matkahuolto - Ulkomaan Lähellä-paketti\",\"shipit_service_id\":\"mh.mh95\",\"metafield_updated_at\":\"2025-11-13T17:10:24.235814Z\"}"
      }
    }
  }
}

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

{
  "service_name": "Matkahuolto - Ulkomaan Lähellä-paketti",
  "shipit_service_id": "mh.mh95",
  "metafield_updated_at": "2025-11-13T17:10:24.235814Z"
}

Important

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

Using with Shipit API

When creating shipments through Shipit's API, send the shipit_service_id value as the serviceId parameter.

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

Last Updated: 6/13/26, 7:25 AM
Contributors: Brian Faust
Next
Pickup Point Query