> For the complete documentation index, see [llms.txt](https://docs4.simutek.se/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs4.simutek.se/distribution/fraktfavoriter.md).

# Fraktfavoriter

Fraktfavoriter används för att snabbt fylla i vanliga transportinställningar vid skapande av sändningar.

En fraktfavorit ger värden för följande fält:

* Befraktare
* Tjänst
* Antal kolli
* Kollislag

Fraktfavoriter kan väljas manuellt i GKS eller skickas in automatiskt via API.

## Skapa fraktfavorit

Gör så här för att skapa en fraktfavorit:

1. Gå till **Distribution > Fraktfavoriter**
2. Klicka på **Ny favorit**
3. Ange en alfanumerisk kod i det översta fältet, till exempel `DHL001`

Koden används för att identifiera fraktfavoriten och kan även skickas via API.

4. Fyll i övriga fält
5. Spara

## Använda fraktfavorit vid skapande av sändning

Markera de leveransadresser som ska skickas och klicka på **Skapa sändning**.

### Om fraktfavorit angavs via API

Följande fält fylls i automatiskt:

* Befraktare
* Tjänst
* Antal kolli
* Kollislag

{% hint style="warning" %}
Om flera leveransadresser med olika fraktfavoriter väljs samtidigt kommer en av fraktfavoriterna att användas.
{% endhint %}

### Om fraktfavorit inte angavs via API

Klicka på favoritikonen och välj önskad fraktfavorit.

Följande fält fylls då i automatiskt:

* Befraktare
* Tjänst
* Antal kolli
* Kollislag

## Skicka med fraktfavorit via API

Fältet heter `shipmentFavoriteCode` och finns beskrivet under `Allotment` i Public [API](/api.md).

Ange koden för den fraktfavorit som ska användas för respektive leverans.

Nedan visas ett utdrag var fraktfavorit sätts:

```json
"allotments": [
        {
          "qtyToShip": 1500,
          "shipTo": {
            "recipientName": "Company AB",
            "address": { ... },
            // etc...
          },
          "shipmentFavoriteCode": "DHL001"
        }
```

&#x20;<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs4.simutek.se/distribution/fraktfavoriter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
