Hosting Orders
Text enable numbers in hosting orders
Text enable numbers associated with hosting orders of a specific project.
post/v1/projects/{projectId}/hostingOrders:textEnableNumbers
Path parameters
projectIdstring required
Example:d1923022-5199-4bb3-a513-c47b3a656bc5
Found on your Sinch Customer Dashboard. Settings > Projects.
Request body
Example request
{
"projectId": "YOUR_project_id",
"displayName": "MyHostingOrder",
"regionCode": "US",
"numbers": [
"+12025550134"
],
"servicePlanId": "YOUR_service_plan_id",
"campaignId": "YOUR_campaign_id",
"directLoaInfo": {
"authorisedPerson": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@company.com"
},
"address": {
"buildingNumber": "123",
"street": "1st",
"city": "New York",
"state": "NY",
"postalCode": "00001",
"country": "USA"
},
"currentVoiceCarrier": "TMO"
},
"resellerLoaInfo": {
"businessName": "Acme, Inc.",
"authorisedPerson": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@company.com"
},
"address": {
"buildingNumber": "123",
"street": "1st",
"city": "New York",
"state": "NY",
"postalCode": "00001",
"country": "USA"
},
"currentVoiceCarrier": "TMO"
},
"callbackUrl": "https://www.your-callback-server.com/callback"
}Response
A successful response with a hosting order, or an error
Example response
{
"projectId": "YOUR_project_id",
"hostingOrderId": "YOUR_hosting_order_id",
"displayName": "MyHostingOrder",
"regionCode": "US",
"servicePlanId": "YOUR_service_plan_id",
"campaignId": "YOUR_campaign_id",
"textEnableInfo": {
"businessName": "Acme, Inc.",
"authorisedPerson": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@company.com"
},
"address": {
"buildingNumber": "123",
"street": "1st",
"city": "New York",
"state": "NY",
"postalCode": "00001",
"country": "USA"
},
"currentVoiceCarrier": "TMO"
},
"callbackUrl": "https://www.your-callback-server.com/callback"
}