Retrieve a specific order
curl --request GET \
--url https://api.elliephant.com/api/order \
--header 'API-KEY: <api-key>' \
--header 'API-PASSWORD: <api-key>' \
--header 'CLIENT-ID: <api-key>'import requests
url = "https://api.elliephant.com/api/order"
headers = {
"CLIENT-ID": "<api-key>",
"API-KEY": "<api-key>",
"API-PASSWORD": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'CLIENT-ID': '<api-key>', 'API-KEY': '<api-key>', 'API-PASSWORD': '<api-key>'}
};
fetch('https://api.elliephant.com/api/order', 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.elliephant.com/api/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"API-PASSWORD: <api-key>",
"CLIENT-ID: <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.elliephant.com/api/order"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("CLIENT-ID", "<api-key>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("API-PASSWORD", "<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.elliephant.com/api/order")
.header("CLIENT-ID", "<api-key>")
.header("API-KEY", "<api-key>")
.header("API-PASSWORD", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elliephant.com/api/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["CLIENT-ID"] = '<api-key>'
request["API-KEY"] = '<api-key>'
request["API-PASSWORD"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"order_id": "133",
"order_number": "EO-00133",
"order_date": "2024-05-08 11:50am",
"order_status": "paid",
"gift_order_method": "email",
"gift_of_choice": "N",
"branding_selected": "elliephant",
"branding_options": {
"branding_logo": "/assets/logos/email-logo.png",
"branding_claim_logo": "/assets/logos/primary-logo-white.svg",
"primary_color": "#FF0054",
"secondary_color": "#9E0059"
},
"product_offered": {
"product_id": "5737",
"variation_id": null
},
"order_totals": {
"currency": "USD",
"product_price": "12.77",
"qty": "3",
"subtotal": "38.30",
"shipping_cost": "19.01",
"order_fee": "2.29",
"order_total": "59.60"
},
"email_template": "celebration",
"recipients": [
{
"suborder_id": 327,
"suborder_number": "EO-00133-1",
"recipient_details": {
"name": "Johnny Tester",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": null,
"address_line_2": null,
"suburb": null,
"state": null,
"postcode_zipcode": null,
"country": null
},
"phone_number": "NA",
"delivery_notes": null,
"gift_url": "https://members.elliephant.com/redeem-your-gift/a1b2c3"
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
},
{
"suborder_id": 328,
"suborder_number": "EO-00133-2",
"recipient_details": {
"name": "Joshua Smith",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": "123 Example Street",
"address_line_2": null,
"suburb": "Example Town",
"state": "Victoria",
"postcode_zipcode": "9876",
"country": "Australia"
},
"phone_number": "0412345678",
"delivery_notes": null
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
},
{
"suborder_id": 329,
"suborder_number": "EO-00133-3",
"recipient_details": {
"name": "Jane Doe",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": "123 Sample Street",
"address_line_2": null,
"suburb": "Sample Town",
"state": "Victoria",
"postcode_zipcode": "1234",
"country": "Australia"
},
"phone_number": "NA",
"delivery_notes": null
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
}
]
}Orders
Retrieve a specific order
GET
/
api
/
order
Retrieve a specific order
curl --request GET \
--url https://api.elliephant.com/api/order \
--header 'API-KEY: <api-key>' \
--header 'API-PASSWORD: <api-key>' \
--header 'CLIENT-ID: <api-key>'import requests
url = "https://api.elliephant.com/api/order"
headers = {
"CLIENT-ID": "<api-key>",
"API-KEY": "<api-key>",
"API-PASSWORD": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'CLIENT-ID': '<api-key>', 'API-KEY': '<api-key>', 'API-PASSWORD': '<api-key>'}
};
fetch('https://api.elliephant.com/api/order', 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.elliephant.com/api/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"API-PASSWORD: <api-key>",
"CLIENT-ID: <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.elliephant.com/api/order"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("CLIENT-ID", "<api-key>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("API-PASSWORD", "<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.elliephant.com/api/order")
.header("CLIENT-ID", "<api-key>")
.header("API-KEY", "<api-key>")
.header("API-PASSWORD", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elliephant.com/api/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["CLIENT-ID"] = '<api-key>'
request["API-KEY"] = '<api-key>'
request["API-PASSWORD"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"order_id": "133",
"order_number": "EO-00133",
"order_date": "2024-05-08 11:50am",
"order_status": "paid",
"gift_order_method": "email",
"gift_of_choice": "N",
"branding_selected": "elliephant",
"branding_options": {
"branding_logo": "/assets/logos/email-logo.png",
"branding_claim_logo": "/assets/logos/primary-logo-white.svg",
"primary_color": "#FF0054",
"secondary_color": "#9E0059"
},
"product_offered": {
"product_id": "5737",
"variation_id": null
},
"order_totals": {
"currency": "USD",
"product_price": "12.77",
"qty": "3",
"subtotal": "38.30",
"shipping_cost": "19.01",
"order_fee": "2.29",
"order_total": "59.60"
},
"email_template": "celebration",
"recipients": [
{
"suborder_id": 327,
"suborder_number": "EO-00133-1",
"recipient_details": {
"name": "Johnny Tester",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": null,
"address_line_2": null,
"suburb": null,
"state": null,
"postcode_zipcode": null,
"country": null
},
"phone_number": "NA",
"delivery_notes": null,
"gift_url": "https://members.elliephant.com/redeem-your-gift/a1b2c3"
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
},
{
"suborder_id": 328,
"suborder_number": "EO-00133-2",
"recipient_details": {
"name": "Joshua Smith",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": "123 Example Street",
"address_line_2": null,
"suburb": "Example Town",
"state": "Victoria",
"postcode_zipcode": "9876",
"country": "Australia"
},
"phone_number": "0412345678",
"delivery_notes": null
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
},
{
"suborder_id": 329,
"suborder_number": "EO-00133-3",
"recipient_details": {
"name": "Jane Doe",
"email": "[email protected]",
"email_message": "Thanks for the hard work",
"delivery_address": {
"address_line_1": "123 Sample Street",
"address_line_2": null,
"suburb": "Sample Town",
"state": "Victoria",
"postcode_zipcode": "1234",
"country": "Australia"
},
"phone_number": "NA",
"delivery_notes": null
},
"redemption_status": null,
"product_selected": {
"product_id": "5737",
"variation_id": null
}
}
]
}Authorizations
Response
200 - application/json
Successful response
The original product offered. This will be an array containing product_id and variation_id. This connects to the product id and variation id retreved in the GET/api/product/:id method.