v1

latestOpenAPI 3.0.22026-07-2645239950.4 KB

List Member's Transaction API

get/transactions

Query parameters

start_cursorinteger

Defaults to 0. This is a cursor for use in pagination. start_index is the index that defines your place in the list. For instance, if you make a list request and receive 1000 objects, your subsequent call can include start_index=1001 in order to fetch the next page of the list.

countinteger

Defaults to 100. This is a limit on the number of objects to be returned. Count can range between 1 and 1000, and the default is 100.

approved_datestring
<p>This can be used to filter the list of transactions based on their approved_date in Zinrelo. Child parameters are:</p> <p>p&gt;To filter dates <strong>'equal to'</strong> a particular date, use operator "<strong>eq</strong>". Example: <strong>approved_date={"eq":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than'</strong> a particular date, use operator "<strong>gt</strong>". Example: <strong>approved_date={"gt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than or equal to'</strong> a particular date, use operator "<strong>gte</strong>". Example: <strong>approved_date={"gte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than' </strong>a particular date, use operator "<strong>lt</strong>". Example: <strong>approved_date={"lt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than or equal to'</strong> a particular date, use operator "<strong>lte</strong>". Example: <strong>approved_date={"lte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'between'</strong> a particular date, use operator "<strong>between</strong>". Example: <strong>approved_date</strong><strong>={"between":"12/01/2021-12/31/2022"}</strong></p> <p><strong>Note:</strong> Our API records all date and time fields in UTC time.</p>
created_datestring
<p>This can be used to filter the list of transactions based on their created_date in Zinrelo. Child parameters are</p> <p>p&gt;To filter dates <strong>'equal to'</strong> a particular date, use operator "<strong>eq</strong>". Example: <strong>created_date={"eq":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than'</strong> a particular date, use operator "<strong>gt</strong>". Example: <strong>created_date</strong><strong>={"gt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than or equal to'</strong> a particular date, use operator "<strong>gte</strong>". Example: <strong>created_date</strong><strong>={"gte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'l</strong><span style="font-weight: 400;"><strong>esser than'</strong> </span>a particular date, use operator "<strong>lt</strong>". Example: <strong>created_date</strong><strong>={"lt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than or equal to'</strong> a particular date, use operator "<strong>lte</strong>". Example: <strong>created_date</strong><strong>={"lte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'between'</strong> a particular date, use operator "<strong>between</strong>". Example: <strong>created_date</strong><strong>={"between":"12/01/2021-12/31/2022"}</strong></p> <p><strong>Note:</strong> Our API records all date and time fields in UTC time.</p>
last_modified_datestring
<p>This can be used to filter the list of transactions based on their last_modified date in Zinrelo. Child parameters are:</p> <p>To filter dates <strong>'equal to'</strong> a particular date, use operator "<strong>eq</strong>". Example: <strong>last_modified_date={"eq":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than'</strong> a particular date, use operator "<strong>gt</strong>". Example: <strong>last_modified_date={"gt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than or equal to'</strong> a particular date, use operator "<strong>gte</strong>". Example: <strong>last_modified_date={"gte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than' </strong>a particular date, use operator "<strong>lt</strong>". Example: <strong>last_modified_date={"lt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than or equal to'</strong> a particular date, use operator "<strong>lte</strong>". Example: <strong>last_modified_date={"lte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'between'</strong> a particular date, use operator "<strong>between</strong>". Example: <strong>last_modified_date={"between":"12/01/2021-12/31/2022"}</strong></p> <p><strong>Note:</strong> Our API records all date and time fields in UTC time.</p>
points_expiration_datestring
<p>This can be used to filter the list of transactions based on their points_expiration_date in Zinrelo. Child parameters are:</p> <p>To filter dates <strong>'equal to'</strong> a particular date, use operator "<strong>eq</strong>". Example: <strong>points_expiration_date={"eq":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than'</strong> a particular date, use operator "<strong>gt</strong>". Example: <strong>points_expiration_date</strong><strong>={"gt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'greater than or equal to'</strong> a particular date, use operator "<strong>gte</strong>". Example: <strong>points_expiration_date</strong><strong>={"gte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than' </strong>a particular date, use operator "<strong>lt</strong>". Example: <strong>points_expiration_date</strong><strong>={"lt":"01/21/2022"} </strong></p> <p>To filter dates <strong>'lesser than or equal to'</strong> a particular date, use operator "<strong>lte</strong>". Example: <strong>points_expiration_date</strong><strong>={"lte":"01/21/2022"} </strong></p> <p>To filter dates <strong>'between'</strong> a particular date, use operator "<strong>between</strong>". Example: <strong>points_expiration_date</strong><strong>={"between":"12/01/2021-12/31/2022"}</strong></p> <p><strong>Note:</strong> Our API records all date and time fields in UTC time.</p>
points_statusstring
<p>This filter will return the point status.</p> <p><strong>The value can be passed as:</strong></p> <p><strong>eq:</strong> Accepted values are &lsquo;approved, rejected, pending, redeemed, deducted, expired, redemption_pending, redemption_cancelled, pending_deduction, auto_rejected and auto_approved.' Pass the value of the status to get a list of all transactions with points_status equal to the value passed.</p> <p><strong>For example-</strong> {"eq":"approved"}</p> <p><strong>in:</strong> Pass a single string which may contain one status or multiple statuses separated by comma to get a list of all transactions whose points_status is one of the values passed.</p> <p><strong>For example-</strong> {"in":"approved, rejected"}</p>
statusstring
<p>This filter will return transaction status.</p> <p><strong>eq:</strong> Accepted values are Approved/ Rejected/ Pending.</p> <p><strong>For example-</strong> {"eq":"approved"}</p> <p><strong>in:</strong> Pass a single string which may contain one status or multiple statuses separated by comma to get a list of all transactions whose points_status is one of the values passed.</p> <p><strong>For example-</strong> {"in":"approved, rejected"}</p>
languagestring

One of the store languages, for example english/ italian/ german, etc.

Response

200

totalinteger

The total number of member's transactions.

next_cursorinteger

This is a cursor for use in pagination. start_index is the index that defines your place in the list. For instance, if you make a list request and receive 1000 objects, your subsequent call can include start_index=1001 in order to fetch the next page of the list.

moreboolean

Example response

{
  "total": 10,
  "next_cursor": 100,
  "transactions": [
    {
      "status": "approved",
      "auto_approval_date": "",
      "last_modified_date": "12-Sep-2023 10:11:20",
      "award_info": {
        "activity_id": "winback_bonus",
        "points": 100,
        "points_status": "approved",
        "activity_name": "Winback Bonus"
      },
      "member_id": "johndoe",
      "points_expiration_date": "13-Sep-2023 00:00:00",
      "approved_date": "12-Sep-2023 10:11:20",
      "created_date": "12-Sep-2023 10:11:20",
      "transaction_type": "award",
      "transaction_attributes": {
        "reason": "cartabondoned"
      },
      "id": "65003948ebeffa000ccc6bb8"
    },
    {
      "status": "approved",
      "auto_approval_date": "15-Nov-20232 16:10:00",
      "last_modified_date": "12-Sep-2023 10:14:18",
      "award_info": {
        "activity_id": "upload_photo",
        "points": 500,
        "points_status": "expired",
        "activity_name": "Upload a Photo"
      },
      "member_id": "johndoe",
      "points_expiration_date": "06-Oct-2019 00:00:00",
      "approved_date": "12-Sep-2023 10:01:36",
      "created_date": "12-Sep-2023 10:01:19",
      "transaction_type": "award",
      "transaction_attributes": {
        "reason": "photouploaded"
      },
      "id": "650036efebeffa00099d54ba"
    },
    {
      "status": "approved",
      "auto_approval_date": "",
      "last_modified_date": "12-Sep-2023 10:14:18",
      "award_info": {
        "activity_id": "submit_a_receipt",
        "points": 9,
        "points_status": "expired",
        "activity_name": "Submit a Receipt"
      },
      "member_id": "johndoe",
      "points_expiration_date": "06-Oct-2019 00:00:00",
      "approved_date": "12-Sep-2023 10:00:34",
      "created_date": "12-Sep-2023 10:00:17",
      "transaction_type": "award",
      "transaction_attributes": {
        "receipt_file_url": [
          "https://zinrelo-receipt-uploads.s3.amazonaws.com/c944754e96693d3cce82bc3ebcda9f9e.jpg"
        ]
      },
      "id": "650036b1c13154000c365f21"
    },
    {
      "status": "approved",
      "auto_approval_date": "",
      "last_modified_date": "12-Sep-2023 10:29:36",
      "award_info": {
        "activity_id": "made_a_purchase",
        "points": 1000,
        "points_status": "approved",
        "activity_name": "Purchase on website"
      },
      "member_id": "johndoe",
      "points_expiration_date": "13-Sep-2023 00:00:00",
      "approved_date": "12-Sep-2023 10:29:36",
      "created_date": "12-Sep-2023 00:00:00",
      "transaction_type": "award",
      "transaction_attributes": {
        "order_id": "7587746",
        "coupon_code": "$5OFFVYZ",
        "reason": "purchase"
      },
      "id": "65003d91e410b900092ef4e4"
    },
    {
      "status": "approved",
      "transaction_attributes": {},
      "last_modified_date": "08-Aug-2023 06:04:37",
      "member_id": "johndoe",
      "approved_date": "08-Aug-2023 06:04:37",
      "reward_info": {
        "reward_name": "$5 OFF COUPON",
        "points_status": "redeemed",
        "coupon_code": "3193E86A",
        "reward_id": "reward_bc668",
        "points": 500
      },
      "transaction_type": "redeem",
      "id": "64d1daf5339122000c4c3c0a",
      "created_date": "08-Aug-2023 06:04:37"
    },
    {
      "status": "approved",
      "transaction_attributes": {
        "reason": "Testing"
      },
      "last_modified_date": "05-May-2023 10:05:43",
      "transaction_type": "deduct",
      "approved_date": "05-May-2023 10:04:31",
      "member_id": "johndoe",
      "created_date": "05-May-2023 10:04:31",
      "id": "6454d4af3953d5000ccc3c26",
      "deduct_info": {
        "points": 10,
        "points_status": "deducted"
      }
    },
    {
      "status": "approved",
      "transaction_attributes": {
        "reason": "Testing"
      },
      "last_modified_date": "05-May-2023 10:00:09",
      "transaction_type": "deduct",
      "approved_date": "05-May-2023 09:59:28",
      "member_id": "johndoe",
      "created_date": "05-May-2023 09:59:28",
      "id": "6454d38077b86b000d2e555a",
      "deduct_info": {
        "points": 10,
        "points_status": "deducted"
      }
    },
    {
      "status": "approved",
      "transaction_attributes": {
        "reason": "Testing"
      },
      "last_modified_date": "05-May-2023 10:00:09",
      "transaction_type": "deduct",
      "approved_date": "05-May-2023 09:54:10",
      "member_id": "johndoe",
      "created_date": "05-May-2023 09:54:10",
      "id": "6454d2422e7adb000a78f2c5",
      "deduct_info": {
        "points": 10,
        "points_status": "deducted"
      }
    },
    {
      "status": "approved",
      "auto_approval_date": "",
      "last_modified_date": "12-Sep-2023 10:14:18",
      "award_info": {
        "activity_id": "created_an_account",
        "points": 10000,
        "points_status": "expired",
        "activity_name": "Account Creation"
      },
      "member_id": "johndoe",
      "points_expiration_date": "06-Oct-2019 00:00:00",
      "approved_date": "05-May-2023 07:44:43",
      "created_date": "05-May-2023 07:44:43",
      "transaction_type": "award",
      "transaction_attributes": {},
      "id": "6454b3ebe8d4a8000b15cc77"
    },
    {
      "status": "approved",
      "auto_approval_date": "",
      "last_modified_date": "12-Sep-2023 10:14:18",
      "award_info": {
        "activity_id": "made_a_purchase",
        "points": 1000,
        "points_status": "expired",
        "activity_name": "Purchase on website"
      },
      "member_id": "johndoe",
      "points_expiration_date": "06-Oct-2019 00:00:00",
      "approved_date": "12-Sep-2023 10:11:20",
      "created_date": "05-Oct-2019 23:10:55",
      "transaction_type": "award",
      "transaction_attributes": {
        "order_id": "758765",
        "coupon_code": "$5OFFVYZ",
        "reason": "purchase"
      },
      "id": "65003948ebeffa000ccc6bb7"
    }
  ],
  "more": false
}