Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}

Description

Gets detailed information about a specific account.

Path Parameters

accountId integer The ID of the account to retrieve. required

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
  {
    "Id": 22,
    "Status": 0,
    "ParentId": 0,
    "Name": "370 CLientTest Account",
    "Created": "2013-12-19T13:00:19",
    "AllowCallback": false,
    "CallbackToken": null,
    "BillingStatus": null,
    "BillingType": null,
    "Type": 0,
    "AccountType": 0,
    "IsMetered": false,
    "IsPayAsYouGo": false
  }

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;

const int accountId = XXXX;

var context = new T70Context();

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

var account = accountRepo.Get(accountId );

}

}