Get imported harvest
GET/biology/companies/:companyId/harvest/imports/:harvestId
Retrieve the details of an imported harvest result. Use the id returned by the post.
The response is the harvest as Farmer stored it, so some values differ from what was sent:
condition.codeandcondition.descriptionare Farmer's own. A code the plant's format translates comes back translated, soHOGis returned asH.harvestDatehas a time part.speciesCodeis the species of the fish population in the unit.- A harvest from one unit has
unitCodeandunitName: the unit's code in Farmer, or its name when it has no code. - A harvest from several units, however it was sent, has
unitAllocations. The entries hold only aunitCodewhen the units share the combinedharvestItemsat the top level. They hold their ownharvestItemswhen the items were sent per unit, and thenharvestItemsat the top level is null. - When every item has the same single purchaser, it comes back as the harvest's
purchaser. Otherwise purchasers come back on each item inpurchaserAllocations. - Fields that were not sent, such as
transport, are null. OnlyremainingBiomassBalancinghas a default,unchanged.
Request
Responses
- 200
- 403
- 404
OK
The API user has no access in this company's Farmer tenant.
There is no harvest import with this id.