Skip to main content
POST
/
api
/
v2
/
Retrieve Multiple Order Statuses
curl --request POST \
  --url https://undrctrl.id/api/v2/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "apiKey",
  "action": "status",
  "orders": "123456789,987654321,1122334455"
}
'
import requests

url = "https://undrctrl.id/api/v2/"

payload = {
"key": "apiKey",
"action": "status",
"orders": "123456789,987654321,1122334455"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({key: 'apiKey', action: 'status', orders: '123456789,987654321,1122334455'})
};

fetch('https://undrctrl.id/api/v2/', 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://undrctrl.id/api/v2/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => 'apiKey',
'action' => 'status',
'orders' => '123456789,987654321,1122334455'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$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://undrctrl.id/api/v2/"

payload := strings.NewReader("{\n \"key\": \"apiKey\",\n \"action\": \"status\",\n \"orders\": \"123456789,987654321,1122334455\"\n}")

req, _ := http.NewRequest("POST", url, payload)

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.post("https://undrctrl.id/api/v2/")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"apiKey\",\n \"action\": \"status\",\n \"orders\": \"123456789,987654321,1122334455\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://undrctrl.id/api/v2/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"apiKey\",\n \"action\": \"status\",\n \"orders\": \"123456789,987654321,1122334455\"\n}"

response = http.request(request)
puts response.read_body
{}
{
"error": "Invalid API key"
}
{
"error": "Incorrect request"
}

Body

application/json
key
string
required

The API key to fetch the order status

Example:

"apiKey"

action
string
required

Action to be performed, set to status

Example:

"status"

orders
string
required

Order IDs separated by a comma, up to 100 IDs

Example:

"123456789,987654321,1122334455"

Response

OK

{key}
object