> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yasmina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the options

> Every list of values the cargo endpoints accept: customer roles, transport modes, goods categories, packaging, conditions, characteristics, coverages, extensions, valuation bases, Incoterms, currencies and countries. Each entry has the `value` to send and a `label` to show. Build your dropdowns from this response instead of hard-coding them, so a new value reaches your users without a release on your side.



## OpenAPI

````yaml /cargo-api-reference/openapi.json get /options
openapi: 3.0.1
info:
  title: OpenAPI For Cargo Insurance
  description: >-
    APIs to insure a single shipment or run a marine open cover for your
    customers
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://sandbox.yasmina.ai/api/v1/cargo
security:
  - bearerAuth: []
paths:
  /options:
    get:
      tags:
        - Options
      summary: Get the options
      description: >-
        Every list of values the cargo endpoints accept: customer roles,
        transport modes, goods categories, packaging, conditions,
        characteristics, coverages, extensions, valuation bases, Incoterms,
        currencies and countries. Each entry has the `value` to send and a
        `label` to show. Build your dropdowns from this response instead of
        hard-coding them, so a new value reaches your users without a release on
        your side.
      responses:
        '200':
          description: The options, one list per key
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    $ref: '#/components/schemas/Option'
              example:
                customer_roles:
                  - value: importer
                    label: Importer
                  - value: exporter
                    label: Exporter
                  - value: buyer
                    label: Buyer
                  - value: seller
                    label: Seller
                  - value: freight_forwarder
                    label: Freight forwarder
                  - value: other
                    label: Other
                transport_modes:
                  - value: sea
                    label: Sea
                  - value: air
                    label: Air
                  - value: road
                    label: Road
                  - value: combined
                    label: Combined (more than one mode)
                goods_categories:
                  - value: general_merchandise
                    label: General merchandise
                  - value: electronics
                    label: Electronics and appliances
                  - value: machinery
                    label: Machinery and equipment
                  - value: vehicles_and_parts
                    label: Vehicles and spare parts
                  - value: foodstuff
                    label: Foodstuff and beverages
                  - value: textiles
                    label: Textiles and garments
                  - value: building_materials
                    label: Building materials
                  - value: chemicals
                    label: Chemicals
                  - value: pharmaceuticals
                    label: Pharmaceuticals and medical supplies
                  - value: furniture
                    label: Furniture
                  - value: arms_and_ammunition
                    label: Arms and ammunition
                packaging:
                  - value: container_fcl
                    label: Full container (FCL)
                  - value: container_lcl
                    label: Shared container (LCL)
                  - value: palletized
                    label: Palletized
                  - value: cartons
                    label: Cartons
                  - value: crates
                    label: Crates
                  - value: drums
                    label: Drums
                  - value: bags
                    label: Bags
                  - value: bulk
                    label: Bulk
                  - value: unpacked
                    label: Unpacked
                conditions:
                  - value: new
                    label: New
                  - value: used
                    label: Used
                characteristics:
                  - value: hazardous
                    label: Hazardous
                  - value: fragile
                    label: Fragile
                  - value: perishable
                    label: Perishable
                  - value: refrigerated
                    label: Refrigerated
                  - value: high_value
                    label: High value
                coverages:
                  - value: icc_a
                    label: All risks (Institute Cargo Clauses A)
                  - value: icc_b
                    label: Named perils (Institute Cargo Clauses B)
                  - value: icc_c
                    label: Basic perils (Institute Cargo Clauses C)
                extensions:
                  - value: war
                    label: War risks
                  - value: strikes
                    label: Strikes, riots and civil commotion
                  - value: warehouse_to_warehouse
                    label: Warehouse to warehouse
                valuation_bases:
                  - value: invoice_value
                    label: Invoice value
                  - value: cif
                    label: Invoice value plus freight and other costs (CIF)
                  - value: cif_plus_10
                    label: CIF plus 10%
                incoterms:
                  - value: EXW
                    label: EXW
                  - value: FCA
                    label: FCA
                  - value: CPT
                    label: CPT
                  - value: CIP
                    label: CIP
                  - value: DAP
                    label: DAP
                  - value: DPU
                    label: DPU
                  - value: DDP
                    label: DDP
                  - value: FAS
                    label: FAS
                  - value: FOB
                    label: FOB
                  - value: CFR
                    label: CFR
                  - value: CIF
                    label: CIF
                insurance_arranged_by:
                  - value: buyer
                    label: Buyer
                  - value: seller
                    label: Seller
                currencies:
                  - value: SAR
                    label: SAR
                  - value: USD
                    label: USD
                  - value: EUR
                    label: EUR
                  - value: GBP
                    label: GBP
                  - value: AED
                    label: AED
                  - value: CNY
                    label: CNY
                countries:
                  - value: SA
                    label: Saudi Arabia
                  - value: AF
                    label: Afghanistan
                  - value: AL
                    label: Albania
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Option:
      type: object
      properties:
        value:
          type: string
          description: What to send.
        label:
          type: string
          description: What to show.
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          description: >-
            On `42201`, the messages for each field that failed, keyed by the
            field's path.
        missing_fields:
          type: array
          description: On `40033`, the shipment details still needed.
          items:
            type: string
        policy_id:
          type: integer
          description: On `40026`, the policy the quote was already issued as.
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: '40101'
            message: Unauthenticated
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.