# Creating packages

If you need to have packages in requests we send to you, you can define them in the Packages section. You can then use packaging variables in the requests to get the package the merchant chooses.

## Create a package <a href="#h_d6d37fe313" id="h_d6d37fe313"></a>

1. Go to the App Setup page

   [![](https://downloads.intercomcdn.com/i/o/688853206/4a3c7730b2fb8a4a54a2275c/image.png?expires=1725953400\&signature=0e3e2717ac4e7247e38101af67bf7fc2babf516460fd8a8d5fa6c58924001af4\&req=cigvHsx9n4FZFb4f3HP0gMiE4XpBA0D%2FW3TmwlB00W8uU%2FPkxJ7YsGSHrytp%0AVMw%3D%0A)](https://downloads.intercomcdn.com/i/o/688853206/4a3c7730b2fb8a4a54a2275c/image.png?expires=1725953400\&signature=0e3e2717ac4e7247e38101af67bf7fc2babf516460fd8a8d5fa6c58924001af4\&req=cigvHsx9n4FZFb4f3HP0gMiE4XpBA0D%2FW3TmwlB00W8uU%2FPkxJ7YsGSHrytp%0AVMw%3D%0A)
2. Click Add package\
   ​

   [![](https://downloads.intercomcdn.com/i/o/688853701/aa89c18992d4473e37463973/image.png?expires=1725953400\&signature=196ccd3da4940140a848cfe02b7b64be384a922fbd25e5d3ca3370ded46fcc15\&req=cigvHsx9moFeFb4f3HP0gJA%2Bloz%2Fxq9s5L2REFx3GgEohc3IlnzYX3%2Bixl1e%0AwEA%3D%0A)](https://downloads.intercomcdn.com/i/o/688853701/aa89c18992d4473e37463973/image.png?expires=1725953400\&signature=196ccd3da4940140a848cfe02b7b64be384a922fbd25e5d3ca3370ded46fcc15\&req=cigvHsx9moFeFb4f3HP0gJA%2Bloz%2Fxq9s5L2REFx3GgEohc3IlnzYX3%2Bixl1e%0AwEA%3D%0A)
3. Enter a package name that the merchants will see in the Name field
4. Enter the internal name for this package in Courier name
5. Enter the length, width, height, and the measurement unit
6. Choose whether you want to set that package as the default
7. Click Add Package\
   ​

   [![](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525543715/95d7c97b285824e8a84ea17a/z4e_1Yda--VmaUKa3rGt9-PKdtBOW-wz2A.PNG-1619967421?expires=1725953400\&signature=ea42885cc114889122690815923aeb1a0a59155f73a5a084b369c02beb6c8998\&req=cSIiE819moBaFb4f3HP0gBxvw%2FOv%2BzIzyq47p0Q9k413hpeMgtIlbibsx1qs%0ALNs%3D%0A)](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525543715/95d7c97b285824e8a84ea17a/z4e_1Yda--VmaUKa3rGt9-PKdtBOW-wz2A.PNG-1619967421?expires=1725953400\&signature=ea42885cc114889122690815923aeb1a0a59155f73a5a084b369c02beb6c8998\&req=cSIiE819moBaFb4f3HP0gBxvw%2FOv%2BzIzyq47p0Q9k413hpeMgtIlbibsx1qs%0ALNs%3D%0A)
8. Save changes at the top of the page

## Merchant perspective <a href="#h_988d6556cf" id="h_988d6556cf"></a>

When you define packages, a merchant will see them on the integration page. They will be able to

* Select their default package
* Set the weight threshold for each package

[![](https://downloads.intercomcdn.com/i/o/688855082/f42b9ac85997bc3d4a6fd894/image.png?expires=1725953400\&signature=fd9e00057e5f6e54f450f6875c0cec51607134ba494ce9549a1369c535e45f9c\&req=cigvHsx7nYldFb4f3HP0gKKkAU%2BCh3mJx%2FevD%2FhlxQw%2F6P%2FZlFgpU%2FMzUNue%0Ax5XyxFPQ183BsCXpxQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/688855082/f42b9ac85997bc3d4a6fd894/image.png?expires=1725953400\&signature=fd9e00057e5f6e54f450f6875c0cec51607134ba494ce9549a1369c535e45f9c\&req=cigvHsx7nYldFb4f3HP0gKKkAU%2BCh3mJx%2FevD%2FhlxQw%2F6P%2FZlFgpU%2FMzUNue%0Ax5XyxFPQ183BsCXpxQ%3D%3D%0A)

## Variables <a href="#h_16c25dda81" id="h_16c25dda81"></a>

Please take a look at our [packaging variables](https://partners.zapiet.com/docs/last-mile/allowed-variables) in the variable guide. You can then reference them in requests like any other variable. For example, ####{{ package.length }}

Now it’s time to start creating requests—first one is the rate estimate.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zapiet.com/last-mile-api/creating-packages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
