• Online Demo
  • 30-day Free Trial
  #1  
Old 02-18-2012, 11:11 PM
Peer Peer is offline
Junior Member
 
Join Date: Dec 2011
Posts: 3
Thumbs up Get total credit via API ?

Hello

Which function of the API should I use to get the total credits of a customer?
Reply With Quote
  #2  
Old 02-20-2012, 05:09 AM
Paul's Avatar
Paul Paul is online now
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,465
Send a message via AIM to Paul Send a message via MSN to Paul
Default

I believe you will want to use gettransreceived http://www.blesta.com/manual/API:Get...tions_Received

and sum the credited field for all transactions

There should be an easier, more direct way in the API for v3, but this should do it in 2.x
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with a credit and how payments work! Marco General Discussion 3 01-07-2012 01:53 AM
Credit problems? BitEntity General Discussion 1 09-08-2010 04:48 PM
Credit cards - on file and offline processing? crystal Pre-Sale Questions 0 04-06-2010 08:12 PM
add credit to client ? naja7host General Discussion 2 10-07-2009 11:30 PM
What is Total Credit for? naro General Discussion 3 02-15-2008 04:27 PM


All times are GMT. The time now is 09:26 PM.