Skip to main content
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": 1529,
  "order_status": "COMPLETE",
  "customer": "AcmeCo",
  "reference": "A1234567890",
  "deal_date": "2025-01-28",
  "expiry_date": null,
  "currency": "USD",
  "order_terms": "Pay on delivery",
  "delivery_method": "RETIREMENT",
  "deliveries": [
    {
      "friendly_id": "dl_H8pvrPHBQ3Dd76oL",
      "project_name": "Southeast Capture",
      "quantity": 20,
      "price_in_cents_in_currency": 12000,
      "delivery_total_in_cents_in_currency": 12000,
      "currency": "USD",
      "estimated_delivery_date": "2025-02-28",
      "delivered_date": "2025-02-21",
      "delivery_status": "DELIVERED",
      "fulfilled_quantity": 20,
      "delivered_quantity": 20,
      "is_paid": true
    }
  ],
  "created_at": "2024-05-10T15:58:21.209Z",
  "updated_at": "2024-05-10T15:58:21.209Z"
}
"{}"
{
"status": "error",
"statusCode": 404,
"errors": [
{
"message": "Record not found."
}
]
}

Authorizations

Authorization
string
header
required

Path Parameters

order_id
integer<int32>
required

Response

200

id
integer
default:0
Example:

1529

order_status
string
Example:

"COMPLETE"

customer
string
Example:

"AcmeCo"

reference
string
Example:

"A1234567890"

deal_date
string
Example:

"2025-01-28"

expiry_date
any
currency
string
Example:

"USD"

order_terms
string
Example:

"Pay on delivery"

delivery_method
string
Example:

"RETIREMENT"

deliveries
object[]
created_at
string
Example:

"2024-05-10T15:58:21.209Z"

updated_at
string
Example:

"2024-05-10T15:58:21.209Z"