All Collections
Building with the Railz API™
How to add a payment as a Journal Entry
How to add a payment as a Journal Entry

Adding payment using Journal Entries endpoint

A
Written by Ali Kiassat
Updated over a week ago

A payment is a disbursement of money (usually in the form of a check or currency). It is a transaction that involves the transfer of money or other valuable assets from one party to another in exchange for goods or services received.

Accounting Example:

Account

Transaction / Reference

Date / Client / Note

Debit

Credit

Inventory Account

Payment

Jan 1, 2022

10.00

-

Bank Account

Payment

Jan 1, 2022

-

10.00

Leveraging Railz to use Journal Entries to add Payment:

You may follow the below steps to add a prepayment credit as a Journal entry:

  1. Determine the accounts to be debited and credited: In a payment transaction, the account to be debited is typically the expense or asset account associated with the payment (e.g., inventory, rent, utilities, etc.), and the account to be credited is usually the cash or bank account.

  2. Create an entry with the appropriate accounts to be debited and credited.

  3. Enter the payment amount: Input the payment amount in the appropriate field of the journal entry.

  4. Include any additional information: You may want to include additional information in the journal entry such as the payment method (e.g., check, credit card, cash, etc.), the payee or recipient of the payment, and any other relevant details.

Payload example:

You can use our POST /journalEntries endpoint to add a $10.00 debit line item as a payment, for example, from the inventory account and a $10.00 credit line item, for example for the bank account.

{
"connection":
{
"businessName": "{{businessName}}",
"serviceName": "{{serviceName}}"
},
"data":
{
"currency": "USD",
"currencyRate": 1.3,
"postedDate": "YYYY-MM-DD",
"lines":
[
{
"accountRef": "ID OF INVENTORY ACCOUNT FROM ASP - SEE COA END POINT ",
"description": "LINE ITEM DESCRIPTION",
"amount": 10,
"type": "debit"
},
{
"accountRef": "ID OF BANK ACCOUNT FROM ASP - SEE COA END POINT ",
"description": "LINE ITEM DESCRIPTION",
"amount": 10,
"type": "credit"
}
],
"memo": "SOME MEMO"
}
}

For more information:

Did this answer your question?