# Retrieve all accounts The accounts GET endpoint retrieves all account information linked to a reseller Endpoint: GET /api/v1/accounts Version: 2.0.0 Security: JWTAuth ## Response 200 fields (application/json): - `data` (array, required) Example: [{"zip":"27455","campaign_id":7654321,"active":1,"account_id":1234567,"state":"NC","last_name":"Williams","email":"joe@electricalservices.com","first_name":"Joe","account_name":"Joes Electrical Services","external_account_identifier":{"field_value":"SG12345","field_name":"external_account_identifier"},"city":"Greensboro","phone_number":"3365001111","address_1":"202 West Cone Blvd","address_2":"Suite 210"}] - `data.zip` (string) Example: "21620" - `data.campaign_id` (integer) Example: 7654321 - `data.active` (integer) Enum: 0, 1 - `data.account_id` (integer) Example: 1234567 - `data.state` (string) Example: "NC" - `data.last_name` (string) Example: "Williams" - `data.email` (string) Example: "joe@electricalservices.com" - `data.first_name` (string) Example: "Joe" - `data.account_name` (string) Example: "Joes Electrical Services" - `data.external_account_identifier` (object) - `data.external_account_identifier.field_value` (string) Example: "SG12345" - `data.external_account_identifier.field_name` (string) Example: "external_account_identifier" - `data.city` (string) Example: "Greensboro" - `data.phone_number` (string) Example: "3365001111" - `data.address_1` (string) Example: "202 West Cone Blvd" - `data.address_2` (string) Example: "Suite 210" - `error` (boolean, required) - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":1} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Account Retreival Success"] ## Response 400 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Missing parameter"] ## Response 401 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Not Authorized"] ## Response 405 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Method Not Allowed"] ## Response 422 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Unprocessable Entity"]