{
  "$defs": {
    "Flag": {
      "description": "Okuma s\u0131ras\u0131nda kullan\u0131c\u0131n\u0131n kontrol etmesi gereken alan.",
      "properties": {
        "path": {
          "title": "Path",
          "type": "string"
        },
        "reason": {
          "title": "Reason",
          "type": "string"
        },
        "resolved": {
          "default": false,
          "title": "Resolved",
          "type": "boolean"
        }
      },
      "required": [
        "path",
        "reason"
      ],
      "title": "Flag",
      "type": "object"
    },
    "LineItem": {
      "properties": {
        "id": {
          "title": "Id",
          "type": "string"
        },
        "sku": {
          "default": "",
          "title": "Sku",
          "type": "string"
        },
        "description": {
          "default": "",
          "title": "Description",
          "type": "string"
        },
        "hs_code": {
          "default": "",
          "title": "Hs Code",
          "type": "string"
        },
        "origin": {
          "default": "",
          "title": "Origin",
          "type": "string"
        },
        "qty": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Qty"
        },
        "unit": {
          "default": "pcs",
          "title": "Unit",
          "type": "string"
        },
        "unit_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Unit Price"
        },
        "no_charge": {
          "default": false,
          "title": "No Charge",
          "type": "boolean"
        },
        "customs_value_per_unit": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Customs Value Per Unit"
        },
        "stated_line_total": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stated Line Total"
        },
        "eccn": {
          "default": "",
          "title": "Eccn",
          "type": "string"
        },
        "license_type": {
          "default": "",
          "maxLength": 80,
          "title": "License Type",
          "type": "string"
        },
        "lot_no": {
          "default": "",
          "title": "Lot No",
          "type": "string"
        },
        "expiry_date": {
          "default": "",
          "title": "Expiry Date",
          "type": "string"
        },
        "un_number": {
          "default": "",
          "title": "Un Number",
          "type": "string"
        },
        "dg_class": {
          "default": "",
          "title": "Dg Class",
          "type": "string"
        },
        "packing_group": {
          "default": "",
          "title": "Packing Group",
          "type": "string"
        },
        "proper_shipping_name": {
          "default": "",
          "title": "Proper Shipping Name",
          "type": "string"
        },
        "declaration": {
          "default": "",
          "title": "Declaration",
          "type": "string"
        },
        "usmca_criterion": {
          "default": "",
          "enum": [
            "",
            "A",
            "B",
            "C",
            "D"
          ],
          "title": "Usmca Criterion",
          "type": "string"
        },
        "usmca_confirmed": {
          "default": false,
          "title": "Usmca Confirmed",
          "type": "boolean"
        }
      },
      "title": "LineItem",
      "type": "object"
    },
    "Marks": {
      "description": "Koli i\u015faretleri (shipping marks) ve etiket ayarlar\u0131.",
      "properties": {
        "consignee_mark": {
          "default": "",
          "title": "Consignee Mark",
          "type": "string"
        },
        "destination": {
          "default": "",
          "title": "Destination",
          "type": "string"
        },
        "po_number": {
          "default": "",
          "title": "Po Number",
          "type": "string"
        },
        "handling": {
          "items": {
            "type": "string"
          },
          "title": "Handling",
          "type": "array"
        },
        "extra_lines": {
          "items": {
            "type": "string"
          },
          "title": "Extra Lines",
          "type": "array"
        },
        "language": {
          "default": "en",
          "enum": [
            "en",
            "en_es"
          ],
          "title": "Language",
          "type": "string"
        },
        "paper": {
          "default": "Letter",
          "enum": [
            "Letter",
            "A4"
          ],
          "title": "Paper",
          "type": "string"
        },
        "label_size": {
          "default": "4x6",
          "enum": [
            "4x6",
            "letter_2",
            "a4_4"
          ],
          "title": "Label Size",
          "type": "string"
        },
        "temperature": {
          "default": "",
          "title": "Temperature",
          "type": "string"
        }
      },
      "title": "Marks",
      "type": "object"
    },
    "PackingLine": {
      "properties": {
        "shares_cartons_with_previous": {
          "default": false,
          "title": "Shares Cartons With Previous",
          "type": "boolean"
        },
        "pallet": {
          "default": "",
          "title": "Pallet",
          "type": "string"
        },
        "weight_unit_unconfirmed": {
          "additionalProperties": {
            "type": "string"
          },
          "title": "Weight Unit Unconfirmed",
          "type": "object"
        },
        "id": {
          "title": "Id",
          "type": "string"
        },
        "sku": {
          "default": "",
          "title": "Sku",
          "type": "string"
        },
        "carton_from": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Carton From"
        },
        "carton_to": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Carton To"
        },
        "cartons": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cartons"
        },
        "per_carton": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Per Carton"
        },
        "packed_qty": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Packed Qty"
        },
        "unit": {
          "default": "pcs",
          "title": "Unit",
          "type": "string"
        },
        "length_cm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Length Cm"
        },
        "width_cm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Width Cm"
        },
        "height_cm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Height Cm"
        },
        "net_kg": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Net Kg"
        },
        "gross_kg": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Gross Kg"
        },
        "weight_unit_in_file": {
          "default": "kg",
          "enum": [
            "kg",
            "lb"
          ],
          "title": "Weight Unit In File",
          "type": "string"
        },
        "net_in_file": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Net In File"
        },
        "gross_in_file": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Gross In File"
        },
        "dim_unit_in_file": {
          "default": "cm",
          "enum": [
            "cm",
            "in"
          ],
          "title": "Dim Unit In File",
          "type": "string"
        },
        "length_in_file": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Length In File"
        },
        "width_in_file": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Width In File"
        },
        "height_in_file": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Height In File"
        },
        "tare_kg_per_carton": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tare Kg Per Carton"
        },
        "glaze_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Glaze Pct"
        },
        "kit_part": {
          "default": "",
          "title": "Kit Part",
          "type": "string"
        },
        "package": {
          "default": "",
          "title": "Package",
          "type": "string"
        },
        "lot_no": {
          "default": "",
          "title": "Lot No",
          "type": "string"
        },
        "expiry_date": {
          "default": "",
          "title": "Expiry Date",
          "type": "string"
        }
      },
      "title": "PackingLine",
      "type": "object"
    },
    "Party": {
      "properties": {
        "name": {
          "default": "",
          "title": "Name",
          "type": "string"
        },
        "address": {
          "default": "",
          "title": "Address",
          "type": "string"
        },
        "country": {
          "default": "",
          "title": "Country",
          "type": "string"
        },
        "tax_id": {
          "default": "",
          "title": "Tax Id",
          "type": "string"
        },
        "phone": {
          "default": "",
          "title": "Phone",
          "type": "string"
        },
        "email": {
          "default": "",
          "title": "Email",
          "type": "string"
        }
      },
      "title": "Party",
      "type": "object"
    },
    "Terms": {
      "properties": {
        "tracking_number": {
          "default": "",
          "title": "Tracking Number",
          "type": "string"
        },
        "carrier_name": {
          "default": "",
          "title": "Carrier Name",
          "type": "string"
        },
        "invoice_no": {
          "default": "",
          "title": "Invoice No",
          "type": "string"
        },
        "invoice_date": {
          "default": "",
          "title": "Invoice Date",
          "type": "string"
        },
        "incoterm": {
          "default": "",
          "title": "Incoterm",
          "type": "string"
        },
        "named_place": {
          "default": "",
          "title": "Named Place",
          "type": "string"
        },
        "transport_mode": {
          "default": "",
          "enum": [
            "sea",
            "inland_waterway",
            "air",
            "road",
            "rail",
            "multimodal",
            "courier",
            ""
          ],
          "title": "Transport Mode",
          "type": "string"
        },
        "currency": {
          "default": "USD",
          "title": "Currency",
          "type": "string"
        },
        "payment_terms": {
          "default": "",
          "title": "Payment Terms",
          "type": "string"
        },
        "destination_country": {
          "default": "",
          "title": "Destination Country",
          "type": "string"
        },
        "stated_total": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stated Total"
        },
        "stated_cartons": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stated Cartons"
        },
        "stated_net_kg": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stated Net Kg"
        },
        "stated_gross_kg": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stated Gross Kg"
        },
        "itn": {
          "default": "",
          "title": "Itn",
          "type": "string"
        },
        "eei_note": {
          "default": "",
          "title": "Eei Note",
          "type": "string"
        },
        "discount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Discount"
        },
        "freight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Freight"
        },
        "insurance": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Insurance"
        },
        "other_charges": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Other Charges"
        },
        "other_charges_label": {
          "default": "",
          "title": "Other Charges Label",
          "type": "string"
        },
        "charges_scope": {
          "default": "",
          "title": "Charges Scope",
          "type": "string"
        },
        "pallets": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Pallets"
        },
        "pallet_kg": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Pallet Kg"
        },
        "reason_for_export": {
          "default": "Sale",
          "title": "Reason For Export",
          "type": "string"
        },
        "signer_name": {
          "default": "",
          "title": "Signer Name",
          "type": "string"
        },
        "signer_title": {
          "default": "",
          "title": "Signer Title",
          "type": "string"
        }
      },
      "title": "Terms",
      "type": "object"
    }
  },
  "properties": {
    "seller": {
      "$ref": "#/$defs/Party"
    },
    "buyer": {
      "$ref": "#/$defs/Party"
    },
    "consignee": {
      "$ref": "#/$defs/Party"
    },
    "importer_of_record": {
      "$ref": "#/$defs/Party"
    },
    "terms": {
      "$ref": "#/$defs/Terms"
    },
    "marks": {
      "$ref": "#/$defs/Marks"
    },
    "notes": {
      "items": {
        "type": "string"
      },
      "title": "Notes",
      "type": "array"
    },
    "lines": {
      "items": {
        "$ref": "#/$defs/LineItem"
      },
      "title": "Lines",
      "type": "array"
    },
    "packing": {
      "items": {
        "$ref": "#/$defs/PackingLine"
      },
      "title": "Packing",
      "type": "array"
    },
    "flags": {
      "items": {
        "$ref": "#/$defs/Flag"
      },
      "title": "Flags",
      "type": "array"
    }
  },
  "title": "Order API shipment input",
  "type": "object"
}
