Access and authentication
X-TekraClientID | |
X-TekraAPIKey | |
Content-Type: application/json | |
Endpoints
| Method |
URL |
Description |
| Production |
| POST | https://tekra.bg/api/v1/orders/create | |
| GET | https://tekra.bg/api/v1/orders/status | |
| Test environment |
| POST | https://tekra.bg/api/v1/test/orders/create | |
| GET | https://tekra.bg/api/v1/test/orders/status | |
Response format
HTTP statuses
Create an order
POST/api/v1/orders/create
Request fields
| Field | Required | Format | Description |
Successful response
Quantity above stock (code 2001)
Partially accepted order (code 1013)
Minimum quantity and step
Valid quantities
Fields in the feed
Check order status
GET/api/v1/orders/status?order_number=…
Order statuses
Error codes
| Code | HTTP | When it is returned | What to do |
Test environment
Test products
| Product | Stock | min_qty | multiple_qty |
PRODUCT_1 | 10 | 1 | 1 |
PRODUCT_2 | 3 | 1 | 1 |
PRODUCT_3 | 5 | 1 | 1 |
PRODUCT_4 | 200 | 50 | 50 |