דלג לתוכן הראשי

Response messages

The complete list of bodies the VMS API returns, grouped by service. Messages marked "any" can be returned by every service. XML bodies are abbreviated here to their distinguishing elements; the full document structure of each is shown in the Responses section of the service page.

For the procedure that tells the three body shapes apart, see Handling responses.

HTTPServiceFormatBodyMeaning
200anytextThe ip address is not legal for this web service 203.0.113.7Your server's IP is not on the allow list. The address shown is the one the API saw; send it to support.
200anytextUnfortunately, the credit in your account does not allow this operation, please contact customer serviceAccount balance is zero.
200anytextEmpty Api Token or Profile. Exiting. [1]No Authorization: Bearer header, or the token is empty.
200anytextIllegal Api Token. Exiting. [2]Token not recognised or the API user is disabled.
200anytextThe "service" is not legal for this web service please select one of the api services like "makecall"service parameter missing.
200anyempty(no body)service value not recognised. Check spelling: cdrquery, not cdr_query.
200anytextConnection failed: …Temporary server problem. Retry after a short delay.
200makecallXML<status>Ok</status>Call queued.
200makecallXML<status>Error</status> <description>Error: Internal server error</description>Call could not be queued.
200makecalltextThe "caller_id" is not legal for this web service please select one of your numbers …caller_id not one of your numbers.
200makecalltextThe "destination" is not legal for this web service please select an Israeli phone number like "972776670000"destination empty.
200makecalltextThe variable "playfile1" is empty or not set, in order to activate dialing, there must be at least one sound file to playplayfile1 missing, or parameters sent as JSON.
200upload_promptXML<status>OK</status> <description>{name} been added to the system</description>Prompt stored under {name}.
200upload_promptXMLError: prompt_file cannot be emptyNo prompt_file field.
200upload_promptXMLError: the prompt file `{file}` is not a valid audio extensionUnsupported file extension.
200upload_promptXMLError: the prompt file `{file}` size must be under 50MbFile larger than 50 MB.
200upload_promptempty(no body)Audio conversion failed.
200delete_promptXML<status>OK</status> <description>The prompt file was deleted</description>Prompt removed.
200delete_promptXMLError: there is no prompt with that name in the systemPrompt not found.
200delete_prompttexterror 2956:1filename contains a slash.
200cdrqueryXML<root><row>…</row></root>Result rows.
200cdrqueryXML<status>Error</status> <description>{errno}: {error}</description>SQL error from the database.
200cdrqueryXML<status>Error</status> <description>Couldn't connect to MySQL</description>Temporary server problem. Retry.
200cdrquerytexterror 2954:1More than one FROM.
200cdrquerytexterror 2954:2webserviceview not referenced exactly once.

ראו גם