Skip to content

Update order request ​

PUT /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
PUT https://es.dev.hype-software.com/webhook/hype-custom/orderRequests
Authorization: Bearer YOUR_API_TOKEN
Accept: application/json
Content-Type: application/json

Request 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": 2,
    "name": "Приета"
  },
  "clientDetails": {
    "firstName": "Иван",
    "lastName": "Иванов",
    "phone": "+12345",
    "city": "Бургас",
    "postCode": "8000",
    "address": "кв. Възраждане, 118",
    "formatted": "Бургас, 8000, кв. Възраждане, 118"
  },
  "orderDetails": {
    "items": [
      {
        "id": 255653,
        "name": "Маргарита 20",
        "modifierIds": [],
        "supplements": [],
        "comment": "Да няма нищо зелено, като рукола, зелени маслини или чушки",
        "quantity": 2,
        "orderPrice": 4.33
      }
    ]
  },
  "total": 10.25,
  "subTotal": 8.67
}

Response examples ​

204 · Update order request ​

Empty response body.

Hype Exchange Service API