/api/transaction_entries/

 

Parameters for GET Queries

PARAMETER NAMETYPEDESCRIPTIONREQUIRED
typeCodeString
dateFromDateFormat: 2012-12-29T00:00:00
dateToDateFormat: 2012-12-29T00:00:00
transactionDateFromDateFormat: 2012-12-29T00:00:00
transactionDateToDateFormat: 2012-12-29T00:00:00
descriptionStringTransaction Code or Description
projectIdlongProject ID (internal)
documentIdlongDocument ID (internal)
sortString
startint
limitint

Response

FIELD NAMETYPEDESCRIPTIONREQUIRED
TransactionEntryInfoidlongTransaction ID (Internal)
TransactionEntryInfoopDateDateFormat: 2012-12-29T00:00:00API
TransactionEntryInfocodeStringRegistration Code
TransactionEntryInfodescriptionStringDescription of TransactionAPI
TransactionEntryInfosumBigDecimalTotal Sum of Transaction’s rows – filled automatically
TransactionEntryInfotypeCodeStringTRANSACTION_TYPEAPI
TransactionEntryInfoprojectIdlongProject ID if necessary
TransactionEntryInfoaccountEntriesList <AccountEntryInfo>Rows of Transaction in one ObjectAPI

 

API examples

GET

Getting an array of transactions:

https://api.erplybooks.com/api/transaction_entries

and request by transactionId:

https://api.erplybooks.com/api/transaction_entries/304552714

DELETE

“TransactionEntryId and registrationCode required!”

https://api.erplybooks.com/api/transaction_entries/304552714

PUT

“Used to replace data. All previous data is deleted and replaced with data from TransactionEntryInfo. Must have an id at the end of the URL!”

https://api.erplybooks.com/api/transaction_entries/304552714
JSON:{"id":310330031,"opDate":"2022-05-31","code":"214","description":"Sales invoice - Elon - 10000","sum":25,"typeCode":"INVOICE_TRANSACTION","projectId":0,"accountEntries":[{"accountId":85269,"description":"Dividend payables - Dividendiv\u00f5lad","debitSum":0,"creditSum":10000,"opDate":"2024-03-19T00:00:00","transactionEntryId":0,"accountNumber":"","currencyCode":"","typeCode":""},{"accountId":85310,"description":"Dividend payables - Retained earnings","debitSum":10000,"creditSum":0,"opDate":"2024-03-19T00:00:00","transactionEntryId":0,"accountNumber":"","currencyCode":"","typeCode":""}]}

POST

Id must be 0 in all cases! All id’s are automatically generated

https://api.erplybooks.com/api/transaction_entries/
JSON:{"id":0,"opDate":"2022-05-31","description":"Sales invoice - Elon - 10000","sum":22,"typeCode":"INVOICE_TRANSACTION","accountEntries":[{"accountId":85269,"description":"Dividend payables - Dividendiv\u00f5lad","debitSum":0,"creditSum":10000,"opDate":"2024-03-19T00:00:00","transactionEntryId":0,"accountNumber":"","currencyCode":"","typeCode":""},{"accountId":85310,"description":"Dividend payables - Retained earnings","debitSum":10000,"creditSum":0,"opDate":"2024-03-19T00:00:00","transactionEntryId":0,"accountNumber":"","currencyCode":"","typeCode":""}]}