ApiMp Integration
ApiMp is a REST API for the ERP to communicate with Demander: querying, creating and updating records, with token authentication and data in JSON.
What is ApiMp
Section titled “What is ApiMp”ApiMp is a REST API to integrate the ERP with the Demander, when sending and receiving data.
It covers querying, creating and updating tables used in the system’s day-to-day operations, with standardized and authenticated exchange.
Benefits of integration
Section titled “Benefits of integration”The Demander also has an HTTP-based API with multipart files (TXT in UTF-8). It still covers many scenarios, but requires extra treatment to read, write and interpret the files.
ApiMp uses HTTPS and JSON, without an intermediate file.
- Easy data handling: JSON is simple to read and validate.
- Speed: direct communication, in real time.
- Less formatting error: standardized structure.
- Security: token and HTTPS.
- Maintenance: you can expand resources without changing the REST model.
How it works
Section titled “How it works”Calls use GET, POST and PUT. They all require token and JSON.
Each endpoint corresponds to a table; The available methods change depending on the table.
Methods available per table
Section titled “Methods available per table”| Table | GET (query) | POST (creation) | PUT (update) |
|---|---|---|---|
| Sellers | ✔ | ❌ | ❌ |
| Groups product | ❌ | ✔ | ✔ |
| Price Lists | ❌ | ✔ | ✔ |
| Status orders | ❌ | ✔ | ✔ |
| Prices product | ❌ | ✔ | ✔ |
| Products | ❌ | ✔ | ✔ |
| Order gone | ✔ | ❌ | ❌ |
| Customers | ✔ | ✔ | ✔ |
| Titles financial | ❌ | ✔ | ✔ |
| Status update order | ❌ | ✔ | ❌ |
| Transporters | ❌ | ✔ | ✔ |
Request structure
Section titled “Request structure”HTTPS requests (GET, POST and PUT) with JSON and authentication token. Headers and bodies change depending on the method and table.
Fields by method and table
Section titled “Fields by method and table”Each table has mandatory and optional fields, different for querying, creating and updating.