Get an order by id
curl --request GET \
--url https://api.salesive.com/api/v1/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/orders/{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://api.salesive.com/api/v1/orders/{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: Bearer <token>"
],
]);
$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.salesive.com/api/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.salesive.com/api/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Order retrieved",
"data": {
"_id": "66b1f0a3c2d4e5f6a7b8c9d0",
"orderId": 1042,
"user": {
"_id": "66a0c1d2e3f4a5b6c7d8e9f0",
"name": "Ada Lovelace",
"email": "ada@example.com",
"phone": "+2348012345678",
"customerId": "66a0d0e1f2a3b4c5d6e7f8a9",
"lastActive": "2026-06-20T14:02:11.000Z",
"customerSince": "2025-11-03T09:15:00.000Z"
},
"items": [
{
"_id": "66b1f0a3c2d4e5f6a7b8c9d1",
"product": {
"_id": "6699aabbccddeeff00112233",
"name": "Wireless Earbuds",
"images": [
"https://cdn.salesive.com/p/earbuds.jpg"
]
},
"variant": null,
"name": "Wireless Earbuds",
"sku": "WE-BLK-01",
"price": 24990,
"quantity": 2,
"variantAttributes": {},
"imageUrl": "https://cdn.salesive.com/p/earbuds.jpg"
}
],
"status": "paid",
"payment": {
"_id": "66b1f0a3c2d4e5f6a7b8c9e0",
"status": "completed",
"amount": 49980,
"method": "card",
"transactionId": "txn_9f8e7d6c"
},
"coupon": {
"_id": "66a9b8c7d6e5f4a3b2c1d0e9",
"code": "WELCOME10",
"discountType": "percentage",
"discountValue": 10
},
"shipment": {
"_id": "66b1f0a3c2d4e5f6a7b8c9f0",
"status": "pending",
"carrier": "DHL",
"trackingNumber": "TRK123456",
"trackingUrl": "https://track.dhl.com/TRK123456",
"trackingHistory": [],
"estimatedDelivery": "2026-06-25T00:00:00.000Z",
"shippingAddress": {
"name": "Ada Lovelace",
"address": "12 Marina Rd",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "NG",
"email": "ada@example.com",
"phone": "+2348012345678"
},
"shippingOption": {
"name": "Standard Shipping",
"description": "3-5 business days",
"type": "flat",
"price": 1500
}
},
"discount": 0,
"subtotal": 49980,
"shippingCost": 0,
"tax": 0,
"source": "online",
"paymentMethod": "card",
"total": 49980,
"createdAt": "2026-06-21T10:30:00.000Z",
"updatedAt": "2026-06-21T10:35:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Order not found",
"data": null
}Orders
Get an order by id
Retrieve a single fully populated order by its id. Requires the READ_ORDERS scope.
GET
/
orders
/
{id}
Get an order by id
curl --request GET \
--url https://api.salesive.com/api/v1/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/orders/{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://api.salesive.com/api/v1/orders/{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: Bearer <token>"
],
]);
$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.salesive.com/api/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.salesive.com/api/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Order retrieved",
"data": {
"_id": "66b1f0a3c2d4e5f6a7b8c9d0",
"orderId": 1042,
"user": {
"_id": "66a0c1d2e3f4a5b6c7d8e9f0",
"name": "Ada Lovelace",
"email": "ada@example.com",
"phone": "+2348012345678",
"customerId": "66a0d0e1f2a3b4c5d6e7f8a9",
"lastActive": "2026-06-20T14:02:11.000Z",
"customerSince": "2025-11-03T09:15:00.000Z"
},
"items": [
{
"_id": "66b1f0a3c2d4e5f6a7b8c9d1",
"product": {
"_id": "6699aabbccddeeff00112233",
"name": "Wireless Earbuds",
"images": [
"https://cdn.salesive.com/p/earbuds.jpg"
]
},
"variant": null,
"name": "Wireless Earbuds",
"sku": "WE-BLK-01",
"price": 24990,
"quantity": 2,
"variantAttributes": {},
"imageUrl": "https://cdn.salesive.com/p/earbuds.jpg"
}
],
"status": "paid",
"payment": {
"_id": "66b1f0a3c2d4e5f6a7b8c9e0",
"status": "completed",
"amount": 49980,
"method": "card",
"transactionId": "txn_9f8e7d6c"
},
"coupon": {
"_id": "66a9b8c7d6e5f4a3b2c1d0e9",
"code": "WELCOME10",
"discountType": "percentage",
"discountValue": 10
},
"shipment": {
"_id": "66b1f0a3c2d4e5f6a7b8c9f0",
"status": "pending",
"carrier": "DHL",
"trackingNumber": "TRK123456",
"trackingUrl": "https://track.dhl.com/TRK123456",
"trackingHistory": [],
"estimatedDelivery": "2026-06-25T00:00:00.000Z",
"shippingAddress": {
"name": "Ada Lovelace",
"address": "12 Marina Rd",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "NG",
"email": "ada@example.com",
"phone": "+2348012345678"
},
"shippingOption": {
"name": "Standard Shipping",
"description": "3-5 business days",
"type": "flat",
"price": 1500
}
},
"discount": 0,
"subtotal": 49980,
"shippingCost": 0,
"tax": 0,
"source": "online",
"paymentMethod": "card",
"total": 49980,
"createdAt": "2026-06-21T10:30:00.000Z",
"updatedAt": "2026-06-21T10:35:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Order not found",
"data": null
}Returns one order with populated items, customer, payment (with transaction id), coupon and full shipment details. The store is bound to your app token server-side — never send a shop id.
Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
The order's id (Mongo ObjectId).
Response
The requested order, fully populated.
Standard Salesive response envelope. The operation-specific payload is carried in data.
Was this page helpful?
⌘I

