Для AI-агентов: markdown этой страницы — /docs/api-cart.mdиндекс документации — /llms.txt
REST: cart
Обновлено
Выберите операцию: полный контракт доступен по ссылке. Scopes: ALL; auth alternatives: OR.
createCart
POST /api/v1/carts — createCart
Scopes (ALL): ["orders"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].
getCart
GET /api/v1/carts/{code} — getCart
Scopes (ALL): ["orders"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].
checkoutCart
POST /api/v1/carts/{code}/checkout — checkoutCart
Scopes (ALL): ["orders:write"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].
addCartItem
POST /api/v1/carts/{code}/items — addCartItem
Scopes (ALL): ["orders"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].
deleteCartItem
DELETE /api/v1/carts/{code}/items/{line_no} — deleteCartItem
Scopes (ALL): ["orders"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].
patchCartItem
PATCH /api/v1/carts/{code}/items/{line_no} — patchCartItem
Scopes (ALL): ["orders"]. Auth (OR): [{"hubApiKey":[]},{"hubBearer":[]}].