Finance exchange

Решить, чья версия документа остаётся в 1С

Changed on

Решает судьбу документа, который бухгалтер изменил в 1С после отправки Акеды. Акеда такой документ сама не перезаписывает: keep_1c оставляет правку бухгалтера и закрывает отправку, send_akeda отправляет версию Акеды поверх правки.

post/api/v1/finance/exchange/items/{id}/onec-resolve

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

FinanceOneCResolve required
choice, 'keep_1c' | 'send_akeda' required

Решение: keep_1c — оставить как в 1С, send_akeda — отправить версию Акеды поверх правки бухгалтера.

Response

Решение принято

FinanceExchangeItem required
id, string uuid required
company_id, string uuid required
adapter_key, string required
direction, 'import' | 'export' required
object_type, 'invoice' | 'upd' | 'closing_document' | 'payment' | 'advance_invoice' | 'supplier_invoice' | 'purchase' | 'ukd' | 'payroll' | 'declaration' required
external_id, string required
payload_hash, string required
last_payload_hash, string required
canonical_document_id, string uuid
status, 'received' | 'applied' | 'quarantined' | 'pending' | 'sent' | 'failed' required

Входящее: received, applied, quarantined. Исходящее (отправка в 1С): pending — ждёт отправки, sent — принято, failed — отклонено, повтор по next_attempt_at.

attempt_count, integer required
first_seen_at, string date-time required
last_seen_at, string date-time required
applied_at, string date-time
last_error, string required
last_actor_id, integer
metadata, object required
action, 'upsert' | 'delete'

Исходящее: создать или обновить документ во внешней системе либо отменить его.

next_attempt_at, string date-time

Исходящее: когда повторить отклонённую отправку.

sent_at, string date-time

Исходящее: когда внешняя система приняла документ.

duplicate, boolean
conflict, boolean

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision