Get User Reward Merge Details

Get all merge details in an org

This listing API retrieves the reward merge details within an organization. You can filter the results of specific customers and specify the number of entries to display.

Prerequisites

  • Authentication: Basic/OAuth authentication
  • Access group: Default access group

Resource Information

URI/api_gateway/rewards/core/v1/user-merge
HTTP MethodGET
PaginationYes. Sorting is not supported. The sorting order is chronological.
Batch supportNA
Rate limit informationNA

API endpoint example

https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/user-merge

Request query parameters

Parameter (Parameters marked as * are required)Data TypeDescription
fromUserIdLongUnique customer ID of the victim customer. This is the user account from which rewards and their data were transferred.
toUserIdLongUnique customer ID of the surviving customer. This is the user account that received the rewards and their data from the victim account.
pageIntegerPage number to retrieve. To view the first page, set the value to 0.
sizeIntegerNumber of entries to display per page. For example, if the total records are 15 and the limit is 5, the first page will display the first 5 records. The maximum supported limit is 50.

Response body

{
    "userMerge": [
        {
            "fromUserId": 423930934,
            "toUserId": 423930935,
            "requestId": "merge_123",
            "mergeUserStatus": "SUCCESS"
        }
    ],
    "pagingDto": {
        "last": false,
        "totalElements": 66,
        "totalPages": 66,
        "numberOfElements": 1,
        "first": true,
        "size": 1,
        "number": 0
    }
}

Response body paramters

ParameterDescription
userMergeObject containing details of the customers and merge status.
- fromUserIdUnique customer ID of the victim customer. This is the user account from which rewards and other associated data are transferred.
- toUserIdUnique customer ID of the surviving customer. This is the user account that receives the rewards and other associated data from the victim account.
- requestIdUnique custom ID associated with the merge. This is used to track the merge status and handle any errors.
- mergeUserStatusIndicates the status of the merge. Possible values:
SUCCESS: Merge was successful.
FAIL: Merge was unsuccessful.
pagingDtoObject containing details of the pagination.
- lastIndicates whether the current page is the last. If true, it is the last page; if false, additional pages may be available.
- totalElementsTotal number of entries available.
- totalPagesTotal number of pages available.
- numberOfElementsNumber of entries currently displayed.
- firstIndicates whether the current page is the first page. If true, it is the first page; if false, previous pages may be available.
- sizeNumber of entries currently displayed.
- numberCurrent page number that is displayed.

API specific errors

Error CodeDescriptionReason
400size should be less than or equal to 50size provided must be less than 50.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!