How the API works
The API uses POST requests to send data to OkTee. POST requests are a standard type of communication on the internet, where a device (your ERP in this case) sends information to a server (OkTee).
API usage steps
1. Set up supplier codes
In the OkTee settings, enter vendor codes with the following information
- Zone: the country where the supplier code is used
- Supplier code: the code itself
- Refresh token: obtained via your Vendor Central account (API Integration section)

2. Generate an API key
Generate an API key in OkTee settings. This key is used to authenticate requests sent to the API.

3. Use the Inventory API
Send a POST request to https://oktee.app/api/items
Include the following header settings:
- “Content-Type”: “application/json”: Indicates that the data sent is in JSON format, a standard format for exchanging data.
- “x-oktee-api-token”: YOUR_API_KEY: Replace YOUR_API_KEY with the key generated in step 2.
The body of the request (payload) should have the following JSON structure:
The payload should have the following form:

All fields are mandatory except Purchase Amount which may be void.
3. security
The OkTee API uses modern encryption technologies to protect your sensitive information during data transfer (4).