Cancel order
Cancel a submitted order or delete a draft.
POST https://cotlet.dev/api/v1/printful/orders/{order_id}/cancel
write Confirm
Deletes a draft, or cancels an order that is Waiting for Fulfillment, with a full refund. Once the order is Being Fulfilled, Printful does not allow cancelling it and the call returns that status without changing anything. Cancelling in Printful does not cancel the order in your sales channel. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| order_id integer required | integer | Order ID from list_orders. |
Request
curl -X POST https://cotlet.dev/api/v1/printful/orders/1/cancel \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("printful", "cancel_order", {"order_id":1}) const result = await cotlet.call('printful', 'cancel_order', {"order_id":1}); cotlet call printful cancel_order --data '{"order_id":1}' Example response
{
"order_id": 31840,
"status": "canceled"
}