v1

latestOpenAPI 3.0.3ISC2026-07-134096160.7 KB
Orders

Cancel an order

Cancel an order

post/v1/shops/{shop_id}/orders/{order_id}/cancel.json

Response

Successful operation

idstring
app_order_idstring nullable
total_priceinteger
total_shippinginteger
total_taxinteger
statusstring
shipping_methodinteger
is_printify_expressboolean
is_economy_shippingboolean
created_atstring date-time
sent_to_production_atstring date-time nullable
fulfilled_atstring date-time nullable

Example response

{
  "id": "5a6e03bd2f7d8055768923c8",
  "app_order_id": "215014.44",
  "address_to": {
    "first_name": "Jane",
    "last_name": "Smith",
    "address1": "ExampleBaan 121",
    "address2": "Apt 4B",
    "city": "Retie",
    "zip": "2470",
    "email": "example@msn.com",
    "phone": "0574 69 21 90",
    "country": "BE",
    "company": "MSN"
  },
  "line_items": [
    {
      "product_id": "5b05842f3921c9547531758d",
      "quantity": 1,
      "variant_id": 17887,
      "print_provider_id": 5,
      "cost": 1050,
      "shipping_cost": 400,
      "status": "fulfilled",
      "metadata": {
        "title": "18K gold plated Necklace",
        "price": 2200,
        "variant_label": "Golden indigocoin",
        "sku": "168699843",
        "country": "United States",
        "external_id": "line-item-abc-001"
      },
      "sent_to_production_at": "2017-04-18 13:24:28+00:00",
      "fulfilled_at": "2017-04-18 13:24:28+00:00"
    }
  ],
  "metadata": {
    "order_type": "external",
    "shop_order_id": 1370762297,
    "shop_order_label": "1370762297",
    "shop_fulfilled_at": "2017-04-18 13:24:28+00:00"
  },
  "total_price": 2200,
  "total_shipping": 400,
  "status": "fulfilled",
  "shipping_method": 1,
  "shipments": [
    {
      "carrier": "usps",
      "number": "94001116990045395649372",
      "url": "http://example.com/94001116990045395649372",
      "delivered_at": "2017-04-18 13:24:28+00:00"
    }
  ],
  "created_at": "2017-04-18 13:24:28+00:00",
  "sent_to_production_at": "2017-04-18 13:24:28+00:00",
  "fulfilled_at": "2017-04-18 13:24:28+00:00",
  "printify_connect": {
    "url": "https://example.com/printify_connect_hash",
    "id": "printify_connect_hash"
  }
}