Use this method to get the credit history of the user who is logged in via the Unified Login.
GET
/v1/CreditHistory/GetCreditsHistory
Property | Type | Description |
---|---|---|
PageSize |
integer | Sets the number of transactions on each page of the result set. Accepts values from 1 to 100 . Default is 50 . |
PageNumber |
integer | Returns a specific page in the result set. Accepts values from 1 onwards. When left empty it starts at the last page. |
OrderBy |
string | Sets the order in which the data will be returned. Default is transactiondate-asc. Order options are transactiondate-asc and transactiondate-desc . |
Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.
The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.
An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.
This endpoint requires the following scope:
Scope |
---|
account_credits_history |
Property | Type | Description |
---|---|---|
PageCount |
integer | Represents the total number of pages in the result set. |
PageNumber |
integer | Represents the current page number. |
PageSize |
integer | Represents how many transactions are listed on each page. |
CreditHistory |
Array of aws:CreditHistory | The member's credit history. |
The following example shows the result.