v2

latestOpenAPI 3.0.0Apache 2.02026-07-2638645559.8 KB
Payments

Reconcile a transaction or a document

Create a new payments and categorizations by one-to-many

post/apps/{appId}/reconcile

Path parameters

appIdinteger required

The identifier of the Sinao application you are using. Each application corresponds to a company and an accounting. A user can have several Sinao applications. To retrieve the identifiers of its applications, you must call the endpoint /apps.

Query parameters

replace_allboolean

Remove all previous reconciliations

type'transaction' | 'sales' | 'purchase' required

Object to pay with these payments and categorizations

idinteger required

Transaction, sales invoice or purchase invoice id to reconcile

type'account' | 'purchase' | 'sales' | 'bank_entry' | 'cashdesk_entry' | 'waiting_entry'
idinteger

Object id -- create object when null (usefull for cashdesk or waiting entries)

amountinteger

Payment amount in cents

paid_atstring date-time

Payment date for cashdesk or waiting entries

on_eventstring

Event like model.event, event in [saved, created, updated, deleted]

parameterstring
valuestring

Create an auto-reconciliation rule

{
  "on_event": "transaction.created",
  "parameter": "account",
  "value": "64"
}

Response

Success

idinteger
source'bank' | 'cashdesk' | 'creditnote'
amountinteger
datestring date-time
document_type'sales' | 'purchase'