Skip to main content
Version: 2025-01-01

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.code and condition.description are Farmer's own. A code the plant's format translates comes back translated, so HOG is returned as H.
  • harvestDate has a time part.
  • speciesCode is the species of the fish population in the unit.
  • A harvest from one unit has unitCode and unitName: 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 a unitCode when the units share the combined harvestItems at the top level. They hold their own harvestItems when the items were sent per unit, and then harvestItems at 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 in purchaserAllocations.
  • Fields that were not sent, such as transport, are null. Only remainingBiomassBalancing has a default, unchanged.

Request​

Responses​

OK