{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/colissimo/main/json-schema/colissimo-plan-pickup-request-schema.json",
  "title": "PlanPickupRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/colissimo-sls-openapi.yml#/components/schemas/PlanPickupRequest",
  "required": [
    "mailBoxPickingDate",
    "parcelNumber",
    "sender"
  ],
  "type": "object",
  "properties": {
    "contractNumber": {
      "type": "string",
      "description": "<i>AN</i> <br/>  <lang><en>Deprecated. Use apikey instead as explained in \"Acess to the Web Service SLS/API Authentication\".</en><fr>Obsolète. Utiliser l'apikey à la place comme expliqué dans \"Accès au Web Service SLS/Authentification API\".</fr></lang>"
    },
    "password": {
      "type": "string",
      "description": "<i>AN</i> <br/>  <lang><en>Deprecated. Use apikey instead as explained in \"Acess to the Web Service SLS/API Authentication\".</en><fr>Obsolète. Utiliser l'apikey à la place comme expliqué dans \"Accès au Web Service SLS/Authentification API\".</fr></lang>"
    },
    "parcelNumber": {
      "type": "string",
      "description": "<i>AN13</i> <br/>  <lang><en>Parcel number</en><fr>Numéro de colis.</fr></lang>"
    },
    "mailBoxPickingDate": {
      "type": "string",
      "description": "<i>D</i> <br/>  <lang><en>Requested pick-up date. <br/><br/>Example: \"2022-06-25\"</en><fr>Date d’emport demandée.<br/><br/>Example: \\\"2022-06-25\\\"</fr></lang>",
      "format": "date-time"
    },
    "sender": {
      "$ref": "#/$defs/PlanPickupSender"
    }
  },
  "$defs": {
    "PlanPickupSender": {
      "required": [
        "zipCode"
      ],
      "type": "object",
      "properties": {
        "companyName": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Company name</en><fr>Raison sociale.</fr></lang>"
        },
        "lastName": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Last name</en><fr>Nom.</fr></lang>"
        },
        "firstName": {
          "type": "string",
          "description": "<i>AN29</i> <br/>  <lang><en>First name</en><fr>Prénom.</fr></lang>"
        },
        "line0": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Floor, corridor, stairwell, flat number</en><fr>Etage, couloir, escalier, appartement.</fr></lang>"
        },
        "line1": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Entrance, building, residence. </en><fr>Entrée, b&acirc;timent, immeuble, résidence.</fr></lang>"
        },
        "line2": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Number and street name. <br/><br/>Example: \"5 rue du Bellay\"</en><fr>Numéro et libellé de voie. <br/><br/>Example: \\\"5 rue du Bellay\\\"</fr></lang>"
        },
        "line3": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Named place or other mention</en><fr>Lieu-dit ou autre mention.</fr></lang>"
        },
        "city": {
          "type": "string",
          "description": "<i>AN35</i> <br/>  <lang><en>Municipality</en><fr>Commune.</fr></lang>"
        },
        "zipCode": {
          "type": "string",
          "description": "<i>AN5</i> <br/>  <lang><en>Postcode</en><fr>Code postal.</fr></lang>"
        },
        "countryCode": {
          "type": "string",
          "description": "<i>A2</i> <br/>  <lang><en>Only the \"FR\" value is authorised. <br/>Country code.</en><fr>Code pays.<br/><br/>Seule la valeur « <b>FR</b> » est autorisée.</fr></lang>"
        },
        "email": {
          "type": "string",
          "description": "<i>AN80</i> <br/>  <lang><en>Email address. <br/>Used for sending tracking notifications to addressees.</en><fr>Adresse courriel. <br/><br/> Utilisé pour les notifications de suivi aux destinataires.</fr></lang>"
        },
        "phoneNumber": {
          "type": "string",
          "description": "<i>AN15</i> <br/>  <lang><en>Telephone</en><fr>Téléphone.</fr></lang>"
        }
      },
      "description": "<i>SUB</i> <br/>  <lang><en>Block containing sender's address</en><fr>Bloc contenant les coordonnées du déposant en retour.</fr></lang>"
    }
  }
}