Browse the API docs

Orders

Orders from checkout, draft orders and the API. Statuses change through the endpoints below, which take and return stock, send the customer's emails and fire webhooks exactly as the admin does. Money fields are decimal strings in the order's currency.

Endpoints#

Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.

The order object#

order
{
  "id": "cm2ordr0001",
  "name": "#1031",
  "number": 1031,
  "order_number": 1031,
  "email": "[email protected]",
  "phone": null,
  "currency": "USD",
  "financial_status": "paid",
  "fulfillment_status": null,
  "status": "open",
  "cancelled_at": null,
  "cancel_reason": null,
  "closed_at": null,
  "source_name": "api",
  "payment_gateway_names": [
    "manual"
  ],
  "gateway": "manual",
  "subtotal_price": "116.00",
  "total_discounts": "0.00",
  "total_shipping_price": "6.00",
  "total_tax": "0.00",
  "taxes_included": false,
  "total_price": "122.00",
  "total_paid": "122.00",
  "total_refunded": "0.00",
  "total_outstanding": "0.00",
  "discount_codes": [],
  "shipping_lines": [
    {
      "title": "Standard shipping",
      "price": "6.00"
    }
  ],
  "shipping_address": {
    "first_name": "Amara",
    "last_name": "Okafor",
    "name": "Amara Okafor",
    "company": null,
    "address1": "12 Alder Street",
    "address2": null,
    "city": "Portland",
    "province": "Oregon",
    "zip": "97205",
    "country": "United States",
    "country_code": "US",
    "phone": null
  },
  "customer": {
    "id": "cm2cust0001",
    "email": "[email protected]",
    "first_name": "Amara",
    "last_name": "Okafor",
    "phone": null
  },
  "line_items": [
    {
      "id": "cm2line0001",
      "product_id": "cm2prod0001",
      "variant_id": "cm2vari0001",
      "title": "Linen shirt",
      "variant_title": "M / Sand",
      "name": "Linen shirt - M / Sand",
      "sku": "LINEN-M-SND",
      "vendor": "Juniper & Co.",
      "quantity": 2,
      "current_quantity": 2,
      "price": "58.00",
      "total_discount": "0.00",
      "fulfilled_quantity": 0,
      "fulfillable_quantity": 2,
      "refunded_quantity": 0,
      "removed_quantity": 0,
      "requires_shipping": true,
      "taxable": true,
      "gift_card": false,
      "image": "https://storeloom.example/seed/shirt-sand.svg"
    }
  ],
  "fulfillments": [],
  "refunds": [],
  "note": null,
  "tags": "marketplace",
  "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
  "locale": "en",
  "presentment_currency": "USD",
  "shop_currency": "USD",
  "market_id": "cm2mrkt0001",
  "total_price_set": {
    "shop_money": {
      "amount": "122.00",
      "currency_code": "USD"
    },
    "presentment_money": {
      "amount": "122.00",
      "currency_code": "USD"
    }
  },
  "delivery_method": "shipping",
  "pickup_location_id": null,
  "ready_for_pickup_at": null,
  "picked_up_at": null,
  "pos_shift_id": null,
  "edited_at": null,
  "processed_at": "2026-10-23T09:30:00.000Z",
  "created_at": "2026-10-23T09:30:00.000Z",
  "updated_at": "2026-10-23T09:30:00.000Z"
}

List orders#

GET/orders.jsonread_orders

Oldest first, by id. Without a status filter only open orders are listed, as in Shopify's API: pass status=any for everything.

