Cancel order

Cancel an unpaid order. A canceled order allows no further actions.

POST https://cotlet.dev/api/v1/printify/shops/{shop_id}/orders/{order_id}/cancel

write Confirm

Cancels one order that Printify has not charged yet. It cannot be undone: a canceled order allows no further actions, and your customer may expect it. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: cancel_order
NameTypeDescription
shop_id integer required integer Shop ID from list_shops.
order_id string required string Order ID from list_orders.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/printify/shops/1/orders/order_8c41d2/cancel \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("printify", "cancel_order", {"shop_id":1,"order_id":"order_8c41d2"})
Node.js
const result = await cotlet.call('printify', 'cancel_order', {"shop_id":1,"order_id":"order_8c41d2"});
CLI
cotlet call printify cancel_order --data '{"shop_id":1,"order_id":"order_8c41d2"}'

Example response

JSON

{
  "order_id": "5a96f649b2439217d070f507",
  "status": "canceled"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.