# Order History
Order history endpoints return EasyPoints data about the specified order(s).
# Base Route
/api/shopify/orders
# Fields
The following fields may be returned:
Key | Type | Definition |
---|---|---|
id | String | The Shopify ID of the order |
awardable_points | Integer | The total number of points this order can award |
points_awarded | Integer | The number of points already awarded for this order |
points_redeemed | Integer | The number of points used to discount this order |
# Fetching a list of orders
# Route
Use the following GET route to fetch the point values of a list of orders. Provide the ids
request parameter with a comma-separated list of Shopify IDs of the orders for which you want to fetch point data.
Only the first 250 IDs at most will be accepted.
/api/shopify/orders?ids=
Example request and result:
GET "https://loyalty.slrs.io/api/shopify/orders?ids=123,456,789"
{
"data": {
"123": {
"awardable_points": 210,
"points_awarded": 210,
"points_redeemed": 0
},
"456": {
"awardable_points": 119,
"points_awarded": 0,
"points_redeemed": 200
}
}
}