Jump to content

mcrowson

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

661 profile views

mcrowson's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have an invoice that I would like to close with an in house credit. I can see easily how to do this in the GUI, but am attempting to do so via the API. When I make a POST to Transactions, it only allows types of cc, ach, and other. How do I go about using the API to create a credit and apply it to an invoice?
  2. Praise the Lord that did it! I cannot tell you how often I've been scratching and banging my head on this one. Probably going to modify your flatten method to turn lists into those types of dicts
  3. @danmo, I've been using your python plugin, thanks so much for making it. I have been having an issue though with nested lists within dictionaries and was hoping you could help. My aim is to create an invoice from a service. I tried using the method createFromServices, but I always get an error saying that there is not a description for the service. I also tried creating the invoice separately and then adding the service to the invoice but with the same effect. When I create the invoice and add line items to it, including the service, it does not give me any errors, but none of the line items are added. Have you had any success linking services to invoices with your library?
  4. I got it down to only two calls: Invoice:getList and then Invoice:getLineItems for each invoice. The line items give descriptions for what was paid for. It was crazy slow. For looping through the invoices I am multithreading the API calls and it is somewhat faster (1.6 sec vs 5.8 sec) but I still would like it faster. What is the Blesta-oriented way to do what i want that wouldn't have so many calls? My goal is just to show people what they have paid for and how much they paid in the past.
  5. I know with the API I can find the invoices associated with a given service, but is there a way to get the service associated with a invoice or transaction? My goal is to list the transactions and the service that the transaction goes with.
×
×
  • Create New...