CorebanqCorebanq Developer Docs
Ledgersv1Journal Transactions

Create a journal transaction

Create a balanced multi-entry journal transaction with automatic currency conversion to the system's base currency.

POST/v1/ledgers/journals

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Represents the input for creating a balanced multi-entry journal transaction

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/ledgers/journals" \  -H "Content-Type: application/json" \  -d '{    "transaction": {      "type": "string",      "total_amount": 0    },    "entries": [      {        "amount": 0,        "type": "credit"      },      {        "amount": 0,        "type": "credit"      }    ]  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "type": "string",
  "status": "string",
  "total_amount": {
    "amount": "123456",
    "currency": "EUR",
    "precision": 2
  },
  "currency_id": "305e0674-ee79-42b7-bf83-278294a47a7b",
  "currency_code": "string",
  "description": "string",
  "reference_id": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "value_date": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z",
  "reconciled_at": "2019-08-24T14:15:22Z",
  "metadata": {},
  "created_at": "2019-08-24T14:15:22Z",
  "modified_at": "2019-08-24T14:15:22Z",
  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  "modified_by": "e8d4374d-93a1-4e98-a6c6-fdcf00c5059f",
  "total_debit_lcy": {
    "amount": "123456",
    "currency": "EUR",
    "precision": 2
  },
  "total_credit_lcy": {
    "amount": "123456",
    "currency": "EUR",
    "precision": 2
  },
  "active": true,
  "id_client": "string"
}
{
  "code": "string",
  "message": "string",
  "details": {}
}
{
  "code": "string",
  "message": "string",
  "details": {}
}
{
  "code": "string",
  "message": "string",
  "details": {}
}
{
  "code": "string",
  "message": "string",
  "details": {}
}
{
  "code": "string",
  "message": "string",
  "details": {}
}
{
  "code": "string",
  "message": "string",
  "details": {}
}