Saltar al contenido principal

kobana finance reconciliations

Comandos de kobana finance reconciliations. Toda opción global (Opciones globales) vale aquí.

ComandoHTTPDescripción
reconciliations createPOST /v1/reconciliationsCrear conciliación
reconciliations getGET /v1/reconciliations/{id}Obtener conciliación por ID
reconciliations deleteDELETE /v1/reconciliations/{id}Eliminar conciliación

reconciliations create​

Crear conciliación

kobana finance reconciliations create [OPCIONES]

POST /v1/reconciliations

Reconciles billings against bank transactions (n:m), settling every billing (paid/received). Requires scope finance/reconciliations with access level write. All billings must share one polarity and one company; transaction polarity must match (payable↔debit, receivable↔credit). A billing already reconciled/linked, cancelled or draft is rejected (422). Pass an X-Idempotency-Key header on retries.

Encabezados

NombreTipoObligatorioDescripción
X-Workspace-IdstringsíWorkspace to act on, as a UUID. The token identifies the organization; this header picks which of its workspaces the request reads or writes. It is checked against the token's organization, so a workspace owned by anyone else answers UNKNOWN_WORKSPACE — the same code as one that does not exist. Omitting it answers WORKSPACE_REQUIRED (400).

Cuerpo de la solicitud

NombreTipoObligatorioDescripción
billingsarray<object>síBillings to reconcile. All must share one kind and one company.
transaction_idsarray<string (uuid)>síBank transactions to reconcile the billings against.
custom_metadataobjectnoMetadados do usuário: objeto JSON livre. Envie null para limpar. Máx. 64 KB serializado, 16 níveis.

Otros campos y objetos anidados: kobana schema finance.reconciliations.create.

Respuestas

HTTPDescripción
201Reconciliation created; the Location header points at GET /reconciliations/{id}.
400Malformed JSON body.
404A billing or transaction was not found within the tenant.
409X-Idempotency-Key reuse with a different body.
422Validation failure: mixed polarity/company, wrong transaction polarity, a member already reconciled/linked, or a cancelled/draft billing.

reconciliations get​

Obtener conciliación por ID

kobana finance reconciliations get [ID] [OPCIONES]

GET /v1/reconciliations/{id}

Returns the reconciliation's light id-list shape (source, kind, billing_ids, transaction_ids). Requires scope finance/reconciliations with access level read. 404 when not in the tenant.

Argumentos de la ruta: id

Parámetros de consulta

NombreTipoObligatorioDescripción
fieldsstringnoComma-separated top-level fields to return, e.g. fields=description,amount,due_date. Omit for every field. id is always included; naming an object field returns it whole. An unknown name is a 400 whose details lists unknown and available.

Encabezados

NombreTipoObligatorioDescripción
X-Workspace-IdstringsíWorkspace to act on, as a UUID. The token identifies the organization; this header picks which of its workspaces the request reads or writes. It is checked against the token's organization, so a workspace owned by anyone else answers UNKNOWN_WORKSPACE — the same code as one that does not exist. Omitting it answers WORKSPACE_REQUIRED (400).

Respuestas

HTTPDescripción
200The reconciliation.
404Reconciliation not found within the tenant.

reconciliations delete​

Eliminar conciliación

kobana finance reconciliations delete [ID] [OPCIONES]

DELETE /v1/reconciliations/{id}

Dissolves a manual reconciliation: reverts every member billing to pending and clears the links. Requires scope finance/reconciliations with access level delete. Imported (fintera) reconciliations are read-only → 422.

Argumentos de la ruta: id

Encabezados

NombreTipoObligatorioDescripción
X-Workspace-IdstringsíWorkspace to act on, as a UUID. The token identifies the organization; this header picks which of its workspaces the request reads or writes. It is checked against the token's organization, so a workspace owned by anyone else answers UNKNOWN_WORKSPACE — the same code as one that does not exist. Omitting it answers WORKSPACE_REQUIRED (400).

Respuestas

HTTPDescripción
200Reconciliation dissolved.
404Reconciliation not found within the tenant.
422The reconciliation is imported (source: fintera) and cannot be dissolved via the API.