---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/pushapi/concepts/request-method.md
  - https://yandex.com/dev/market/partner-api/doc/ru/pushapi/concepts/request-method.md
  - https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/request-method.md
  - href: zh/pushapi/concepts/request-method.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的请求。市场以以下格式通过HTTPS传输:

```no-highlight translate=no
<method_type> https://<host>/<path_to_market_api>/<resource>
```
哪里:

- `<method_type>` -取决于资源。

- `<host>` -商店的域名。

- `<path_to_market_api>` -通往 Yandex Market API 在您的服务器上;

- `<resource>` -正在执行操作的资源的名称。


随着每一个请求，市场传递 [授权令牌](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/identification.md) 通过 URL-参数或HTTP标头。

如果发生错误，商店必须停止处理请求并返回错误消息。 错误列表及其描述在部分中给出 [错误消息](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/inform-on-errors.md).


## URL-地址 {#url-address}

建议商店指定基地 URL 例如: `https://shop.ru/market/api`. 对于这样的例子，请求 [POST order/accept](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/reference/orderAccept.md) 会来 URL `https://shop.ru/market/api/order/accept`.

建议网店指定各种 URL 对于不同的商店，并以这样的方式，通过 URL 例如，可以确定调用要去哪个存储:


- `https://shop-network.ru/market/api/Moscow`;

- `https://shop-network.ru/market/api/Ekaterinburg`;

- `https://shop-network.ru/market/api/St-Petersburg`.


这种区分有助于在商店网络内正确实现API逻辑。


## 超时时间 {#timeout}

联系商店时，市场使用超时连接并接收响应。 如果商店在指定的超时时间内没有时间响应请求，市场将向商店提供错误响应。 连接超时为1秒，响应超时取决于资源，并在相应的资源页面上指示。

## 了解更多 {#read-more}

[请求和响应数据格式](https://yandex.com/dev/market/partner-api/doc/zh/pushapi/concepts/data-format.md)
