Introduction
This API is intended for integration of third-party webshop solutions with Tetrada ERP. It exposes methods for real-time product availibility check, as well as customer (wholesale and retail) orders.
Authorization
Every call you make against API must be authorized with token. Authorization token is currently valid for 24 hours upon creation. The client must send this bearer token in the Authorization header when making requests to protected resources as Authorization: Bearer <token>.
| API | Description |
| POST api/Token |
Method for retrieving bearer authorization token. To retrieve token client must pass parameters grant_type with value password, as well as parameters username and password
|
Suppliers
Controller for accessing supplier information in ERP.
| API | Description |
| POST api/Suppliers/Stocklist |
Method for retrieving supplier stocklist.
|
Products
Controller for accessing product information in ERP.
| API | Description |
| POST api/Products/QuantityAvailable |
Method for checking real-time product availibility in ERP. It is intended to be used on cart page (do not overuse it, it is IP protected).
|
| POST api/Products/SetAvailabilityCheck |
Method for setting weather a product is bound for regular availability check.
|
| POST api/Products/QuantityAvailableAll |
Method for checking real-time product availibility in ERP. Method takes no required parameters and checks all products with webshop flag set. Currently available once a minute.
|
| POST api/Products/PricelistAvailableAll |
Method for checking real-time product pricelist in ERP. Method takes no required parameters. Currently available once a minute.
|
Customer
Controller for retrieving and handling customer data in ERP.
| API | Description |
| POST api/Customers/GetAll |
Method for retreiving basic customer information. It is paginated with page size of 100 records.
|
| POST api/Customers/GetByID/{ID} |
Method for retreiving single customer information, based on customer ID.
|
| POST api/Customers/Create |
Method for creating single customer in DB. New record is returned, if successful.
|
| POST api/Customers/Modify |
Method for updating information for single customer in DB. Updated record is returned, if successful.
|
Orders
Controller for creating customer (wholesale and retail) orders in ERP.
| API | Description |
| POST api/Orders/Create |
Customer (wholesale and retail) orders. Method returns DocumentID of successfully created order in ERP.
|
| POST api/Orders/Details |
Order details. Method returns OrderDetails based on information in ERP.
|
| POST api/Orders/MakeReservation |
Create a reservation based on document ID. Method returns reservation document ID in ERP (if successful).
|