'Integrating Plaid with Salesforce
I am trying to integrate Plaid API with salesforce in a visualforce page and I have done all the procedures my only problem is that while the response is being returned there are no transactions in the response returned is there any particular parameter that I need to add for the transactions to appear in the response.
const request: TransactionsGetRequest = {
client_id: client_id,
secret: secret
access_token: access_token
start_date: '2018-01-01',
end_date: '2020-02-01',
options: {
count: 250,
offset: 0,
}
Response Example
{
"accounts": [
{
"account_id": "BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp",
"balances": {
"available": 110,
"current": 110,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
"mask": "0000",
"name": "Plaid Checking",
"official_name": "Plaid Gold Standard 0% Interest Checking",
"subtype": "checking",
"type": "depository"
}
],
"transactions": [],
"item": {
"available_products": [
"balance",
"credit_details",
"identity",
"investments"
],
"billed_products": ["assets", "auth", "liabilities", "transactions"],
"consent_expiration_time": null,
"error": null,
"institution_id": "ins_3",
"item_id": "eVBnVMp7zdTJLkRNr33Rs6zr7KNJqBFL9DrE6",
"webhook": "https://www.genericwebhookurl.com/webhook"
},
"total_transactions": 0,
"request_id": "45QSn"
}
Solution 1:[1]
Thank you for posting your query. I think the issue is just that the dates you're using for your test query are too old for the Sandbox test environment -- I don't think the Sandbox loads transaction data for that far in the past. Can you try with a set of dates from this year?
Edit: Or it could be a timing issue / transactions haven't loaded yet, which seems likely given that it works in Postman for you but not in Salesforce.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
