Home Forums Voip – Development D Pool (Database) Reply To: Pool (Database)

Krunal
Participant
Post count: 199

reply of #1445

*sample of request and response of peerless api.
1) To check the status of number i used the request method ‘getStatusByNumberSearch’ (3.7.2) in pdf & according to syntax of method of pdf request array look like as below,

request:
$filter_ele = [
‘telephoneNumber’ => [2055801222],
];

response:
Array
(
[classinfo] => stdClass Object
(
[return] => stdClass Object
(
[result] => stdClass Object
(
[entry] => stdClass Object
(
[key] => 2055801222
[value] => No information is available.
)

)

)

)

)

2) To place new order of new number in peerless i used the request method ‘place order’ 3.2.7 in pdf & according to syntax of method of pdf request array look like as below,

request:
$filter_ele = [
‘orderType’ => ‘NN’,
‘orderNumbers’ => [
‘number’ => [
‘tn’ => 2055801222,
‘routeLabel’ => 0,
‘cnamDelivery’ => 0,
‘cnamStorage’ => 0,
‘peerlessMsgProvisioning’ => 0,
‘sms’ => 0,
‘e911’ => 0,
‘mou’ => 1,
‘address’ => [
‘direction’ => ‘NE’,
‘streetName’ => ’29th’,
‘city’ => ‘Miami’,
‘state’ => ‘FL’,
‘name’ => ‘Nano Telecom inc’,
‘zip’ => ‘33145’
]
]
]
];

response:
ERROR_WHILE_VALIDATING_REQUESTED_DESTINATION

Please check this.