Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 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
18 changes: 2 additions & 16 deletions mintlify/openapi.yaml

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

27 changes: 25 additions & 2 deletions mintlify/snippets/plaid-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,31 @@ 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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",
"accountInfo": {
"accountType": "US_ACCOUNT",
"accountNumber": "123456789",
"routingNumber": "021000021",
"accountCategory": "CHECKING",
"bankName": "Chase Bank",
"beneficiary": {
"beneficiaryType": "INDIVIDUAL",
"fullName": "John Doe",
"birthDate": "1990-01-15",
"nationality": "US",
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postalCode": "94105",
"country": "US"
}
}
}
}
```

Expand Down
18 changes: 2 additions & 16 deletions openapi.yaml

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

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