Import numbers associated with hosting orders of a specific project and schedule the async provisioning to Sinch SMS platform and linking to campaign if applicable.
Note: This operation is limited to five numbers. If you want to increase the quantity of numbers you can import using this operation, please contact your account manager for authorization.
Found on your Sinch Customer Dashboard. Settings > Projects.
The request to import hosting orders numbers in the current project
An array of all the phone numbers associated with the import request.
[ "+12025550134" ]
The ID of the service plan to which the import request is associated.
The ID of the project to which the import request is associated.
The ID of the campaign to which the request is associated.
If a number is assigned to another aggregator in T-Mobile's platform, then T-Mobile will give an error code 60135 indicating that number needs to be “migrated” from previous aggregator to Sinch. This “migration” requires provisioning of number by setting this flag named to true for successful number linking process.
- Global APIhttps://imported.numbers.api.sinch.com/v1/projects/{projectId}/hostingOrders:importNumbers
curl -i -X POST \
-u '<username>:<password>' \
https://imported.numbers.api.sinch.com/v1/projects/d1923022-5199-4bb3-a513-c47b3a656bc5/hostingOrders:importNumbers \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Import numbers order",
"regionCode": "US",
"numbers": [
"+17724295286",
"+17724295287"
],
"servicePlanId": "07d6c2621f364b68856fe4938b7bb78f",
"campaignId": "C3O8OGA",
"callbackUrl": "https://www.your-callback-server.com/callback",
"migrateToSinchTmo": true
}'A successful response with a hosting order, or an error
The region code of the hosting order. Number hosting is only available for the US and Canada, so you must enter either "US" or "CA".
The state of the hosting order.
| Enum Value | Description |
|---|---|
| HOSTING_ORDER_STATE_UNSPECIFIED | State is unspecified. |
| DRAFT | Hosting order is a draft. |
| SUBMITTED | Hosting order has been submitted. |
| WAITING_FOR_LOA_SIGNATURE | Hosting order is waiting for the LoA signature. |
| IN_PROGRESS | Hosting order is in progress. |
| COMPLETED | Hosting order is completed. |
| REJECTED | Hosting order is rejected. |
The hosting order type.
| Enum Value | Description |
|---|---|
| HOSTING_ORDER_TYPE_UNSPECIFIED | The type of hosting order is unspecified. |
| IMPORT | Hosting order to import numbers. |
| TYPE_TEXT_ENABLE | Hosting order to text-enable numbers. |
The service plan to which the hosting order is associated.
Displays if a number is assigned to another aggregator in T-Mobile's platform, and requires migration from previous aggregator to Sinch.
{ "projectId": "d1923022-5199-4bb3-a513-c47n7a656bc5", "hostingOrderId": "01arz3nhyrtsv4rrffq69g5fav", "displayName": "Hosting order with campaignId and smsAppId", "regionCode": "US", "state": "SUBMITTED", "type": "IMPORT", "createdTime": "2023-01-12T14:34:40.968Z", "updatedTime": "2023-01-12T14:34:40.968Z", "servicePlanId": "16e5c8d2odc842bda9a1b90e1673c174", "campaignId": "C3O84GA", "migrateToSinchTmo": true, "callbackUrl": "https://www.your-callback-server.com/callback", "numberImport": "{}" }