Appearance
Update phone
PUT
/vendor/me/phones/{id}
Обновление телефона (все поля опциональны). При установке is_primary=true флаг снимается с остальных.
Authorizations
sessionCookie
PHP session cookie (HTTP-only, Secure, SameSite=Lax)
Type
API Key (cookie: PARTIZAP_SESSION)
csrfToken
CSRF token from CSRF_TOKEN cookie. Required on POST/PUT/PATCH/DELETE for
endpoints declaring csrfToken in their security block. Unauthenticated
session-establishment endpoints (login, register, forgot-password,
reset-password, validate-reset-token, admin login, admin TOTP verify) are
exempt — they declare security: [] and accept POST without a CSRF token.
Type
API Key (header: X-CSRF-TOKEN)
Parameters
Path Parameters
id*
Phone ID
Type
Requiredinteger
Request Body
application/json
JSON "phone": "string", "label": "string", "is_primary": true, "sort_order": 0
{
}
Responses
Phone updated
application/json
JSON "data": { "id": 0, "user_id": 0, "phone": "+79991234567", "label": "Основной", "is_primary": true, "sort_order": 0, "phone_verified": true, "created_at": "string" }
{
}