Sync an account
data:sync capability in available_capability or capability.About Method Sync
✨ Method Sync allows you to retrieve real-time enhanced data for any liability created in Method. Method Sync is available for a fast growing list of merchants.
With Sync, you can fetch key liability details such as interest_rate_percentage, payoff_amount, balance and much more in real-time directly from the servicer or financial institution. See all available data fields per liability type.
Tips
Method Sync interfaces directly with financial institutions, as a result, syncs in average take < 60 seconds to complete, but in rare-cases can take up to 180 seconds.
💡 To check the status of a sync use the data_status and data_last_successful_sync in the account.liability response.
Sync is optimized for speed, and will eagerly save / notify of new updates to a liability (even if the sync is still in_progress and incomplete) In practice, this means that some fields might temporarily return null while we wait for data to be received from the financial institution.
💡 We recommend subscribing to account:update webhook to be notified of all changes.
Liability accounts that are created in dev environments will not have syncing capabilities enabled by default.
💡 To simulate Sync in dev environments, use one of the provided mch_id and account_number pairs. See Simulate Sync for more details.
Nightly Sync
After a successful initial sync, a liability account will receive nightly data updates directly from the financial institution. You'll be notified in real-time of any updates via an account:update webhook.
Parameters
No parameters
Returns
in_progress will return the current in_progress sync.- cURL
- Node.js
- Python
/accounts/:account_id/syncscurl https://production.methodfi.com/accounts/acc_Zc4F2aTLt8CBt/syncs \
-X POST \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
/accounts/:account_id/syncsconst account = await method.accounts('acc_Zc4F2aTLt8CBt').syncs.create();
/accounts/:account_id/syncsaccount = method.accounts('acc_Zc4F2aTLt8CBt').syncs.create()
{
"data": {
"id": "acc_sync_6d94yUUMjbcXL",
"acc_id": "acc_Zc4F2aTLt8CBt",
"status": "in_progress",
"error": null,
"created_at": "2022-06-14T15:10:28.213Z",
"updated_at": "2022-06-14T15:10:28.213Z"
}
}