- Preparation
- FAQ
- V3
- Customer API
- Phones API
- Statistics API
- V2(Deprecated)
- Warning: V2 API is deprecated
- Account
- Lookup
- Manage phone numbers
Order a number
Developing
PUT
https://api-x.smsonline.cloud/v3/numbers/{userId}/order
Request
Path Params
userId
string
required
Body Params application/json
apiKey
string
required
country
string
required
service
string
required
carrier
string
required
maximumPrice
string
required
m
string
required
n
string
required
failover
boolean
optional
If not specified, it will be interpreted as true.
Example
{
"apiKey":"",
"country":"",
"service":"",
"carrier":"",
"maximumPrice":"",
"m":"",
"n":""
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-x.smsonline.cloud/v3/numbers//order' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKey":"",
"country":"",
"service":"",
"carrier":"",
"maximumPrice":"",
"m":"",
"n":""
}'
Responses
🟢200Success
application/json
Body
ok
boolean
required
body
object
required
orderId
string
required
phoneNumber
string
required
expiredAtUTC
string
required
purchasePrice
integer
required
Example
{
"ok": true,
"body": {
"orderId": "1",
"phoneNumber": "86123456789",
"expiredAtUTC": "2025-05-17 06:07:13",
"purchasePrice": 16
}
}
🟢222Additional action required
Modified at 2025-06-10 13:35:38