MANGOTEEPRINTS
  1. Orders
MANGOTEEPRINTS
  • Overview
  • Change log
  • Production Lines
    • List Production Lines
      GET
  • Catalog
    • Get Catalogs
      GET
    • Get Catalog Detail
      GET
  • Products
    • Get Products
      GET
    • Get Product Detail
      GET
    • Get Product Variations
      GET
  • Orders
    • Create Order
      POST
    • List Orders
      GET
    • Get Order Detail
      GET
    • Update Order
      PUT
    • Delete Order
      DELETE
    • Cancel Order
      POST
  • Webhooks
    • Create Webhook
      POST
    • List Webhooks
      GET
    • Get Webhook
      GET
    • Update Webhook
      PUT
    • Delete Webhook
      DELETE
  • Schemas
    • Schemas
      • ShippingMethod Copy
      • CancelOrderData
      • CancelOrderResponse
      • CatalogsListData
      • CreateOrderResponse
      • FacilityType
      • GenericWebhookRequest
      • GetOrderResponse
      • GetProductionLineResponse
      • HTTPValidationError
      • InsertSchema
      • ListOrdersResponse
      • ListProductionLinesResponse
      • OrderCancelSchema
      • OrderCreateSchema
      • OrderItemResponseSchema
      • OrderItemSchema
      • OrderListData
      • OrderResponseSchema
      • OrderStatus
      • OrderUpdateSchema
      • PaginationInfo
      • PrintFileSchema
      • ProductionLineListData
      • ProductionLineSchema
      • ProductsListData
      • PublicBaseResponse
      • PublicCatalogDetailResponse
      • PublicCatalogResponse
      • PublicCatalogsListResponse
      • PublicProductDetailResponse
      • PublicProductResponse
      • PublicProductsListResponse
      • PublicVariationResponse
      • PublicVariationsListResponse
      • ShippingMethod
      • SpeedType
      • TrackingEventSchema
      • UpdateOrderResponse
      • ValidationError
      • VariationsListData
      • WebhookCreate
      • WebhookEvent
      • WebhookListResponse
      • WebhookUpdate
      • WebhookResponse
      • WebhookResponse
  1. Orders

Cancel Order

POST
https://v3.mangoteeprints.com/api/public/v1/orders/{order_id}/cancel
Last modified:2025-08-22 08:09:35
Cancel order - Clone from V3.
Required permission: cancel:orders
Only cancel orders with status NEW_ORDER or ON_HOLD.

Request

Path Params

Header Params

Body Params application/json

Example
{
    "reason": "Customer no longer wants to purchase"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://v3.mangoteeprints.com/api/public/v1/orders//cancel' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reason": "Customer no longer wants to purchase"
}'

Responses

🟢200Successful Response
application/json
Body

Example
{
    "code": "ORDER_CANCELLED",
    "data": {
        "cancellation_reason": "Customer request",
        "cancelled_at": "2025-08-20T18:00:00.000000",
        "order_id": "ORD005",
        "refund_amount": 17.68,
        "refund_status": "pending",
        "status": "cancelled"
    },
    "message": "Order cancelled successfully",
    "request_id": "880gb700-b5ae-74g7-d049-779988773333",
    "status": true,
    "timestamp": "2025-08-20T18:00:00.000000"
}
🟠422Validation Error
Modified at 2025-08-22 08:09:35
Previous
Delete Order
Next
Webhooks
Built with