Skip to main content

New Vending Machine Reservation

POST 

https://api.lochting.com/public/v1/reservation/vendingMachine/create

This endpoint enables authorized users to create a new vending machine reservation by a given order id.

Request

Header Parameters

    Authorization stringrequired
    Example: your-access-token

Bodyrequired

    orderIdstringrequired

    The id of the order, prefixed with order- and followed by a 36 characters long UUID.

    Example: order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b
    customerEmailstringnullable

    Email address of the customer

    Example: johndoe@lochting.com
    customerLocaleLocale (string)nullable

    Locale of the customer

    Possible values: [nl_BE, fr_BE, en_BE, de_BE, fr_FR, en_FR, de_DE, en_DE, en_AU, en_ES, es_ES, en_AT, de_AT, en_CZ, cs_CZ, en_SG, en_PT, pt_PT]

    Example: nl_BE
    customerPhonestringnullable

    Phone of customer

    Example: 123456789
    remarksstringnullable

    Additional remarks

    muteAllNotificationsbooleannullable

    Indicates if Lochting has to mute all communications (default true)

    Example: true
    isOverBoxReservationbooleannullable

    Set to true if all products are placed in a container in the robot (default false)

Responses

Created

Schema
    reservationIdstringrequired

    The id of the reservation, prefixed with reservation- and followed by a 36 characters long UUID.

    Example: reservation-c7d932c1-84e8-410c-a9b2-18bf739d6b8b
    reservationCodestringrequired

    The generated code. Can be used by a customer on the matic.

    Example: XXX12345A
    overBoxBarCodestringnullable

    The over box EAN13 barcode.

    Example: 1234567891234
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.lochting.com/public/v1/reservation/vendingMachine/create");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"orderId\": \"order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b\",\n \"customerEmail\": \"johndoe@lochting.com\",\n \"customerLocale\": \"nl_BE\",\n \"customerPhone\": \"123456789\",\n \"remarks\": \"string\",\n \"muteAllNotifications\": true,\n \"isOverBoxReservation\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.lochting.com/public/v1
Parameters
— headerrequired
Body required
{
  "orderId": "order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b",
  "customerEmail": "johndoe@lochting.com",
  "customerLocale": "nl_BE",
  "customerPhone": "123456789",
  "remarks": "string",
  "muteAllNotifications": true,
  "isOverBoxReservation": true
}
ResponseClear

Click the Send API Request button above and see the response here!