Comments (10)
Can you verify with Fiddler what is the value coming from harvestapp.com? It should be "United Kingdom Pound - GBP"
from harvest.net.
I verified it with fiddler it is setting Currency field to null. When I changed Invoice currency to USD it was 0, on Euro it was 1, but for GBP, INR it is null.
from harvest.net.
Which end point are you using?
from harvest.net.
I tried ListInvoices() and Invoice() method in restclient.
from harvest.net.
Can you paste the xml that Harvest is sending back when you call Invoice(id)? (Sanitized of course)
from harvest.net.
I'm consuming json form, this is what I got from the Api
{
"$id": "1",
"Id": 8932659,
"UpdatedAt": "2016-02-17T11:09:44Z",
"CreatedAt": "2016-02-16T19:05:35Z",
"Amount": 1742.03,
"DueAmount": 0.0,
"DueAt": "2016-04-02T00:00:00Z",
"DueAtHumanFormat": 3,
"PeriodEnd": null,
"PeriodStart": null,
"ClientId": 4227027,
"Kind": 0,
"Subject": "subject 1",
"Currency": null,
"IssuedAt": "2016-02-17T00:00:00Z",
"CreatedById": null,
"Notes": "my notes",
"Number": "0014",
"PurchaseOrder": "6",
"ClientKey": "99c9c12b091afaadde574efdcda8861b328f7bca",
"State": 3,
"Tax": 8.0,
"Tax2": 10.0,
"TaxAmount": 118.1,
"TaxAmount2": null,
"Discount": 5.0,
"DiscountAmount": 77.7,
"RecurringInvoiceId": 161146,
"EstimateId": null,
"RetainerId": null,
"CsvLineItems": "kind,description,quantity,unit_price,amount,taxed,taxed2,project_id\nService,Webservice,1.00,666.00,666.0,true,true,\nAPI,\"\",1.00,888.00,888.0,true,true,\n"
}
from harvest.net.
If the API is sending you "Currency": null
then the Invoice.Currency
value will also be null. There is nothing we can do about that. This means that the value stored in Harvest is null.
from harvest.net.
But I tried to access the harvest api using basic authentication and sended the request to this endpoint
http://subdomain.harvestapp.com/invoices/invoiceId it returned me the Currency field well.
from harvest.net.
I'm confused. You said that you were using JSON and the above object was the response. Harvest.Net does not support JSON at this time so I assumed you were pasting the exact result you got directly from harvestapp.com (which is what I was requesting).
Please paste the exact output you get from harvest (without using harvest.net).
from harvest.net.
Sorry for the late response, see the output below obtained through basic authentication
{
"invoice": {
"id": 8963154,
"client_id": 4227029,
"period_start": null,
"period_end": null,
"number": "0015",
"issued_at": "2016-02-22",
"due_at": "2016-02-22",
"amount": 216.4,
"currency": "Indian Rupee - INR",
"state": "paid",
"notes": "",
"purchase_order": "",
"due_amount": -783.6,
"due_at_human_format": "custom",
"created_at": "2016-02-22T08:05:22Z",
"updated_at": "2016-02-24T08:20:01Z",
"tax": 0.0,
"tax_amount": 0.0,
"subject": "",
"recurring_invoice_id": null,
"tax2": 0.0,
"tax2_amount": 0.0,
"client_key": "9e107c93917165ce93654ed546bb5b3f61598810",
"estimate_id": null,
"discount": 7.0,
"discount_amount": 16.29,
"retainer_id": null,
"created_by_id": 1214811,
"project_id": null,
"csv_line_items": "kind,description,quantity,unit_price,amount,taxed,taxed2,project_id\nService,\"\",1.00,100.00,100.0,true,true,\nService,\"\",1.33,99.77,132.69,true,true,\n"
}
}
the output has currency field set properly but using your rest client the currency field is null.
from harvest.net.
Related Issues (20)
- .ListProjects() returning null HOT 2
- NuGet package is not signed HOT 3
- Async Support HOT 8
- Currency Updated HOT 1
- Update DailyOptions Model HOT 1
- Throw a HarvestException for any 4xx or 5xx HTTP status code HOT 2
- C# 6 support? HOT 2
- Getting Data in Postman, but not in c# Code HOT 8
- Add Resource methods to IHarvestRestClient to allow for Mocking of HarvestRestClient for testing. HOT 1
- AUD/USD Currency on getClients() HOT 4
- .net core support HOT 11
- .ListExpenses() returning empty list HOT 1
- .ListProjects() Returning null
- Creating payments using OAuth2 results in a 500 HOT 1
- Weekly Capacity not returned by ListUsers HOT 1
- Listing invoice with only "from" parameter returns incorrect results HOT 1
- project.ListTaskAssignments returns null
- supporting Harvest API V2 HOT 11
- .ListContacts returning null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harvest.net.