Orders
Release an order
PUT
/
orders
/
{orderId}
/
release
Release an order
curl --request PUT \
--url https://api.readmin.app/orders/{orderId}/release \
--header 'Content-Type: application/json' \
--header 'loader-id: <api-key>' \
--data '
{
"actorId": "<string>"
}
'import requests
url = "https://api.readmin.app/orders/{orderId}/release"
payload = { "actorId": "<string>" }
headers = {
"loader-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'loader-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actorId: '<string>'})
};
fetch('https://api.readmin.app/orders/{orderId}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.readmin.app/orders/{orderId}/release",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'actorId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"loader-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.readmin.app/orders/{orderId}/release"
payload := strings.NewReader("{\n \"actorId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("loader-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.readmin.app/orders/{orderId}/release")
.header("loader-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actorId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.readmin.app/orders/{orderId}/release")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["loader-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actorId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"order": {
"groupId": "<string>",
"customerId": "<string>",
"cashierId": "<string>",
"items": [
{
"item": "<string>",
"quantity": 123
}
],
"placeId": "<string>",
"gameId": "<string>",
"created": "2023-11-07T05:31:56Z",
"_id": "<string>",
"log": [
{
"event": "<string>",
"userId": "<string>",
"date": "2023-11-07T05:31:56Z"
}
],
"involvedUsers": [
"<string>"
],
"lastModified": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"reason": "<string>"
}{
"success": false,
"reason": "<string>"
}{
"success": false,
"reason": "<string>"
}⌘I
Release an order
curl --request PUT \
--url https://api.readmin.app/orders/{orderId}/release \
--header 'Content-Type: application/json' \
--header 'loader-id: <api-key>' \
--data '
{
"actorId": "<string>"
}
'import requests
url = "https://api.readmin.app/orders/{orderId}/release"
payload = { "actorId": "<string>" }
headers = {
"loader-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'loader-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({actorId: '<string>'})
};
fetch('https://api.readmin.app/orders/{orderId}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.readmin.app/orders/{orderId}/release",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'actorId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"loader-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.readmin.app/orders/{orderId}/release"
payload := strings.NewReader("{\n \"actorId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("loader-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.readmin.app/orders/{orderId}/release")
.header("loader-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actorId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.readmin.app/orders/{orderId}/release")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["loader-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actorId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"order": {
"groupId": "<string>",
"customerId": "<string>",
"cashierId": "<string>",
"items": [
{
"item": "<string>",
"quantity": 123
}
],
"placeId": "<string>",
"gameId": "<string>",
"created": "2023-11-07T05:31:56Z",
"_id": "<string>",
"log": [
{
"event": "<string>",
"userId": "<string>",
"date": "2023-11-07T05:31:56Z"
}
],
"involvedUsers": [
"<string>"
],
"lastModified": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"reason": "<string>"
}{
"success": false,
"reason": "<string>"
}{
"success": false,
"reason": "<string>"
}