Update Order Details
PATCHhttps://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
- application/json
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
- 200
- 401
- 404
OK
Unauthorized
Not Found
- application/json
- Schema
- Example (auto)
Schema
messagestring
Example:
Order not found: order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b
{
"message": "Order not found: order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear