---
title: "Create or update freight values"
method: POST
path: "/api/logistics/pvt/configuration/freights/{carrierId}/values/update"
tags: ["Freight values"]
---

# Create or update freight values

`POST /api/logistics/pvt/configuration/freights/{carrierId}/values/update`

Creates or updates freight values for your store's carriers. Learn more in [Shipping rate template](https://help.vtex.com/en/tutorial/shipping-rate-template--tutorials_127).

## Permissions

Any user or [API key](https://developers.vtex.com/docs/guides/api-authentication-using-api-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:

| **Product** | **Category** | **Resource** |
| --------------- | ----------------- | ----------------- |
| Logistics | Logistics access | **Logistics full access** |
| Logistics | Logistics access | **Logistics shipping full access** |

You can [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) with that resource or use one of the following [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy):

| **Role** | **Resource** | 
| --------------- | ----------------- | 
| Logistics - Full access | Logistics full access |
| OMS - Full access | Logistics full access |
| Logistics - Full access | Logistics shipping full access |
| OMS - Full access | Logistics shipping full access |

>❗ Assigning a [predefined role](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) to users or application keys usually grants permission to multiple [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3). If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see [Best practices for using application keys](https://help.vtex.com/en/tutorial/best-practices-api-keys--7b6nD1VMHa49aI5brlOvJm). To learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication).

## Path parameters

- `carrierId` string, required

## Headers

- `Content-Type` string, required
- `Accept` string, required

## Request body

- object[] — Array of objects, each containing information on a specific freight interval.
  - `absoluteMoneyCost` string, required — Fixed shipping cost to be charged in a decimal number.
  - `country` string, required — Three letter ISO code for the country where the delivery will take place.
  - `maxVolume` integer, required — Maximum volume that can be transported by the carrier in cm³.
  - `operationType` integer, required — Indicates desired action for the object. Possible values are `1` (Insert), `2` (Update) or `3`(Delete).
  - `pricePercent` integer, required — [Price-based additional shipping charge](https://help.vtex.com/en/tutorial/additional-shipping-costs--2vqGwMn0LabkOHY6zSHYNV), calculated based on the total price of the order, in decimal number. You must fill in this field with a percentage value. For example, for an additional charge of 10%, fill in the table with 10.
  - `pricePercentByWeight` integer, required — [Weight-based additional shipping charge](https://help.vtex.com/en/tutorial/additional-shipping-costs--2vqGwMn0LabkOHY6zSHYNV), calculated based on the total weight of the order.
  - `timeCost` string, required — Delivery time frame informed by the carrier, in the format `DD.HH:MM:SS`.
  - `weightEnd` integer, required — Maximum weight allowed.
  - `weightStart` integer, required — Minimum weight allowed.
  - `zipCodeEnd` string, required — End of postal code interval.
  - `zipCodeStart` string, required — Start of postal code interval.
  - `polygon` string, required — Polygon ID, according to the [geolocation](https://help.vtex.com/en/tutorial/registering-geolocation/) feature.

## Response `200`

OK

---

[API](https://skmtc.dev/vtex/apis/logistics-api.md) · [All operations](https://skmtc.dev/vtex/apis/logistics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vtex/logistics-api/revisions/b8c8c6ef0b8a/schema)
