{ "$schema" : "http://json-schema.org/draft-04/schema#", "definitions" : { "id" : { "description" : "Unique identifier of the object", "identity" : true, "readOnly" : true, "type" : "string" }, "account_id" : { "description" : "Fidor account the transaction belongs to", "type" : "string", "maxLength" : 8, "pattern" : "^[0-9]{8}$" }, "user_id" : { "description" : "Identifies the user who created this object", "readOnly" : true, "type" : "string" }, "name" : { "description" : "Generic representation of the name, e.g. first name, last name, maiden name", "type" : "string", "maxLength" : 30 }, "recipient_name" : { "description" : "Full name of the recipient", "type" : "string" }, "transaction_id" : { "description" : "Identifies a reference to a corresponding transaction", "readOnly" : true, "type" : "string" }, "phone" : { "description" : "A phone or fax number, formatted with country code: +49 123 1233213", "type" : "string", "pattern" : "\\+[ 0-9]*" }, "email" : { "description" : "Email address", "type" : "string", "format" : "email", "maxLength" : 100 }, "twitter" : { "description" : "Twitter username", "type" : "string", "pattern" : "^@(\\w){1,15}$" }, "created_at" : { "description" : "Creation date-time, never changes. ISO 8601 Date-Time", "format" : "date-time", "type" : "string", "readOnly" : true }, "updated_at" : { "description" : "Last update date-time. ISO 8601 Date-Time", "format" : "date-time", "type" : "string", "readOnly" : true }, "external_uid" : { "description" : "Unique ID of the creator of the transaction. In case a uid is reused for a transaction, it is not executed, this mechanism can be used to prevent double bookings in case of network failure or similar event where transaction status is unknown", "type" : "string" }, "iban" : { "description" : "IBAN", "checksum" : "Checksum is calculated as described in ISO 13616-1, 2 digits MOD97 inserted after the country code", "type" : "string", "maxLength" : 34, "pattern" : "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$" }, "bic" : { "description" : "BIC / Swift code of bank", "type" : "string", "pattern" : "^[A-Z0-9]{8,11}$", "maxLength" : 11 }, "account" : { "description" : "UK Bank's Account Number", "type" : "string", "maxLength" : 8, "pattern" : "^(\\d){7,8}$" }, "sort_code" : { "description" : "UK Bank's Sort Code", "type" : "string", "maxLength" : 6, "pattern" : "(\\d{2}-?){2}\\d{2}" }, "eref" : { "description" : "End-to-end reference.", "type" : "string", "maxLength" : 255 }, "country" : { "description" : "Country code as defined in ISO3166 alpha2. e.g DE, GB", "type" : "string", "minLength" : 2, "maxLength" : 2 }, "currency" : { "description" : "Currency of Account or Amount. ISO 4217 alpha-3 - 3 letter upcase e.g EUR", "type" : "string", "enum" : ["EUR", "GBP"], "default" : "EUR" }, "subject" : { "description" : "Transfer subject (reference)", "type" : "string", "pattern" : "^[A-Za-z0-9_\\.\\, &\\-\\/\\+\\*\\$\\%@üöäÜÖÄ߀]*$" }, "amount" : { "description" : "The transferred amount in account currency, in minor units, e.g. 1EUR is represented as 100. Must be greater than 0 e.g. at least one cent in EUR", "type" : "integer", "minimum" : 1 }, "fee" : { "description" : "A fee amount in account currency, in minor units, e.g. 1EUR is represented as 100.", "type" : "integer", "minimum" : 0 }, "transaction_type": { "description" : "Type of the transaction", "enum" : [ "bonus", "credit_interest", "creditcard_annual_fee", "creditcard_atm_fee", "creditcard_foreign_exchange_fee", "creditcard_notification_fee", "creditcard_order_cancellation", "creditcard_order_fee", "creditcard_order_withdrawal_fee", "creditcard_payin", "creditcard_payout", "creditcard_preauth", "creditcard_release", "debit_interest", "emoney_payin", "fee", "fidor_payin", "fidor_payout", "fps_payin", "fps_payout", "gmt_fee", "gmt_refund", "gmt_payout", "payout", "prepaid_mobile_topup", "sepa_authorization", "sepa_b2b_direct_debit", "sepa_core_direct_debit", "sepa_payin", "unknown" ], "type" : "string", "maxLength" : 255 }, "preauth_type": { "description" : "Type of the preauthorization", "enum" : [ "creditcard_preauth", "internal_transfer_preauth", "capital_bond_preauth", "currency_order_preauth", "gmt_preauth", "ripple_preauth", "unknown" ], "type" : "string", "maxLength" : 255 } } }