{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmready/json-schema/farmready-post-api-shed-organisations-orgid-returns-request-schema.json",
  "title": "PostApiShedOrganisationsOrgidReturnsRequest",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/farmready-openapi-generated.yml#/components/schemas/PostApiShedOrganisationsOrgidReturnsRequest",
  "type": "object",
  "properties": {
    "storage_id": {
      "type": "string",
      "description": "Must belong to the organisation."
    },
    "product_id": {
      "type": "string",
      "description": "Must belong to the organisation."
    },
    "returned_at": {
      "type": "string"
    },
    "supplier": {
      "type": "string"
    },
    "amount_value": {
      "type": "number"
    },
    "amount_unit": {
      "type": "string",
      "description": "e.g. l, kg"
    },
    "notes": {
      "type": "string"
    },
    "reference": {
      "type": "string"
    }
  },
  "required": [
    "storage_id",
    "product_id",
    "returned_at",
    "supplier",
    "amount_value",
    "amount_unit"
  ]
}