Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions mintlify/snippets/plaid-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,11 @@ app.post('/api/plaid/exchange-token', async (req, res) => {

```json
{
"message": "External account creation initiated. You will receive a webhook notification when complete.",
"requestId": "req_def456ghi789"
"id": "ExternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wont actually return all this data synchronously. Its an async job that will send a webhook once its done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I know. I can update the example to exclude account info.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I made accountInfo option for this, but we may just want to split it out into 2 objects

"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001",
"status": "PENDING",
"platformAccountId": "user_123_primary_bank",
"currency": "USD"
}
```

Expand Down
19 changes: 2 additions & 17 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ allOf:
- id
- status
- currency
- accountInfo
properties:
id:
type: string
Expand Down
12 changes: 0 additions & 12 deletions openapi/components/schemas/plaid/PlaidCallbackResponse.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions openapi/paths/plaid/plaid_callback_{plaid_link_token}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ post:
responses:
'202':
description: |
Public token accepted and external account creation initiated.
The platform will receive a webhook notification when the external account is ready.
A pending external account resource will be created and returned while the Grid API asynchronously processes the Plaid public token.
content:
application/json:
schema:
$ref: ../../components/schemas/plaid/PlaidCallbackResponse.yaml
$ref: ../../components/schemas/external_accounts/ExternalAccount.yaml
'400':
description: Bad request - Invalid public token or link token
content:
Expand Down