{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kapture-cx/json-schema/kapture-cx-post-ms-customer-order-api-v1-add-update-request-schema.json",
  "title": "PostMsCustomerOrderApiV1AddUpdateRequest",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kapture-cx-openapi-generated.yml#/components/schemas/PostMsCustomerOrderApiV1AddUpdateRequest",
  "type": "object",
  "properties": {
    "customer_info": {
      "type": "object",
      "properties": {
        "customer_name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "email_id": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "classification": {
          "type": "string"
        },
        "pincode": {
          "type": "string"
        },
        "customer_code": {
          "type": "string"
        },
        "customer_id": {
          "type": "string"
        },
        "customer_assign_emp_name": {
          "type": "string"
        },
        "customer_assign_emp_code": {
          "type": "string"
        },
        "customer_assign_emp_email": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "customer_remarks": {
          "type": "string"
        },
        "individual": {
          "type": "boolean"
        },
        "organization": {
          "type": "boolean"
        },
        "channel_partner": {
          "type": "boolean"
        },
        "remarks": {
          "type": "string"
        },
        "primary_source": {
          "type": "string"
        },
        "secondary_source": {
          "type": "string"
        },
        "tertiary_source": {
          "type": "string"
        },
        "additional_fields": {
          "type": "object"
        },
        "associate_fields": {
          "type": "object"
        },
        "update": {
          "type": "boolean"
        }
      }
    },
    "contact_info": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contact_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "contact_person_name": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          },
          "contact_person_phone": {
            "type": "string"
          },
          "contact_person_email": {
            "type": "string"
          },
          "additional_contact_phone": {
            "type": "string"
          },
          "dob": {
            "type": "string"
          },
          "gender": {
            "type": "string"
          },
          "update": {
            "type": "boolean"
          },
          "matchEmailPhone": {
            "type": "boolean"
          }
        }
      }
    },
    "enquiry_info": {
      "type": "object",
      "properties": {
        "enquiry_id": {
          "type": "string"
        },
        "assign_emp_name": {
          "type": "string"
        },
        "assign_emp_code": {
          "type": "string"
        },
        "assign_emp_email": {
          "type": "string"
        },
        "round_robin_key": {
          "type": "string"
        },
        "next_follow_up_date": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "subStatus": {
          "type": "string"
        },
        "additional_fields": {
          "type": "object"
        },
        "associate_fields": {
          "type": "object"
        },
        "update": {
          "type": "boolean"
        },
        "remarks": {
          "type": "string"
        }
      }
    },
    "order_info": {
      "type": "object",
      "properties": {
        "order_id": {
          "type": "string"
        },
        "assign_emp_name": {
          "type": "string"
        },
        "assign_emp_code": {
          "type": "string"
        },
        "assign_emp_email": {
          "type": "string"
        },
        "delivery_status": {
          "type": "string"
        },
        "erp_order_id": {
          "type": "string"
        },
        "erp_invoice_no": {
          "type": "string"
        },
        "create_date": {
          "type": "string"
        },
        "remarks": {
          "type": "string"
        },
        "invoice_no": {
          "type": "string"
        },
        "invoice_date": {
          "type": "string"
        },
        "unit_name": {
          "type": "string"
        },
        "block_name": {
          "type": "string"
        },
        "ticket_id": {
          "type": "string"
        },
        "encryptOrder": {
          "type": "string"
        },
        "payment_mode": {
          "type": "string"
        },
        "dealDetails": {
          "type": "string"
        },
        "associate_fields": {
          "type": "object"
        },
        "update": {
          "type": "boolean"
        }
      }
    }
  }
}