Loading...

Description

Gets a list of all TN orders made on a given account.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account which made the request. Yes

Response Properties

Property Description
Id The ID of the order.
Quantity The number of phone numbers requested.
Pattern The search pattern used for provisioning this order.
OrderBy The type of order that is being provisioned.
OrderStatus The current status of the order
PhoneNumbers List of phone numbers that have been provisioned so far.

C#
PHP


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
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 accountId = XXXX;

var context = new T70Context();

var requestTnRepo = context.Repository<RequestTn>(new { AccountId = accountId });

var list = requestTnRepo.GetAll();

}

}

 

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