---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/pushapi/concepts/identification.md
  - https://yandex.com/dev/market/partner-api/doc/ru/pushapi/concepts/identification.md
  - https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/identification.md
  - href: zh/pushapi/concepts/identification.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/market/partner-api/doc/zh/llms.txt


{% note warning "从12月31日开始，push API方法将不可用。 从10月1日开始，它们可能不稳定。" %}

 

{% endnote %}
 
# Yandex的授权。市场对商店的要求

商店必须能够识别来自市场的请求，以便将其与未经授权的第三方请求区分开来。 为了授权市场，使用授权令牌，该授权令牌通过以下方式与每个请求一起传输 URL-参数或HTTP标头（取决于市场上商家帐户中的设置）。

**例子：:**

- 在参数中 URL:

    ```no-highlight translate=no
    POST https://<host>/<path_to_market_api>/order/accept?auth-token=41FBAC4A763D480999DAEDAC09B36CBB200000016A894A28
    ```

- 在HTTP头中 `Authorization`:

    ```no-highlight translate=no
    Authorization: 41FBAC4A763D480999DAEDAC09B36CBB200000016A894A28
    ```

商店必须将转移的令牌与之前在市场上卖家帐户中生成的令牌进行比较。 如果尝试传输不正确的令牌或丢失令牌，则商店必须返回错误。 `403 Forbidden`.

## 获取令牌 {#token}

授权令牌可以在市场上的商家帐户中生成 — 点击您的帐户图标→ **设置** 在左边的菜单中，选择 **Api和模块** →标签 **推API**.

{% note warning "生成后立即保存令牌" %}

令牌在机柜中显示一次 — 生成后立即。 如果它丢失了，你需要生成一个新的。

{% endnote %}

燕基科斯.Market不保证请求将来自特定的IP地址或一组IP地址。 由于授权令牌是在来自市场的所有请求中传递的，为了简化API方法的描述，示例中没有指定此参数。

## 它可能是有用的 {#read-more}

* [请求方法](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/request-method.md)
* [SSL证书](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/ssl-certificate.md)
