---
updatedAt: 2026-05-21T20:21:38.000Z
agentTools:
  projectIndex: https://docs.envia.com/llms.txt
---

# Generate a Shipping Label

Generate a shipping label with a tracking number for a specific carrier and service. This is the core endpoint for creating shipments — it returns a printable label and registers the shipment with the carrier.

**When to use:** Call this endpoint after you have selected a rate from the `/ship/rate/` response and are ready to create an actual shipment.

**Prerequisites:**
- Valid JWT authentication token (Bearer)
- A selected carrier and service (typically from a prior rate quote)
- Complete origin and destination addresses
- Package dimensions and weight
- For international shipments: customs items information and content description

**Key behaviors:**
- Returns a label URL (PDF), tracking number, and shipment metadata
- Once generated, the label is registered with the carrier and may incur charges
- Cancel unused labels via `/ship/cancel/` to request a refund
- Supports additional services (insurance, signature, etc.) through the `settings` object
- For international DDP shipments, include duty/tax payment details in the request

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Envia Shipping API — Complete Documentation",
    "version": "v2.3.0",
    "description": "Shipping API to connect with over 100 couriers worldwide. Shipping made simple for e-commerces and enterprises. Envia's Shipping Web Services offers solutions that applications can use to quote, create labels, request pickups, track packages, cancel shipments and many other logistics operations in USA, Mexico, Colombia, Brazil, India, Canada, Argentina, Chile, Guatemala, Spain, Italy and France. This API is built for e-commerce platforms, logistics teams, and enterprise applications that need a single integration to access multi-carrier shipping capabilities. Core features include real-time rate comparison, label generation, package tracking, pickup scheduling, shipment cancellation, and webhook-based event notifications.\n\n**Important Information:**\n- State codes must be 2 digits\n- Country codes must be 2 digits  \n- Validate the shipping address structure\n- Make sure the zip code or locality are correct\n\n**Custom Keys:** Custom Keys are used when you have a direct account with a carrier. This way you create labels with your rates with an additional small fee for service.",
    "contact": {
      "name": "Envia API Support",
      "url": "https://docs.envia.com/discuss"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://www.envia.com/terminos-y-condiciones"
    },
    "termsOfService": "https://www.envia.com/terminos-y-condiciones"
  },
  "externalDocs": {
    "description": "Full Envia API Documentation",
    "url": "https://docs.envia.com"
  },
  "servers": [
    {
      "url": "https://api-test.envia.com",
      "description": "Sandbox/Test"
    },
    {
      "url": "https://api.envia.com",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Labels",
      "description": "Create shipping labels and generate tracking numbers"
    }
  ],
  "paths": {
    "/ship/generate/": {
      "post": {
        "tags": [
          "Labels"
        ],
        "summary": "Generate a Shipping Label",
        "description": "Generate a shipping label with a tracking number for a specific carrier and service. This is the core endpoint for creating shipments — it returns a printable label and registers the shipment with the carrier.\n\n**When to use:** Call this endpoint after you have selected a rate from the `/ship/rate/` response and are ready to create an actual shipment.\n\n**Prerequisites:**\n- Valid JWT authentication token (Bearer)\n- A selected carrier and service (typically from a prior rate quote)\n- Complete origin and destination addresses\n- Package dimensions and weight\n- For international shipments: customs items information and content description\n\n**Key behaviors:**\n- Returns a label URL (PDF), tracking number, and shipment metadata\n- Once generated, the label is registered with the carrier and may incur charges\n- Cancel unused labels via `/ship/cancel/` to request a refund\n- Supports additional services (insurance, signature, etc.) through the `settings` object\n- For international DDP shipments, include duty/tax payment details in the request",
        "operationId": "create-shipping-label",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "origin",
                  "destination",
                  "packages",
                  "shipment",
                  "settings"
                ],
                "properties": {
                  "origin": {
                    "type": "object",
                    "required": [
                      "name",
                      "phone",
                      "street",
                      "city",
                      "state",
                      "country",
                      "postalCode"
                    ],
                    "description": "Origin address information",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Name of the person",
                        "example": "Juan Pérez"
                      },
                      "company": {
                        "type": "string",
                        "description": "Name of the company or business",
                        "example": "Envia Corp"
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address",
                        "example": "juan.perez@example.com"
                      },
                      "phone_code": {
                        "type": "string",
                        "description": "Country phone code",
                        "example": "+52"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Phone number",
                        "pattern": "^\\+?[0-9\\s\\-()]+$",
                        "example": "8180000000"
                      },
                      "street": {
                        "type": "string",
                        "description": "Street address",
                        "example": "Av. Revolución 500"
                      },
                      "number": {
                        "type": "string",
                        "description": "Street number",
                        "example": "500"
                      },
                      "district": {
                        "type": "string",
                        "description": "District or neighborhood",
                        "example": "Centro"
                      },
                      "city": {
                        "type": "string",
                        "description": "City name",
                        "example": "Monterrey"
                      },
                      "state": {
                        "type": "string",
                        "description": "State or province code (e.g., NL, TX, QC)",
                        "example": "NL",
                        "minLength": 2,
                        "maxLength": 3
                      },
                      "country": {
                        "type": "string",
                        "description": "ISO 3166-1 alpha-2 country code (e.g., MX, US, CO)",
                        "example": "MX",
                        "pattern": "^[A-Z]{2}$",
                        "minLength": 2,
                        "maxLength": 2
                      },
                      "postalCode": {
                        "type": "string",
                        "description": "Zipcode value",
                        "example": "64060",
                        "minLength": 3,
                        "maxLength": 10
                      },
                      "reference": {
                        "type": "string",
                        "description": "Reference information for delivery",
                        "example": "Frente al parque"
                      },
                      "identificationNumber": {
                        "type": "string",
                        "description": "Tax identification number",
                        "example": "XAXX010101000"
                      },
                      "branchCode": {
                        "type": "string",
                        "description": "Origin branch code identification when you select a drop off service."
                      }
                    }
                  },
                  "destination": {
                    "type": "object",
                    "required": [
                      "name",
                      "phone",
                      "street",
                      "city",
                      "state",
                      "country",
                      "postalCode"
                    ],
                    "description": "Destination address information",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Name of the person",
                        "example": "María García"
                      },
                      "company": {
                        "type": "string",
                        "description": "Name of the company or business",
                        "example": "Tienda Online SA"
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address",
                        "example": "maria.garcia@example.com"
                      },
                      "phone_code": {
                        "type": "string",
                        "description": "Country phone code",
                        "example": "+52"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Phone number",
                        "pattern": "^\\+?[0-9\\s\\-()]+$",
                        "example": "8180000000"
                      },
                      "street": {
                        "type": "string",
                        "description": "Street address",
                        "example": "Calle Reforma 123"
                      },
                      "number": {
                        "type": "string",
                        "description": "Street number",
                        "example": "123"
                      },
                      "district": {
                        "type": "string",
                        "description": "District or neighborhood",
                        "example": "Coyoacán"
                      },
                      "city": {
                        "type": "string",
                        "description": "City name",
                        "example": "Ciudad de México"
                      },
                      "state": {
                        "type": "string",
                        "description": "State or province code (e.g., NL, TX, QC). Retrieve valid codes from the Queries API (Get States by Country).",
                        "example": "CX",
                        "minLength": 2,
                        "maxLength": 3
                      },
                      "country": {
                        "type": "string",
                        "description": "ISO 3166-1 alpha-2 country code (e.g., MX, US, CO)",
                        "example": "MX",
                        "pattern": "^[A-Z]{2}$",
                        "minLength": 2,
                        "maxLength": 2
                      },
                      "postalCode": {
                        "type": "string",
                        "description": "Zipcode value",
                        "example": "04530",
                        "minLength": 3,
                        "maxLength": 10
                      },
                      "reference": {
                        "type": "string",
                        "description": "Reference information for delivery",
                        "example": "Edificio azul, piso 3"
                      },
                      "identificationNumber": {
                        "type": "string",
                        "description": "Tax identification number",
                        "example": "XAXX010101000"
                      },
                      "branchCode": {
                        "type": "string",
                        "description": "Destination branch code identification when you select a drop off service."
                      }
                    }
                  },
                  "packages": {
                    "type": "array",
                    "description": "List of packages",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "content",
                        "amount",
                        "declaredValue",
                        "lengthUnit",
                        "weightUnit",
                        "weight",
                        "dimensions"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "envelope",
                            "box",
                            "pallet"
                          ],
                          "description": "Package type",
                          "example": "box",
                          "default": "box"
                        },
                        "content": {
                          "type": "string",
                          "description": "Package content description",
                          "minLength": 1,
                          "example": "Electronics"
                        },
                        "amount": {
                          "type": "integer",
                          "description": "Number of packages",
                          "minimum": 1,
                          "example": 1
                        },
                        "name": {
                          "type": "string",
                          "description": "Package name",
                          "example": "Standard Box"
                        },
                        "declaredValue": {
                          "type": "number",
                          "description": "Approximate value of the merchandise (Not the value to be insured)",
                          "minimum": 0,
                          "example": 500
                        },
                        "lengthUnit": {
                          "type": "string",
                          "enum": [
                            "CM",
                            "IN"
                          ],
                          "description": "Unit of measure for dimensions",
                          "example": "CM",
                          "default": "CM"
                        },
                        "weightUnit": {
                          "type": "string",
                          "enum": [
                            "KG",
                            "LB"
                          ],
                          "description": "Unit of weight",
                          "example": "KG",
                          "default": "KG"
                        },
                        "weight": {
                          "type": "number",
                          "description": "Package weight",
                          "minimum": 0.01,
                          "example": 2.5
                        },
                        "dimensions": {
                          "type": "object",
                          "required": [
                            "length",
                            "width",
                            "height"
                          ],
                          "description": "Package dimensions",
                          "properties": {
                            "length": {
                              "type": "number",
                              "description": "Length dimension",
                              "minimum": 0.1,
                              "example": 30
                            },
                            "width": {
                              "type": "number",
                              "description": "Width dimension",
                              "minimum": 0.1,
                              "example": 20
                            },
                            "height": {
                              "type": "number",
                              "description": "Height dimension",
                              "minimum": 0.1,
                              "example": 15
                            }
                          }
                        },
                        "additionalServices": {
                          "type": "array",
                          "description": "Additional services for the package. Send the same entries in `/ship/rate/` and `/ship/generate/`: the label is priced again from the generate request, and only the services in that request are purchased.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "description": "Required only for some additional services",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "description": "Required for `envia_insurance`, `insurance` and `cash_on_delivery`. For `envia_insurance`, the value to insure, in the currency of the origin country (USD for US origins). Each service has a maximum insured value; above it the request fails with error 1126.",
                                    "example": "500"
                                  }
                                }
                              },
                              "service": {
                                "type": "string",
                                "enum": [
                                  "envia_insurance",
                                  "cash_on_delivery",
                                  "electronic_signature"
                                ],
                                "description": "Additional service name",
                                "example": "envia_insurance"
                              }
                            }
                          }
                        },
                        "items": {
                          "type": "array",
                          "description": "Items in the package (**mandatory** for international shipments or domestic shipments generated within Brazil, for the fiscal declaration).",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "Item description",
                                "minLength": 1,
                                "example": "Wireless headphones"
                              },
                              "productCode": {
                                "type": "string",
                                "description": "Product code (HS code)",
                                "example": "8518.30"
                              },
                              "quantity": {
                                "type": "integer",
                                "description": "Quantity of items",
                                "minimum": 1,
                                "example": 2
                              },
                              "countryOfManufacture": {
                                "type": "string",
                                "description": "Country where item was manufactured (ISO 3166-1 alpha-2 country code)",
                                "pattern": "^[A-Z]{2}$",
                                "minLength": 2,
                                "maxLength": 2,
                                "example": "CN"
                              },
                              "price": {
                                "type": "number",
                                "description": "Unit price of the product",
                                "minimum": 0,
                                "example": 45
                              },
                              "currency": {
                                "type": "string",
                                "description": "Currency of the price",
                                "example": "MXN"
                              }
                            }
                          }
                        },
                        "xmlData": {
                          "type": "array",
                          "description": "Fiscal document data for Brazil domestic shipments. Required when shipping with carriers that need a fiscal declaration. Supports two document types:\n\n- **`dce`** (Declaração de Conteúdo Eletrônica): For non-commercial shipments. Obtain values from `POST /dce/autorizar` (Generate DC-e). Required fields: `dceNumber`, `dceSerie`, `dceDate`, `dceKey`, `dceValue`.\n- **`nfe`** (Nota Fiscal Eletrônica): For commercial shipments with an existing NF-e. Required fields: `nfeKey`, `nfeNumber`, `nfeSerie`, `nfeDate`, `nfeValue`.\n\nIf `documentType` is not provided, it defaults to `dce`.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "documentType": {
                                "type": "string",
                                "description": "Fiscal document type. Defaults to 'dce' if not provided",
                                "enum": [
                                  "dce",
                                  "nfe"
                                ],
                                "default": "dce",
                                "example": "dce"
                              },
                              "dceNumber": {
                                "type": "string",
                                "description": "DC-e number from the Generate DC-e response. Required when documentType is 'dce'",
                                "example": "375"
                              },
                              "dceSerie": {
                                "type": "string",
                                "description": "DC-e series number from the Generate DC-e response. Required when documentType is 'dce'",
                                "example": "1"
                              },
                              "dceDate": {
                                "type": "string",
                                "format": "date-time",
                                "description": "DC-e emission date from the Generate DC-e response. Required when documentType is 'dce'",
                                "example": "2026-04-06T23:44:06-03:00"
                              },
                              "dceKey": {
                                "type": "string",
                                "description": "44-digit DC-e access key from the Generate DC-e response. Required when documentType is 'dce'",
                                "example": "35260440728044000157990010000003751103167477"
                              },
                              "dceValue": {
                                "type": "string",
                                "description": "Total DC-e value from the Generate DC-e response. Required when documentType is 'dce'",
                                "example": "50.00"
                              },
                              "nfeKey": {
                                "type": "string",
                                "description": "44-digit NF-e access key. Required when documentType is 'nfe'",
                                "example": "35260412345678000195550010000012341123456789"
                              },
                              "nfeNumber": {
                                "type": "string",
                                "description": "NF-e number. Required when documentType is 'nfe'",
                                "example": "1234"
                              },
                              "nfeSerie": {
                                "type": "string",
                                "description": "NF-e series number. Required when documentType is 'nfe'",
                                "example": "1"
                              },
                              "nfeDate": {
                                "type": "string",
                                "format": "date-time",
                                "description": "NF-e emission date. Required when documentType is 'nfe'",
                                "example": "2026-04-06T20:00:00-03:00"
                              },
                              "nfeValue": {
                                "type": "string",
                                "description": "Total NF-e value referring to the total of the merchandise. Required when documentType is 'nfe'",
                                "example": "150.00"
                              }
                            }
                          }
                        },
                        "bolComplement": {
                          "type": "array",
                          "description": "Bill of Lading complement for freight shipments (only for México)",
                          "items": {
                            "type": "object",
                            "properties": {
                              "productCode": {
                                "type": "string",
                                "description": "Product code",
                                "example": "8518.30"
                              },
                              "productDescription": {
                                "type": "string",
                                "description": "Product description",
                                "example": "Electronic components"
                              },
                              "weightUnit": {
                                "type": "string",
                                "description": "Weight unit",
                                "example": "KG"
                              },
                              "quantity": {
                                "type": "integer",
                                "description": "Quantity",
                                "minimum": 1,
                                "example": 2
                              },
                              "unitPrice": {
                                "type": "number",
                                "description": "Unit price",
                                "minimum": 0,
                                "example": 25
                              },
                              "currency": {
                                "type": "string",
                                "description": "Currency code",
                                "example": "MXN"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "settings": {
                    "type": "object",
                    "description": "Shipping settings. printFormat and printSize are required for label generation.",
                    "required": [
                      "printFormat",
                      "printSize"
                    ],
                    "properties": {
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USD",
                          "MXN",
                          "CLP",
                          "COP",
                          "INR",
                          "BRL",
                          "CAD",
                          "ARS",
                          "GTQ",
                          "EUR"
                        ],
                        "description": "Currency ISO code",
                        "example": "MXN"
                      },
                      "printFormat": {
                        "type": "string",
                        "enum": [
                          "PDF",
                          "PNG",
                          "ZPL",
                          "ZPLII",
                          "EPL"
                        ],
                        "description": "Print format for the label (required)",
                        "example": "pdf"
                      },
                      "printSize": {
                        "type": "string",
                        "enum": [
                          "PAPER_4X6",
                          "PAPER_7X4.75",
                          "STOCK_4X6",
                          "PAPER_LETTER"
                        ],
                        "description": "Print size for the label (required). Use PAPER_4X6 or STOCK_4X6 for standard labels.",
                        "example": "PAPER_7X4.75"
                      },
                      "comments": {
                        "type": "string",
                        "description": "Comments for the shipment",
                        "example": "Fragile items, handle with care"
                      }
                    }
                  },
                  "shipment": {
                    "type": "object",
                    "required": [
                      "type",
                      "carrier",
                      "service"
                    ],
                    "description": "Carrier and service from the Quote response. type: 1=parcel, 2=LTL, 3=FTL.",
                    "properties": {
                      "type": {
                        "type": "integer",
                        "enum": [
                          1,
                          2,
                          3
                        ],
                        "description": "| Type |  Service type name |\n| :-----| :--------:|\n| 1   | Parcel |\n| 2   | LTL (Consolidates charge) |\n| 3   | FTL (Full TruckLoad) |",
                        "default": 1,
                        "example": 1
                      },
                      "reverse_pickup": {
                        "type": "integer",
                        "enum": [
                          0,
                          1
                        ],
                        "description": "Indicate whether this is a return shipment",
                        "default": 0,
                        "example": 0
                      },
                      "import": {
                        "type": "integer",
                        "enum": [
                          0,
                          1
                        ],
                        "description": "Indicates whether it is an import shipment",
                        "default": 0,
                        "example": 0
                      },
                      "carrier": {
                        "type": "string",
                        "description": "Carrier name",
                        "example": "ups"
                      },
                      "service": {
                        "type": "string",
                        "description": "Service name",
                        "example": "express"
                      },
                      "declaredValue": {
                        "type": "number",
                        "description": "Declared value for the shipment",
                        "minimum": 0,
                        "example": 500
                      },
                      "additionalServices": {
                        "type": "array",
                        "description": "Additional services for the whole shipment. For parcel shipments they are applied to the first package and replace that package's `additionalServices`. Prefer `packages[].additionalServices`.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "service": {
                              "type": "string",
                              "description": "Service name",
                              "example": "envia_insurance"
                            }
                          }
                        }
                      },
                      "pickup": {
                        "type": "object",
                        "description": "Pickup information",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Pickup date",
                            "example": "2026-03-10"
                          },
                          "totalPackages": {
                            "type": "integer",
                            "description": "Total number of packages",
                            "minimum": 1,
                            "example": 5
                          },
                          "totalWeight": {
                            "type": "number",
                            "description": "Total weight",
                            "minimum": 0.01,
                            "example": 12.5
                          }
                        }
                      },
                      "orderReference": {
                        "type": "string",
                        "description": "Order number or reference (if from an ecommerce site)",
                        "example": "ORD-2026-5678"
                      }
                    }
                  },
                  "customsSettings": {
                    "type": "object",
                    "description": "Customs settings for international shipments",
                    "properties": {
                      "dutiesPaymentEntity": {
                        "type": "string",
                        "enum": [
                          "envia_guaranteed",
                          "sender",
                          "recipient"
                        ],
                        "description": "Who pays the duties and taxes. Options: envia_guaranteed (prepaid with guaranteed amount - recommended), sender (DDP - billed after delivery), recipient (DAP - paid at delivery)",
                        "example": "receiver",
                        "default": "sender"
                      },
                      "exportReason": {
                        "type": "string",
                        "enum": [
                          "sale",
                          "gift",
                          "sample",
                          "return",
                          "other"
                        ],
                        "description": "Reason for export",
                        "example": "sale",
                        "default": "sale"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Generate international shipment (MX → US)": {
                  "summary": "Generate international shipment (MX → US)",
                  "value": {
                    "origin": {
                      "name": "oscar mx",
                      "company": "envia",
                      "email": "noreply@envia.com",
                      "phone": "8116300800",
                      "street": "av vasconcelos",
                      "number": "1400",
                      "district": "mirasierra",
                      "city": "Monterrey",
                      "state": "NL",
                      "country": "MX",
                      "postalCode": "66236",
                      "reference": ""
                    },
                    "destination": {
                      "name": "oscar",
                      "company": "empresa",
                      "email": "noreply@envia.com",
                      "phone": "8116300800",
                      "street": "St. Louis",
                      "number": "1400",
                      "district": "",
                      "city": "Greeley Square",
                      "state": "NY",
                      "country": "US",
                      "postalCode": "12345",
                      "reference": ""
                    },
                    "packages": [
                      {
                        "content": "camisetas rojas",
                        "amount": 1,
                        "type": "box",
                        "dimensions": {
                          "length": 2,
                          "width": 5,
                          "height": 5
                        },
                        "weight": 10,
                        "declaredValue": 400,
                        "weightUnit": "KG",
                        "lengthUnit": "CM",
                        "items": [
                          {
                            "description": "red shirt",
                            "productCode": "1100012",
                            "countryOfManufacture": "MX",
                            "quantity": 1,
                            "price": 1
                          },
                          {
                            "description": "white shirt",
                            "productCode": "1100012",
                            "countryOfManufacture": "MX",
                            "quantity": 1,
                            "price": 1
                          },
                          {
                            "description": "black shirt",
                            "productCode": "1100012",
                            "countryOfManufacture": "MX",
                            "quantity": 1,
                            "price": 1
                          }
                        ]
                      }
                    ],
                    "shipment": {
                      "carrier": "fedex",
                      "service": "int_express",
                      "type": 1
                    },
                    "settings": {
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6",
                      "comments": "comentarios de el envío"
                    }
                  }
                },
                "Generate international shipment - DAP (MX → ES)": {
                  "summary": "Generate international shipment - DAP (MX → ES)",
                  "value": {
                    "origin": {
                      "name": "Pedro Garcia",
                      "company": "Tendencys",
                      "email": "pedro.garcia@envia.com",
                      "phone_code": "52",
                      "phone": "8113219177",
                      "street": "Belisario dominguez",
                      "number": "2470",
                      "district": "Centro",
                      "city": "Monterrey",
                      "state": "NL",
                      "country": "MX",
                      "postalCode": "64060",
                      "reference": "Esquina con portón negro",
                      "address_id": 4346032,
                      "identificationNumber": "XAXX010101000"
                    },
                    "destination": {
                      "name": "Federico Llaguno - Madrid",
                      "company": "Company Name",
                      "email": "karine.ruby@example.com",
                      "phone_code": "ES",
                      "phone": "679223722",
                      "street": "C. del Moscatelar",
                      "number": "18",
                      "district": "",
                      "city": "Madrid",
                      "state": "M",
                      "country": "ES",
                      "postalCode": "28043 ",
                      "reference": "puerta roja",
                      "address_id": 1510003,
                      "identificationNumber": "XAXX010101000"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Camisas gema",
                        "amount": 1,
                        "name": "Camisas gema",
                        "declaredValue": 200,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        },
                        "additionalServices": [
                          {
                            "data": {
                              "amount": "600.00"
                            },
                            "service": "envia_insurance"
                          }
                        ],
                        "items": [
                          {
                            "description": "blue jeans to wear for kids made of cotton",
                            "productCode": "6204.62.3190",
                            "quantity": 1,
                            "countryOfManufacture": "MX",
                            "price": 20,
                            "currency": "USD"
                          },
                          {
                            "description": "cotton shirt L size",
                            "productCode": "6206.30.0090",
                            "quantity": 2,
                            "countryOfManufacture": "MX",
                            "price": 3,
                            "currency": "USD"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "MXN",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "dhl",
                      "service": "int_express",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    },
                    "customsSettings": {
                      "dutiesPaymentEntity": "recipient",
                      "exportReason": "sale"
                    }
                  }
                },
                "Generate international shipment - DDP (MX → ES)": {
                  "summary": "Generate international shipment - DDP (MX → ES)",
                  "value": {
                    "origin": {
                      "name": "Pedro Garcia",
                      "company": "Tendencys",
                      "email": "pedro.garcia@envia.com",
                      "phone_code": "52",
                      "phone": "8113219177",
                      "street": "Belisario dominguez",
                      "number": "2470",
                      "district": "Centro",
                      "city": "Monterrey",
                      "state": "NL",
                      "country": "MX",
                      "postalCode": "64060",
                      "reference": "Esquina con portón negro",
                      "address_id": 4346032,
                      "identificationNumber": "XAXX010101000"
                    },
                    "destination": {
                      "name": "Federico Llaguno - Madrid",
                      "company": "Company Name",
                      "email": "karine.ruby@example.com",
                      "phone_code": "ES",
                      "phone": "679223722",
                      "street": "C. del Moscatelar",
                      "number": "18",
                      "district": "",
                      "city": "Madrid",
                      "state": "M",
                      "country": "ES",
                      "postalCode": "28043 ",
                      "reference": "puerta roja",
                      "address_id": 1510003,
                      "identificationNumber": "XAXX010101000"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Camisas gema",
                        "amount": 1,
                        "name": "Camisas gema",
                        "declaredValue": 200,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        },
                        "additionalServices": [
                          {
                            "data": {
                              "amount": 100
                            },
                            "service": "envia_insurance"
                          }
                        ],
                        "items": [
                          {
                            "description": "blue jeans to wear for kids made of cotton",
                            "productCode": "6204.62.3190",
                            "quantity": 1,
                            "countryOfManufacture": "MX",
                            "price": 20,
                            "currency": "USD"
                          },
                          {
                            "description": "cotton shirt L size",
                            "productCode": "6206.30.0090",
                            "quantity": 2,
                            "countryOfManufacture": "MX",
                            "price": 3,
                            "currency": "USD"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "USD",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "dhl",
                      "service": "int_express",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    },
                    "customsSettings": {
                      "dutiesPaymentEntity": "sender",
                      "exportReason": "sale"
                    }
                  }
                },
                "Generate international shipment - Envia Guaranteed (MX → US)": {
                  "summary": "Generate international shipment - Envia Guaranteed (MX → US)",
                  "value": {
                    "origin": {
                      "name": "Carmen Garcia",
                      "company": "Montsera Collective",
                      "email": "carmen@example.com",
                      "phone_code": "52",
                      "phone": "3310391441",
                      "street": "Av Naciones Unidas",
                      "number": "5560",
                      "district": "Vallarta Universidad",
                      "city": "Zapopan",
                      "state": "JA",
                      "country": "MX",
                      "postalCode": "45110",
                      "reference": "DHL GDL",
                      "identificationNumber": "MUGK880520AL5"
                    },
                    "destination": {
                      "name": "Michelle Farmer",
                      "company": "Michelle Farmer Collaborate",
                      "email": "michelle@example.com",
                      "phone_code": "1",
                      "phone": "3478432918",
                      "street": "105 North County Road",
                      "number": "Suite 200",
                      "district": "",
                      "city": "Palm Beach",
                      "state": "FL",
                      "country": "US",
                      "postalCode": "33480",
                      "reference": ""
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Clothing",
                        "amount": 1,
                        "name": "Clothing",
                        "declaredValue": 600,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 12,
                        "dimensions": {
                          "length": 58,
                          "width": 40,
                          "height": 32
                        },
                        "items": [
                          {
                            "description": "100% cotton hand knitted maxi dress",
                            "hsCode": "6104.42",
                            "quantity": 6,
                            "countryOfManufacture": "MX",
                            "price": 75,
                            "currency": "USD"
                          },
                          {
                            "description": "100% cotton hand knitted ivory top",
                            "hsCode": "6110.20",
                            "quantity": 6,
                            "countryOfManufacture": "MX",
                            "price": 25,
                            "currency": "USD"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "USD",
                      "printFormat": "PDF",
                      "printSize": "PAPER_4X6"
                    },
                    "shipment": {
                      "carrier": "dhl",
                      "service": "int_express",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    },
                    "customsSettings": {
                      "dutiesPaymentEntity": "envia_guaranteed",
                      "exportReason": "sale"
                    }
                  }
                },
                "Generate domestic shipment (Colombia)": {
                  "summary": "Generate domestic shipment (Colombia)",
                  "value": {
                    "origin": {
                      "name": "Human Colombia",
                      "company": "comence €",
                      "email": "Dodo@gmail.com",
                      "phone_code": "CO",
                      "phone": "8117913738",
                      "street": "Carrera 50 #68-40",
                      "number": "",
                      "district": "",
                      "city": "11001000",
                      "state": "DC",
                      "country": "CO",
                      "postalCode": "11001000",
                      "reference": "",
                      "address_id": 1082340,
                      "identificationNumber": "800000090"
                    },
                    "destination": {
                      "name": "María López Sánchez",
                      "company": " Agroindustria Los Andes",
                      "email": "maria.lopez@agroandes.com",
                      "phone_code": "CO",
                      "phone": "3156549870",
                      "street": "Carrera 18 # 10-45",
                      "number": "",
                      "district": "",
                      "city": "05001000",
                      "state": "AN",
                      "country": "CO",
                      "postalCode": "05001000",
                      "reference": " Cerca del Parque de los Pies Descalzos.",
                      "address_id": 5473610,
                      "identificationNumber": " 900112233-4"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Camisas gema",
                        "amount": 1,
                        "name": "Camisas gema",
                        "declaredValue": 1400,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        }
                      }
                    ],
                    "settings": {
                      "currency": "COP",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "coordinadora",
                      "service": "ground",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    }
                  }
                },
                "Generate freight shipment - LTL (Mexico)": {
                  "summary": "Generate freight shipment - LTL (Mexico)",
                  "value": {
                    "origin": {
                      "name": "Pedro Garcia",
                      "company": "Tendencys",
                      "email": "pedro.garcia@envia.com",
                      "phone_code": "52",
                      "phone": "8113219177",
                      "street": "Belisario dominguez",
                      "number": "2470",
                      "district": "Centro",
                      "city": "Monterrey",
                      "state": "NL",
                      "country": "MX",
                      "postalCode": "64060",
                      "reference": "Esquina con portón negro",
                      "address_id": 4346032,
                      "identificationNumber": "XAXX010101000"
                    },
                    "destination": {
                      "name": "Prueba CDMX 2",
                      "company": "Company Name",
                      "email": "russel.winfield@example.com",
                      "phone_code": "MX",
                      "phone": "8671543659",
                      "street": "Centenario",
                      "number": "356",
                      "district": "Del Recreo",
                      "city": "Ciudad de México",
                      "state": "CX",
                      "country": "MX",
                      "postalCode": "02070",
                      "reference": "",
                      "address_id": 1335112,
                      "identificationNumber": "XAXX010101000"
                    },
                    "packages": [
                      {
                        "type": "pallet",
                        "content": "Pallet prueba",
                        "amount": 1,
                        "name": "Pallet",
                        "declaredValue": 0,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 100,
                        "dimensions": {
                          "length": 120,
                          "width": 120,
                          "height": 120
                        },
                        "bolComplement": [
                          {
                            "productCode": "50301601",
                            "productDescription": "Abaricoques ambercot",
                            "weightUnit": "H87",
                            "quantity": 10,
                            "unitPrice": 1000,
                            "currency": "MXN"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "MXN",
                      "printFormat": "PDF",
                      "printSize": "PAPER_7X4.75"
                    },
                    "shipment": {
                      "carrier": "tresGuerras",
                      "service": "ground",
                      "reverse_pickup": 0,
                      "type": 2,
                      "import": 0,
                      "declaredValue": 10000,
                      "additionalServices": [
                        {
                          "service": "pickup_schedule"
                        },
                        {
                          "service": "delivery_schedule"
                        }
                      ],
                      "pickup": {
                        "date": "2025-10-10",
                        "totalPackages": 1,
                        "totalWeight": 100
                      }
                    }
                  }
                },
                "Generate domestic shipment (Mexico)": {
                  "summary": "Generate domestic shipment (Mexico)",
                  "value": {
                    "origin": {
                      "name": "Juan Pérez",
                      "company": "Envia Corp",
                      "email": "juan.perez@example.com",
                      "phone_code": "52",
                      "phone": "8113219177",
                      "street": "Av. Vasconcelos",
                      "number": "1400",
                      "district": "Del Valle",
                      "city": "San Pedro Garza García",
                      "state": "NL",
                      "country": "MX",
                      "postalCode": "66220",
                      "reference": "Frente al parque",
                      "identificationNumber": "XAXX010101000"
                    },
                    "destination": {
                      "name": "María García",
                      "company": "Tienda Online SA",
                      "email": "maria.garcia@example.com",
                      "phone_code": "52",
                      "phone": "5512345678",
                      "street": "Insurgentes Sur",
                      "number": "3000",
                      "district": "Coyoacán",
                      "city": "Ciudad de México",
                      "state": "CX",
                      "country": "MX",
                      "postalCode": "04530",
                      "reference": "Edificio azul, piso 3",
                      "identificationNumber": "XAXX010101000"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Ropa y accesorios",
                        "amount": 1,
                        "name": "Paquete estándar",
                        "declaredValue": 500,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1.5,
                        "dimensions": {
                          "length": 30,
                          "width": 20,
                          "height": 15
                        }
                      }
                    ],
                    "settings": {
                      "currency": "MXN",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "fedex",
                      "service": "ground",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    }
                  }
                },
                "Generate domestic shipment - DC-e (Brazil)": {
                  "summary": "Generate domestic shipment - DC-e (Brazil)",
                  "value": {
                    "origin": {
                      "number": "58",
                      "postalCode": "80210-060",
                      "district": "Jardim Botanico",
                      "street": "Rua Brasilio Itibere",
                      "city": "Curitiba",
                      "state": "PR",
                      "name": "1002 - Jorge Loredo Test address QA",
                      "company": "QA IT",
                      "email": "test@test.com",
                      "phone": "8126967369",
                      "country": "BR",
                      "phone_code": "BR",
                      "address_id": 6050495,
                      "identificationNumber": "144.877.435-75"
                    },
                    "destination": {
                      "number": "58",
                      "postalCode": "20231030",
                      "district": "Centro",
                      "street": "Avenida Henrique Valadares",
                      "city": "Rio de Janeiro",
                      "state": "RJ",
                      "name": "Diego Brazil",
                      "company": "Envia",
                      "email": "noreply1@envia.com",
                      "phone": "7671543659",
                      "country": "BR",
                      "phone_code": "BR",
                      "address_id": 5365820,
                      "identificationNumber": "50881345920"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Accesorios",
                        "amount": 1,
                        "name": "Accesorios",
                        "declaredValue": 0,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        },
                        "items": [
                          {
                            "description": "pelota de plástico",
                            "quantity": "1",
                            "price": 100,
                            "currency": "BRL",
                            "productCode": ""
                          }
                        ],
                        "xmlData": [
                          {
                            "documentType": "dce",
                            "dceNumber": "375",
                            "dceSerie": "1",
                            "dceDate": "2026-04-06T23:44:06-03:00",
                            "dceKey": "35260440728044000157990010000003751103167477",
                            "dceValue": "50.00"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "BRL",
                      "printFormat": "ZPL",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "correios",
                      "service": "pac",
                      "reverse_pickup": 0,
                      "type": 1,
                      "import": 0
                    }
                  }
                },
                "Generate domestic shipment - NF-e (Brazil)": {
                  "summary": "Generate domestic shipment - NF-e (Brazil)",
                  "value": {
                    "origin": {
                      "number": "655",
                      "postalCode": "28073506",
                      "district": "Parque Guarus",
                      "street": "Avenida Carlos Alberto Chebabe",
                      "interior_number": "Sala 910",
                      "city": "Campos dos Goytacazes",
                      "state": "RJ",
                      "name": "KAREN LUIZA",
                      "company": "STUDIO KAREN",
                      "email": "karen@example.com",
                      "phone": "8671543659",
                      "country": "BR",
                      "phone_code": "BR",
                      "identificationNumber": "22195840000190"
                    },
                    "destination": {
                      "number": "11",
                      "postalCode": "20231030",
                      "district": "Centro",
                      "street": "Avenida Henrique Valadares",
                      "interior_number": "2",
                      "city": "Rio de Janeiro",
                      "state": "RJ",
                      "name": "Maria Silva",
                      "company": "Loja Example",
                      "email": "maria@example.com",
                      "phone": "8671543659",
                      "country": "BR",
                      "phone_code": "BR",
                      "identificationNumber": "12345678000195"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "Produtos comerciais",
                        "amount": 1,
                        "declaredValue": 150,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 5,
                        "dimensions": {
                          "length": 20,
                          "width": 15,
                          "height": 10
                        },
                        "items": [
                          {
                            "description": "Camisetas",
                            "quantity": "3",
                            "price": 50,
                            "currency": "BRL",
                            "productCode": ""
                          }
                        ],
                        "xmlData": [
                          {
                            "documentType": "nfe",
                            "nfeKey": "35260412345678000195550010000012341123456789",
                            "nfeNumber": "1234",
                            "nfeSerie": "1",
                            "nfeDate": "2026-04-06T20:00:00-03:00",
                            "nfeValue": "150.00"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "BRL",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "carrier": "buslog",
                      "service": "pickup",
                      "reverse_pickup": 0,
                      "type": 1
                    }
                  }
                },
                "Generate domestic shipment with branches (Argentina)": {
                  "summary": "Generate domestic shipment with branches (Argentina)",
                  "value": {
                    "origin": {
                      "number": "100",
                      "postalCode": "1234",
                      "street": "Calle 25 de Mayo",
                      "city": "Buenos Aires",
                      "state": "DF",
                      "name": "Test Envia",
                      "company": "Envia Test",
                      "email": "pruebas@envia.com",
                      "phone": "8671543659",
                      "country": "AR",
                      "phone_code": "AR",
                      "category": 1
                    },
                    "destination": {
                      "number": "1543",
                      "postalCode": "9410",
                      "street": "Av. San Martín",
                      "city": "Ushuaia",
                      "state": "TF",
                      "name": "Daniel Proa",
                      "company": "Prueba",
                      "email": "prueba@gmail.com",
                      "phone": "112629339",
                      "country": "AR",
                      "phone_code": "AR",
                      "address_id": 4780287,
                      "locality": "Ushuaia",
                      "admission": true,
                      "branchCode": "10032",
                      "category": 1
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "zapatos",
                        "amount": 1,
                        "name": "zapatos",
                        "declaredValue": 0,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        },
                        "additionalServices": [
                          {
                            "data": {
                              "amount": 5500
                            },
                            "service": "envia_insurance"
                          }
                        ]
                      }
                    ],
                    "settings": {
                      "currency": "ARS",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "type": 1,
                      "reverse_pickup": 0,
                      "import": 0,
                      "carrier": "andreani",
                      "service": "sucursal"
                    }
                  }
                },
                "Generate domestic shipment (India)": {
                  "summary": "Generate domestic shipment (India)",
                  "value": {
                    "origin": {
                      "name": "John Doe",
                      "company": "Books & More Pvt Ltd",
                      "email": "john.doe@booksandmore.in",
                      "phone": "9319194636",
                      "street": "3rd floor, lane no. 3, D 83/4",
                      "number": "",
                      "district": "",
                      "city": "South Delhi",
                      "state": "DL",
                      "country": "IN",
                      "postalCode": "110025",
                      "phone_code": "IN",
                      "reference": "",
                      "category": 1
                    },
                    "destination": {
                      "name": "Jane Smith",
                      "company": "",
                      "email": "",
                      "phone": "9416032900",
                      "street": "144, Subash Nagar",
                      "number": "",
                      "district": "",
                      "city": "Baran",
                      "state": "RJ",
                      "country": "IN",
                      "postalCode": "325217",
                      "phone_code": "IN",
                      "reference": "",
                      "category": 1
                    },
                    "packages": [
                      {
                        "content": "Books",
                        "amount": 1,
                        "type": "box",
                        "weight": 0.5,
                        "declaredValue": 500,
                        "weightUnit": "KG",
                        "lengthUnit": "CM",
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        }
                      }
                    ],
                    "settings": {
                      "currency": "INR",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "type": 1,
                      "reverse_pickup": 0,
                      "import": 0,
                      "carrier": "delhivery",
                      "service": "surface"
                    }
                  }
                },
                "Generate domestic shipment (Argentina)": {
                  "summary": "Generate domestic shipment (Argentina)",
                  "value": {
                    "origin": {
                      "name": "Tancat SAS",
                      "company": "Tancat SAS",
                      "email": "pruebas@envia.com",
                      "phone": "3511234567",
                      "street": "Jacinto Rios",
                      "number": "232",
                      "city": "Córdoba",
                      "state": "CB",
                      "country": "AR",
                      "postalCode": "5000",
                      "phone_code": "AR"
                    },
                    "destination": {
                      "name": "María López",
                      "company": "Destino Test",
                      "email": "destino@email.com",
                      "phone": "1112345678",
                      "street": "Bedoya",
                      "number": "198",
                      "district": "Almagro",
                      "city": "Buenos Aires",
                      "state": "DF",
                      "country": "AR",
                      "postalCode": "1001",
                      "phone_code": "AR"
                    },
                    "packages": [
                      {
                        "type": "box",
                        "content": "ropa",
                        "amount": 1,
                        "declaredValue": 0,
                        "lengthUnit": "CM",
                        "weightUnit": "KG",
                        "weight": 1,
                        "dimensions": {
                          "length": 10,
                          "width": 10,
                          "height": 10
                        }
                      }
                    ],
                    "settings": {
                      "currency": "ARS",
                      "printFormat": "PDF",
                      "printSize": "STOCK_4X6"
                    },
                    "shipment": {
                      "type": 1,
                      "carrier": "correoArgentino",
                      "service": "standard_dom"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Label created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "string",
                      "default": "generate",
                      "description": "Action name"
                    },
                    "data": {
                      "type": "array",
                      "description": "Generated labels",
                      "items": {
                        "type": "object",
                        "properties": {
                          "carrier": {
                            "type": "string",
                            "description": "Carrier name"
                          },
                          "service": {
                            "type": "string",
                            "description": "Service name"
                          },
                          "shipmentId": {
                            "type": "integer",
                            "description": "Shipment identification number"
                          },
                          "trackingNumber": {
                            "type": "string",
                            "description": "Tracking number"
                          },
                          "trackUrl": {
                            "type": "string",
                            "description": "Tracking URL"
                          },
                          "label": {
                            "type": "string",
                            "description": "Label URL"
                          },
                          "additionalFiles": {
                            "type": "array",
                            "description": "URLs of extra documents created with the label, such as the Envia Insurance voucher PDF (when `envia_insurance` was purchased) and the carrier's commercial invoice (FedEx and DHL Express international shipments).",
                            "items": {
                              "type": "string"
                            }
                          },
                          "totalPrice": {
                            "type": "number",
                            "description": "Total price",
                            "format": "double"
                          },
                          "currentBalance": {
                            "type": "number",
                            "description": "Current account balance",
                            "format": "double"
                          },
                          "currency": {
                            "type": "string",
                            "description": "Currency code"
                          },
                          "packages": {
                            "type": "array",
                            "items": {
                              "properties": {
                                "trackingNumber": {
                                  "type": "string",
                                  "description": "Tracking number of the package"
                                },
                                "trackUrl": {
                                  "type": "string",
                                  "description": "Tracking URL"
                                },
                                "content": {
                                  "type": "string",
                                  "description": "Content name of the package"
                                },
                                "weight": {
                                  "type": "number",
                                  "format": "double",
                                  "description": "Weight of the package"
                                },
                                "weightUnit": {
                                  "type": "string",
                                  "description": "Weight unit of the package"
                                }
                              },
                              "type": "object"
                            },
                            "description": "Packages linked to the shipment"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```