Skip to end of metadata
Go to start of metadata

 

Transfer credits from the source/master account to the target/sub account.

POST arguments

The following POST parameters should be used in a POST request.

You can use either:

ParameterValue
quantity

The number of credits to transfer from the source account to the target account. Must be a positive integer.

target The account number of the account to transfer the credits to.
username 

The username of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.

password

The password of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.

Your account number can be found in the web interface
https://messagebox.textmarketer.co.uk

On page footer.

OR you can use (diference highlighted in grey/blue):

ParameterValue
quantity 

The number of credits to transfer from the source account to the target account. Must be a positive integer.

target_username

The username of the account to transfer the credits to.

target_password

The password of the account to transfer the credits to.

username 

The username of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.

password 

The password of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.

Example successful response body XML:

Response meanings:

XML tag/attributeMeaning
source_credits_before 

The number of credits on the source account before the transfer was made.

source_credits_after

The number of credits on the source account after the transfer was made.

target_credits_before

The number of credits on the target account before the transfer was made.

target_credits_after 

The number of credits on the target account after the transfer was made.

Specific errors:

Code 

Meaning

0

There are insufcient credits available to transfer the specified quantity, or the specified quantity is not a positive number

1

The target account number specified is not a valid number or username/password combination does not refer to any known account

Example error response body XML:

DTD for credits POST:

  • No labels