Finance settlements

Перенести оплату на другую продажу или закупку

Changed on

Переносит сумму оплаты с одного заказа на другой: прежнее разнесение или аванс сторнируется, на заказе-цели рождается аванс или погашение, и аванс сразу зачитывается в открытые долги этого заказа. Без confirm_release ответ 409 со списком документов, которые снимутся; preview показывает план без записи. Пустой from_order — аванс без заказа; detach снимает привязку без нового заказа.

post/api/v1/finance/settlements/payments/{id}/relink

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Request body

object required
from_order, string uuid
to_order, string uuid
to_contract, string uuid
amount, string
preview, boolean
detach, boolean
confirm_release, boolean
confirm_overpay, boolean

Согласие на переплату заказа-цели. Без него ручной перенос, после которого заказ окажется оплачен больше своей суммы, получает 409 finance.order.overpay_confirm_required с order_number, paid, total и overpay.

Response

План или выполненные шаги переноса

object required

Changes

    • info

      added the new optional request property confirm_overpay

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    10 more changes in this revision