Query parameters
ParameterDescription
limitResults per page, 1–250 (default 50).
page_infoCursor from the Link header for the next or previous page. Other filters can't be combined with it; they carry over from the first page.
since_idOnly orders created after the order with this id.
idsComma-separated order ids (up to 250).
created_at_min / created_at_maxISO 8601 bounds on when the order was placed.
updated_at_min / updated_at_maxISO 8601 bounds on the last change. Use updated_at_min for incremental sync.
fieldsComma-separated top-level fields to return, e.g. id,name,total_price.
statusopen (default), closed (archived), cancelled or any. Matches the order's status field.
financial_statuspending, partially_paid, paid, partially_refunded, refunded, unpaid (pending or partially paid) or any.
fulfillment_statusunshipped (nothing fulfilled), partial, shipped or fulfilled (everything fulfilled), unfulfilled (unshipped or partial) or any.
nameOrder name or number: #1001 or 1001.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/orders.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "orders": [
    {
      "id": "cm2ordr0001",
      "name": "#1031",
      "number": 1031,
      "order_number": 1031,
      "email": "[email protected]",
      "phone": null,
      "currency": "USD",
      "financial_status": "paid",
      "fulfillment_status": null,
      "status": "open",
      "cancelled_at": null,
      "cancel_reason": null,
      "closed_at": null,
      "source_name": "api",
      "payment_gateway_names": [
        "manual"
      ],
      "gateway": "manual",
      "subtotal_price": "116.00",
      "total_discounts": "0.00",
      "total_shipping_price": "6.00",
      "total_tax": "0.00",
      "taxes_included": false,
      "total_price": "122.00",
      "total_paid": "122.00",
      "total_refunded": "0.00",
      "total_outstanding": "0.00",
      "discount_codes": [],
      "shipping_lines": [
        {
          "title": "Standard shipping",
          "price": "6.00"
        }
      ],
      "shipping_address": {
        "first_name": "Amara",
        "last_name": "Okafor",
        "name": "Amara Okafor",
        "company": null,
        "address1": "12 Alder Street",
        "address2": null,
        "city": "Portland",
        "province": "Oregon",
        "zip": "97205",
        "country": "United States",
        "country_code": "US",
        "phone": null
      },
      "customer": {
        "id": "cm2cust0001",
        "email": "[email protected]",
        "first_name": "Amara",
        "last_name": "Okafor",
        "phone": null
      },
      "line_items": [
        {
          "id": "cm2line0001",
          "product_id": "cm2prod0001",
          "variant_id": "cm2vari0001",
          "title": "Linen shirt",
          "variant_title": "M / Sand",
          "name": "Linen shirt - M / Sand",
          "sku": "LINEN-M-SND",
          "vendor": "Juniper & Co.",
          "quantity": 2,
          "current_quantity": 2,
          "price": "58.00",
          "total_discount": "0.00",
          "fulfilled_quantity": 0,
          "fulfillable_quantity": 2,
          "refunded_quantity": 0,
          "removed_quantity": 0,
          "requires_shipping": true,
          "taxable": true,
          "gift_card": false,
          "image": "https://storeloom.example/seed/shirt-sand.svg"
        }
      ],
      "fulfillments": [],
      "refunds": [],
      "note": null,
      "tags": "marketplace",
      "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
      "locale": "en",
      "presentment_currency": "USD",
      "shop_currency": "USD",
      "market_id": "cm2mrkt0001",
      "total_price_set": {
        "shop_money": {
          "amount": "122.00",
          "currency_code": "USD"
        },
        "presentment_money": {
          "amount": "122.00",
          "currency_code": "USD"
        }
      },
      "delivery_method": "shipping",
      "pickup_location_id": null,
      "ready_for_pickup_at": null,
      "picked_up_at": null,
      "pos_shift_id": null,
      "edited_at": null,
      "processed_at": "2026-10-23T09:30:00.000Z",
      "created_at": "2026-10-23T09:30:00.000Z",
      "updated_at": "2026-10-23T09:30:00.000Z"
    }
  ]
}

Count orders#

GET/orders/count.jsonread_orders
Query parameters
ParameterDescription
status, financial_status, fulfillment_status, ids, name, created_at_*, updated_at_*Same filters as the list (status defaults to open).
Request
curl "https://store.weftgrid.com/api/admin/2026-10/orders/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "count": 27
}

Get an order#

GET/orders/{id}.jsonread_orders
Query parameters
ParameterDescription
fieldsComma-separated top-level fields to return.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": null,
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Create an order#

POST/orders.jsonwrite_orders

For orders taken somewhere else: a marketplace, a point of sale, a phone order. The order's source_name is api, and orders/create (plus orders/paid when it's paid) fires as for any order.

line_items are catalog variants, { variant_id, quantity, price? } (price defaults to the variant's), or custom items, { title, price, quantity, sku?, requires_shipping?, taxable?, grams? }. The customer is found or created by email, or pass customer.id. shipping_address is required when anything ships.

Stock is taken right away. inventory_behaviour is decrement_obeying_policy (the default: a 422 when a variant that stops selling at zero hasn't enough stock), decrement_ignoring_policy (take it anyway, stock may go below zero) or bypass (leave stock alone).

financial_status is pending (the default) or paid. Paid records a sale for the total through gateway (default manual; for example bank_transfer), with an optional authorization reference. An order that sells gift cards can only be created as paid with the write_gift_cards scope (403 otherwise). Gift cards always sell at their own price, and discounts skip them.

Tax follows the store's tax settings; tax_exempt: true skips it. Optional: shipping_lines (one { title, price }), discount_codes (one { code, amount, type } with type fixed_amount, percentage or shipping), note, tags. send_receipt (default false) emails the order confirmation, unless the store has turned that email off.

Request body
{
  "order": {
    "email": "[email protected]",
    "line_items": [
      {
        "variant_id": "cm2vari0001",
        "quantity": 2
      },
      {
        "title": "Gift wrapping",
        "price": "4.00",
        "quantity": 1,
        "requires_shipping": false
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "address1": "12 Alder Street",
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country_code": "US"
    },
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "financial_status": "paid",
    "gateway": "bank_transfer",
    "authorization": "BANK-20261023-117",
    "tags": [
      "marketplace"
    ],
    "send_receipt": false
  }
}
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "order": {
    "email": "[email protected]",
    "line_items": [
      {
        "variant_id": "cm2vari0001",
        "quantity": 2
      },
      {
        "title": "Gift wrapping",
        "price": "4.00",
        "quantity": 1,
        "requires_shipping": false
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "address1": "12 Alder Street",
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country_code": "US"
    },
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "financial_status": "paid",
    "gateway": "bank_transfer",
    "authorization": "BANK-20261023-117",
    "tags": [
      "marketplace"
    ],
    "send_receipt": false
  }
}'
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": null,
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Update an order#

PUT/orders/{id}.jsonwrite_orders

Changes note, tags, email, phone and shipping_address. Fields of the address you leave out keep their values; address1, city and country must stay filled in. Fires orders/updated.

Line items, totals and statuses change through their own endpoints: a different value for them here is a 422 that says which one to use. Sending back the order exactly as you received it is fine; the fields that can't change are ignored.

Request body
{
  "order": {
    "note": "Leave at the side door",
    "tags": "marketplace, priority",
    "shipping_address": {
      "address2": "Unit 4"
    }
  }
}
Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "order": {
    "note": "Leave at the side door",
    "tags": "marketplace, priority",
    "shipping_address": {
      "address2": "Unit 4"
    }
  }
}'
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": null,
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Close (archive) an order#

POST/orders/{id}/close.jsonwrite_orders

Closed orders leave the default order list (status=open). Closing a closed order changes nothing.

Request
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/close.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": null,
    "status": "closed",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": "2026-10-30T08:00:00.000Z",
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Reopen a closed order#

POST/orders/{id}/open.jsonwrite_orders
Request
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/open.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": null,
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Cancel an order#

POST/orders/{id}/cancel.jsonwrite_orders

All body fields are optional. reason: customer, fraud, inventory, declined, other, or your own words (up to 200 characters). restock (default true) puts unfulfilled items back into stock. refund (default false) refunds everything still refundable, cards through Stripe. email (default false) emails the customer, unless the store has turned that email off.

Gift card payments always go back onto the cards. An unpaid card checkout is closed on Stripe first; if the customer paid in the meantime, the cancel is refused with a 422 so you can refund first. If the refund fails after the cancel, the 422 says the order was cancelled but not refunded. Fires orders/cancelled and orders/updated.

Request body
{
  "reason": "customer",
  "restock": true,
  "refund": true,
  "email": true
}
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/cancel.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "customer",
  "restock": true,
  "refund": true,
  "email": true
}'
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "refunded",
    "fulfillment_status": null,
    "status": "cancelled",
    "cancelled_at": "2026-10-23T11:00:00.000Z",
    "cancel_reason": "customer",
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "manual"
    ],
    "gateway": "manual",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "6.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "122.00",
    "total_paid": "122.00",
    "total_refunded": "122.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Standard shipping",
        "price": "6.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": "12 Alder Street",
      "address2": null,
      "city": "Portland",
      "province": "Oregon",
      "zip": "97205",
      "country": "United States",
      "country_code": "US",
      "phone": null
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "122.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "122.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "shipping",
    "pickup_location_id": null,
    "ready_for_pickup_at": null,
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T09:30:00.000Z"
  }
}

Mark a pickup order as ready for pickup#

POST/orders/{id}/ready_for_pickup.jsonwrite_orders

For orders the customer collects (delivery_method pickup, at pickup_location_id): the items are waiting at the counter. Sets ready_for_pickup_at. notify_customer (default false) emails the customer where to collect it, the location's pickup instructions and their order number, unless the store has turned that email off.

Refused with a 422 that says why for orders that are shipped instead, cancelled, already ready or picked up, whose pickup location is inactive, or whose unfulfilled items are still held at another location (move them to the pickup location in the admin first). Fires orders/updated.

Request body
{
  "notify_customer": true
}
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/ready_for_pickup.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "notify_customer": true
}'
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "pending",
    "fulfillment_status": null,
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "cod"
    ],
    "gateway": "cod",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "0.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "116.00",
    "total_paid": "0.00",
    "total_refunded": "0.00",
    "total_outstanding": "116.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Pickup at Pearl District shop",
        "price": "0.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": null,
      "address2": null,
      "city": null,
      "province": null,
      "zip": null,
      "country": null,
      "country_code": null,
      "phone": "+1 503 555 0171"
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 0,
        "fulfillable_quantity": 2,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "116.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "116.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "pickup",
    "pickup_location_id": "cm2locn0003",
    "ready_for_pickup_at": "2026-10-23T11:15:00.000Z",
    "picked_up_at": null,
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T11:15:00.000Z"
  }
}

