{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/OrderDetailsResponse", "title": "OrderDetailsResponse", "type": "object", "properties": { "code": { "type": "string", "description": "Response status code.", "example": "00" }, "description": { "type": "string", "description": "Human-readable description of the response.", "example": "Success" }, "data": { "type": "object", "properties": { "orderReference": { "type": "string", "description": "The unique order reference." }, "amount": { "type": "number", "format": "double", "description": "The order amount." }, "currency": { "type": "string", "description": "The currency of the order." }, "status": { "type": "string", "description": "The current status of the order.", "enum": [ "pending", "successful", "failed", "cancelled" ] }, "createdAt": { "type": "string", "format": "date-time", "description": "The date and time the order was created." } } } } }