Payment Data Models

Payment refers to general payment towards any transaction, invoice , bill etc.

Model IDEvent Data KeyDescription
accounting_payment_infoinfo
accounting_payment_lineItemslineItems

📘

Manual Trigger Required for Initial Sync

The data models sync does not start automatically. To initiate the synchronization process, you must explicitly call the Sync Start API for the initial sync.

Payment Info

Model ID: accounting_payment_info

NameTypeDescription
idString
dateTimeDate
statusEnum[SUCCESS, FAILURE, PENDING, NOT_SPECIFIED]
paymentModeEnum[CASH,CHEQUE, ELECTRONIC_TRANSFER, NOT_SPECIFIED]
referenceNumberString
creditedAccountIdString
debitedAccountIdString
contactIdString
companyIdString
amountDouble
exchangeRateString
currencyStringOne of among Currency Codes (ISO 4217) like-
INR,
USD,
EUR
descriptionString

Payment Entries

Model ID: accounting_payment_lineItems

NameTypeDescription
lineItemsList[PaymentLineItem]

PaymentLineItem

NameTypeDescription
idString
amountString
referenceNumberString
discountDouble
modeEnum[CASH , CHEQUE, ELECTRONIC_TRANSFER]
paymentLinkedToEnum[INVOICE, BILL]
invoiceIdString
invoiceNumberString

Event Data Example

{
  "info": {
    "id": "eeedd617-d2c4-4d8c-96f9-69eeeb62b1e6",
    "dateTime": "2024-05-20T00:00:00Z",
    "status": "SUCCESS",
    "paymentMode": "ELECTRONIC_TRANSFER",
    "referenceNumber": "UTR01101",
    "creditedAccountId": "8185da42-1268-472e-a9a8-0758f53e464b",
    "debitedAccountId": "8185da42-1268-472e-a9a8-0758f53e464b",
    "contactId": "65a3f750-de4c-463a-85b1-f04a3a37b45a",
    "companyId": "ac19c8f9-a901-4db3-bef1-5aaca2a7c15a",
    "amount": 1100.0,
    "exchangeRate": "1.0",
    "currency": "USD",
    "description": "This is payment for Tshirt."
  },
  "lineItems": [
    {
      "id": "eeedd617-d2c4-4d8c-96f9-69eeeb62b1e6",
      "amount": 1100,
      "referenceNumber": "UTR01101",
      "discount": 0.0,
      "mode": "ELECTRONIC_TRANSFER",
      "paymentLinkedTo": "INVOICE",
      "invoiceId": "0d93e033-6548-40ea-bdfd-e551b85f5d7e",
      "invoiceNumber": "INV-101"
    }
  ]
}