Get details about a specific member's transactions
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Query values
The following table describes the values included in the query parameter request.
| Value | Description | Data type |
|---|---|---|
| name | Auto-assigned name of the redemption transaction. | String |
| FieloPLT__Points__c | Total of points of the transaction. | Integer |
| FieloPLT__Type__c | Type of transaction. | String |
In the example, we used the query parameter fields to retrieve more information, such as the name, the number of points and the type of the transaction. Feel free to add your own parameters and values in the query.
Response definitions
The following table describes each item in the response.
| Response item | Description | Data type |
|---|---|---|
| Name | Auto-assigned name of the redemption transaction. | String |
| FieloPLT__Points__c | Total of points of the transaction. | Integer |
| FieloPLT__Type__c | Type of transaction. | String |
| Id | Unique identifier of the generated object. | String |
Practical Example
In order to give you an example of how the Transactions API can be used, take a look at the case below.
Considering that a company wants to GET the amount of a currency that a member has redeemed, they would use the following request:
https://[[app:Instance URL]]/services/apexrest/FieloPLT/v1/members/KeyField/transactions
Where KeyField is the key used to lookup for the record in the Transaction object. Meanwhile, the response would be:
{ "tran":
{ "FieloPLT__Type__c": "Redemption",
"Miles__c": "-1",
"FieloPLT__IsAdjust__c" : true
}
}
Where Miles__c is a custom currency, but it could be any other redeemable Member field.
