---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/eda-vendor/doc/en/collections.md
  - https://yandex.com/dev/eda-vendor/doc/ru/collections.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/eda-vendor/doc/en/llms.txt

# Postman-Collections for Partners

Download the collection and import them into [Postman](https://www.postman.com/) to test the API.



* [Restaurant collection](https://yastatic.net/s3/doc-binary/src/dev/eda-vendor/Rest_collection_EN.postman_collection)

{% cut "Instructions for collections" %}

#### Query structure

There are several folders in the Collections section inside the main root folder:
* `Menu` – requests for menu parsing:
   1. `Menu` - method for obtaining menu/items.
   2. `Stocks` – methods for obtaining menu items that are currently unavailable for ordering.
   3. `Promo` – methods of obtaining promotional items in conjunction with the menu.

* `Orders` – ordering methods:
   1. `POST /order` – method for sending an order.
   2. `GET /order/{order_id}` – method for providing up-to-date information about the order.
   3. `DELETE /order/{order_id}` – method for order cancellation in the restaurant system (by Yandex).
   4. `PUT /order/{order_id}`– method for updating the order in the restaurant system.
   5. `GET /order/{order_id}/status` – method for providing the current order status in the restaurant system.

* Method for getting a list of partner restaurants `GET /restaurants`.
* Method for providing the authorization token `POST /security/oauth/token`.

#### Checking test results

These are pre-written scripts that automatically execute tests to identify potential errors in the system.
After executing the request, the test results are displayed in the block `Response` -> `Tests Results`

{% cut "Test results" %}

* `Content-Type is present and correct value` – correct Content Type header in the response.

* `Validate JSON schema` – response schema matches the expected specification.

* `Date in lastChange is present in correct format` – the lastChange parameter conforms to the RFC3339 format, including fractional seconds, and matches a specific regular expression.

* `The price should not be <= 0` – the product price must have a non-zero value.

* `mxikCodeUz is exactly 17 symbols long | AssertionError: expected +0 to equal 54` – valid mxik-codes (for UZ only).

* `The measureUnit one of [г, мл, g, ml]` – unit of measurement corresponds to permissible values (specifically grams and milliliters).

* `Id in items are unique` - all of items IDs in menu are unique.

* `"categoryId": null`- in this case the IDs of specific categories will be output to the console.

* `All categoryId of items exist in categories id ` – all category IDs referenced by items are stored in an array of categories.

* `Images links lead to picture` – all image links or references contain valid or acceptable resolutions.

* `Response timeout is within acceptable range` - response time is within the acceptable range.

* `PASS /FAIL` – status of test passing, which indicates whether a test has been completed successfully or not.

{% endcut %}

{% endcut %}
