Betavine API Reference Manual

Error

A member of the Response model the Error model will occur when the API method errors.

Figure 4.4. Error Model

Error Model

The following is a Response from send/status . This will occur when providing an invalid Message ID.

<response method="send/status" status="FAIL" version="1.2">
  <error message="Transaction identifier missing" number="4"/>
</response>

The following is a Response from send/status . This will occur when providing an invalid Message ID.

{
                    "response":{
                    "error":{
                    "message":"No such message ID",
                    "number":7
                    },
                    "version":"1.1",
                    "status":"FAIL"
                    }
                }
                

Plain Example

The following is a Response from send/status . This will occur when providing an invalid Message ID.

FAIL 1.1
                ERROR 7 No such message ID
                

Properties

Number

A reference to the type of error which has occured. Any one of the following:

1

The UAID provided is invalid.

Obsolete in version 1.2. When a UAID is invalid the API will return an error code 4.

2

The UAID provided is inactive

Obsolete in version 1.2 When a UAID is inactive the API will return error code 4.

3

The user associated with the UAID does not have enough credit.

4

One of the parameters supplied is incorrect. More information about which parameter is invalid can be obtained from the error message.

5

The supplied application identifier does not exist.

Obsolete in version 1.2. When an application identifier is invalid the API will return error code 4.

6

The user has not added a mobile number to Betavine

7

No such Message ID

Obsolete in version 1.2. When an message identifier is invalid the API will return error code 4.

13

Internal API Error

Please report these in the Vodafone Betavine API Forums

69

Inactive API method.

The API method is down for maintenance. Please check the Vodafone Betavine API Forums

Message

A message descibing the error which has occured. May contain extra information on what caused the error.