Betavine API Reference Manual

Transaction

The Transaction model acts as a container for messages sent through the API. It is a member of the Response model.

Transaction Members

Transaction ID

The unique identifier for the transaction

type

An integer representing the type of transaction. This can be one of the following:

0

SMS

1

Wap Push

2

Email

3

Trigger

4

Status

Messages

A collection of Message Models

Figure 4.2. Transaction Model

Transaction Model

The following example is a segment of the XML response from Send SMS . For the purposes of this example the messages element has been shortened.

<transaction type="1">
  <id>118</id>
  <messages/>
</transaction>

The following example is a segment the JSON Send SMS . For the purposes of this example the messages array has been emptied.

"transaction": {
  "id":118,
  "type": 1,
  "messages":[]
}

The following is an example of the Plain response. It is a single line containing the text TRANSACTION followed by the Transaction Identifer. It will be followed by the Plain contents of the Messages model.

TRANSACTION 123