Mark a pickup order as picked up#

POST/orders/{id}/picked_up.jsonwrite_orders

The customer collected the order: everything still unfulfilled is fulfilled at the pickup location, without tracking, and picked_up_at is set. The order has to be ready for pickup first. Payment isn't recorded here: record cash taken at the counter with POST /orders/{id}/transactions.json.

Refused with a 422 that says why for orders that are shipped instead, cancelled, not ready for pickup yet or already picked up, or whose pickup location is inactive. Fires fulfillments/create, orders/fulfilled and orders/updated; no shipping email is sent.

Request
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/picked_up.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "order": {
    "id": "cm2ordr0001",
    "name": "#1031",
    "number": 1031,
    "order_number": 1031,
    "email": "[email protected]",
    "phone": null,
    "currency": "USD",
    "financial_status": "paid",
    "fulfillment_status": "fulfilled",
    "status": "open",
    "cancelled_at": null,
    "cancel_reason": null,
    "closed_at": null,
    "source_name": "api",
    "payment_gateway_names": [
      "cod"
    ],
    "gateway": "cod",
    "subtotal_price": "116.00",
    "total_discounts": "0.00",
    "total_shipping_price": "0.00",
    "total_tax": "0.00",
    "taxes_included": false,
    "total_price": "116.00",
    "total_paid": "116.00",
    "total_refunded": "0.00",
    "total_outstanding": "0.00",
    "discount_codes": [],
    "shipping_lines": [
      {
        "title": "Pickup at Pearl District shop",
        "price": "0.00"
      }
    ],
    "shipping_address": {
      "first_name": "Amara",
      "last_name": "Okafor",
      "name": "Amara Okafor",
      "company": null,
      "address1": null,
      "address2": null,
      "city": null,
      "province": null,
      "zip": null,
      "country": null,
      "country_code": null,
      "phone": "+1 503 555 0171"
    },
    "customer": {
      "id": "cm2cust0001",
      "email": "[email protected]",
      "first_name": "Amara",
      "last_name": "Okafor",
      "phone": null
    },
    "line_items": [
      {
        "id": "cm2line0001",
        "product_id": "cm2prod0001",
        "variant_id": "cm2vari0001",
        "title": "Linen shirt",
        "variant_title": "M / Sand",
        "name": "Linen shirt - M / Sand",
        "sku": "LINEN-M-SND",
        "vendor": "Juniper & Co.",
        "quantity": 2,
        "current_quantity": 2,
        "price": "58.00",
        "total_discount": "0.00",
        "fulfilled_quantity": 2,
        "fulfillable_quantity": 0,
        "refunded_quantity": 0,
        "removed_quantity": 0,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "image": "https://storeloom.example/seed/shirt-sand.svg"
      }
    ],
    "fulfillments": [
      {
        "id": "cm2fulf0001",
        "order_id": "cm2ordr0001",
        "status": "success",
        "location_id": "cm2locn0003",
        "tracking_company": null,
        "tracking_number": null,
        "tracking_url": null,
        "courier": null,
        "shipment_status": null,
        "shipment_status_at": null,
        "delivered_at": null,
        "cod_amount": null,
        "line_items": [
          {
            "id": "cm2line0001",
            "quantity": 2
          }
        ],
        "created_at": "2026-10-23T16:40:00.000Z",
        "updated_at": "2026-10-23T16:40:00.000Z"
      }
    ],
    "refunds": [],
    "note": null,
    "tags": "marketplace",
    "order_status_url": "https://demo.storeloom.example/orders/cm2ordr0001?token=…",
    "locale": "en",
    "presentment_currency": "USD",
    "shop_currency": "USD",
    "market_id": "cm2mrkt0001",
    "total_price_set": {
      "shop_money": {
        "amount": "116.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "116.00",
        "currency_code": "USD"
      }
    },
    "delivery_method": "pickup",
    "pickup_location_id": "cm2locn0003",
    "ready_for_pickup_at": "2026-10-23T11:15:00.000Z",
    "picked_up_at": "2026-10-23T16:40:00.000Z",
    "pos_shift_id": null,
    "edited_at": null,
    "processed_at": "2026-10-23T09:30:00.000Z",
    "created_at": "2026-10-23T09:30:00.000Z",
    "updated_at": "2026-10-23T16:40:00.000Z"
  }
}