Публичный API
Начните без регистрации
Каталог доступен обычным GET-запросом. Токен, аккаунт и согласие покупателя для чтения не нужны.
GET https://vesremont.com/api/v1/products?per_page=1Необязательная anonymous-регистрация
Для клиентов, которым нужен credential, доступна регистрация типа anonymous. Она выдаёт только catalog:read, не создаёт покупателя и не может быть повышена до доступа к корзине.
Шаблон регистрации и metadata
{
"identity_types_supported": [
"anonymous"
],
"registration_request": {
"type": "anonymous"
},
"pre_claim_scopes": [
"catalog:read"
],
"token_endpoint": "https://vesremont.com/oauth/token",
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"resource": "https://vesremont.com/api/v1",
"claim_supported": false,
"first_call": "https://vesremont.com/api/v1/products?per_page=1",
"sandbox_endpoint": "https://vesremont.com/oauth/sandbox",
"onboarding": {
"documentation": "https://vesremont.com/auth.md",
"pricing": "https://vesremont.com/pricing.md",
"public_access": {
"authentication": "none",
"requires_registration": false,
"requires_user_consent": false,
"first_call": {
"method": "GET",
"url": "https://vesremont.com/api/v1/products?per_page=1"
},
"price": {
"amount": 0,
"currency": "RUB"
}
},
"sandbox": {
"endpoint": "https://vesremont.com/oauth/sandbox",
"method": "GET",
"authentication": "none",
"synthetic": true,
"read_only": true,
"orders_supported": false,
"representations": [
"application/json",
"text/html",
"text/markdown"
]
},
"buyer_access": {
"authentication": "oauth2",
"requires_user_consent": true,
"order_confirmation_required": true,
"protected_resource_probe": {
"method": "GET",
"url": "https://vesremont.com/api/v1/cart",
"without_token_status": 401,
"resource_metadata": "https://vesremont.com/.well-known/oauth-protected-resource/api/v1"
},
"mcp_protected_tool": {
"endpoint": "https://vesremont.com/mcp",
"method": "tools/call",
"params": {
"name": "get_cart",
"arguments": {}
},
"scope": "cart:read",
"without_token_status": 401,
"resource_metadata": "https://vesremont.com/.well-known/oauth-protected-resource/mcp"
}
}
},
"buyer_access": "Separate CIMD/PKCE browser consent; anonymous identities cannot be upgraded or claimed."
}Для корзины и заказов используется отдельное разрешение покупателя. Заказ подтверждается отдельно на сайте.
Полная инструкция авторизации