List order history
Changed onThis endpoint allows you to retrieve the complete order history for a specific subscription, including their statuses and details.
get/2023-10/subscription/{subscriptionId}/order/history
Request
- Base URLhttps://api.loopsubscriptions.com/storefront
- URLhttps://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/order/history
- AuthAPI key in header Authorization
Path parameters
subscriptionIdinteger required
The unique identifier for a subscription in Loop.
Response
200
Example response
{
"success": true,
"message": "Order history fetched successfully",
"data": [
{
"id": 63892058,
"shopifyId": 5806745583925,
"status": "PROCESSED",
"billingDate": "2023-11-01T22:25:46.000Z",
"financialStatus": "paid",
"shopifyCreatedAt": "2023-11-01T22:25:49.000Z",
"shopifyProcessedAt": "2023-11-01T22:25:49.000Z",
"shopifyUpdatedAt": "2023-11-01T22:25:52.000Z",
"currencyCode": "USD",
"totalPriceUsd": "31.86",
"totalDiscount": "3.00",
"totalLineItemsPrice": "30.00",
"totalShippingPrice": "0.00",
"shopifyOrderNumber": 2274,
"lines": [
{
"productShopifyId": 8353507115317,
"variantShopifyId": 45306180829493,
"name": "aged-river - black / rubber",
"productTitle": "aged-river",
"variantTitle": "black / rubber",
"price": 30,
"quantity": 1
}
],
"shippingAddress": {
"name": "Manas Oswal",
"city": "Pune",
"zip": "411002",
"address1": "Pune",
"address2": "Pune",
"provinceCode": "MH",
"countryCode": "IN"
}
}
],
"code": "SUCCESS"
}Changes
- breaking
for the
pathrequest parametersubscriptionId, the type changed fromstringtointeger, and format from no format toint32 - breaking
the
////response's property type changed from no type tostringfor status - breaking
the
///response's property type changed from no type tostringfor status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- breaking