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
| Name | Type | Description |
|---|---|---|
| shop_id integer required | integer | Shop ID from list_shops. |
| order_id string required | string | Order ID from list_orders. |
Request
curl -X POST https://cotlet.dev/api/v1/printify/shops/1/orders/order_8c41d2/cancel \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("printify", "cancel_order", {"shop_id":1,"order_id":"order_8c41d2"}) const result = await cotlet.call('printify', 'cancel_order', {"shop_id":1,"order_id":"order_8c41d2"}); cotlet call printify cancel_order --data '{"shop_id":1,"order_id":"order_8c41d2"}' Example response
{
"order_id": "5a96f649b2439217d070f507",
"status": "canceled"
}