{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-create-cargo-screening-request-schema.json",
  "title": "CreateCargoScreeningRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-cargo-screening-api-openapi.yml#/components/schemas/CreateCargoScreeningRequest",
  "type": "object",
  "required": [
    "goods_description"
  ],
  "properties": {
    "goods_description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "What the cargo is, e.g. \"ball bearings for main engine\"."
    },
    "hs_code": {
      "type": "string",
      "description": "Six-digit HS heading or longer national code. When supplied it is authoritative and the description is not keyword-matched."
    },
    "discharge_country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO 3166-1 alpha-2 discharge country. Moves the verdict, so membership is enforced, not just shape: XX, SU, YU, AN and UK all return 422 with the replacement named (UK is not a code — the United Kingdom is GB). Omit the field entirely if the destination is genuinely unknown; the response then says no jurisdiction assessment was made, rather than reporting the destination as clean."
    },
    "imo": {
      "type": "string",
      "description": "Optional hull, to carry its last known sanctions verdict onto the response."
    },
    "customer_reference": {
      "type": "string",
      "maxLength": 200,
      "description": "Your own identifier, e.g. the purchase order."
    }
  }
}