Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

getEmailCreditBalance


Partner API Only
The getEmailCreditBalance() method returns the email credit balance of the specified company.

Input

[vrtypens:getEmailCreditBalanceArgs]

session_id [xsd:string] (required)
Your API session id.
company_id [xsd:int] (required)
The ID of the company whose credit balance should be retrieved.

Output

[xsd:int]
The output is the company’s email credit balance.

Examples

PHP

$credits_available = $vrapi->getEmailCreditBalance( array(
	'session_id'          => $sid, 
	'company_id'          => 123456,
) );

Ruby

credits_available = vr.getEmailCreditBalance({
	'session_id'          => sid, 
	'company_id'          => 123456,
})

Java

GetEmailCreditBalanceArgs getEmailCreditBalanceArgs = new GetEmailCreditBalanceArgs();
	getEmailCreditBalanceArgs.setSession_id(sessionID);
	getEmailCreditBalanceArgs.setCompany_id(123456);

int balance = vr.getEmailCreditBalance(getEmailCreditBalanceArgs);

C#/.NET

getEmailCreditBalanceArgs gECBA = new getEmailCreditBalanceArgs();
gECBA.session_id = sessionId;
gECBA.company_id = 123456;

try
{
	int creditBalance = objVR.getEmailCreditBalance(gECBA);
}
catch (Exception e)
{
	System.Console.WriteLine(e.Message);
}

Perl

my $credits_available = $vrapi->getEmailCreditBalance( {
	session_id => $sid, 
	company_id => 123456,
} );