Appearance
Create a promotion ​
http
POST https://api.onehazel.com/supplier-api/promotionsSection: Suppliers
Operation id: postSupplierApiPromotions
Authentication ​
Supplier key (oh_supplier_...) or a signed-in supplier session token, as a bearer token.
Request body ​
JSON object.
Responses ​
200 { "success": true, "data": ... }
Errors return { "success": false, "error": { "code": "...", "message": "..." } } with a 4xx or 5xx status.
Example ​
bash
curl -X POST "https://api.onehazel.com/supplier-api/promotions" \
-H "Authorization: Bearer oh_supplier_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{}'Machine-readable: openapi.yaml, openapi.json.