Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Mercaline2024/Ecomdrop-ia-connector-2/llms.txt

Use this file to discover all available pages before exploring further.

The Orders API provides endpoints for retrieving and managing Shopify orders.

Poll Recent Orders

Retrieves the most recent orders from Shopify with detailed information including line items, customer data, and shipping addresses.
GET /api/orders/poll
Both GET and POST methods are supported for this endpoint.

Response

success
boolean
Whether the request was successful
orders
array
Array of recent orders (up to 10)
count
integer
Number of orders returned

Example Response

{
  "success": true,
  "orders": [
    {
      "id": "gid://shopify/Order/5678901234567890",
      "name": "#1001",
      "createdAt": "2026-03-04T10:30:00Z",
      "financialStatus": "PAID",
      "fulfillmentStatus": "UNFULFILLED",
      "totalPrice": "149.99",
      "currency": "USD",
      "lineItems": [
        {
          "id": "gid://shopify/LineItem/123",
          "name": "Premium Product",
          "quantity": 2,
          "variant": "Small / Red",
          "sku": "PROD-SM-RED",
          "productId": "gid://shopify/Product/7891234567890"
        }
      ],
      "shippingAddress": {
        "firstName": "John",
        "lastName": "Doe",
        "address1": "123 Main St",
        "city": "New York",
        "province": "NY",
        "country": "United States",
        "zip": "10001",
        "phone": "+1234567890"
      },
      "customer": {
        "id": "gid://shopify/Customer/987654321",
        "email": "john.doe@example.com",
        "firstName": "John",
        "lastName": "Doe",
        "phone": "+1234567890"
      },
      "tags": ["ecomdrop-pending"],
      "note": "Please ship ASAP"
    }
  ],
  "count": 1
}
This endpoint returns the 10 most recent orders sorted by creation date (newest first).
Requires appropriate Shopify API permissions to access order data.

Build docs developers (and LLMs) love