Finance exchange

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

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

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

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/finance/exchange/items/{id}/onec-resolve
  • 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

Path parameters

idstring uuid required

Headers

X-Tenantstring required

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

Request body

choice'keep_1c' | 'send_akeda' required

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

Response

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

idstring uuid required
company_idstring uuid required
adapter_keystring required
direction'import' | 'export' required
object_type'invoice' | 'upd' | 'closing_document' | 'payment' | 'advance_invoice' | 'supplier_invoice' | 'purchase' | 'ukd' | 'payroll' | 'declaration' required
external_idstring required
payload_hashstring required
last_payload_hashstring required
canonical_document_idstring uuid
status'received' | 'applied' | 'quarantined' | 'pending' | 'sent' | 'failed' required

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

attempt_countinteger required
first_seen_atstring date-time required
last_seen_atstring date-time required
applied_atstring date-time
last_errorstring required
last_actor_idinteger
metadataobject required
action'upsert' | 'delete'

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

next_attempt_atstring date-time

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

sent_atstring date-time

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

duplicateboolean
conflictboolean

Changes

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