Joy dev docs
User guide
  • Joy Javascript API
    • Introduction to the Joy SDK
    • Public API get methods
    • Public API action methods
    • Widget methods
  • Joy REST API
    • Customers
    • Earning programs
    • Redeeming programs
    • Points history
    • Rewards
    • Point manupulation
    • VIP Tiers
    • Referral
  • JOY OPEN API V2
    • Customer
Powered by GitBook
On this page
  1. Joy REST API

Points history

Getting customer points activities

PreviousRedeeming programsNextRewards

Last updated 8 months ago

List point activities

get
Query parameters
shopifyCustomerIdstringOptionalExample: {{shopifyCustomerId}}
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Responses
200
OK
application/json
Responseobject
get
GET /rest_api/v1/activities HTTP/1.1
Host: dev-api.joy.so
Accept: */*
200

OK

{
  "data": [
    {
      "id": "brCbhPapL9wNwT4YFfVs",
      "newPoint": 300,
      "userNote": "Admin Manual Adjust",
      "customerId": "JAGmPhhHg3f1yzH5C5KW",
      "oldPoint": 100,
      "shopId": "0iRAW9SPyJbW7nYpzDEd",
      "adminNote": "Manual Adjust",
      "source": "admin",
      "type": "adjust_point",
      "email": "demo@email.com",
      "content": null,
      "event": null,
      "programId": null,
      "programTitle": null,
      "priceRuleId": null,
      "discountId": null,
      "couponCode": null,
      "orderId": null,
      "orderNumber": null,
      "orderCurrency": null,
      "earnBy": null,
      "rateMoney": null,
      "earnPoint": null,
      "spendPoint": null,
      "referralCustomerEmail": null,
      "referredCustomerEmail": null,
      "milestoneOrder": null,
      "isPendingPointPlaceOrder": null,
      "refundPendingPoint": null,
      "pendingPointUntil": null,
      "reason": null,
      "createdAt": "2023-05-18T02:33:57.215Z",
      "updatedAt": "2023-05-18T02:33:57.215Z"
    },
    {
      "id": "4CeFCEudPq9AyXua3Qws",
      "newPoint": 100,
      "userNote": "",
      "customerId": "JAGmPhhHg3f1yzH5C5KW",
      "oldPoint": 0,
      "shopId": "0iRAW9SPyJbW7nYpzDEd",
      "adminNote": "Manual Adjust",
      "source": "admin",
      "type": "adjust_point",
      "email": "demo@email.com",
      "content": null,
      "event": null,
      "programId": null,
      "programTitle": null,
      "priceRuleId": null,
      "discountId": null,
      "couponCode": null,
      "orderId": null,
      "orderNumber": null,
      "orderCurrency": null,
      "earnBy": null,
      "rateMoney": null,
      "earnPoint": null,
      "spendPoint": null,
      "referralCustomerEmail": null,
      "referredCustomerEmail": null,
      "milestoneOrder": null,
      "isPendingPointPlaceOrder": null,
      "refundPendingPoint": null,
      "pendingPointUntil": null,
      "reason": null,
      "createdAt": "2023-05-18T02:33:31.746Z",
      "updatedAt": "2023-05-18T02:33:31.746Z"
    }
  ],
  "count": 2,
  "pageInfo": {
    "hasPre": false,
    "hasNext": false
  }
}