Loading...

GET   https://api.3seventy.com/api/v2.1/account?inactive={inactive}

Description

Returns a list of accounts that exist for the user currently logged in.

Query Strings

inactive boolean Set to true to get all accounts, active and inactive. optional

Response Properties application/json

Id integer The ID of the account.
Status string The current status of the account.
ParentId integer The identifier of the account that is the parent of this account.
Name string The name of the account
Created string When the account was created.
AllowCallback boolean Set if this account is allowed to use the callback mechanism.
CallbackToken string The token to send on a callback.
BillingStatus string Billing Status Information
BillingType string Billing Type Information


                    

C#


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int parentId= XXXX;

var context = new T70Context();

var accountRepo = context.Repository<Account>(new { ParentId = parentId});

var accountList = accountRepo.GetAll();

}

}