Skip to main content

Creating a Current Account Transaction

Description

Used to create a new current account transaction (debt record). This service is designed to ensure data synchronization between systems and guarantees that financial transactions are recorded accurately, completely, and uniquely. Upon a successful call, the related record is created in the system and can be tracked using the erpCode value.

  • Endpoint: /cat/cat
  • Method: POST

Request Body

FieldRequiredFormatDescription / Validation
AgentErpCodeYesStringERP code of the related agent. Cannot be empty.
amountYesDecimalDebt amount. Must be a positive number.
paidAmountNoDecimalPaid amount. Must be a positive number.
documentNoYesStringDocument number. Cannot be empty.
currentAccountErpCodeYesStringERP code of the current account. Cannot be empty.
documentTypeYesString (Enum)Must be one of "Senet", "Çek", "Kredi Kartı", "Borç dekont", "Fatura", "Havale", "Sipariş", "Devir", "Virman".
dueDateYesDateTimeDue date (ISO 8601: YYYY-MM-DD).
transactionDateYesDateTimeTransaction date (ISO 8601: YYYY-MM-DD).
currencyIdYesStringCurrency code (e.g., "TRY", "USD"). Must be defined in the system.
erpCodeYesStringUnique ERP code of the transaction. Cannot be empty and must not have been used before.
descriptionNoStringTransaction description.

Request Example

  • Header: Authorization: Bearer {token}, Content-Type: application/json
  • Body: JSON
{  
"agentErpCode": "NT26822394",
"amount": 1550,
"paidAmount": 0,
"documentNo": "df912e15-a3d6-447f-8456-397152ffaca9a96",
"currentAccountErpCode": "441B3BF1-8F5F-4CCD-A116-7CD90D3E4C04",
"documentType": "Ödeme",
"dueDate": "2025-09-20",
"currencyCode": "TRY",
"erpCode": "7044dac0-bbb3-4845-a316-702e2702b1673",
"description": "test cat"
}