Loading...

Description

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


Request URL

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

Request Properties

Parameter Description Mandatory
inactive Set to true to get all accounts, active and inactive. No

Response Properties

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

C#
PHP


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();

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet