Skip to main content
GET
/
{locale}
/
shop
/
transactions
curl -X GET "https://staging-api.loyalty.lt/lt/shop/transactions?per_page=10" \
  -H "Authorization: Bearer your_jwt_token"
{
  "success": true,
  "code": 200,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "meta": {
    "current_page": 1,
    "last_page": 5,
    "per_page": 15,
    "total": 67
  },
  "data": [
    {
      "id": 1234,
      "type": "purchase",
      "points": 150,
      "amount": 49.99,
      "currency": "EUR",
      "description": "Pirkimas #WC-12345",
      "reference_number": "WC-12345",
      "status": "completed",
      "loyalty_card": {
        "id": 567,
        "name": "Coffee Paradise kortelė",
        "number": "123-456-789",
        "partner": {
          "id": 45,
          "name": "Coffee Paradise",
          "logo": "https://cdn.loyalty.lt/partners/45/logo.png"
        }
      },
      "shop": {
        "id": 12,
        "name": "Coffee Paradise - Vilnius"
      },
      "metadata": {
        "source": "woocommerce",
        "points_awarded": 150,
        "items_count": 3
      },
      "transaction_date": "2024-12-08T14:30:00.000Z",
      "created_at": "2024-12-08T14:30:00.000Z"
    },
    {
      "id": 1233,
      "type": "refund",
      "points": -50,
      "amount": 0,
      "currency": "EUR",
      "description": "Grąžinimas - užsakymas atšauktas",
      "reference_number": "REFUND-ABC123",
      "status": "completed",
      "loyalty_card": {
        "id": 567,
        "name": "Coffee Paradise kortelė",
        "number": "123-456-789",
        "partner": {
          "id": 45,
          "name": "Coffee Paradise",
          "logo": "https://cdn.loyalty.lt/partners/45/logo.png"
        }
      },
      "shop": null,
      "metadata": {
        "source": "woocommerce_refund",
        "points_deducted": 50,
        "reason": "Užsakymas atšauktas"
      },
      "transaction_date": "2024-12-07T10:15:00.000Z",
      "created_at": "2024-12-07T10:15:00.000Z"
    }
  ]
}

List User Transactions

Get paginated transaction history for the authenticated user across all their loyalty cards.
This endpoint requires User JWT authentication (Bearer token).

Path Parameters

locale
string
required
Language code (e.g., en, lt)

Authentication

Authorization
string
required
Bearer token from user loginExample: Bearer eyJ0eXAiOiJKV1Q...

Query Parameters

type
string
Filter by transaction typeValues: purchase, refund, bonus
loyalty_card_id
integer
Filter by specific loyalty card ID
date_from
string
Filter transactions from this date (YYYY-MM-DD)
date_to
string
Filter transactions until this date (YYYY-MM-DD)
per_page
integer
default:"15"
Number of items per page (max: 100)
page
integer
default:"1"
Page number

Response

success
boolean
Indicates if request was successful
code
integer
HTTP status code
request_id
string
Unique request identifier (UUID)
meta
object
data
array
curl -X GET "https://staging-api.loyalty.lt/lt/shop/transactions?per_page=10" \
  -H "Authorization: Bearer your_jwt_token"
{
  "success": true,
  "code": 200,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "meta": {
    "current_page": 1,
    "last_page": 5,
    "per_page": 15,
    "total": 67
  },
  "data": [
    {
      "id": 1234,
      "type": "purchase",
      "points": 150,
      "amount": 49.99,
      "currency": "EUR",
      "description": "Pirkimas #WC-12345",
      "reference_number": "WC-12345",
      "status": "completed",
      "loyalty_card": {
        "id": 567,
        "name": "Coffee Paradise kortelė",
        "number": "123-456-789",
        "partner": {
          "id": 45,
          "name": "Coffee Paradise",
          "logo": "https://cdn.loyalty.lt/partners/45/logo.png"
        }
      },
      "shop": {
        "id": 12,
        "name": "Coffee Paradise - Vilnius"
      },
      "metadata": {
        "source": "woocommerce",
        "points_awarded": 150,
        "items_count": 3
      },
      "transaction_date": "2024-12-08T14:30:00.000Z",
      "created_at": "2024-12-08T14:30:00.000Z"
    },
    {
      "id": 1233,
      "type": "refund",
      "points": -50,
      "amount": 0,
      "currency": "EUR",
      "description": "Grąžinimas - užsakymas atšauktas",
      "reference_number": "REFUND-ABC123",
      "status": "completed",
      "loyalty_card": {
        "id": 567,
        "name": "Coffee Paradise kortelė",
        "number": "123-456-789",
        "partner": {
          "id": 45,
          "name": "Coffee Paradise",
          "logo": "https://cdn.loyalty.lt/partners/45/logo.png"
        }
      },
      "shop": null,
      "metadata": {
        "source": "woocommerce_refund",
        "points_deducted": 50,
        "reason": "Užsakymas atšauktas"
      },
      "transaction_date": "2024-12-07T10:15:00.000Z",
      "created_at": "2024-12-07T10:15:00.000Z"
    }
  ]
}

Transaction Types

TypeDescription
purchasePoints earned from a purchase
refundPoints deducted due to refund
bonusBonus points (signup, promotion)