{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/upvest/refs/heads/main/json-schema/investment-api-order-cancellation-schema.json", "title": "OrderCancellation", "description": "A cancellation request for an order.", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "The cancellation identifier.", "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }, "order_id": { "type": "string", "format": "uuid", "description": "The order being cancelled.", "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }, "status": { "type": "string", "enum": [ "PENDING", "CONFIRMED", "REJECTED" ], "description": "The status of the cancellation request.", "example": "PENDING" }, "created_at": { "type": "string", "format": "date-time", "description": "When the cancellation was requested.", "example": "2025-03-15T14:30:00Z" } } }