MANGOTEEPRINTS
  1. Webhooks
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. Webhooks

Create Webhook

POST
https://v3.mangoteeprints.com/api/public/v1/webhooks
Last modified:2025-08-22 08:09:57
Create a new webhook subscription.
Subscribe to receive notifications when order status changes or shipment updates occur.
Supported Events:
order.status: Triggered when order status changes (e.g., new_order → in_production)
order.shipment: Triggered when tracking information is updated
Requirements:
Webhook URL must be publicly accessible
URL must respond with 2xx status code within 10 seconds
Failed webhooks will be retried up to 3 times
Rate Limits:
Maximum 10 webhooks per user
Maximum 100 webhook calls per minute per user

Request

Header Params

Body Params application/json

Example
{
    "name": "My Order Updates",
    "url": "https://example.com/webhook",
    "events": [
        "order.status",
        "order.shipment"
    ]
}

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/webhooks' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "My Order Updates",
    "url": "https://example.com/webhook",
    "events": [
        "order.status",
        "order.shipment"
    ]
}'

Responses

🟢200Successful Response
application/json
Body

Example
{
    "created_at": "2024-01-15 10:30:00",
    "events": [
        "order.status",
        "order.shipment"
    ],
    "failure_count": "0",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "is_active": true,
    "last_status_code": "200",
    "last_triggered_at": "2024-01-15 11:00:00",
    "name": "My Order Updates",
    "updated_at": "2024-01-15 10:30:00",
    "url": "https://example.com/webhook"
}
🟠422Validation Error
Modified at 2025-08-22 08:09:57
Previous
Webhooks
Next
List Webhooks
Built with