> For the complete documentation index, see [llms.txt](https://guide.digicust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.digicust.com/features/data-enrichment-and-customs-coding/document-type-codes.md).

# Document Type Codes

Automatic document type code assignment is a powerful feature of Dexter that enables businesses to automate the assignment of document type codes to line items based on the documents processed, preference state, and country of origin. This feature saves valuable time and resources by eliminating the need for manual input and ensures compliance with customs regulations.

In addition, document type codes can be assigned in the material master data module to automate special documents, further streamlining the process of document management. With Dexter's highly customizable data extraction feature, businesses can trigger relevant computations depending on the document type code, without the need for manual input from the user.

For example, if the preference state is true, Dexter would automatically add the waybill as proof of direct transport with its extracted date and reference. This ensures compliance with customs regulations and avoids potential fines or penalties.

By automating the process of assigning document type codes, businesses can provide accurate and complete information to customs officials, avoid potential delays or complications, and focus on more value-adding tasks. This feature also provides businesses with greater control over their supply chain and enables them to make more informed decisions regarding their import and export operations.

Overall, Dexter's automatic document type code assignment feature is a vital tool that enables businesses to streamline their operations, save time and resources, and ensure compliance with customs regulations. By automating the process of assigning document type codes, businesses can avoid potential fines or penalties, and focus on more value-adding tasks.

<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://guide.digicust.com/features/data-enrichment-and-customs-coding/document-type-codes.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.
