---
title: "Изменить палету отгрузки"
method: PATCH
path: "/api/v1/stock/sales/{id}/pallets/{palletId}"
tags: ["Stock purchasing"]
---

# Изменить палету отгрузки

`PATCH /api/v1/stock/sales/{id}/pallets/{palletId}`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/stock/sales/{id}/pallets/{palletId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`
  - HTTP bearer

Вес, высота, температура и состав палеты (ERP-119). Названное поле заменяется, номер SSCC не меняется. Отгрузка ушла сети — отказ.

## Path parameters

- `id` string, uuid, required
- `palletId` string, uuid, required

## Headers

- `X-Tenant` string, required

## Request body

- StockShipmentPalletPatch
  - `lines` StockShipmentPalletLineInput[]: Новый состав целиком
    - `product_id` string, uuid, required
    - `qty` string, required
    - `boxes` integer: Коробов товара на палете (VAP-040): целое от 1 до числа штук; не передано — считать по коробу заявки
  - `gross_weight` string
  - `net_weight` string
  - `height` string
  - `temperature` string

## Response `200`

Палета

- StockShipmentPallet: Грузоместо: палета отгрузки заказа в торговую сеть (ERP-119) или палета и короб перемещения (ERP-3165, document_id)
  - `id` string, uuid, required
  - `order_id` string, uuid, required: Заказ палеты сети; у грузоместа перемещения нулевой UUID
  - `document_id` string, uuid: Перемещение грузоместа (ERP-3165); у палеты заказа нет поля
  - `company_id` string, uuid, required
  - `sscc` string, required: 18 цифр SSCC без AI; у грузоместа перемещения с нашим номером пусто
  - `code` string, required: Номер на этикетке: SSCC или наш номер; у палеты заказа равен SSCC
  - `kind` 'pallet' | 'box', required: Палета или короб
  - `parent_id` string, uuid: Палета короба перемещения
  - `operator_code` string: Номер места у оператора внешнего склада, если он принял его под своим номером (ERP-3165)
  - `position` integer, required: Номер палеты в заказе, он же на этикетке; не сдвигается при снятии другой
  - `package_type` string, required: Тип палеты в сообщении сети, 201 — евро
  - `gross_weight` string
  - `net_weight` string
  - `height` string
  - `temperature` string
  - `lines` StockShipmentPalletLine[], required
    - `product_id` string, uuid, required
    - `title` string
    - `unit` string
    - `qty` string, required
    - `boxes` integer: Коробов товара на палете, как ввёл склад (VAP-040); нет поля — сообщение сети и паллетный лист считают по коробу заявки, неполный короб — целый
    - `batch_id` string, uuid: Партия строки грузоместа перемещения (ERP-3165); у палеты заказа нет поля
    - `batch_code` string: Серия строки грузоместа перемещения без нашей партии (ERP-3165)
  - `printed_at` string, date-time: Этикетка напечатана; пусто — новая или устарела после правки
  - `created_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю
- `409`: Конфликт версии, идемпотентности или бизнес-состояния
- `422`: Запрос разобран, но бизнес-значение недопустимо

## Changes

- **2026-12-04** `62756b6cbb14`: 7 info
  - added the optional property `document_id` to the response with the `200` status
  - added the optional property `lines/items/batch_code` to the response with the `200` status
  - added the optional property `lines/items/batch_id` to the response with the `200` status
  - added the optional property `operator_code` to the response with the `200` status
  - …3 more
- **2026-11-13** `79829183f21d`: 2 info
  - added the new optional request property `lines/items/boxes`
  - added the optional property `lines/items/boxes` to the response with the `200` status
- **2026-11-04** `9e461ae99846`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/stock/sales/:id/pallets/:palletId/patch.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
