We’ve been instructed from support@freeagent.com to post our question here, although I think the question is more on the “business side” but here it goes
My team is considering option about how to integrate FreeAgent with our GoSend.com system and we’ve done some integration via your API for invoices. We have found out that thorugh API we may create an invoice in FreeAgent in states Draft and Sent only. We cannot create or directly update it into “paid”. We would like to programmatically mark those invoices as paid.
Here is our business logic:
- Customer orders a service from us
- We charge customer for the service from their “balance” on their GoSend account + through our payment gateway for any difference in case their balance on their GoSend account can’t cover the whole order. – So, at this moment, the service has been paid for and we send an invoice to our customer (from our own system)
- We are then basically trying to “register” this invoice in FreeAgent by re-creating it in FreeAgent through API.
- From the accounting’s standpoint (btw I’m not an accountant so please consider this as a best educated guess):
a. this invoice was paid from 1 or combination of 2 sources:
i. Customer’s balance they have with us
ii. By charging their payment method through a payment gateway
b. In case we charged their credit card or any other payment method they have, this creates a debit on that payment gateway’s general ledger account toward us.
c. In case we took some amount from their balance, this should be matched with, let’s say, same amount taken from a general ledger account where we keep sum of balances of all customer’s accounts we have in the system (kind of a reserved cash general ledger account).
Given the described situation, can you advise us how to mark the invoice “paid” through API? What would be the right way to do it? ( I do understand the concept of matching the invoice with the bank statement entry but mind our situation above - we are not going to get “REAL” bank statement for these invoices ever.
Damir Ivan Konjevod
CIO
GoSend, Inc.
damir@gosend.com
gosend.com
+385 (0)91 585 77 89 (GMT+1 time zone)
Skype: damir.ivan.konjevod
LinkedIn: http://www.linkedin.com/in/damirkonjevod
SHOP THE U.S. LIKE YOU ARE THERE
GET YOUR FREE U.S. ADDRESS AND SAVE UP TO 80% ON SHIPPING