Read customer order history

This endpoint allows you to fetch order history for a customer.

get/2026-04/customer/{customerId}/order/history

Request

  • Base URL
    https://api.loopsubscriptions.com/admin
  • URL
    https://api.loopsubscriptions.com/admin/2026-04/customer/{customerId}/order/history
  • Auth
    API key in header X-Loop-Token

Path parameters

customerIdstring required

Response

successboolean
messagestring
codestring

Example response

{
  "success": true,
  "message": "Orders fetched successfully",
  "data": [
    {
      "id": 286043498,
      "shopifyId": 7250607735091,
      "status": "PROCESSED",
      "billingDateEpoch": 1783058491,
      "financialStatus": "paid",
      "shopifyCreatedAt": "2026-07-03T06:01:38.000Z",
      "shopifyProcessedAt": "2026-07-03T06:01:33.000Z",
      "shopifyUpdatedAt": "2026-07-03T06:01:42.000Z",
      "currencyCode": "USD",
      "totalPriceUsd": "60.49",
      "totalDiscount": "0.00",
      "totalLineItemsPrice": "58.49",
      "totalShippingPrice": "2.00",
      "shopifyOrderNumber": 1587,
      "totalPrice": "60.49",
      "totalTax": "0.00",
      "orderType": "RECURRING",
      "shippingAddress": {
        "firstName": "John",
        "lastName": "Smith",
        "phone": "9993342340",
        "address1": "sheetal cooler house Janta Colony",
        "city": "Raipur",
        "zip": "492001",
        "provinceCode": "CG",
        "countryCode": "IN"
      },
      "subscription": {
        "id": 30297484,
        "shopifyId": 29144285491,
        "status": "PAUSED"
      },
      "lines": [
        {
          "productShopifyId": 10193276207411,
          "variantShopifyId": 53462862987571,
          "productTitle": "3 in 1  Box",
          "variantTitle": "Small",
          "name": "3 in 1  Box - Small",
          "quantity": 1,
          "price": 38.49,
          "currentQuantity": 1
        }
      ],
      "updatedAt": "2026-07-03T06:02:14.000Z"
    }
  ],
  "code": "SUCCESS"
}

Changes

No recorded changes to this operation across all 1 revision of this API.