Orders
Retrieve an order
Returns a specific customer order by ID. Requires the read:order token scope.
GET
/
orders
/
{order_id}
Retrieve an order
curl --request GET \
--url https://app.gomangrove.com/api/v1/orders/{order_id} \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/orders/{order_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/orders/{order_id}', 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://app.gomangrove.com/api/v1/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/orders/{order_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "ord_aBcD1234eFgH5678",
"order_type": "Email",
"order_status": "Complete",
"reference": "A1234567890",
"deal_date": "2025-01-28",
"currency": "USD",
"order_terms": "Pay on delivery",
"delivery_method": "retirement",
"beneficiary_name": null,
"beneficiary_country": null,
"beneficiary_reason": null,
"deliveries": [
{
"id": "dl_aBcD1234eFgH5678",
"vintage": 2024,
"quantity": 20,
"price": 120,
"amount_after_commissions": 2400,
"currency": "USD",
"order_id": "ord_aBcD1234eFgH5678",
"order_status": "sold",
"order_status_name": "Complete",
"estimated_delivery_date": "2025-02-28",
"delivered_date": "2025-02-21",
"delivered_quantity": 20,
"delivery_status": "delivered",
"fulfilled_quantity": 20,
"supplier_payment_date": null,
"project_name": "Southeast Capture Project",
"project_registry_id": 3,
"is_paid": true
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "Record not found"
}
]
}Response
The order.
⌘I
Retrieve an order
curl --request GET \
--url https://app.gomangrove.com/api/v1/orders/{order_id} \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/orders/{order_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/orders/{order_id}', 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://app.gomangrove.com/api/v1/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/orders/{order_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "ord_aBcD1234eFgH5678",
"order_type": "Email",
"order_status": "Complete",
"reference": "A1234567890",
"deal_date": "2025-01-28",
"currency": "USD",
"order_terms": "Pay on delivery",
"delivery_method": "retirement",
"beneficiary_name": null,
"beneficiary_country": null,
"beneficiary_reason": null,
"deliveries": [
{
"id": "dl_aBcD1234eFgH5678",
"vintage": 2024,
"quantity": 20,
"price": 120,
"amount_after_commissions": 2400,
"currency": "USD",
"order_id": "ord_aBcD1234eFgH5678",
"order_status": "sold",
"order_status_name": "Complete",
"estimated_delivery_date": "2025-02-28",
"delivered_date": "2025-02-21",
"delivered_quantity": 20,
"delivery_status": "delivered",
"fulfilled_quantity": 20,
"supplier_payment_date": null,
"project_name": "Southeast Capture Project",
"project_registry_id": 3,
"is_paid": true
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "Record not found"
}
]
}