PhoneNumbers
Get a number order
GET
/
v1
/
workspaces
/
{workspaceId}
/
number-orders
/
{orderId}
Get a number order
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"phase": "unavailable",
"orderId": "<string>",
"kind": "purchase",
"quoteId": "<string>",
"selection": {
"country": "<string>",
"term": "<string>",
"numberType": "<string>"
},
"quote": {
"lineItemLabel": "<string>",
"priceLabel": "<string>",
"dueTodayLabel": "<string>",
"renewalLabel": "<string>",
"expiresLabel": "<string>",
"expiresAt": "<string>"
},
"order": {
"id": "<string>",
"number": "<string>"
},
"message": "<string>",
"canResume": true,
"paymentUrl": "<string>"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Was this page helpful?
⌘I
Get a number order
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"phase": "unavailable",
"orderId": "<string>",
"kind": "purchase",
"quoteId": "<string>",
"selection": {
"country": "<string>",
"term": "<string>",
"numberType": "<string>"
},
"quote": {
"lineItemLabel": "<string>",
"priceLabel": "<string>",
"dueTodayLabel": "<string>",
"renewalLabel": "<string>",
"expiresLabel": "<string>",
"expiresAt": "<string>"
},
"order": {
"id": "<string>",
"number": "<string>"
},
"message": "<string>",
"canResume": true,
"paymentUrl": "<string>"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
