Get transaction details by reward transaction ID in connected orgs

This API is used to retrieve details of a specific reward transaction using reward transaction ID, in connected orgs.

This API retrieves the detailed information of a specific reward transaction using the reward transaction ID.

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

🚧

Use this API exclusively for connected orgs. For other orgs, use this API instead.

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

Resource information

URL/api_gateway/rewards/core/v1.1/reward-transactions/{rewardTransactionId}
HTTP MethodGET
PaginationYes
Batch supportNo
Rate limit informationNone

API endpoint example

https://eu.api.capillarytech.com/api_gateway/rewards/core/v1.1/reward-transactions/32787

Headers

HeaderDescription
DATA-SCOPE-ORGList of Organization IDs
DATA-SCOPEScopes define what data can be accessed using the API. You can use scopes to control access to data from a parent or child organization. Defining a scope ensures that the response contains only data from the respective organization.

Supported headers: SELF, OTHER and ALL.

Refer to connected orgs data scopes for more information.

Request path parameters

ParametersData TypeDescription
rewardTransactionId*StringUnique identifier of the reward transaction. The reward transaction is generated during the issual of the reward. Example: 327847
/curl --location 'http://crm-nightly-new.cc.capillarytech.com/api_gateway/rewards/core/v1.1/reward-transactions/<rewardTransactionId>' \
e--header 'DATA-SCOPE: OTHER' \
x--header 'DATA-SCOPE-ORG: 50672' \
--header 'Authorization: Basic a2FyXzE6MzE1MmQyMzRiNzA='

Response parameters

Parameter NameDescription
statusContains the details of the operation.
-successIndicates if the operation was successful.
-codeHTTP status code of the operation.
-messageMessage about the operation's outcome.
dataContains detailed information about the reward transaction.
-rewardTransactionIdUnique identifier for the reward transaction. It is generated during the issual of the reward.
-customerIdUnique identifier for the customer.
-orgIdUnique identifier for the org.
-rewardIssueRefIdReference ID for the reward issuance.
-rewardTransactionDateDate and time of the reward transaction in milliseconds since epoch. It is in the Unix timestamp format
-statusContains the status of the reward issuance.
--successIndicates if the reward was issued successfully, true for successful reward issual and false for failed reward issual.
--codeStatus code for the reward issue transaction.
--messageStatus message for the reward issue transaction, indicating if the reward issual was successful.
-quantityNumber of rewards issued.
-requestedQuantityRepresents the original reward quantity that was requested.
-groupRedemptionIndicates if the redemption is a group redemption.
-rewardDetailsContains details of the issued reward.
--rewardIdUnique identifier of the reward.
--languageCodeLanguage code of the reward details. Example: en for English.
--nameName of the reward.
--descriptionDescription of the reward.
--rewardRankRank or position of the reward within its category or list.
--groupsSpecifies the group associated with the reward.
--imageIdUnique identifier for the image associated with the reward.
--imageUrlURL to the image associated with the reward.
--intouchPointsThe number of intouch points associated with the reward.
--redemptionTypeGives the redemption type of the reward. Example: MILES.
--imagesA list of image details related to the reward.
--nameName of the image.
--altTextAlternative text or description of the image.
--idIdentifier for internally stored images, generated when uploaded to the file service. Not applicable for external images.
--urlURL of the image.
--isExternalIndicates if the image is hosted on an external server.
--videosA list of videos associated with the reward.
--nameName of the video.
--altTextAlternative text or description of the video.
--idIdentifier for internally stored images, generated when uploaded to the file service. Not applicable for external videos.
--urlURL of the video.
--isExternalIndicates if the video is hosted on an external server.
-pointsRedemptionContains details of the points redemption process.
--redeemedPointsNumber of points redeemed.
--pointsRedemptionRefIdUnique identifier generated each time rewards are issued. This field stores a list of these identifiers, allowing you to track multiple points redemption transactions.
--statusStatus details of the points redemption.
---successIndicates whether the points redemption was successful.
---codeA unique code representing the status of the points redemption.
---messageA message providing information about the points redemption status. Example: Points redeemed successfully.
-redemptionDetailsContains details of the redemption process.
--redemptionTypeGives the redemption type of the reward. Example: INTOUCH_REWARD.
--totalRedemptionValueThe total value of the redemption. Example: 10 miles.
-vouchersA list of vouchers associated with the redemption.
-vendorRewardsStores the vendor reward details.
--rewardsIdentifier for the vendor reward.
-customFieldsCustom fields for additional information.
-transactionCustomFieldsCustom fields associated with the transaction.
-ownerIdUnique identifier of the owner. Example: 123.
{
    "status": [
        {
            "success": true,
            "code": 200,
            "message": "Reward issue transactions details fetched successfully"
        }
    ],
    "data": {
        "rewardTransactionId": "327847",
        "customerId": 555738346,
        "orgId": 100458,
        "rewardIssueRefId": "transactionNumber",
        "rewardTransactionDate": 1737629567000,
        "status": {
            "success": true,
            "code": 200,
            "message": "Reward issued successfully"
        },
        "quantity": 1,
        "requestedQuantity": 1,
        "groupRedemption": false,
        "rewardDetails": {
            "rewardId": 295211,
            "languageCode": "en",
            "name": "Donate to Charity : Help us brighten a child's day!",
            "description": "Redeem you points and donate to Charity, 1 Point = 1 AED",
            "rewardRank": 1,
            "groups": [],
            "imageId": "5d05ccb2-6f5b-4b58-ad90-b97647c86784",
            "imageUrl": "https://eucrm-solutions.s3.amazonaws.com/rewards/1aba92d2-28bc-44dc-9dc9-00fbf662.jpg",
            "intouchPoints": 0,
            "redemptionType": "MILES",
            "images": [],
            "videos": []
        },
        "pointsRedemption": {
            "redeemedPoints": 30,
            "pointsRedemptionRefId": "kLZgHE",
            "pointsRedemptionRefIds": [
                "kLZgHE"
            ],
            "status": {
                "success": true,
                "code": 200,
                "message": "Points redeemed successfully."
            }
        },
        "redemptionDetails": {
            "redemptionType": "MILES",
            "totalRedemptionValue": 10
        },
        "vouchers": [],
        "vendorRewards": {
            "rewards": [
                {
                    "json": "{}"
                }
            ]
        },
        "customFields": {
            "A": "1"
        },
        "transactionCustomFields": {
            "testdate": "2020-01-01 01:01:01"
        },
        "ownerId": ""
    }
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!