{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/globkurier-pl/json-schema/globkurier-pl-post-v1-order-bestprice-request-schema.json",
  "title": "PostV1OrderBestpriceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/globkurier-pl-openapi-generated.yml#/components/schemas/PostV1OrderBestpriceRequest",
  "type": "object",
  "properties": {
    "shipment": {
      "type": "object",
      "properties": {
        "length": {
          "type": "integer"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "weight": {
          "type": "number"
        },
        "quantity": {
          "type": "integer"
        },
        "integrationName": {
          "type": "string"
        }
      }
    },
    "senderAddress": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "houseNumber": {
          "type": "string"
        },
        "apartmentNumber": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "pointId": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "contactPerson": {
          "type": "string"
        }
      }
    },
    "receiverAddress": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "houseNumber": {
          "type": "string"
        },
        "apartmentNumber": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "contactPerson": {
          "type": "string"
        }
      }
    },
    "customs": {
      "type": "object",
      "properties": {
        "sender": {
          "type": "object",
          "properties": {
            "eori": {
              "type": "string"
            }
          }
        },
        "receiver": {
          "type": "object",
          "properties": {
            "eori": {
              "type": "string"
            }
          }
        },
        "commodities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "composition": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "mid": {
                "type": "string"
              },
              "hsCode": {
                "type": "string"
              },
              "countryOfOrigin": {
                "type": "string"
              },
              "unitOfMeasurement": {
                "type": "string"
              },
              "quantity": {
                "type": "integer"
              },
              "unitValue": {
                "type": "number"
              },
              "unitWeightGross": {
                "type": "number"
              },
              "unitWeightNet": {
                "type": "number"
              },
              "subTotalValue": {
                "type": "number"
              }
            }
          }
        },
        "totalWeight": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string"
              },
              "weightGross": {
                "type": "number"
              },
              "weightNet": {
                "type": "number"
              }
            }
          }
        },
        "currency": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "invoiceNumber": {
          "type": "string"
        },
        "invoiceDate": {
          "type": "string",
          "format": "date"
        },
        "postalCharges": {
          "type": "number"
        },
        "vatRegistrationNumber": {
          "type": "string"
        },
        "vatRegistrationNumberReceiver": {
          "type": "string"
        }
      }
    },
    "content": {
      "type": "string"
    },
    "paymentId": {
      "type": "integer"
    },
    "agreements": {
      "type": "object",
      "properties": {
        "receiveElectronicBills": {
          "type": "boolean"
        },
        "processingPersonalData": {
          "type": "boolean"
        }
      }
    },
    "addons": {
      "type": "object",
      "properties": {
        "INSURANCE": {
          "type": "object",
          "properties": {
            "value": {
              "type": "number"
            }
          }
        }
      }
    },
    "purpose": {
      "type": "string"
    },
    "collectionType": {
      "type": "string"
    },
    "referenceNumber": {
      "type": "string"
    },
    "receiverType": {
      "type": "string"
    },
    "deliveryType": {
      "type": "string"
    }
  }
}