Stock settings

Сохранить складские настройки контрагента

Сохраняет порог остаточного срока годности покупателя целиком (ERP-1821). Оба значения пусты — настройки удаляются, ответ 204 без тела. Неверное значение — 400 shelf_life_minimum_pct_invalid или shelf_life_minimum_days_invalid.

put/api/v1/stock/contact-policies

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/stock/contact-policies
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Headers

X-Tenantstring required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

contact_idstring uuid required
min_shelf_life_pctstring nullable

Обычная десятичная запись больше 0 и не больше 100, не точнее сотых: «30», «12.5»

min_shelf_life_daysinteger nullable

Response

Сохранённые настройки контрагента

contact_idstring uuid required
contact_namestring required
min_shelf_life_pctstring nullable required

Порог остаточного срока для покупателя, % срока: десятичная строка. null — не задан

min_shelf_life_daysinteger nullable required

Порог остаточного срока для покупателя в днях до «годен до». null — не задан

updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.