import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.numberOrderPhoneNumbers.updateRequirementGroup(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{ requirement_group_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
);
console.log(response.data);{
"data": {
"status": "pending",
"order_request_id": "a11d58fe-88a4-494a-b752-8dea411993c6",
"country_code": "AT",
"is_block_number": false,
"regulatory_requirements": [
{
"requirement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field_value": "1234567890",
"field_type": "textual",
"status": "pending-approval"
}
],
"locality": "AUSTRIA",
"phone_number_type": "toll_free",
"bundle_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_number_order_id": "f826ed66-b27c-4340-9dc0-57dc3459f1bd",
"deadline": "2023-11-07T05:31:56Z",
"requirements_status": "requirement-info-under-review",
"id": "613d517a-0432-4bae-a785-c11033bd0985",
"phone_number": "+43800300238",
"requirements_met": false,
"record_type": "number_order_phone_number"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.numberOrderPhoneNumbers.updateRequirementGroup(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{ requirement_group_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
);
console.log(response.data);{
"data": {
"status": "pending",
"order_request_id": "a11d58fe-88a4-494a-b752-8dea411993c6",
"country_code": "AT",
"is_block_number": false,
"regulatory_requirements": [
{
"requirement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field_value": "1234567890",
"field_type": "textual",
"status": "pending-approval"
}
],
"locality": "AUSTRIA",
"phone_number_type": "toll_free",
"bundle_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_number_order_id": "f826ed66-b27c-4340-9dc0-57dc3459f1bd",
"deadline": "2023-11-07T05:31:56Z",
"requirements_status": "requirement-info-under-review",
"id": "613d517a-0432-4bae-a785-c11033bd0985",
"phone_number": "+43800300238",
"requirements_met": false,
"record_type": "number_order_phone_number"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the number order phone number
The ID of the requirement group to associate
Successful response with updated phone number order details
Show child attributes
"pending"
"a11d58fe-88a4-494a-b752-8dea411993c6"
"AT"
false
"AUSTRIA"
"toll_free"
"f826ed66-b27c-4340-9dc0-57dc3459f1bd"
"requirement-info-under-review"
"613d517a-0432-4bae-a785-c11033bd0985"
"+43800300238"
false
"number_order_phone_number"
Was this page helpful?