Current account balance. It must be greater than 0.
type*
String
receivable || payable
receivable: The payment you will receive from your clients.
payable: The payment you will pay to your clients.
{ entry : BookkeepingEntry entryActivity : BookkeepingActivity, payment?: BookkeepingPayment // Exists if paidAmount is given paymentActivity?: BookkeepingActivity // Exists if paidAmount is given}
{ org : string,// Organization id customer : string,// Client id/* receivable: The payment you will receive from your clients. * payable: The payment you will pay to your clients. */ type :'receivable'|'payable', amount : number,// Current account balance. It must be greater than 0./* Currency. It must contain one of the following values: * TRY, USD, EUR, GBP, AUD, CAD, CHF, CNY, HKD, NZD, SEK, * KRW, SGD, NOK, MXN, INR, ZAR, RUB, BRL, JPY, TWD, DKK, * THB, IDR, HUF, CZK, ILS, PHP, AED, COP, SAR, MYR, RON */ currency : string, name : string, desc : string |null, paidAmount : number,// How much of the total is paid? It must be greater than zero and less than total amount. isPaid : boolean,// Is completely paid off? dueAt : number |null,// Due date. Payment is expected to be made before this date. createdBy : string,// Id of the user who created the entry. createdAt : number,}
BookkeepingPayment
{ org : string,// Organization id customer : string,// Client id amount : number,// Current account balance. It must be greater than 0. entry : string,// Bookkeeping Entry id note : string |null,// Optional note about the payment createdBy : string,// Id of the user who created the entry createdAt : number}
BookkeepingActivity
{ org : string,// Organization id customer : string,// Client id entry : string,// Bookkeeping Entry id. Always exists payment?: string,// Exists if type is 'payment-received', 'payment-sent' or 'payment-deleted' type :'receivable-created'|'payable-created'|'payment-received'|'payment-sent'|'payment-deleted', data : { entryName : string, entryDueAt?: number,// Exists if entry dueAt defined amount : number,// Current account balance. It must be greater than 0./* Currency. It must contain one of the following values: * TRY, USD, EUR, GBP, AUD, CAD, CHF, CNY, HKD, NZD, SEK, * KRW, SGD, NOK, MXN, INR, ZAR, RUB, BRL, JPY, TWD, DKK, * THB, IDR, HUF, CZK, ILS, PHP, AED, COP, SAR, MYR, RON */ currency : string, paidAmount? : number, // Exists if type is receivable/payable-created. How much of the total is paid? It must be greater than zero
}, createdBy : string // Id of the user who created the entry createdAt : number,}