Create order
An order can be created using the POST /orders endpoint. Below is an example of how to create an order using Python and the requests library:
import requests
url = "https://apipl.zenovate.org/v1/orders"
payload = {
"currency": "EUR",
"orderDate": "2026-12-07",
"shipmentCost": 12.12,
"orderValue": 123.12,
"invoiceNumber": "INV-123",
"orderNumber": "ORD-123",
"supplierId": "f670b95d-cf3a-417c-ad46-99210b32b9ad"
}
headers = {
"accept": "*/*",
"content-type": "application/json",
"x-api-key": "Bearer replace_api_key_here",
"x-org-id": "replace_org_id_here"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
The response will contain the details of the created order, including its unique identifier. You can use this identifier to retrieve or update the order later:
{
"message": "Create order successfully",
"data": {
"id": "f670b95d-cf3a-417c-ad46-99210b32b9ad",
"orderNumber": "ORD-123",
"invoiceNumber": "INV-123",
"orderValue": 123.12,
"shipmentCost": 12.12,
"currency": "EUR",
"orderDate": "2026-12-07",
"supplier": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"shortcut": "string",
"contactEmail": "string",
"contactPhone": "string",
"address": "string"
}
}
}