> For the complete documentation index, see [llms.txt](https://docs.merchant.alb.ua/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.merchant.alb.ua/rekomendaciyi-shodo-roboti-z-parametrami-zapitiv.md).

# Рекомендації щодо роботи з параметрами запитів

**Важливо:**\
Якщо параметр **не є обов'язковим**, рекомендується **не передавати його** у запиті взагалі. У разі передачі необов'язкового параметра система автоматично застосовує до нього валідацію, зокрема:

* Перевірку на відсутність значення (`null`);
* Відповідність специфікації (формат, тип даних, діапазон значень тощо).

**Наслідки:**\
Якщо клієнт передає необов'язковий параметр зі значенням `null` або у невірному форматі, система поверне помилку валідації, що може призвести до відмови обробки запиту.

**Рекомендації для клієнтів:**

1. Уважно перевіряйте передавані параметри, звертаючи увагу на:
   * Обов'язковість параметра (позначено у документації як ***обов'язкові*** або ***не обов'язкові***);
   * Очікуваний тип даних та формат (наприклад, `string`, `ISO 8601 timestamp`).
2. Для необов'язкових параметрів:
   * Пропускайте параметр у запиті, якщо він не використовується;
   * Уникайте передачі явних `null` або порожніх значень.


---

# 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:

```
GET https://docs.merchant.alb.ua/rekomendaciyi-shodo-roboti-z-parametrami-zapitiv.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.
