Jump to content

Colin

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Colin

  1. Quote

    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 ?. 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. 

  2. 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.

  3. 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.

  4. 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.

×
×
  • Create New...