Orders
Place an order
POST
/
api
/
order
Copy
curl --request POST \
--url https://api.elliephant.com/api/order \
--header 'API-KEY: <api-key>' \
--header 'API-PASSWORD: <api-key>' \
--header 'CLIENT-ID: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"order_ref_id": "<string>",
"product_id": 123,
"variation_id": 123,
"currency": "<string>",
"base_location": "<string>",
"recipient_details": [
{
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"delivery_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"suburb": "<string>",
"state": "<string>",
"postcode_zipcode": "<string>",
"country": "<string>"
}
}
]
}'
Copy
{
"status": "success",
"order_data": {
"order_id": 145,
"order_number": "EO-00145"
},
"order_totals": {
"currency": "AUD",
"product_price": 110,
"qty": 2,
"subtotal": 242,
"shipping_cost": 22,
"order_fee": 9.68,
"order_total": 251.68
}
}
Authorizations
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
Copy
curl --request POST \
--url https://api.elliephant.com/api/order \
--header 'API-KEY: <api-key>' \
--header 'API-PASSWORD: <api-key>' \
--header 'CLIENT-ID: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"order_ref_id": "<string>",
"product_id": 123,
"variation_id": 123,
"currency": "<string>",
"base_location": "<string>",
"recipient_details": [
{
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"delivery_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"suburb": "<string>",
"state": "<string>",
"postcode_zipcode": "<string>",
"country": "<string>"
}
}
]
}'
Copy
{
"status": "success",
"order_data": {
"order_id": 145,
"order_number": "EO-00145"
},
"order_totals": {
"currency": "AUD",
"product_price": 110,
"qty": 2,
"subtotal": 242,
"shipping_cost": 22,
"order_fee": 9.68,
"order_total": 251.68
}
}
Assistant
Responses are generated using AI and may contain mistakes.