{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-draft-payment-response-schema.json", "title": "DraftPaymentResponse", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/revolut-draft-payment-api-openapi.yml#/components/schemas/DraftPaymentResponse", "required": [ "DraftPaymentId", "Status", "Transfers" ], "type": "object", "properties": { "DraftPaymentId": { "type": "string", "description": "The ID of the draft payment.", "format": "uuid" }, "RequestedExecutionDate": { "type": "string", "description": "The execution date the draft payment is requested.", "format": "YYYY-MM-DD" }, "Status": { "$ref": "#/$defs/DraftPaymentStatus" }, "Transfers": { "$ref": "#/$defs/DraftPaymentTransfers" } }, "$defs": { "Amount": { "pattern": "^\\d{1,13}\\.\\d{1,5}$", "type": "string", "description": "The amount of money." }, "Currency": { "pattern": "^[A-Z]{3}$", "type": "string", "description": "[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case." }, "DraftPaymentStatus": { "type": "string", "description": "The status of the draft payment.", "enum": [ "Awaiting", "Processed", "Approved", "Deleted" ] }, "DraftPaymentTransfer": { "required": [ "Id", "InstructedAmount", "Reference", "Status" ], "type": "object", "properties": { "Id": { "type": "string", "description": "The ID of the transfer.", "format": "uuid" }, "InstructedAmount": { "$ref": "#/$defs/InstructedAmount" }, "Reference": { "type": "string", "description": "The reference of the draft payment." }, "Status": { "$ref": "#/$defs/DraftPaymentTransferStatus" }, "Index": { "type": "integer", "description": "The row number the draft payment represents in the CSV file." }, "FailedReason": { "type": "string", "description": "The reason of the `failed` draft payment." }, "FailedReasonCode": { "type": "integer", "description": "The reason code for the `failed` draft payment." } } }, "DraftPaymentTransferStatus": { "type": "string", "description": "The status of the draft payment.", "enum": [ "Created", "Pending", "Completed", "Failed", "Deleted" ] }, "DraftPaymentTransfers": { "type": "array", "items": { "$ref": "#/$defs/DraftPaymentTransfer" } }, "InstructedAmount": { "required": [ "Amount", "Currency" ], "type": "object", "properties": { "Amount": { "$ref": "#/$defs/Amount" }, "Currency": { "$ref": "#/$defs/Currency" } } } } }