country_code and capabilities. The API answers 201 with a list of the numbers that it bought. When an item is not valid, the API buys nothing and answers 400 with one error object for each item, in the order of the list. A body that is not a list, or an empty list, answers 400 with non_field_errors, and so does a list of more than 2 valid items. The API buys the items in order and does not undo a buy. So when it cannot buy an item, it answers 400, and each number that it bought stays in your organisation. Check GET /v2/number/ before you send the request again.Authorization: ********************[
{
"country_code": "27",
"capabilities": [
"voice"
],
"target_number": [
"27820001234"
]
},
{
"country_code": "27",
"capabilities": [
"voice"
],
"target_number": [
"27820001235"
]
}
]curl --location 'https://api.sudonum.com/v2/number/bulk/' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
{
"country_code": "27",
"capabilities": [
"voice"
],
"target_number": [
"27820001234"
]
},
{
"country_code": "27",
"capabilities": [
"voice"
],
"target_number": [
"27820001235"
]
}
]'[
{
"name": null,
"number": "27710000002",
"country": "ZA",
"capabilities": [
"VOICE"
],
"target_number_clid": null,
"sumi_config": null,
"show_insights_in_app": false,
"sumi_agent_config": null,
"routing_config": null,
"sip_agent": null,
"issued_date": "2026-07-20T09:00:00Z",
"billing_anniversary": "2026-08-19T09:00:00Z",
"last_called": null,
"target_number": "27820001234",
"webhooks": [],
"third_party_integrations": [],
"meta": {},
"features": [],
"tts": null,
"whisper_file": null,
"call_tracking": null,
"record_call_file": null,
"keep_number_file": null,
"voicemail_lite_file": null,
"capture_digits_file": null,
"keywords": null,
"ivr_menu": null
},
{
"name": null,
"number": "27710000001",
"country": "ZA",
"capabilities": [
"VOICE"
],
"target_number_clid": null,
"sumi_config": null,
"show_insights_in_app": false,
"sumi_agent_config": null,
"routing_config": null,
"sip_agent": null,
"issued_date": "2026-07-20T09:00:00Z",
"billing_anniversary": "2026-08-19T09:00:00Z",
"last_called": null,
"target_number": "27820001235",
"webhooks": [],
"third_party_integrations": [],
"meta": {},
"features": [],
"tts": null,
"whisper_file": null,
"call_tracking": null,
"record_call_file": null,
"keep_number_file": null,
"voicemail_lite_file": null,
"capture_digits_file": null,
"keywords": null,
"ivr_menu": null
}
]