Applying a payment to a bill

I’m attempting to add a payment to a bill. My application allows people to
create and print checks. So after pulling in all the bills, they can
select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like they’re
adding a bank transaction. But I don’t see an “add new bank transaction”
in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll need
ways to completely pay the bill as well as partial payments.

Thank you.

Thank you! This was exactly what I needed.

After trying a bunch of different arguments, I finally got it working
without some incredibly random error messages in response from the api.On Tuesday, September 9, 2014 11:15:19 AM UTC-5, Jonathan Barrett wrote:

Hi Jeffrey,

You’re almost there in your reasoning: what you need is a Bank Transaction
Explanation:

FreeAgent Developer Dashboard

The idea here is that you’re reconciling a payment from a bank account
against a bill to mark it as paid.

Hope this helps,

-J

On Tuesday, 9 September 2014 16:53:44 UTC+1, Jeffrey Meagher wrote:

I’m attempting to add a payment to a bill. My application allows people
to create and print checks. So after pulling in all the bills, they can
select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like
they’re adding a bank transaction. But I don’t see an “add new bank
transaction” in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll need
ways to completely pay the bill as well as partial payments.

Thank you.

Glad I could help, Jeffrey,

Sorry about the random error messages — can you let us know what they were?

Cheers,

-JOn Wed, Sep 17, 2014 at 10:41 PM, Jeffrey Meagher jameaghe@gmail.com wrote:

Thank you! This was exactly what I needed.

After trying a bunch of different arguments, I finally got it working
without some incredibly random error messages in response from the api.

On Tuesday, September 9, 2014 11:15:19 AM UTC-5, Jonathan Barrett wrote:

Hi Jeffrey,

You’re almost there in your reasoning: what you need is a Bank
Transaction Explanation:

FreeAgent Developer Dashboard
explanations#create-a-bank-transaction-explanation

The idea here is that you’re reconciling a payment from a bank account
against a bill to mark it as paid.

Hope this helps,

-J

On Tuesday, 9 September 2014 16:53:44 UTC+1, Jeffrey Meagher wrote:

I’m attempting to add a payment to a bill. My application allows people
to create and print checks. So after pulling in all the bills, they can
select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like
they’re adding a bank transaction. But I don’t see an “add new bank
transaction” in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll
need ways to completely pay the bill as well as partial payments.

Thank you.


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Jonathan Barrett, Senior Engineer

FreeAgent: Accounting software, simplified

+44 (0)131 447 0011

Follow us on Twitter: @freeagent https://twitter.com/freeagent

FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Hi Jeffrey,

You’re almost there in your reasoning: what you need is a Bank Transaction
Explanation:

The idea here is that you’re reconciling a payment from a bank account
against a bill to mark it as paid.

Hope this helps,

-JOn Tuesday, 9 September 2014 16:53:44 UTC+1, Jeffrey Meagher wrote:

I’m attempting to add a payment to a bill. My application allows people
to create and print checks. So after pulling in all the bills, they can
select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like they’re
adding a bank transaction. But I don’t see an “add new bank transaction”
in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll need
ways to completely pay the bill as well as partial payments.

Thank you.

Here’s most of what I remember:

When I didn’t have a “bank_transaction_explanation” wrapper in the json, i
got a 500 error. My fault for forgetting that, but I’d expect more than
just 500, internal server error back from that.

The docs don’t say that “gross_value” is required when paying a bill. So i
assumed if it was paid, it would be paid in full. Probably a dumb
assumption now that I think about it, but the api gave me “base Entry Type
is invalid” as an error. There’s no mention of an “entry type” in the docs
for creating a bank transaction explanation; only in the response from
getting an explanation.

I can’t remember what I did to get any other errors. Nothing huge, but it
was difficult knowing what I was missing or doing incorrectly with the
errors I did get.

Thanks again for your help. Things appear to be working great from my end
now.On Thursday, September 18, 2014 3:19:25 AM UTC-5, Jonathan Barrett wrote:

Glad I could help, Jeffrey,

Sorry about the random error messages — can you let us know what they were?

Cheers,

-J

On Wed, Sep 17, 2014 at 10:41 PM, Jeffrey Meagher <jame...@gmail.com <javascript:>> wrote:

Thank you! This was exactly what I needed.

