Amend Plaid Processors
PUT
https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors
Modify the Plaid processors associated with a bank account.
Request
Path Parameters
Name
Type
Description
Body Parameters
Name
Type
Description
data required
[object]
The Plaid processor_tokens and associated processors
processor required
string
The processor associated with this token.
Possible values: sfox, dwolla
token required
string
The processor_token retrieved from Plaid.
Example Requests
#Update bank account with new sFOX and Dwolla processor tokens
curl --location --request PUT 'https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors' \
-H 'Content-type: application/json' \
-H "Authorization: Bearer ${USER_AUTH_TOKEN}" \
-d '{
"data": [
{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
},
{
"processor": "dwolla",
"token": "${DWOLLA_PLAID_PROCESSOR_TOKEN}"
}
]
}'
#Update bank account with new sFOX processor token
curl --location --request PUT 'https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors' \
-H 'Content-type: application/json' \
-H "Authorization: Bearer ${USER_AUTH_TOKEN}" \
-d '{
"data": [{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
}]
}'//Update bank account with new sFOX and Dwolla processor tokens
const axios = require('axios');
const payload = JSON.stringify({
"data": [
{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
},
{
"processor": "dwolla",
"token": "${DWOLLA_PLAID_PROCESSOR_TOKEN}"
}
]
})
const config = {
method: 'put',
url: 'https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.USER_AUTH_TOKEN}`
},
data: data
}
axios(config)
.then(response => {
console.log(response.status)
console.log(response.data)
}).catch(err => {
console.error(err.response.status)
console.error(err.response.data)
});
//Update bank account with new sFOX processor token
const axios = require('axios');
const payload = JSON.stringify({
"data": [
{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
}
]
})
const config = {
method: 'put',
url: 'https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.USER_AUTH_TOKEN}`
},
data: data
}
axios(config)
.then(response => {
console.log(response.status)
console.log(response.data)
}).catch(err => {
console.error(err.response.status)
console.error(err.response.data)
});#Update bank account with new sFOX and Dwolla processor tokens
import requests
import json
url = "https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors"
payload = json.dumps({
"data": [
{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
},
{
"processor": "dwolla",
"token": "${DWOLLA_PLAID_PROCESSOR_TOKEN}"
}
]
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ${USER_AUTH_TOKEN}'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
#Update bank account with new sFOX processor token
import requests
import json
url = "https://api.sfox.com/v1/bank-accounts/${BANK_ACCOUNT_ID}/plaid-processors"
payload = json.dumps({
"data": [{
"processor": "sfox",
"token": "${SFOX_PLAID_PROCESSOR_TOKEN}"
}]
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ${USER_AUTH_TOKEN}'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)Response
Response Body
Name
Type
Description
data
[object]
The Plaid processor_tokens and associated processors
processor
string
The processor associated with the token that was processed.
Possible values: sfox, dwolla
status
string
The status of processing the token.
date_added
string
Date-time the token was added.
date_updated
string
Date-time the token was last updated.
Responses
Last updated