Для AI-агентов: markdown этой страницы — /docs/api-op-getcart.md · индекс документации — /llms.txt
getCart
Обновлено
GET /api/v1/carts/{code}
getCart
#Авторизация и права
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.in | "path" |
| 0.name | "code" |
| 0.required | true |
| 0.schema | 0.schema |
#Тело запроса
| Поле | Значение |
|---|
| Тело запроса | null |
#Ответы
| Поле | Значение |
|---|
| 200.content.application/json.schema | CartProjection |
| 200.description | "Current live Cart projection; never includes a signed quote" |
| 200.headers.ETag.description | "Strong Cart composition validator" |
| 200.headers.ETag.required | true |
| 200.headers.ETag.schema | 200.headers.ETag.schema |
#Ошибки
| Поле | Значение |
|---|
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "Missing, invalid, revoked, or expired Hub credential" |
| 401.x-error-codes | ["INVALID_API_KEY","INVALID_JWT"] |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "The authenticated credential lacks the required Cart operation scope" |
| 403.x-error-codes | ["INSUFFICIENT_SCOPE"] |
| 404.content.application/problem+json.schema | ProblemDetails |
| 404.description | "Cart is unknown or belongs to a different tenant" |
#Дополнительные условия
| Поле | Значение |
|---|
| operationId | "getCart" |
| tags | ["Carts"] |
| x-idempotency | "none" |