/accounts endpoint.
- Account objects represent payroll accounts that your users connect via Argyle Link.
- You can query accounts by account ID or user ID that you might have obtained through one of the Argyle Link callbacks.
Accounts that have never successfully connected are removed after 30 days.
The account object
Attributes
id(string (uuid), optional): Unique ID of the payroll account.user(string (uuid), optional): ID of the user associated with the payroll account.employers(array of strings, optional): A list of names of all employers associated with this payroll account. In most cases, this returns a single employer. However, sometimes the same payroll provider (for example, MyADP) is associated with more than one employer.link_item(string, optional)source(string, optional)was_connected(boolean, optional)status(note, optional)error_message(string, optional)status(note, optional)error_code(string, optional)error_message(string, optional)availability(object, optional)status(note, optional)available_count(integer, optional)available_to(string (timestamp), optional)available_from(string (timestamp), optional)
Additional example object — Document upload after invalid credentials
Additional example object — Document upload after invalid credentials
Additional example object — Document upload via questionnaire form
Additional example object — Document upload via questionnaire form
Retrieve an account
GET/v1/accounts/{id}
- Retrieve an account object with the supplied ID.
- This request returns an account object if you provided a valid identifier.
Path parameters
id(string (uuid), required): The identifier of the account to be retrieved
- curl
- python
List accounts
GET/v1/accounts
- List all accounts that your customers have connected through Argyle.
- This request returns an object with a
resultsproperty that contains an array of up tolimitaccount objects.
Query parameters
- curl
- python
Delete an account
DELETE/v1/accounts/{id}
- Delete an account and all resources associated with that account: profiles, vehicles, documents, incomes, etc.
- When the account is deleted successfully, the request responds with a
204status and an empty response body.
Path parameters
id(string (uuid), required): ID of the account you wish to delete.
- curl
- python