Get Order Status
curl --request GET \
--url https://api.vertracloud.app/v1/orders/{orderId}/statusimport requests
url = "https://api.vertracloud.app/v1/orders/{orderId}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/orders/{orderId}/status', 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.vertracloud.app/v1/orders/{orderId}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/orders/{orderId}/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/orders/{orderId}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/orders/{orderId}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"id": "order-abc123",
"status": "unpaid",
"price": 24.9,
"related_to": { "plan": { "name": "PRO", "months": 1 } }
}
}
Billing
Get Order Status
Retrieves the current status of a single order.
GET
/
v1
/
orders
/
{orderId}
/
status
Get Order Status
curl --request GET \
--url https://api.vertracloud.app/v1/orders/{orderId}/statusimport requests
url = "https://api.vertracloud.app/v1/orders/{orderId}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/orders/{orderId}/status', 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.vertracloud.app/v1/orders/{orderId}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/orders/{orderId}/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/orders/{orderId}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/orders/{orderId}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"id": "order-abc123",
"status": "unpaid",
"price": 24.9,
"related_to": { "plan": { "name": "PRO", "months": 1 } }
}
}
string
required
The order ID.
Response
object
{
"response": {
"id": "order-abc123",
"status": "unpaid",
"price": 24.9,
"related_to": { "plan": { "name": "PRO", "months": 1 } }
}
}
Error Responses
string
The error code indicating the reason for failure. Possible values:
UNAUTHORIZED: The user is not authenticated.USER_NOT_FOUND: The authenticated user was not found.ORDER_NOT_FOUND: The specified order does not exist.FORBIDDEN: The order does not belong to the authenticated user.INTERNAL_SERVER_ERROR: An unexpected server error occurred.
{
"code": "ORDER_NOT_FOUND"
}
{
"code": "FORBIDDEN"
}