PhoneNumbers
Abandon an unpaid number order
Gives up an order whose payment was not completed and closes its payment, so another order can start. Answers the order’s current state.
POST
/
v1
/
workspaces
/
{workspaceId}
/
number-orders
/
{orderId}
/
abandon
Abandon an unpaid number order
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}/abandon \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}/abandon', 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}/abandon"
payload = {}
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
Path Parameters
Body
application/json
The body is of type object.
Was this page helpful?
⌘I
Abandon an unpaid number order
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}/abandon \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/{orderId}/abandon', 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}/abandon"
payload = {}
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>"
}
