Create Order Request
POST /webhook/hype-custom/orderRequests
Use orderDetails.items for order lines and supplements for supplement objects with an id, optional price, and optional quantity. See the order request schema. HES accepts the webhook with 204; delivery to Hype is asynchronous. Always include deliveryChannel with a mapped id: without it, HES still returns 204 but cannot deliver the order to Hype.
Request
http
POST https://es.dev.hype-software.com/webhook/hype-custom/orderRequests
Authorization: Bearer YOUR_API_TOKEN
Accept: application/json
Content-Type: application/jsonRequest body
json
{
"id": 1,
"discount": 3.45,
"paymentTypes": [
{
"id": 1,
"name": "Stripe",
"amount": 10.25,
"status": "completed"
}
],
"orderComment": "Коментар към поръчката",
"deliveryChannel": {
"id": 1,
"name": "За плажа",
"deliveryPrice": 2.5
},
"status": {
"id": 1,
"name": "Нова"
},
"clientDetails": {
"firstName": "Иван",
"lastName": "Иванов",
"phone": "+12345",
"city": "Бургас",
"postCode": "8000",
"address": "кв. Възраждане, 111",
"formatted": "Бургас, 8000, кв. Възраждане, 111"
},
"orderDetails": {
"items": [
{
"id": 255653,
"name": "Маргарита 20",
"modifierIds": [],
"supplements": [],
"comment": "Да няма нищо зелено, като рукола зелени маслини или чушки",
"quantity": 2,
"orderPrice": 4.33
}
]
},
"total": 10.25,
"subTotal": 8.67
}Response examples
204 · Create Order Request
Empty response body.