Loading...

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/long-code/{longCode}/callforwardingverification

Description

Verify the code and activate call forwarding

Path Parameters

accountId integer Account ID of the long code. required
longCode string Long code in the following format Ex.1xxxxxxxxxx required

Request Properties application/json

VerificationCode string Code that user received via audio call required
{
  "VerificationCode": "607172"
}

Response Properties application/json

AccountId integer The account which owns this long code.
ChannelId integer The channel which handles this long code.
Code string The ANI for this long code.
ForwardNumber string Call Forwarding number
ForwardStatus string Status of call forwarding
ForwardVerificationCode string Random 6 digit Code that is sent in order to verify forwarding number
{
  "AccountId": 44415,
  "ChannelId": 25,
  "Code": "+1XXXXXXXXXX",
  "ForwardNumber": "+1XXXXXXXXXX",
  "ForwardVerificationCode": "607172",
  "ForwardStatus": 1,
  "StatusId": 0,
  "Created": "2015-12-08T10:01:56",
  "Modified": "2018-03-30T05:16:12",
  "CreatedBy": "",
  "ModifiedBy": "",
  "Id": 18
}

C#


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

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const string longCode = "1XXXXXXXXXX";

const string verificationCode = "XXXXX";

var context = new T70Context();

var callForwardVerificationRepo = context.Repository<CallForwardVerification>(new { AccountId = accountId, Code = longCode});

var item = new CallForwardVerification() {RequestVerificationCode = verificationCode};

callForwardVerificationRepo.Add(item);

}

}