After trying a bunch of different arguments, I finally got it working
without some incredibly random error messages in response from the api.

On Tuesday, September 9, 2014 11:15:19 AM UTC-5, Jonathan Barrett wrote:

Hi Jeffrey,

You’re almost there in your reasoning: what you need is a Bank
Transaction Explanation:

FreeAgent Developer Dashboard
explanations#create-a-bank-transaction-explanation

The idea here is that you’re reconciling a payment from a bank account
against a bill to mark it as paid.

Hope this helps,

-J

On Tuesday, 9 September 2014 16:53:44 UTC+1, Jeffrey Meagher wrote:

I’m attempting to add a payment to a bill. My application allows
people to create and print checks. So after pulling in all the bills, they
can select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like
they’re adding a bank transaction. But I don’t see an “add new bank
transaction” in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll
need ways to completely pay the bill as well as partial payments.

Thank you.


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_ap...@googlegroups.com <javascript:>.
To post to this group, send email to freeag...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Jonathan Barrett, Senior Engineer

FreeAgent: Accounting software, simplified
www.freeagent.com

+44 (0)131 447 0011

Follow us on Twitter: @freeagent https://twitter.com/freeagent

FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Thanks Jeffrey,

I agree the error messages could definitely be better, so this sort of
feedback helps in figuring out where we’re short (including in the
documentation).

Thanks for taking the time to get back to us, and I’m glad you at least got
there in the end

Cheers,

-JOn Thu, Sep 18, 2014 at 6:06 PM, Jeffrey Meagher jameaghe@gmail.com wrote:

Here’s most of what I remember:

When I didn’t have a “bank_transaction_explanation” wrapper in the json, i
got a 500 error. My fault for forgetting that, but I’d expect more than
just 500, internal server error back from that.

The docs don’t say that “gross_value” is required when paying a bill. So
i assumed if it was paid, it would be paid in full. Probably a dumb
assumption now that I think about it, but the api gave me “base Entry Type
is invalid” as an error. There’s no mention of an “entry type” in the docs
for creating a bank transaction explanation; only in the response from
getting an explanation.

I can’t remember what I did to get any other errors. Nothing huge, but it
was difficult knowing what I was missing or doing incorrectly with the
errors I did get.

Thanks again for your help. Things appear to be working great from my end
now.

On Thursday, September 18, 2014 3:19:25 AM UTC-5, Jonathan Barrett wrote:

Glad I could help, Jeffrey,

Sorry about the random error messages — can you let us know what they
were?

Cheers,

-J

On Wed, Sep 17, 2014 at 10:41 PM, Jeffrey Meagher jame...@gmail.com wrote:

Thank you! This was exactly what I needed.

After trying a bunch of different arguments, I finally got it working
without some incredibly random error messages in response from the api.

On Tuesday, September 9, 2014 11:15:19 AM UTC-5, Jonathan Barrett wrote:

Hi Jeffrey,

You’re almost there in your reasoning: what you need is a Bank
Transaction Explanation:

FreeAgent Developer Dashboard
#create-a-bank-transaction-explanation

The idea here is that you’re reconciling a payment from a bank account
against a bill to mark it as paid.

Hope this helps,

-J

On Tuesday, 9 September 2014 16:53:44 UTC+1, Jeffrey Meagher wrote:

I’m attempting to add a payment to a bill. My application allows
people to create and print checks. So after pulling in all the bills, they
can select which they’d like to pay and print out checks to their payees.

How do I apply a payment to a bill? There’s no function in the Bills
section, and when I go through it on freeagent.com, it looks like
they’re adding a bank transaction. But I don’t see an “add new bank
transaction” in the API.

Please let me know if there’s a way to add a payment to a bill; I’ll
need ways to completely pay the bill as well as partial payments.

Thank you.


You received this message because you are subscribed to the Google
Groups “FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to freeagent_ap...@googlegroups.com.
To post to this group, send email to freeag...@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Jonathan Barrett, Senior Engineer

FreeAgent: Accounting software, simplified
www.freeagent.com

+44 (0)131 447 0011

Follow us on Twitter: @freeagent https://twitter.com/freeagent

FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Jonathan Barrett, Senior Engineer

FreeAgent: Accounting software, simplified

+44 (0)131 447 0011

Follow us on Twitter: @freeagent https://twitter.com/freeagent

FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774