/api/transaction_entries/
Parameters for GET Queries
PARAMETER NAME | TYPE | DESCRIPTION | REQUIRED |
---|---|---|---|
typeCode | String | ||
dateFrom | Date | Format: 2012-12-29T00:00:00 | |
dateTo | Date | Format: 2012-12-29T00:00:00 | |
transactionDateFrom | Date | Format: 2012-12-29T00:00:00 | |
transactionDateTo | Date | Format: 2012-12-29T00:00:00 | |
description | String | Transaction Code or Description | |
projectId | long | Project ID (internal) | |
documentId | long | Document ID (internal) | |
sort | String | ||
start | int | ||
limit | int |
Response
FIELD NAME | TYPE | DESCRIPTION | REQUIRED | |
---|---|---|---|---|
TransactionEntryInfo | id | long | Transaction ID (Internal) | |
TransactionEntryInfo | opDate | Date | Format: 2012-12-29T00:00:00 | |
TransactionEntryInfo | code | String | Registration Code | |
TransactionEntryInfo | description | String | Description of Transaction | |
TransactionEntryInfo | sum | BigDecimal | Total Sum of Transaction’s rows – filled automatically | |
TransactionEntryInfo | typeCode | String | TRANSACTION_TYPE | |
TransactionEntryInfo | projectId | long | Project ID if necessary | |
TransactionEntryInfo | accountEntries | List <AccountEntryInfo> | Rows of Transaction in one Object |
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":""}]}