{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intelipost/json-schema/intelipost-post-api-v1-shipment-order-request-schema.json",
  "title": "PostApiV1ShipmentOrderRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/intelipost-openapi-generated.yml#/components/schemas/PostApiV1ShipmentOrderRequest",
  "type": "object",
  "properties": {
    "order_number": {
      "type": "string"
    },
    "parent_shipment_order_number": {
      "type": "string"
    },
    "sales_order_number": {
      "type": "string"
    },
    "delivery_method_id": {
      "type": "integer"
    },
    "delivery_method_external_id": {
      "type": "string"
    },
    "quote_id": {
      "type": "string"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "shipped_date": {
      "type": "string",
      "format": "date-time"
    },
    "estimated_delivery_date": {
      "type": "string",
      "format": "date-time"
    },
    "scheduled": {
      "type": "boolean"
    },
    "sales_channel": {
      "type": "string"
    },
    "shipment_order_type": {
      "type": "string"
    },
    "customer_shipping_costs": {
      "type": "integer"
    },
    "provider_shipping_costs": {
      "type": "number"
    },
    "carrier": {
      "type": "object",
      "properties": {
        "driver": {
          "type": "object",
          "properties": {
            "federal_tax_id": {
              "type": "string"
            }
          }
        },
        "vehicle": {
          "type": "object",
          "properties": {
            "licence_plate": {
              "type": "string"
            }
          }
        }
      }
    },
    "origin_zip_code": {
      "type": "string"
    },
    "origin_warehouse_code": {
      "type": "string"
    },
    "seller": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "cellphone": {
          "type": "string"
        },
        "is_company": {
          "type": "boolean"
        },
        "federal_tax_payer_id": {
          "type": "string"
        },
        "state_tax_payer_id": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "additional": {
          "type": "string"
        },
        "quarter": {
          "type": "string"
        },
        "zip_code": {
          "type": "string"
        },
        "reference": {
          "type": "string"
        },
        "opt_in": {
          "type": "boolean"
        },
        "notify": {
          "type": "object",
          "properties": {
            "whatsapp": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "end_customer": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "cellphone": {
          "type": "string"
        },
        "is_company": {
          "type": "boolean"
        },
        "federal_tax_payer_id": {
          "type": "string"
        },
        "shipping_country": {
          "type": "string"
        },
        "shipping_state": {
          "type": "string"
        },
        "shipping_city": {
          "type": "string"
        },
        "shipping_address": {
          "type": "string"
        },
        "shipping_number": {
          "type": "string"
        },
        "shipping_quarter": {
          "type": "string"
        },
        "shipping_additional": {
          "type": "string"
        },
        "shipping_zip_code": {
          "type": "string"
        },
        "shipping_reference": {
          "type": "string"
        },
        "opt_in": {
          "type": "boolean"
        },
        "notify": {
          "type": "object",
          "properties": {
            "whatsapp": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "shipment_order_volume_array": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "tracking_code": {
            "type": "string"
          },
          "shipment_order_volume_number": {
            "type": "integer"
          },
          "volume_type_code": {
            "type": "string"
          },
          "client_pre_shipment_list": {
            "type": "string"
          },
          "weight": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "length": {
            "type": "integer"
          },
          "products_quantity": {
            "type": "integer"
          },
          "products_nature": {
            "type": "string"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "weight": {
                  "type": "number"
                },
                "width": {
                  "type": "number"
                },
                "height": {
                  "type": "number"
                },
                "length": {
                  "type": "number"
                },
                "image_url": {
                  "type": "string"
                },
                "price": {
                  "type": "integer"
                },
                "description": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                },
                "category": {
                  "type": "string"
                },
                "quantity": {
                  "type": "integer"
                }
              }
            }
          },
          "shipment_order_volume_invoice": {
            "type": "object",
            "properties": {
              "invoice_series": {
                "type": "string"
              },
              "invoice_number": {
                "type": "string"
              },
              "invoice_key": {
                "type": "string"
              },
              "invoice_date": {
                "type": "string",
                "format": "date-time"
              },
              "invoice_total_value": {
                "type": "number"
              },
              "invoice_products_value": {
                "type": "number"
              },
              "invoice_cfop": {
                "type": "string"
              }
            }
          },
          "content_declaration": {
            "type": "object",
            "properties": {
              "content_declaration_number": {
                "type": "string"
              },
              "content_declaration_total_value": {
                "type": "string"
              },
              "content_declaration_date": {
                "type": "string",
                "format": "date"
              }
            }
          }
        }
      }
    },
    "additional_information": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "key2": {
          "type": "string"
        }
      }
    },
    "external_order_numbers": {
      "type": "object",
      "properties": {
        "marketplace": {
          "type": "string"
        },
        "sales": {
          "type": "string"
        },
        "plataforma": {
          "type": "string"
        },
        "erp": {
          "type": "string"
        }
      }
    }
  }
}