-
Posts
9 -
Joined
-
Last visited
Posts posted by Colin
-
-
1 hour ago, Paul said:
I would recommend looking at Transactions add() http://source-docs.blesta.com/class-Transactions.html to record a payment via the API. This will not process using a gateway, only create a transaction. Use apply() if you want to apply that transaction to a specific invoice/invoices.
Thank you Paul.
Couple of follow up questions if you don't mind.
1. I've looked at this process (add > apply) and can't see a way to trigger a receipt (or invoice paid) email for the client once the transaction is added/applied. Is this possible?
2. Also I'm a little lost as to how I format the invoice array ($vars) for the apply transaction?
Thanks again.
-
-
5 hours ago, Jono said:
So the method itself is not deprecated, just some of the return values
Ah. I see. Thank you for clarifying that.
-
I'm trying to find a way to retrieve the client_id of a client via the API using only the clients id_value/id_code (Client ID displayed in the client dashboard) as a source.
Is there a way to achieve this? I'm attempting to add client transactions via the API where the client id_value, amount, and currency are the only data provided.
-
Thanks for the update. ?
-
Can the API accept a JSON encoded request body? For add/create requests?
-
Thanks for the update Jono.
Quoteit's looking like it will in Blesta 4.10
That's good news.
Thanks. 'get.json?invoice_id=<invoice.id>' works. ? But I see the model method ( source docs) is depreciated?
-
Hi,
I'm new to Blesta.
How do I format my API query to search for a specific invoice by id? I've searched the API and source docs but couldn't find anything.
e.g. I can find invoice #104028 using:
curl --request GET https://mydomain.com/api/invoices/search.json?query=104028&page=1
But if invoice #104028 is referenced in another invoice's line items it will appear in the search results.
Record Payment via API?
in Support
Posted
Thank you Paul ?. I didn't read the source properly and was using 'vars[transaction_id]' instead of 'transaction_id'.
Still looking for a way to send the client an email after applying a transaction as a receipt, as well as and email once an invoice has been paid in full by an applied transaction.