{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-order-create-schema.json",
  "title": "OrderCreate",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brm-chronographes-com-openapi.json#/components/schemas/OrderCreate",
  "properties": {
    "client_type": {
      "type": "string",
      "title": "Client Type",
      "default": "B2C"
    },
    "client_odoo_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Odoo Id"
    },
    "client_company": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Company"
    },
    "client_siret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Siret"
    },
    "client_vat_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Vat Number"
    },
    "client_first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client First Name"
    },
    "client_last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Last Name"
    },
    "client_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Email"
    },
    "client_phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Phone"
    },
    "shipping_address_line1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Address Line1"
    },
    "shipping_address_line2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Address Line2"
    },
    "shipping_city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping City"
    },
    "shipping_postal_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Postal Code"
    },
    "shipping_country": {
      "type": "string",
      "title": "Shipping Country",
      "default": "France"
    },
    "shipping_state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping State"
    },
    "shipping_recipient_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Recipient Name"
    },
    "shipping_recipient_company": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Recipient Company"
    },
    "shipping_recipient_phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shipping Recipient Phone"
    },
    "billing_same_as_shipping": {
      "type": "boolean",
      "title": "Billing Same As Shipping",
      "default": true
    },
    "billing_address_line1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Address Line1"
    },
    "billing_address_line2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Address Line2"
    },
    "billing_city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing City"
    },
    "billing_postal_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Postal Code"
    },
    "billing_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Country"
    },
    "tva_zone": {
      "type": "string",
      "title": "Tva Zone",
      "default": "france"
    },
    "web_prix_paye": {
      "type": "boolean",
      "title": "Web Prix Paye",
      "default": false
    },
    "discount_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discount Type"
    },
    "discount_value": {
      "type": "number",
      "title": "Discount Value",
      "default": 0
    },
    "shipping_cost": {
      "type": "number",
      "title": "Shipping Cost",
      "default": 0
    },
    "delivery_delay_default": {
      "type": "string",
      "title": "Delivery Delay Default",
      "default": "6-8 semaines"
    },
    "delivery_rush_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Delivery Rush Days"
    },
    "delivery_date_estimated": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Delivery Date Estimated"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    },
    "internal_notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Internal Notes"
    },
    "payment_schedule": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payment Schedule"
    },
    "pdf_language": {
      "type": "string",
      "title": "Pdf Language",
      "default": "fr"
    },
    "commercial_attribution": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Commercial Attribution"
    },
    "commercial_team_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Commercial Team Id"
    }
  },
  "type": "object"
}