diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 35ccdb62..e0b39209 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -1050,7 +1050,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalAccountCreateRequest' + $ref: '#/components/schemas/PlatformExternalAccountCreateRequest' examples: usBankAccount: summary: Create external US bank account @@ -5785,6 +5785,22 @@ components: default: false accountInfo: $ref: '#/components/schemas/ExternalAccountInfoOneOf' + PlatformExternalAccountCreateRequest: + type: object + required: + - currency + - accountInfo + properties: + currency: + type: string + description: The ISO 4217 currency code + example: USD + platformAccountId: + type: string + description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. + example: ext_acc_123456 + accountInfo: + $ref: '#/components/schemas/ExternalAccountInfoOneOf' PlaidLinkTokenRequest: type: object required: diff --git a/openapi.yaml b/openapi.yaml index 35ccdb62..e0b39209 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1050,7 +1050,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalAccountCreateRequest' + $ref: '#/components/schemas/PlatformExternalAccountCreateRequest' examples: usBankAccount: summary: Create external US bank account @@ -5785,6 +5785,22 @@ components: default: false accountInfo: $ref: '#/components/schemas/ExternalAccountInfoOneOf' + PlatformExternalAccountCreateRequest: + type: object + required: + - currency + - accountInfo + properties: + currency: + type: string + description: The ISO 4217 currency code + example: USD + platformAccountId: + type: string + description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. + example: ext_acc_123456 + accountInfo: + $ref: '#/components/schemas/ExternalAccountInfoOneOf' PlaidLinkTokenRequest: type: object required: diff --git a/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml b/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml new file mode 100644 index 00000000..01db6602 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml @@ -0,0 +1,15 @@ +type: object +required: + - currency + - accountInfo +properties: + currency: + type: string + description: The ISO 4217 currency code + example: USD + platformAccountId: + type: string + description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. + example: ext_acc_123456 + accountInfo: + $ref: ./ExternalAccountInfoOneOf.yaml diff --git a/openapi/paths/platform/platform_external_accounts.yaml b/openapi/paths/platform/platform_external_accounts.yaml index 9a6920d7..cf9bfed3 100644 --- a/openapi/paths/platform/platform_external_accounts.yaml +++ b/openapi/paths/platform/platform_external_accounts.yaml @@ -79,7 +79,7 @@ post: content: application/json: schema: - $ref: ../../components/schemas/external_accounts/ExternalAccountCreateRequest.yaml + $ref: ../../components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml examples: usBankAccount: summary: Create external US bank account