Hi James,
You can mark the invoice as paid by creating a new bank account transaction
explanation, as described herehttps://dev.freeagent.com/docs/bank_transaction_explanations#create-a-bank-transaction-explanation.
Just specify the bank_account, paid_invoice, and the gross_value, plus any
other extra information if needed, and the invoice will be marked as paid.
For example:
{
“bank_transaction_explanation”: {
“bank_account”: “http://api.freeagent.com/v2/bank_accounts/1”,
"paid_invoice": "http://api.freeagent.com/v2/invoices/1",
"dated_on": "2013-03-07",
"gross_value": "25"
}
}
Best regards,
IoanOn Wednesday, 6 March 2013 22:10:56 UTC, James Rutherford wrote:
Hi,
I’m trying to implement the following flow in our application:
-
The user agrees to periodic payment by GoCardless (I’ve integrated their
API myself, outside of FreeAgent).
-
Every month, GoCardless makes a callback to our site to signal that a
payment has been taken from the user.
-
We use the FreeAgent API to raise an invoice and email it to the user.
-
We mark the invoice as paid via FreeAgent API.
I can’t find a way to achieve the final step (4). It seems to only be
possible to mark an invoice as paid via manual intervention in FreeAgent’s
dashboard. Is this correct, or have I overlooked the mechanism to do this?
Thanks,
James.
Slight correction: the URIs should actually use https, not http.On Thursday, 7 March 2013 10:49:20 UTC, io...@freeagent.com wrote:
Hi James,
You can mark the invoice as paid by creating a new bank account
transaction explanation, as described herehttps://dev.freeagent.com/docs/bank_transaction_explanations#create-a-bank-transaction-explanation.
Just specify the bank_account, paid_invoice, and the gross_value, plus any
other extra information if needed, and the invoice will be marked as paid.
For example:
{
“bank_transaction_explanation”: {
“bank_account”: “http://api.freeagent.com/v2/bank_accounts/1”,
"paid_invoice": "http://api.freeagent.com/v2/invoices/1",
"dated_on": "2013-03-07",
"gross_value": "25"
}
}
Best regards,
Ioan
On Wednesday, 6 March 2013 22:10:56 UTC, James Rutherford wrote:
Hi,
I’m trying to implement the following flow in our application:
-
The user agrees to periodic payment by GoCardless (I’ve integrated
their
API myself, outside of FreeAgent).
-
Every month, GoCardless makes a callback to our site to signal that a
payment has been taken from the user.
-
We use the FreeAgent API to raise an invoice and email it to the user.
-
We mark the invoice as paid via FreeAgent API.
I can’t find a way to achieve the final step (4). It seems to only be
possible to mark an invoice as paid via manual intervention in FreeAgent’s
dashboard. Is this correct, or have I overlooked the mechanism to do this?
Thanks,
James.