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

# Create intent for asset profile

Create a new intent on an asset profile for either primarySale, buyingIntent or SellingIntent

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Transactional API",
    "description": "This is the transactional API reference for application development over the FinP2P Router network.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "profiles",
      "description": "Access to Profiles"
    }
  ],
  "paths": {
    "/profiles/asset/{id}/intent": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Create intent for asset profile",
        "description": "Create a new intent on an asset profile for either primarySale, buyingIntent or SellingIntent",
        "operationId": "addAssetProfileIntent",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "ID of the asset profile",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[^:](?:.+):102:(?:.+)"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "start",
                  "end",
                  "intent"
                ],
                "type": "object",
                "properties": {
                  "start": {
                    "type": "integer",
                    "format": "int64",
                    "minimum": 0,
                    "description": "start time for intent, in epoch (seconds)",
                    "x-go-type-skip-optional-pointer": true
                  },
                  "end": {
                    "type": "integer",
                    "format": "int64",
                    "minimum": 0,
                    "description": "end time for intent, in epoch (seconds)",
                    "x-go-type-skip-optional-pointer": true
                  },
                  "intent": {
                    "$ref": "#/components/schemas/intent"
                  },
                  "intentId": {
                    "type": "string",
                    "description": "unique identifier for the intent, will default to generated UUID if not provided"
                  },
                  "metadata": {
                    "$ref": "#/components/schemas/customMetadata",
                    "example": {
                      "orderId": "OMS-2026-48291",
                      "clientRef": "INV-SMITH-0042"
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/idResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1000,
                      "message": "General error has occurred, For more information, please contact Support Team."
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 3000,
                      "message": "Authentication error"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 3400,
                      "message": "Access denied"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1100,
                      "message": "Resource not found"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 9999,
                      "message": "The operation could not be completed successfully. Please contact Support team"
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 6000,
                      "message": "General external service error"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2002,
                      "message": "Service unavailable"
                    }
                  ]
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2003,
                      "message": "Gateway timeout"
                    }
                  ]
                }
              }
            }
          }
        },
        "callbacks": {
          "manualSigningCallback": {
            "{$request.body#/intent.signaturePolicy.callbackURL}": {
              "post": {
                "requestBody": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "requestId": {
                            "type": "string",
                            "description": "unique identifier of the request, should be used when providing the signature"
                          },
                          "intentId": {
                            "$ref": "#/components/schemas/intentId"
                          },
                          "signer": {
                            "type": "string",
                            "description": "resource id of the requested signer"
                          },
                          "signatureTemplate": {
                            "$ref": "#/components/schemas/signatureTemplate"
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "- __Asynchronous way (default)__:\n\n    an immediate response to the request is expected by specifying __type__ = _'acknowledgement'_, __signature__ is not specified.\n    When the signature is received, it needs to be sent to '/token/signature-result'.\n\n- __Synchronous way__:\n\n    __type__ must be 'signature', __signature__ must contain the received signature\n",
                    "content": {
                      "application/json": {
                        "schema": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "$ref": "#/components/schemas/signatureResponseType"
                            },
                            "signature": {
                              "$ref": "#/components/schemas/transferSignature"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Ownera's custom bearer authentication\n\nThe Ownera authorization header is required to communicate with the Ownera APIs, the header should represent\na JSON object which contains the associated organization id, API key, nonce, timestamp and one time generated access token.\n\nThe one time access token is required to be generated for each request to the Ownera APIs, one time access tokens are time bounded\nby the timestamp value of the authorization object and are limited for one time use, tokens which their timestamp is outside of the\naccepted time range or that the token was already previously used will be rejected.\n\nAccess token is generated by concatenation of the API key, random nonce value and current epoch timestamp in seconds,\nthis digest signed using the associated secret of the API key (HS256, RS256) and encoded as an hexadecimal string.\n\nThe authorization object, including the generated access token, is base64 encoded an sent to the API as bearer authorization header.\n\nsample code snippet (RS256):\n\nconst nonce = crypto.randomBytes(16).toString('hex');\nconst timestamp = Math.floor(new Date().getTime() / 1000);\n\nconst rawAccessToken = `${API_KEY}${nonce}${timestamp}`;\n\nconst accessToken = crypto.createSign('SHA256').update(rawAccessToken).sign(Buffer.from($PRIVATE_KEY)).toString('hex');\n\nconst authInfo = {\n  organization: $ORGANIZATION_ID,\n  apiKey: $API_KEY,\n  nonce,\n  timestamp,\n  accessToken\n};\n\nconst authorizationHeader = Buffer.from(JSON.stringify(authInfo)).toString(\"base64\");\n"
      }
    },
    "schemas": {
      "intentId": {
        "type": "string",
        "description": "The intent resource id",
        "pattern": "^[^:](?:.+):105:(?:.+)",
        "maxLength": 150,
        "example": "bank-x:105:9929ccaf-8967-4ba3-9198-a4b8e3128388"
      },
      "signatureResponseType": {
        "type": "string",
        "enum": [
          "signature",
          "acknowledgement"
        ],
        "description": "Type of response, immediate / synchronous response or asynchronous"
      },
      "idResponse": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ownerId"
          }
        }
      },
      "transferSignature": {
        "type": "string",
        "description": "Asset Hash Group (AHG) structure:\n\nAHG = hash('SHA3-256', [fields by order]);\n\n| order | value | type | comment |\n|--|--|--|--|\n| 1 | nonce           | []byte  |  |\n| 2 | operation       | string  | \"transfer\" |\n| 3 | assetType       | string  | \"finp2p\" |\n| 4 | assetId         | string  | unique identifier of the asset |\n| 5 | srcAccountType  | string  | \"finId\" |\n| 6 | srcAccount      | string  | source account finId address  |\n| 7 | dstAccountType  | string  | \"finId\" |\n| 8 | dstAccount      | string  | destination account finId address  |\n| 9 | amount          | string  | string representation of the transfer amount |\n\nhashGroups = hash('SHA3-256', [AHG]);\n\nSignature = sign(sender private secp256k1 key, hashGroups)\n"
      },
      "signatureTemplate": {
        "type": "object",
        "description": "represent a signature template information",
        "properties": {
          "signature": {
            "type": "string",
            "description": "hex representation of the signature"
          },
          "template": {
            "description": "ordered list of hash groups",
            "type": "object",
            "properties": {
              "hashGroups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/hashGroup"
                }
              },
              "hash": {
                "type": "string",
                "description": "hex representation of the combined hash groups hash value"
              }
            }
          }
        }
      },
      "hashGroup": {
        "type": "object",
        "properties": {
          "hash": {
            "type": "string",
            "description": "hex representation of the hash group hash value"
          },
          "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",
        "properties": {
          "name": {
            "type": "string",
            "description": "name of field"
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "int",
              "bytes"
            ],
            "description": "type of field"
          },
          "value": {
            "type": "string",
            "description": "hex representation of the field value"
          }
        }
      },
      "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
      },
      "resourceId": {
        "type": "string",
        "description": "finp2p resource id format",
        "pattern": "^[^:](?:.+):(101|102|103|104|105):(?:.+)",
        "maxLength": 150,
        "example": "bank-x:101:9929ccaf-8967-4ba3-9198-a4b8e3128388"
      },
      "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"
            }
          }
        }
      },
      "ownerId": {
        "type": "string",
        "description": "The Owner resource id",
        "pattern": "^[^:](?:.+):101:(?:.+)",
        "maxLength": 150,
        "example": "bank-x:101:511c1d7f-4ed8-410d-887c-a10e3e499a01"
      },
      "orgId": {
        "type": "string",
        "description": "Organization Id",
        "maxLength": 150,
        "pattern": "^[^:]*$",
        "x-go-type": "OrgIdValidatable",
        "minLength": 1,
        "x-autoMinLength": true
      },
      "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
      },
      "walletAccount": {
        "type": "object",
        "required": [
          "type",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "walletAccount"
            ]
          },
          "address": {
            "type": "string",
            "description": "address of the wallet",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "caip10Account": {
        "type": "object",
        "required": [
          "type",
          "network",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "caip10Account"
            ]
          },
          "network": {
            "type": "string",
            "description": "CAIP-2 chain_id, e.g. \"eip155:1\", \"solana:5eykt4...\", \"hedera:mainnet\" (the same token used by the CAIP-19 asset identifier network)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "address": {
            "type": "string",
            "description": "CAIP-10 account_address (chain-native address)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true,
            "maxLength": 128
          }
        }
      },
      "custodialAccount": {
        "type": "object",
        "required": [
          "type",
          "provider",
          "vaultAccountId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custodialAccount"
            ]
          },
          "provider": {
            "type": "string",
            "description": "Custody provider discriminator, e.g. \"fireblocks\"",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "vaultAccountId": {
            "type": "string",
            "description": "Provider-internal account identifier (e.g. a Fireblocks vault account id)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "assetId": {
            "type": "string",
            "description": "Optional. Narrows the custodial account to a specific asset/chain.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "noneAccount": {
        "type": "object",
        "additionalProperties": false
      },
      "networkAccount": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/walletAccount"
          },
          {
            "$ref": "#/components/schemas/caip10Account"
          },
          {
            "$ref": "#/components/schemas/custodialAccount"
          },
          {
            "$ref": "#/components/schemas/noneAccount"
          }
        ]
      },
      "ledgerAssetIdentifierTypeCAIP-19": {
        "type": "object",
        "required": [
          "assetIdentifierType",
          "tokenId"
        ],
        "properties": {
          "assetIdentifierType": {
            "type": "string",
            "enum": [
              "CAIP-19"
            ],
            "description": "Classification type standards"
          },
          "network": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "tokenId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "standard": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "ledgerAssetIdentifier": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ledgerAssetIdentifierTypeCAIP-19"
          }
        ],
        "discriminator": {
          "propertyName": "assetIdentifierType",
          "mapping": {
            "CAIP-19": "#/components/schemas/ledgerAssetIdentifierTypeCAIP-19"
          }
        }
      },
      "amount": {
        "type": "string",
        "description": "the total number of units",
        "pattern": "^\\d+\\.?\\d*$",
        "maxLength": 150
      },
      "assetTerm": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/amount"
          }
        }
      },
      "custodian": {
        "type": "object",
        "required": [
          "orgId"
        ],
        "properties": {
          "orgId": {
            "$ref": "#/components/schemas/orgId"
          }
        }
      },
      "finIdAccount": {
        "type": "object",
        "required": [
          "type",
          "finId",
          "orgId",
          "custodian"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "finId"
            ]
          },
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "orgId": {
            "$ref": "#/components/schemas/orgId"
          },
          "custodian": {
            "$ref": "#/components/schemas/custodian"
          }
        }
      },
      "finp2pAsset": {
        "type": "object",
        "description": "describes asset information",
        "required": [
          "id",
          "ledgerIdentifier"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/resourceId"
          },
          "ledgerIdentifier": {
            "$ref": "#/components/schemas/ledgerAssetIdentifier"
          }
        }
      },
      "finp2pAssetAccount": {
        "type": "object",
        "description": "describes account and asset information",
        "required": [
          "account",
          "asset"
        ],
        "properties": {
          "account": {
            "$ref": "#/components/schemas/finIdAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/finp2pAsset"
          },
          "networkAccount": {
            "$ref": "#/components/schemas/networkAccount",
            "description": "Optional. Investor network account to use for this leg. Must have been\npreviously bound via `POST /profiles/investor/{investorId}/account`.\nWhitelist-validated against `investor.data.accounts[org][asset]`\nbefore forwarding to the LA. Failure → error code 7351 (AccountNotWhitelistedErr, 400).\n"
          }
        }
      },
      "sourceAccountAssetInstruction": {
        "type": "object",
        "required": [
          "sourceAccount"
        ],
        "properties": {
          "sourceAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          }
        }
      },
      "sellingAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/sourceAccountAssetInstruction"
          }
        }
      },
      "noSettlementOption": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "noSettlement"
            ]
          }
        }
      },
      "unitValue": {
        "type": "string",
        "description": "A unit value represented as a string, the value is a decimal number",
        "pattern": "^\\d+(\\.\\d+)?$"
      },
      "partialSettlementOption": {
        "type": "object",
        "required": [
          "type",
          "unitValue"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "partialSettlement"
            ]
          },
          "unitValue": {
            "$ref": "#/components/schemas/unitValue"
          }
        }
      },
      "fullSettlementOption": {
        "type": "object",
        "required": [
          "type",
          "amount"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "fullSettlement"
            ]
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          }
        }
      },
      "settlementTerm": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "noSettlement": "#/components/schemas/noSettlementOption",
            "partialSettlement": "#/components/schemas/partialSettlementOption",
            "fullSettlement": "#/components/schemas/fullSettlementOption"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/noSettlementOption"
          },
          {
            "$ref": "#/components/schemas/partialSettlementOption"
          },
          {
            "$ref": "#/components/schemas/fullSettlementOption"
          }
        ]
      },
      "destinationAccountAssetInstruction": {
        "type": "object",
        "required": [
          "destinationAccount"
        ],
        "properties": {
          "destinationAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          }
        }
      },
      "sellingSettlementBase": {
        "type": "object",
        "required": [
          "settlementTerm"
        ],
        "properties": {
          "settlementTerm": {
            "$ref": "#/components/schemas/settlementTerm"
          },
          "settlementInstruction": {
            "$ref": "#/components/schemas/destinationAccountAssetInstruction"
          }
        }
      },
      "sellingSettlements": {
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/sellingSettlementBase"
        }
      },
      "primarySale": {
        "type": "object",
        "required": [
          "type",
          "issuer",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "primarySale"
            ]
          },
          "issuer": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/sellingAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/sellingSettlements"
          }
        }
      },
      "buyingAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/destinationAccountAssetInstruction"
          }
        }
      },
      "buyingSettlementBase": {
        "type": "object",
        "required": [
          "settlementTerm"
        ],
        "properties": {
          "settlementTerm": {
            "$ref": "#/components/schemas/settlementTerm"
          },
          "settlementInstruction": {
            "$ref": "#/components/schemas/sourceAccountAssetInstruction"
          }
        }
      },
      "presignedSignaturePolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "presignedPolicy"
            ]
          }
        }
      },
      "manualSignaturePolicy": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "manualPolicy"
            ]
          },
          "nonce": {
            "$ref": "#/components/schemas/nonce"
          }
        }
      },
      "buyingIntent": {
        "type": "object",
        "required": [
          "type",
          "buyer",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "buyingIntent"
            ]
          },
          "buyer": {
            "type": "string",
            "description": "resource id of the buyer",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "asset": {
            "$ref": "#/components/schemas/buyingAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/buyingSettlementBase"
          },
          "settlements": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "legs"
              ],
              "properties": {
                "legs": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "$ref": "#/components/schemas/buyingSettlementBase"
                  }
                }
              }
            }
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "sellingIntent": {
        "type": "object",
        "required": [
          "type",
          "seller",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sellingIntent"
            ]
          },
          "seller": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/sellingAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/sellingSettlements"
          },
          "settlements": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "legs"
              ],
              "properties": {
                "legs": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "$ref": "#/components/schemas/sellingSettlementBase"
                  }
                }
              }
            }
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "borrowerLenderAccountAssetInstruction": {
        "type": "object",
        "required": [
          "borrowerAccount",
          "lenderAccount"
        ],
        "properties": {
          "borrowerAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          },
          "lenderAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          }
        }
      },
      "loanIntentAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/borrowerLenderAccountAssetInstruction"
          }
        }
      },
      "loanIntentSettlementBase": {
        "type": "object",
        "required": [
          "settlementTerm"
        ],
        "properties": {
          "settlementTerm": {
            "$ref": "#/components/schemas/settlementTerm"
          },
          "settlementInstruction": {
            "$ref": "#/components/schemas/borrowerLenderAccountAssetInstruction"
          }
        }
      },
      "loanIntentSettlements": {
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/loanIntentSettlementBase"
        }
      },
      "repaymentTerm": {
        "type": "object",
        "required": [
          "type",
          "closeAmount"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "repaymentTerm"
            ]
          },
          "closeAmount": {
            "$ref": "#/components/schemas/amount"
          },
          "interestRate": {
            "type": "string",
            "description": "indicative annual interest rate of the operation",
            "pattern": "^-?\\d*\\.?\\d*$",
            "maxLength": 150,
            "minLength": 1,
            "x-autoMinLength": true
          }
        }
      },
      "interestTerm": {
        "type": "object",
        "required": [
          "type",
          "interestRate"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "interestTerm"
            ]
          },
          "interestRate": {
            "type": "string",
            "description": "indicative annual interest rate of the operation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "closeAmountTerm": {
        "type": "object",
        "required": [
          "type",
          "closeAmount"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "closeAmountTerm"
            ]
          },
          "closeAmount": {
            "$ref": "#/components/schemas/amount"
          }
        }
      },
      "loanConditions": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/repaymentTerm"
          },
          {
            "$ref": "#/components/schemas/interestTerm"
          },
          {
            "$ref": "#/components/schemas/closeAmountTerm"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "repaymentTerm": "#/components/schemas/repaymentTerm",
            "interestTerm": "#/components/schemas/interestTerm",
            "closeAmountTerm": "#/components/schemas/closeAmountTerm"
          }
        }
      },
      "loanInstruction": {
        "type": "object",
        "required": [
          "openDate",
          "closeDate",
          "conditions"
        ],
        "properties": {
          "openDate": {
            "type": "integer",
            "format": "int64",
            "description": "date and time operation starts, in epoch (seconds)",
            "minimum": 0,
            "x-go-type-skip-optional-pointer": true
          },
          "closeDate": {
            "type": "integer",
            "format": "int64",
            "description": "date and time operation ends, in epoch (seconds)",
            "minimum": 0,
            "x-go-type-skip-optional-pointer": true
          },
          "conditions": {
            "$ref": "#/components/schemas/loanConditions"
          }
        }
      },
      "loanIntent": {
        "type": "object",
        "required": [
          "type",
          "creatorType",
          "borrower",
          "lender",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "loanIntent"
            ]
          },
          "creatorType": {
            "type": "string",
            "enum": [
              "borrower",
              "lender"
            ]
          },
          "borrower": {
            "$ref": "#/components/schemas/ownerId"
          },
          "lender": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/loanIntentAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/loanIntentSettlements"
          },
          "loanInstruction": {
            "$ref": "#/components/schemas/loanInstruction"
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy"
              }
            }
          }
        }
      },
      "finp2pAssetAccountOptional": {
        "type": "object",
        "description": "describes account information",
        "required": [
          "asset"
        ],
        "properties": {
          "account": {
            "$ref": "#/components/schemas/finIdAccount"
          },
          "asset": {
            "$ref": "#/components/schemas/finp2pAsset"
          },
          "networkAccount": {
            "$ref": "#/components/schemas/networkAccount",
            "description": "Optional. Investor network account to use for this leg. Must have been\npreviously bound via `POST /profiles/investor/{investorId}/account`.\nWhitelist-validated against `investor.data.accounts[org][asset]`\nbefore forwarding to the LA. Failure → error code 7351 (AccountNotWhitelistedErr, 400).\n"
          }
        }
      },
      "optionalDestinationAccountAssetInstruction": {
        "type": "object",
        "required": [
          "destinationAccount"
        ],
        "properties": {
          "destinationAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccountOptional"
          }
        }
      },
      "redemptionAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/optionalDestinationAccountAssetInstruction"
          }
        }
      },
      "buyingSettlements": {
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/buyingSettlementBase"
        }
      },
      "redemptionIntentConditions": {
        "properties": {
          "redemptionDuration": {
            "type": "string",
            "format": "duration",
            "description": "duration in ISO 8601 format (e.g., \"PT1H30M\" for 1 hour 30 minutes)",
            "pattern": "^P(\\d{1}Y)?(\\d{1,2}M)?(\\d{1,3}D)?(T(\\d{1,2}H)?(\\d{1,2}M)?(\\d{1,2}S)?)?$"
          }
        }
      },
      "redemptionIntent": {
        "type": "object",
        "required": [
          "type",
          "issuer",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "redemptionIntent"
            ]
          },
          "issuer": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/redemptionAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/buyingSettlements"
          },
          "conditions": {
            "$ref": "#/components/schemas/redemptionIntentConditions"
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "optionalSourceAccountAssetInstruction": {
        "type": "object",
        "required": [
          "sourceAccount"
        ],
        "properties": {
          "sourceAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccountOptional"
          }
        }
      },
      "privateOfferIntentAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/optionalSourceAccountAssetInstruction"
          }
        }
      },
      "privateOfferIntent": {
        "type": "object",
        "required": [
          "type",
          "buyer",
          "seller",
          "asset",
          "settlement"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "privateOfferIntent"
            ]
          },
          "buyer": {
            "$ref": "#/components/schemas/ownerId"
          },
          "seller": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/privateOfferIntentAsset"
          },
          "settlement": {
            "$ref": "#/components/schemas/sellingSettlements"
          },
          "settlements": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "legs"
              ],
              "properties": {
                "legs": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "$ref": "#/components/schemas/sellingSettlementBase"
                  }
                }
              }
            }
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "requestForTransferSendAssetInstruction": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "send"
            ],
            "description": "Indicates whether the operation is to send or request money/asset."
          },
          "senderAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          }
        }
      },
      "requestForTransferRequestAssetInstruction": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "request"
            ],
            "description": "Indicates whether the operation is to send or request money/asset."
          },
          "receiverAccount": {
            "$ref": "#/components/schemas/finp2pAssetAccount"
          }
        }
      },
      "requestForTransferIntentAssetInstruction": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/requestForTransferSendAssetInstruction"
          },
          {
            "$ref": "#/components/schemas/requestForTransferRequestAssetInstruction"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "send": "#/components/schemas/requestForTransferSendAssetInstruction",
            "request": "#/components/schemas/requestForTransferRequestAssetInstruction"
          }
        }
      },
      "requestForTransferIntentAsset": {
        "type": "object",
        "required": [
          "assetInstruction",
          "assetTerm"
        ],
        "properties": {
          "assetTerm": {
            "$ref": "#/components/schemas/assetTerm"
          },
          "assetInstruction": {
            "$ref": "#/components/schemas/requestForTransferIntentAssetInstruction"
          }
        }
      },
      "requestForTransferIntent": {
        "type": "object",
        "required": [
          "type",
          "sender",
          "receiver",
          "asset"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "requestForTransferIntent"
            ]
          },
          "sender": {
            "$ref": "#/components/schemas/ownerId"
          },
          "receiver": {
            "$ref": "#/components/schemas/ownerId"
          },
          "asset": {
            "$ref": "#/components/schemas/requestForTransferIntentAsset"
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "moveDestination": {
        "type": "object",
        "description": "a Move destination asset. Superset of finp2pAsset (same required id + ledgerIdentifier), plus an optional pre-funded pool the Transfer drains into the destination for the hold-transfer-* variants.",
        "required": [
          "id",
          "ledgerIdentifier"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/resourceId"
          },
          "ledgerIdentifier": {
            "$ref": "#/components/schemas/ledgerAssetIdentifier"
          },
          "fromSegregatedAccount": {
            "$ref": "#/components/schemas/finIdAccount"
          },
          "fromSegregatedAccountOwner": {
            "description": "owner of the pre-funded pool account — the Transfer seller (debited party) for receipts and regulation. Required when fromSegregatedAccount is set.",
            "$ref": "#/components/schemas/resourceId"
          }
        }
      },
      "moveAsset": {
        "type": "object",
        "description": "asset-level migration path declared by the source asset's organization; source + one-or-more destination assets (no quantity). Optional sourceToSegregatedAccount receives held source tokens on release (instead of burning); each destination may carry a pre-funded fromSegregatedAccount pool for the hold-transfer-* variants. The executor picks one destination at execution.",
        "required": [
          "sourceAsset",
          "destinationAssets"
        ],
        "properties": {
          "sourceAsset": {
            "$ref": "#/components/schemas/finp2pAsset"
          },
          "destinationAssets": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/moveDestination"
            }
          },
          "sourceToSegregatedAccount": {
            "$ref": "#/components/schemas/finIdAccount"
          }
        }
      },
      "moveIntent": {
        "type": "object",
        "required": [
          "type",
          "asset"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "moveIntent"
            ]
          },
          "asset": {
            "$ref": "#/components/schemas/moveAsset"
          },
          "signaturePolicy": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/presignedSignaturePolicy"
              },
              {
                "$ref": "#/components/schemas/manualSignaturePolicy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "presignedPolicy": "#/components/schemas/presignedSignaturePolicy",
                "manualPolicy": "#/components/schemas/manualSignaturePolicy"
              }
            }
          }
        }
      },
      "intent": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/primarySale"
          },
          {
            "$ref": "#/components/schemas/buyingIntent"
          },
          {
            "$ref": "#/components/schemas/sellingIntent"
          },
          {
            "$ref": "#/components/schemas/loanIntent"
          },
          {
            "$ref": "#/components/schemas/redemptionIntent"
          },
          {
            "$ref": "#/components/schemas/privateOfferIntent"
          },
          {
            "$ref": "#/components/schemas/requestForTransferIntent"
          },
          {
            "$ref": "#/components/schemas/moveIntent"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "primarySale": "#/components/schemas/primarySale",
            "buyingIntent": "#/components/schemas/buyingIntent",
            "sellingIntent": "#/components/schemas/sellingIntent",
            "loanIntent": "#/components/schemas/loanIntent",
            "redemptionIntent": "#/components/schemas/redemptionIntent",
            "privateOfferIntent": "#/components/schemas/privateOfferIntent",
            "requestForTransferIntent": "#/components/schemas/requestForTransferIntent",
            "moveIntent": "#/components/schemas/moveIntent"
          }
        }
      },
      "customMetadata": {
        "type": "object",
        "description": "Optional. A map of key:value string pairs for custom tracing, reconciliation, and business context. Opaque to the Router.\n",
        "additionalProperties": {
          "type": "string",
          "minLength": 1
        }
      }
    }
  }
}
```