Get Order
curl --request GET \
--url https://api.loopreturns.com/api/v1/orders/{id} \
--header 'X-Authorization: <api-key>'import requests
url = "https://api.loopreturns.com/api/v1/orders/{id}"
headers = {"X-Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization': '<api-key>'}};
fetch('https://api.loopreturns.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.loopreturns.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 => [
"X-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://api.loopreturns.com/api/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.loopreturns.com/api/v1/orders/{id}")
.header("X-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loopreturns.com/api/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"order": {
"id": 810772123123123,
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"secondary_identifier": "<string>",
"source": "<string>",
"sales_channel": "shopify",
"customer": {
"id": 123123123123123,
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"sales_channel": "shopify",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"status": "active",
"shipping_address": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country_code": "US"
},
"billing_address": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country_code": "US"
},
"taxes_included": true,
"total_price": {
"amount": 50000,
"currency_code": "USD"
},
"total_price_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"total_discounts": {
"amount": 50000,
"currency_code": "USD"
},
"total_discounts_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"shipping_lines": [
{
"title": "<string>",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"discounts": {
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"discount_type": "amount",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
},
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
]
}
],
"order_discounts": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"discount_type": "amount",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"total_taxes": {
"amount": 50000,
"currency_code": "USD"
},
"total_taxes_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"tags": [
"VIP"
],
"refunds": [
[
{
"external_id": "pos-refund-2026-0807-0042",
"type": "line_item",
"amount": {
"amount": 17600,
"currency_code": "USD"
},
"line_items": [
{
"id": 810772123123127,
"external_id": "line-item-a",
"quantity": 1,
"restock": true
},
{
"id": 810772123123128,
"external_id": "line-item-b",
"quantity": 1,
"restock": false
}
],
"line_item": null,
"created_at": "2026-08-07T14:32:00-07:00",
"updated_at": "2026-08-07T14:32:00-07:00"
}
]
],
"line_items": [
{
"id": 2,
"external_id": "<string>",
"product": {
"id": 123,
"external_id": "<string>"
},
"product_variant": {
"id": 123,
"external_id": "<string>"
},
"quantity": 123,
"unit_price": {
"amount": 50000,
"currency_code": "USD"
},
"unit_price_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"unit_discounts": {
"amount": 50000,
"currency_code": "USD"
},
"unit_discounts_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"taxable": true,
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"refunds": [
{
"id": 123,
"external_id": "<string>",
"type": "line_item",
"amount": {
"amount": 50000,
"currency_code": "USD"
},
"line_item": {
"quantity": 123,
"restock": true
},
"created_at": "2023-04-25T13:25:00-05:00",
"updated_at": "2023-04-25T13:25:00-05:00"
}
],
"discounts": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"discount_type": "amount",
"discount_relation": "prereq",
"name": "<string>",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"duties": [
{
"hs_code": "<string>",
"country_of_origin": "US",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
]
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"fulfillments": [
{
"status": "success",
"id": 123,
"external_id": "<string>",
"fulfilled_at": "2023-11-07T05:31:56Z",
"shipping_carrier": "<string>",
"location": {
"id": 123,
"external_id": "<string>"
},
"fulfillment_line_items": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"order_line_item_external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"quantity": 123
}
],
"tracking_numbers": [
"<string>"
]
}
],
"created_at": "2023-04-25T13:25:00-05:00",
"updated_at": "2023-04-25T13:25:00-05:00",
"financial_status": "pending",
"cancel_reason": "customer",
"processed_at": "2023-04-25T13:25:00-05:00",
"browser_ip": "127.0.0.1",
"client_details_user_agent": "<string>",
"total_tip_received": {
"amount": 50000,
"currency_code": "USD"
},
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
}{
"errors": "Unauthorized."
}{
"message": "Resource not found."
}Orders
Get Order
Get details about a specific order.
GET
/
orders
/
{id}
Get Order
curl --request GET \
--url https://api.loopreturns.com/api/v1/orders/{id} \
--header 'X-Authorization: <api-key>'import requests
url = "https://api.loopreturns.com/api/v1/orders/{id}"
headers = {"X-Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization': '<api-key>'}};
fetch('https://api.loopreturns.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.loopreturns.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 => [
"X-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://api.loopreturns.com/api/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.loopreturns.com/api/v1/orders/{id}")
.header("X-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loopreturns.com/api/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"order": {
"id": 810772123123123,
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"secondary_identifier": "<string>",
"source": "<string>",
"sales_channel": "shopify",
"customer": {
"id": 123123123123123,
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"sales_channel": "shopify",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"status": "active",
"shipping_address": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country_code": "US"
},
"billing_address": {
"name": "John Smith",
"company": "Acme, Co",
"address1": "123 Example St",
"address2": "Box 123",
"city": "Columbus",
"region": "OH",
"postal_code": 12345,
"country_code": "US"
},
"taxes_included": true,
"total_price": {
"amount": 50000,
"currency_code": "USD"
},
"total_price_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"total_discounts": {
"amount": 50000,
"currency_code": "USD"
},
"total_discounts_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"shipping_lines": [
{
"title": "<string>",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"discounts": {
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"discount_type": "amount",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
},
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
]
}
],
"order_discounts": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"name": "<string>",
"discount_type": "amount",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"total_taxes": {
"amount": 50000,
"currency_code": "USD"
},
"total_taxes_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"tags": [
"VIP"
],
"refunds": [
[
{
"external_id": "pos-refund-2026-0807-0042",
"type": "line_item",
"amount": {
"amount": 17600,
"currency_code": "USD"
},
"line_items": [
{
"id": 810772123123127,
"external_id": "line-item-a",
"quantity": 1,
"restock": true
},
{
"id": 810772123123128,
"external_id": "line-item-b",
"quantity": 1,
"restock": false
}
],
"line_item": null,
"created_at": "2026-08-07T14:32:00-07:00",
"updated_at": "2026-08-07T14:32:00-07:00"
}
]
],
"line_items": [
{
"id": 2,
"external_id": "<string>",
"product": {
"id": 123,
"external_id": "<string>"
},
"product_variant": {
"id": 123,
"external_id": "<string>"
},
"quantity": 123,
"unit_price": {
"amount": 50000,
"currency_code": "USD"
},
"unit_price_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"unit_discounts": {
"amount": 50000,
"currency_code": "USD"
},
"unit_discounts_presentment": {
"amount": 50000,
"currency_code": "USD"
},
"taxable": true,
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"refunds": [
{
"id": 123,
"external_id": "<string>",
"type": "line_item",
"amount": {
"amount": 50000,
"currency_code": "USD"
},
"line_item": {
"quantity": 123,
"restock": true
},
"created_at": "2023-04-25T13:25:00-05:00",
"updated_at": "2023-04-25T13:25:00-05:00"
}
],
"discounts": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"discount_type": "amount",
"discount_relation": "prereq",
"name": "<string>",
"code": "<string>",
"reason": "<string>",
"rate": 123,
"tax_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
},
"net_adjustment_money": {
"amount": 50000,
"currency_code": "USD"
}
}
],
"duties": [
{
"hs_code": "<string>",
"country_of_origin": "US",
"price": {
"amount": 50000,
"currency_code": "USD"
},
"tax_lines": [
{
"title": "<string>",
"rate": 123,
"price": {
"amount": 50000,
"currency_code": "USD"
}
}
]
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"fulfillments": [
{
"status": "success",
"id": 123,
"external_id": "<string>",
"fulfilled_at": "2023-11-07T05:31:56Z",
"shipping_carrier": "<string>",
"location": {
"id": 123,
"external_id": "<string>"
},
"fulfillment_line_items": [
{
"external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"order_line_item_external_id": "564400c7-7a6b-4f29-b6a5-7bb580b2992c",
"quantity": 123
}
],
"tracking_numbers": [
"<string>"
]
}
],
"created_at": "2023-04-25T13:25:00-05:00",
"updated_at": "2023-04-25T13:25:00-05:00",
"financial_status": "pending",
"cancel_reason": "customer",
"processed_at": "2023-04-25T13:25:00-05:00",
"browser_ip": "127.0.0.1",
"client_details_user_agent": "<string>",
"total_tip_received": {
"amount": 50000,
"currency_code": "USD"
},
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
}{
"errors": "Unauthorized."
}{
"message": "Resource not found."
}