Want to integrate your app with Precoro? If so, you can do it with our API.

Here is our API documentation.

TABLE OF CONTENTS


1. What is an API?

An API is a tool that lets your developers access your data in an automated way and thus integrate the tools between each other.


2. How it can help you?


With an API you can solve the following  problems:

  • Procurement and accounting are not working together. There is a lot of duplicated work and manual entries, e.g., Invoices and Payments.
  • You should manually manage the catalog in two places. 
  • Procurement and inventory are not working together. There are two manual entries - Purchase Orders in Precoro and Receipts in the accounting system.

3. What you can do with Precoro API's:

  • Get all the approved Purchase Orders and then create them in the Accounting system with API.
  • Get all the approved Invoices and then save them in the Accounting system with API.
  • Get all the Receipts and save them in the Inventory system with API.
  • Get all the Suppliers, Contracts, Products, Categories, Units, Locations, Users, Legal Entities and use them with any tool you have in API. 


4. How to get the data from the Precoro API?

There are two ways to get the data regarding the documents 

It looks like a real Precoro account - the list of the documents and the separate document.


To get all of the data about corresponding documents created between the dates you need:

  • Request the list of the Orders. 

Your request will look like this:

https://api.precoro.com/purchaseorders?createDate[left_date]=01.10.2020&createDate[right_date]=15.10.2020

  • Then you will get some IDNs of the Orders, and then you need to put that IDNs to the request 'Get Purchase Order by IDN'

Your request will look like this:

https://api.precoro.com/purchaseorders/{1,2,3,15,20,33}


5. How to filter the list of the documents in the API:

  • you can filter the real Precoro interface and see how it will look in the URL
  • add the same to the API request

Here is the list of the documents filtered by status approved:

https://precoro.com/purchase/order?status[]=2

Your API request will look like this:

https://api.precoro.com/purchaseorders?status[]=2