Method EconomyPostCurrencyTransaction
EconomyPostCurrencyTransaction(String, String)
Gets information about transactions that the player executed.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.HaloInfinite.TransactionSnapshot,Den.Dev.Grunt.Models.RawResponseContainer>> EconomyPostCurrencyTransaction (string player, string currencyId);
Parameters
Type | Name | Description |
---|---|---|
System.String | player | The unique player XUID, in the format "xuid(XUID_VALUE)". |
System.String | currencyId | The unique identifier for the currency. Valid values include "cr", "rerollcurrency", "xpboost", and "xpgrant". |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<TransactionSnapshot,RawResponseContainer>> | If successful, returns an instance of TransactionSnapshot listing all existing transactions. Otherwise, returns null. |
Remarks
This function is likely used as a POST as well (hence the name - right now we're only using GET). Once we discover how this API works, we can extend the functionality further. GitHub issue.
Examples
Here is an example response from the API, as snapshotted on 10/24/2023:
{
"Transactions": [
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -500,
"ResultingBalance": 500,
"Finalized": true,
"TransactionId": "0ea0d695-acca-4813-953f-6b792c341a5d",
"TransactionDate": {
"ISO8601Date": "2023-10-16T21:28:05.693Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -1000,
"ResultingBalance": 1000,
"Finalized": true,
"TransactionId": "8287c1c4-95fb-43fd-99b8-ff9cdf6c7237",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:01:00.573Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": 1000,
"ResultingBalance": 2000,
"Finalized": true,
"TransactionId": "c51684d6-ff6f-4978-8679-9d80c042371c",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:01:00.573Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -1000,
"ResultingBalance": 1000,
"Finalized": true,
"TransactionId": "4a96cdd6-1ab6-4de9-9562-395ddb30db76",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:00:41.6Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": 1000,
"ResultingBalance": 2000,
"Finalized": true,
"TransactionId": "2e5c7e8f-15ec-49bb-ab05-958346955b45",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:00:41.6Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -1000,
"ResultingBalance": 1000,
"Finalized": true,
"TransactionId": "49c05bf0-6448-41c6-be37-91b1f4f1c761",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:00:10.744Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": 1000,
"ResultingBalance": 2000,
"Finalized": true,
"TransactionId": "bb825a2e-8407-4bc4-a2cf-e469eca5daa2",
"TransactionDate": {
"ISO8601Date": "2023-10-15T16:00:10.744Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": 1000,
"ResultingBalance": 1000,
"Finalized": true,
"TransactionId": "d54b0b42-2339-403a-9b8f-3bfd57be03af",
"TransactionDate": {
"ISO8601Date": "2023-10-15T15:59:02.409Z"
},
"ProductReference": "9NVMHSH9C861",
"UnitsConsumed": 1,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000D5F5C753BA2)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -1000,
"ResultingBalance": 0,
"Finalized": true,
"TransactionId": "cd5c60f1-dfc4-44ee-95d9-ac1487a32448",
"TransactionDate": {
"ISO8601Date": "2023-10-14T03:38:03.725Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000F71F8530C36)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
},
{
"AdjustmentSource": "DirectAdjustment",
"BalanceAdjustment": -1000,
"ResultingBalance": 1000,
"Finalized": true,
"TransactionId": "fb497960-d74d-42d8-9f1a-2a1a04b470ca",
"TransactionDate": {
"ISO8601Date": "2023-10-14T03:36:41.086Z"
},
"ProductReference": null,
"UnitsConsumed": 0,
"AuthenticatedIdentities": [
"xdiv(Scarlett:F4000F71F8530C36)",
"xsbx(RETAIL)",
"xtid(2043073184)",
"xuid(PLAYER_XUID_HERE)"
]
}
],
"ContinuationToken": "v1-w_99od13EEMno0nGyykjY7u5Xau3J_Vr2izGZs-Xjux_jAvjQbBBL73r1KqkG1J3xRxDxdQ7twF8lgs",
"MarketplaceLastSuccessfulDates": [
{
"MarketplaceSource": "SteamInventory",
"ProductsLastCheckedDate": {
"ISO8601Date": "2023-10-23T23:52:10.021Z"
},
"WorkflowEntitiesLastCreatedDate": {
"ISO8601Date": "1601-01-01T00:00:00Z"
},
"ProductsLastConsumedDate": {
"ISO8601Date": "1601-01-01T00:00:00Z"
}
},
{
"MarketplaceSource": "MicrosoftStore",
"ProductsLastCheckedDate": {
"ISO8601Date": "2023-10-24T13:59:54.951Z"
},
"WorkflowEntitiesLastCreatedDate": {
"ISO8601Date": "2023-10-15T15:59:02.281Z"
},
"ProductsLastConsumedDate": {
"ISO8601Date": "2023-10-15T15:59:02.404Z"
}
}
]
}