Orders
Place a gifting order
POST
/
api
/
gift-link
Copy
curl --request POST \
--url https://api.elliephant.com/api/gift-link \
--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>",
"gift_of_choice": "<string>",
"order_branding": "<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": 152,
"order_number": "EO-00152"
},
"order_totals": {
"currency": "AUD",
"product_price": 110,
"qty": 2,
"shipping_cost": 22,
"subtotal": 242,
"order_fee": 9.68,
"order_total": 251.68
},
"recipient_return": [
{
"suborder_id": 357,
"suborder_number": "EO-00152-1",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"gift_url": "https://elliephantv2.com/redeem-your-gift/bfb7f903acf87bfea4c9698f3e2a6138"
},
{
"suborder_id": 358,
"suborder_number": "EO-00152-2",
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"gift_url": "https://elliephantv2.com/redeem-your-gift/a5c7ba3d3d4c7250ccc3191a938030d5"
}
]
}
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/gift-link \
--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>",
"gift_of_choice": "<string>",
"order_branding": "<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": 152,
"order_number": "EO-00152"
},
"order_totals": {
"currency": "AUD",
"product_price": 110,
"qty": 2,
"shipping_cost": 22,
"subtotal": 242,
"order_fee": 9.68,
"order_total": 251.68
},
"recipient_return": [
{
"suborder_id": 357,
"suborder_number": "EO-00152-1",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"gift_url": "https://elliephantv2.com/redeem-your-gift/bfb7f903acf87bfea4c9698f3e2a6138"
},
{
"suborder_id": 358,
"suborder_number": "EO-00152-2",
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"gift_url": "https://elliephantv2.com/redeem-your-gift/a5c7ba3d3d4c7250ccc3191a938030d5"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.