PhoneNumbers
Quote a phone number order
Quotes one phone number in country, billed monthly. The price is
frozen in the quote (quote.priceLabel, dueTodayLabel,
renewalLabel) until quote.expiresAt. Nothing is charged. Show it
to the person you act for, then confirm with
POST …/number-orders and the quoteId.
Retries: safe: a quote only prices, it orders nothing.
POST
/
v1
/
workspaces
/
{workspaceId}
/
number-orders
/
quote
Quote a phone number order
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/quote \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"kind": "purchase",
"term": "monthly"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({kind: 'purchase', term: 'monthly'})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/quote', 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/quote"
payload = {
"kind": "purchase",
"term": "monthly"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Body
application/json
Was this page helpful?
⌘I
Quote a phone number order
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/quote \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"kind": "purchase",
"term": "monthly"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({kind: 'purchase', term: 'monthly'})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/quote', 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/quote"
payload = {
"kind": "purchase",
"term": "monthly"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
