Для AI-агентов: markdown этой страницы — /docs/api-op-linkorderuser.md · индекс документации — /llms.txt
linkOrderUser
Обновлено
POST /api/v1/orders/{id}/link-user
linkOrderUser
#Авторизация и права
Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.
| Поле | Значение |
|---|
| security.0.hubApiKey | [] |
| security.1.hubBearer | [] |
| securitySchemes.hubApiKey.in | "header" |
| securitySchemes.hubApiKey.name | "X-Api-Key" |
| securitySchemes.hubApiKey.type | "apiKey" |
| securitySchemes.hubBearer.scheme | "bearer" |
| securitySchemes.hubBearer.type | "http" |
| x-required-scopes | ["orders"] |
#Параметры запроса
| Поле | Значение |
|---|
| 0.description | "Required for nonempty POST bodies; optional for an empty refresh body." |
| 0.in | "header" |
| 0.name | "Idempotency-Key" |
| 0.required | true |
| 0.schema | 0.schema |
| 1.in | "path" |
| 1.name | "id" |
| 1.required | true |
| 1.schema | 1.schema |
#Тело запроса
#Ответы
| Поле | Значение |
|---|
| 201.content.application/json.schema | CreateOrderResponse |
| 201.description | "Link anonymous order to user" |
#Ошибки
| Поле | Значение |
|---|
| 400.content.application/problem+json.schema | ProblemDetails |
| 400.description | "Malformed request or a missing Idempotency-Key header" |
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "Missing or invalid API key" |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "The caller lacks the orders scope or tenant access" |
| 404.content.application/problem+json.schema | ProblemDetails |
| 404.description | "Order or user was not found for this tenant" |
| 409.content.application/problem+json.schema | ProblemDetails |
| 409.description | "The order cannot be linked or request is already in progress" |
| 422.content.application/problem+json.schema | ProblemDetails |
| 422.description | "The requested user cannot be linked to this order" |
#Дополнительные условия
| Поле | Значение |
|---|
| operationId | "linkOrderUser" |
| tags | ["orders"] |
| x-idempotency | "http-cache" |