API Questions

  1. What is the difference between these two fields:

gross_value
native_gross_value

  1. Expense “Type” (i.e. refund or payment) is a field in the UI but not in
    the API. Can we determine this through something returned in the API or is
    there a field for it?

  2. Exchange rates: Is it possible to get the exchange rates used in the
    API? Also, is the historic exchange rate from xe.com used or the exchange
    rate at the date the expense is entered?

Hi Matthew,

Thanks for getting in touch.

  1. gross_value is expressed in the currency in which the expense was
    incurred, whereas native_gross_value is expressed in a company’s native
    currency. You will only see a difference between the two if you specify a
    foreign currency when posting to the API. You can supply a
    native_gross_value if you want to perform your own currency conversion.
  2. Payments should be recorded with negative values and refunds should
    be positive.
  3. We reference the historic exchange rate from XE.com, using the
    dated_on attribute. We don’t expose exchange rates via the API.

I hope that helps. Please let us know if you have any further questions.

Best,

RobOn Thursday, June 20, 2013 11:29:38 AM UTC+1, Matthew Schutz wrote:

  1. What is the difference between these two fields:

gross_value
native_gross_value

  1. Expense “Type” (i.e. refund or payment) is a field in the UI but not in
    the API. Can we determine this through something returned in the API or is
    there a field for it?

  2. Exchange rates: Is it possible to get the exchange rates used in the
    API? Also, is the historic exchange rate from xe.com used or the exchange
    rate at the date the expense is entered?