Документация / Как начать / Работа с MCP / Идентификаторы и страницы результатов / REST: cart / checkoutCart Для AI-агентов: markdown этой страницы — /docs/api-op-checkoutcart.md · индекс документации — /llms.txt
checkoutCart Обновлено 20 ноября 2026 г.
POST /api/v1/carts/{code}/checkout
checkoutCart
# Авторизация и права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:write"]
# Параметры запросаПоле Значение 0.in "path" 0.name "code" 0.required true 0.schema 0.schema 1.in "header" 1.name "If-Match" 1.required true 1.schema 1.schema 2.in "header" 2.name "Idempotency-Key" 2.required true 2.schema 2.schema
# Тело запроса# ОтветыПоле Значение 201.content.application/json.schema CartCheckoutHandoff 201.description "The tenant checkout page for this composition; its one-time address stops opening at expires_at"
# ОшибкиПоле Значение 400.content.application/problem+json.schema ProblemDetails 400.description "Cart checkout header is malformed or the request grammar is invalid" 400.x-error-codes ["IDEMPOTENCY_KEY_REQUIRED","MALFORMED_IF_MATCH","VALIDATION_ERROR"] 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 or the named buyer is unknown in this business" 409.content.application/problem+json.schema ProblemDetails 409.description "Cart is inactive" 409.x-error-codes ["CART_INACTIVE"] 412.content.application/problem+json.schema ProblemDetails 412.description "If-Match does not match the current Cart revision" 412.headers.ETag.description "Strong Cart composition validator" 412.headers.ETag.required true 412.headers.ETag.schema 412.headers.ETag.schema 422.content.application/problem+json.schema ProblemDetails 422.description "Cart has no lines to hand over" 422.x-error-codes ["ITEMS_REQUIRED"] 428.content.application/problem+json.schema ProblemDetails 428.description "If-Match is required" 428.x-error-codes ["ETAG_REQUIRED"]
# Дополнительные условияПоле Значение description "Checkout Handoff (§17.5): hands the Cart composition at If-Match to the tenant checkout. No order is made here and no total is accepted from the caller; the buyer signs in and confirms on the returned page, and the result arrives through the order.* webhooks." operationId "checkoutCart" tags ["Carts"] x-idempotency "generic-cache"