Skip to main content
GET
/
loyalty
/
cp
/
api
/
transaction-by-shop
Get customer point transaction history
curl --request GET \
  --url https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop
import requests

url = "https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop';
const options = {method: 'GET'};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
require 'uri'
require 'net/http'

url = URI("https://loyalty-admin.appstle.com/loyalty/cp/api/transaction-by-shop")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
[
  {
    "createAt": "2025-01-15T10:30:00Z",
    "customerId": 67890,
    "id": 12345,
    "note": "Points earned for purchase",
    "pointType": "EARNED",
    "points": 50,
    "shop": "example-store.myshopify.com",
    "spentAmount": 99.99,
    "status": "APPROVED",
    "transactionRule": "ORDER_PLACED"
  }
]

Query Parameters

pageable
object
required

Pagination parameters (page number, size, sort)

Response

Point transactions retrieved successfully with pagination headers (X-Total-Count, Link)

customerId
integer<int64>
required
pointType
enum<string>
required
Available options:
DEBIT,
CREDIT
points
number<double>
required
autoApprovalDays
integer<int32>
contractId
string
createAt
string<date-time>
displayName
string
earnRuleId
integer<int64>
earnRuleName
string
id
integer<int64>
imported
boolean
note
string
orderFinancialStatus
string
orderFulfillmentStatus
string
orderId
integer<int64>
orderLineItemId
integer<int64>
orderName
string
reason
string
redeemRuleName
string
redeemRuleRuleId
integer<int64>
rewardType
enum<string>
Available options:
STORE_CREDIT,
DISCOUNT_CODE,
POINTS
shop
string
spentAmount
number<double>
status
enum<string>
Available options:
APPROVED,
PENDING,
REJECTED
transactionRule
enum<string>
Available options:
ADJUSTMENT,
EARN_RULE,
REDEEM_RULE,
REFERRAL