---
updatedAt: 2026-05-28T07:48:23.000Z
agentTools:
  projectIndex: https://finp2p-docs.ownera.io/llms.txt
---

# Deposit instruction

Create a deposit instruction for an owner

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Ledger Adapter Specification",
    "description": "This is the API specification for the Ledger Adapter with whom the FinP2P Router will interact in order to execute and query the underlying implementation.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "payments",
      "description": "Payments"
    }
  ],
  "paths": {
    "/payments/depositInstruction": {
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Deposit instruction",
        "description": "Create a deposit instruction for an owner",
        "operationId": "depositInstruction",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "description": "hex encoding of a 32-byte payload consisting of 24 random bytes + 8-byte epoch timestamp (seconds)",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepositInstructionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepositInstructionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1002,
                      "message": "Invalid request format"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2202,
                      "message": "Internal service failure"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DepositInstructionRequest": {
        "type": "object",
        "required": [
          "destination",
          "owner",
          "asset"
        ],
        "properties": {
          "destination": {
            "$ref": "#/components/schemas/depositPayoutAccount"
          },
          "owner": {
            "$ref": "#/components/schemas/depositPayoutAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/depositAsset"
          },
          "amount": {
            "type": "string",
            "description": "Amount to deposit",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "details": {
            "type": "object"
          },
          "nonce": {
            "$ref": "#/components/schemas/nonce"
          },
          "signature": {
            "$ref": "#/components/schemas/signature"
          }
        }
      },
      "DepositInstructionResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/depositOperation"
          }
        ]
      },
      "depositInstruction": {
        "required": [
          "account"
        ],
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/depositPayoutAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/depositAsset"
          },
          "description": {
            "type": "string",
            "description": "Instructions for the deposit operation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "paymentOptions": {
            "$ref": "#/components/schemas/paymentMethods"
          },
          "details": {
            "deprecated": true,
            "type": "object",
            "description": "Any addition deposit specific information, deprecated use \"payment method options\" instead fields"
          },
          "operationId": {
            "type": "string",
            "description": "operation id reference while will correlate with any receipt associated with the deposit operation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "depositPayoutAccount": {
        "type": "object",
        "required": [
          "finId",
          "account"
        ],
        "properties": {
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/finIdAccountBase"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "finId": "#/components/schemas/finIdAccountBase"
              }
            }
          }
        }
      },
      "finIdAccountBase": {
        "type": "object",
        "required": [
          "finId",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finId"
            ]
          },
          "finId": {
            "$ref": "#/components/schemas/finId"
          }
        }
      },
      "depositOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "error": {
                "$ref": "#/components/schemas/depositOperationErrorInformation"
              },
              "response": {
                "$ref": "#/components/schemas/depositInstruction"
              }
            }
          }
        ]
      },
      "depositOperationErrorInformation": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "1 for failure in regApps validation, 4 failure in signature verification"
          },
          "message": {
            "type": "string",
            "x-allowEmpty": true
          },
          "regulationErrorDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegulationError"
            }
          }
        }
      },
      "signature": {
        "type": "object",
        "required": [
          "signature",
          "template",
          "hashFunc"
        ],
        "description": "represent a signature template information",
        "properties": {
          "signature": {
            "type": "string",
            "description": "hex representation of the signature",
            "x-allowEmpty": true
          },
          "template": {
            "$ref": "#/components/schemas/signatureTemplate"
          },
          "hashFunc": {
            "$ref": "#/components/schemas/hashFunction"
          }
        }
      },
      "signatureTemplate": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/hashListTemplate"
          },
          {
            "$ref": "#/components/schemas/EIP712Template"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hashList": "#/components/schemas/hashListTemplate",
            "EIP712": "#/components/schemas/EIP712Template"
          }
        }
      },
      "hashListTemplate": {
        "description": "ordered list of hash groups",
        "required": [
          "type",
          "hashGroups",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hashList"
            ]
          },
          "hashGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/hashGroup"
            }
          },
          "hash": {
            "type": "string",
            "description": "hex representation of the combined hash groups hash value",
            "x-allowEmpty": true
          },
          "templateVersion": {
            "type": "integer",
            "description": "Template shape version. When omitted, the verifier resolves the version from the signature proof context."
          }
        }
      },
      "hashGroup": {
        "type": "object",
        "required": [
          "hash",
          "fields"
        ],
        "properties": {
          "hash": {
            "type": "string",
            "description": "hex representation of the hash group hash value",
            "x-allowEmpty": true
          },
          "fields": {
            "description": "list of fields by order they appear in the hash group",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/field"
            }
          }
        }
      },
      "field": {
        "type": "object",
        "description": "describing a field in the hash group",
        "required": [
          "name",
          "type",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "name of field",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "int",
              "bytes"
            ],
            "description": "type of field"
          },
          "value": {
            "type": "string",
            "description": "hex representation of the field value",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712Domain": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "version": {
            "type": "string",
            "x-allowEmpty": true
          },
          "chainId": {
            "type": "integer",
            "format": "uint64"
          },
          "verifyingContract": {
            "type": "string",
            "format": "address",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712TypedValue": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EIP712TypeString"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeInteger"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeBool"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeByte"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeObject"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeArray"
          }
        ]
      },
      "EIP712Types": {
        "type": "object",
        "properties": {
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712TypeDefinition"
            }
          }
        }
      },
      "EIP712TypeDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712FieldDefinition"
            }
          }
        }
      },
      "EIP712FieldDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712Template": {
        "required": [
          "type",
          "domain",
          "message",
          "primaryType",
          "types",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "EIP712"
            ]
          },
          "domain": {
            "$ref": "#/components/schemas/EIP712Domain"
          },
          "message": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/EIP712TypedValue"
            }
          },
          "types": {
            "$ref": "#/components/schemas/EIP712Types"
          },
          "primaryType": {
            "type": "string",
            "x-allowEmpty": true
          },
          "hash": {
            "type": "string",
            "description": "hex representation of template hash",
            "x-allowEmpty": true
          },
          "templateVersion": {
            "type": "integer",
            "description": "Template shape version. When omitted, the verifier resolves the version from the signature proof context."
          }
        }
      },
      "EIP712TypeString": {
        "type": "string",
        "pattern": "^(?:$|0([^x].*)?|[^0].*)$",
        "x-allowEmpty": true
      },
      "EIP712TypeByte": {
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]+$",
        "minLength": 3,
        "maxLength": 320
      },
      "EIP712TypeInteger": {
        "type": "integer"
      },
      "EIP712TypeBool": {
        "type": "boolean"
      },
      "EIP712TypeObject": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "EIP712TypeArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "hashFunction": {
        "type": "string",
        "enum": [
          "unspecified",
          "sha3_256",
          "sha3-256",
          "blake2b",
          "keccak_256",
          "keccak-256"
        ],
        "description": "hash function types"
      },
      "randomPollingInterval": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "random"
            ]
          }
        }
      },
      "absolutePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "time"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "absolute"
            ]
          },
          "time": {
            "type": "integer",
            "description": "absolute time as epoch time seconds"
          }
        }
      },
      "relativePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "duration"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relative"
            ]
          },
          "duration": {
            "type": "string",
            "description": "ISO-8601 duration format",
            "example": "PT5M (5Min duration), P1DT30M (1 Day and 30 Minutes )",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "pollingResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "polling"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "poll"
            ]
          },
          "polling": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/randomPollingInterval"
              },
              {
                "$ref": "#/components/schemas/absolutePollingInterval"
              },
              {
                "$ref": "#/components/schemas/relativePollingInterval"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "random": "#/components/schemas/randomPollingInterval",
                "absolute": "#/components/schemas/absolutePollingInterval",
                "relative": "#/components/schemas/relativePollingInterval"
              }
            }
          }
        }
      },
      "callbackEndpoint": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "endpoint"
            ]
          }
        }
      },
      "callbackResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "callback"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "callback"
            ]
          },
          "callback": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/callbackEndpoint"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "endpoint": "#/components/schemas/callbackEndpoint"
              }
            }
          }
        }
      },
      "OperationMetadata": {
        "type": "object",
        "description": "additional metadata regarding the operation",
        "properties": {
          "operationResponseStrategy": {
            "description": "denote the expected response strategy of the operation, i.e. how would completion and results of the operation should be handled \noptional, if not provided [polling strategy](#/components/schema/pollingResultsStrategy) will be use with [random interval](#/components/schema/randomPollingInterval)\n",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/pollingResultsStrategy"
              },
              {
                "$ref": "#/components/schemas/callbackResultsStrategy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "poll": "#/components/schemas/pollingResultsStrategy",
                "callback": "#/components/schemas/callbackResultsStrategy"
              }
            }
          }
        }
      },
      "OperationBase": {
        "type": "object",
        "required": [
          "cid",
          "isCompleted"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id which identify the operation",
            "x-allowEmpty": true
          },
          "isCompleted": {
            "type": "boolean",
            "description": "flag indicating if the operation completed, if true then error or response must be present (but not both)",
            "default": false
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/OperationMetadata"
          }
        }
      },
      "RegulationError": {
        "type": "object",
        "required": [
          "regulationType",
          "details"
        ],
        "properties": {
          "regulationType": {
            "type": "string",
            "description": "the type of regulation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "details": {
            "type": "string",
            "description": "actionable details of the error",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "APIError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code indicating the specific failure - for more information see [API Errors](./api-error-codes-reference).\n"
          },
          "message": {
            "type": "string",
            "description": "A descriptive message providing context about the error.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "APIErrors": {
        "type": "object",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/APIError"
            }
          }
        }
      },
      "finId": {
        "type": "string",
        "format": "finid",
        "description": "Existing owner hex representation of a secp256k1 public key 33 bytes compressed",
        "pattern": "^[0-9a-f]*$",
        "minLength": 64,
        "maxLength": 66,
        "x-autoMinLength": true
      },
      "finp2pAssetWithType": {
        "type": "object",
        "required": [
          "type",
          "resourceId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finp2p"
            ]
          },
          "resourceId": {
            "type": "string",
            "pattern": "^[^:](?:.+):102:(?:.+)",
            "description": "unique resource ID of the FinP2P asset"
          }
        }
      },
      "customAsset": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom"
            ]
          }
        }
      },
      "depositAsset": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "finp2p": "#/components/schemas/finp2pAssetWithType",
            "custom": "#/components/schemas/customAsset"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/finp2pAssetWithType"
          },
          {
            "$ref": "#/components/schemas/customAsset"
          }
        ]
      },
      "nonce": {
        "type": "string",
        "description": "32 bytes buffer (24 randomly generated bytes by the client + 8 bytes epoch timestamp seconds) encoded to hex:\n\n  const nonce = Buffer.alloc(32);\n  nonce.fill(crypto.randomBytes(24), 0, 24);\n\n  const nowEpochSeconds = Math.floor(new Date().getTime() / 1000);\n  const t = BigInt(nowEpochSeconds);\n  nonce.writeBigInt64BE(t, 24);\n",
        "x-allowEmpty": true
      },
      "ibanAccountDetails": {
        "type": "object",
        "required": [
          "type",
          "iban"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "iban"
            ]
          },
          "iban": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "bicAccountDetails": {
        "type": "object",
        "required": [
          "type",
          "bic",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "bic"
            ]
          },
          "bic": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "swiftAccountDetails": {
        "type": "object",
        "deprecated": true,
        "description": "Deprecated, use bicAccountDetails. Kept for backward compatibility.",
        "required": [
          "type",
          "swiftCode",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "swift"
            ]
          },
          "swiftCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "bic": {
            "type": "string",
            "description": "Mirrors swiftCode during the migration to bicAccountDetails.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "sortCodeDetails": {
        "type": "object",
        "required": [
          "type",
          "code",
          "accountNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sortCode"
            ]
          },
          "code": {
            "type": "string",
            "description": "sort code has XX-XX-XX format",
            "pattern": "^\\d{2}-\\d{2}-\\d{2}$"
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "wireDetails": {
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "iban": "#/components/schemas/ibanAccountDetails",
            "bic": "#/components/schemas/bicAccountDetails",
            "swift": "#/components/schemas/swiftAccountDetails",
            "sortCode": "#/components/schemas/sortCodeDetails"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ibanAccountDetails"
          },
          {
            "$ref": "#/components/schemas/bicAccountDetails"
          },
          {
            "$ref": "#/components/schemas/swiftAccountDetails"
          },
          {
            "$ref": "#/components/schemas/sortCodeDetails"
          }
        ]
      },
      "wireTransfer": {
        "type": "object",
        "required": [
          "type",
          "accountHolderName",
          "bankName",
          "wireDetails"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "wireTransfer"
            ]
          },
          "accountHolderName": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "bankName": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "wireDetails": {
            "$ref": "#/components/schemas/wireDetails"
          },
          "line1": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "city": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "postalCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "country": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "wireTransferUSA": {
        "type": "object",
        "required": [
          "type",
          "accountNumber",
          "routingNumber"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "wireTransferUSA"
            ]
          },
          "accountNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "routingNumber": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "line1": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "city": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "postalCode": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "country": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "state": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "cryptoTransfer": {
        "type": "object",
        "required": [
          "type",
          "network",
          "contractAddress",
          "walletAddress"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "cryptoTransfer"
            ]
          },
          "network": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "contractAddress": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "walletAddress": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "paymentInstructions": {
        "type": "object",
        "required": [
          "type",
          "instruction"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "paymentInstructions"
            ]
          },
          "instruction": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "paymentMethod": {
        "type": "object",
        "required": [
          "description",
          "currency",
          "methodInstruction"
        ],
        "properties": {
          "description": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "currency": {
            "type": "string",
            "description": "accepted currency for payment",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "methodInstruction": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/wireTransfer"
              },
              {
                "$ref": "#/components/schemas/wireTransferUSA"
              },
              {
                "$ref": "#/components/schemas/cryptoTransfer"
              },
              {
                "$ref": "#/components/schemas/paymentInstructions"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "wireTransfer": "#/components/schemas/wireTransfer",
                "wireTransferUSA": "#/components/schemas/wireTransferUSA",
                "cryptoTransfer": "#/components/schemas/cryptoTransfer",
                "paymentInstructions": "#/components/schemas/paymentInstructions"
              }
            }
          }
        }
      },
      "paymentMethods": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/paymentMethod"
        }
      }
    }
  }
}
```