Finance exchange
Связать элемент обмена с каноническим документом Akeda
Changed onСвязывает указанный элемент журнала обмена с каноническим документом Akeda.
post/api/v1/finance/exchange/items/{id}/apply
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or API key in header X-Api-Key
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
- or HTTP bearer
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Finance Exchange Apply required
document_id, string uuid required
Response
Применённый элемент
Finance Exchange Item 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
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info