Skip to main content

Update Order Details

PATCH 

https://api.lochting.com/public/v1/order/:orderId

This call allows you to update an order.

Request

Path Parameters

    orderId stringrequired

    The id of the order.

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

Header Parameters

    Authorization stringrequired
    Example: your-access-token

Bodyrequired

    statusOrderStatus (string)

    The order status

    Possible values: [pending, paid, readyToPickUpInStore, complete, canceled]

    Example: paid
    paymentMethodPaymentMethod (string)nullable

    The payment method

    Possible values: [maestro, bancontact, visa_mastercard, paypal, carte_bleue, offline_payment, payconiq, tyro_mastercard, free]

    Example: bancontact

Responses

OK

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://api.lochting.com/public/v1/order/:orderId");
var content = new StringContent("{\n \"status\": \"paid\",\n \"paymentMethod\": \"bancontact\"\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
— pathrequired
— headerrequired
Body required
{
  "status": "paid",
  "paymentMethod": "bancontact"
}
ResponseClear

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