Hi Guys, can you help us with the following API issue please?

Hi Guys, can you help us with the following API issue please?

  1. accounts M October 17, 2015
    I think there is an issue with BulletHQ API.
    I've created two invoices using https://accounts-app.bullethq.com/invoices/add.page.
    Using different choices for "Prices include VAT:"
    https://accounts-app.bullethq.com/invoices/view.page?id=452632
    https://accounts-app.bullethq.com/invoices/view.page?id=452633
    I received following data using bullethq api.
    [28] => Array
    (
    [outstandingAmount] => 9.99
    [id] => 452632
    [invoiceNumber] => q111
    [currency] => EUR
    [dueDate] => 2015-11-07
    [issueDate] => 2015-10-08
    [draft] => 1
    [clientName] => testerq
    [clientId] => 167801
    [poNumber] =>
    [invoiceLines] => Array
    (
    [0] => Array
    (
    [id] => 492185
    [quantity] => 1
    [rate] => 9.99
    [vatRate] => 0.23
    [description] => testq.com
    [item] => Domain
    )
    )
    )
    [29] => Array
    (
    [outstandingAmount] => 12.29
    [id] => 452633
    [invoiceNumber] => q112
    [currency] => EUR
    [dueDate] => 2015-11-07
    [issueDate] => 2015-10-08
    [draft] => 1
    [clientName] => testerp
    [clientId] => 167802
    [poNumber] =>
    [invoiceLines] => Array
    (
    [0] => Array
    (
    [id] => 492186
    [quantity] => 1
    [rate] => 9.99
    [vatRate] => 0.23
    [description] => testp.com
    [item] => Domain
    )
    )
    )
    In json output;
    both items have rate=>9.99, vatRate=>0.23 but there is nothing that indicates "Prices include VAT".
    Also, API documentation does not say anything about what parameter to use to set Prices include VAT. It treats it as "Prices include VAT => NO" when i create an invoice using api at the moment.
  2. accounts M October 17, 2015
    We cannot see how, using the API to set "Prices include VAT" - can you help?

1 answer

Peter Connor Staff October 17, 2015
Public

Hi, Sure, I’ll pass this over to our tech team. 
Louise will come back to you asap. Louise wrote the API so she’ll have an answer for you. 
Thanks 

Pete

#answer-2019
  1. accounts M October 17, 2015
    Ok Thanks.
  2. Peter Connor October 17, 2015
    Hi,
    You can't set prices to include vat in the api. So You'll have to work out the vat rate and set the appropriate vatRate and rate fields when using the api
    Thanks
    Louise
  3. accounts M October 17, 2015
    Ok so there is no flag that says VAT inc or ex?
  4. accounts M October 17, 2015
    If not, any chance you could add in the next api feature update? Do you release api updates regularly?
  5. accounts M October 17, 2015
    Thanks Louise (BTW what software do you use to power your chat in this window?)
  6. Peter Connor October 17, 2015
    No flag - so prices are always ex VAT. We do update the API from time to time - we'll add this to the list.
    We use intercom. The in app chat is handy alright.
  7. accounts M October 17, 2015
    Ok thank you for that Louise.

Please login or Register to Submit Answer