Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

How to use REST API

Muhammed Afeef   ( User )

Commented 2 years ago

How can i get the api for double entry module? I already purchased this app.


Stojan   ( User )

Commented 2 years ago

Double entry is not part of the main application. I do not have it so do not know is there any API support for it.

Geoffrey Mills   ( User )

Commented 2 years ago

Using Postman v9 and Akaunting v2.1.33
Stojan: Thank you! your API listings in Google Drive are excellent, I imported this into Postman.
But I had to make some changes to get these working, primarily to create entries

ITEMS:
tax_id must be array - changed to [tax_ids][0] = (blank)
Catalogs - cannot be blank.. set akaunting_category_id = 3 (sales = category_id 3)

CATEGORIES: working

CUSTOMERS: working (contacts)

INVOICES:
error User does not have any of the necessary access rights -> add search = type:invoice
error "message": "Trying to get property 'type' of non-object",
"status_code": 500
null fields! in this case had two: items[0][tax_ids][0] - set value for these to something relevant (or remove them sometimes works)

FYI the two errors above are generic across all the routes. Use the GET first to see what fields are used.
requires key "amount"

USERS: in progress, working on deciphering the roles[] array that is required

Hint: put txt data in a number field e.g amount = "24". Laravel will return an error and show the SQL query

Hope that helps


Stojan   ( User )

Commented 2 years ago

Thank you Geoffrey. Can you contact me on chat to talk more?
https://chat.akaunting.com/public/messages/@stojan

Stojan   ( User )

Commented 2 years ago

Thanks to Geoffrey Mills, I just updated the Postman collection so you get a new version of it on same link:
https://drive.google.com/file/d/1ykZ-GNYpQPh7CcI8B3dAZCEXwadWzdT2/view?usp=sharing

MARIVALDO SANTOS   ( User )

Commented 1 year ago

@Stojan

How to create companie with api?
Exampling in file Collection for Postman

Stojan   ( User )

Commented 1 year ago

MARIVALDO , There is no option for it.

MARIVALDO SANTOS   ( User )

Commented 1 year ago

@Stojan

Yes, exists.

Go to print: https://prnt.sc/t2nPv1EBWiRO

Stojan   ( User )

Commented 1 year ago

It's list of exists companies but I didn't find that option in API, if you find it please share it.

MARIVALDO SANTOS   ( User )

Commented 1 year ago

It's this option right there, just change it to the POST verb.

Please login or register to leave a response.

Showing 51 to 60 of 61 discussions