Skip to main content

Wallet Transaction Totals

This endpoint returns summed wallet amounts for a date range, rather than the individual transactions. Use it when you need a total, instead of paging through List of Wallet Transactions and adding the amounts up yourself.

Endpoint

MethodURL
GEThttps://ws.catappult.io/api/wallet/transactionsTotals

Authentication

To access this API, you need to have an active account subscription on Aptoide Connect and authenticate with an API key (check here how to generate one).

Headers

HeaderTypeRequiredDescription
Api-KeystringRequiredUsed to authenticate your API requests. The value is your Aptoide Connect API key.

Query Parameters

ParameterTypeRequiredDescription
fromstring (YYYY-MM-DD)RequiredStart date of the time range. Example: 2024-01-01.
tostring (YYYY-MM-DD)RequiredEnd date of the time range. Example: 2024-01-31.
packageNamestringOptionalFilters results by app package name. Example: com.example.test.
countryCodestringOptionalFilters results by country, using the ISO 3166-1 alpha-2 format. Example: PT.
operatingSystemstringOptionalFilters results by platform. Possible values: android, ios.
typestringOptional (default: all)Filters results by transaction type. Possible values: all, debit, credit.
paymentMethodstringOptionalRestricts results to sandbox test purchases. Only accepted value: sandbox.
amountTypestringOptional (default: wallet)Specifies whether to return net or gross amounts. Possible values: wallet (net value, what reaches your wallet) or global (gross value).

Response

Success

If the API call returns an HTTP 200 status code, the request was successful and it returns the summed amounts in USD for the requested range.

FieldTypeDescription
iapobjectIn-app purchase revenue, as { "usd": number }.
creditobjectTotal credited to the wallet, as { "usd": number }.
debitobjectTotal debited from the wallet, as { "usd": number }.

Example Response

{
"credit": {
"usd": 103.8
},
"debit": {
"usd": 0
},
"iap": {
"usd": 103.8
}
}
💡
Net and gross are different figures

By default these are the amounts credited to your wallet, which are net of VAT and revenue share. Passing amountType=global returns gross consumer spend including VAT, which is a substantially larger number. The difference varies with the buyer's country, so do not compare a global total against a default one and treat the gap as missing revenue.

Errors

CodeHTTP StatusDescriptionResolution
401 UnauthorizedThe API key was not recognisedCheck the key, and that the account is approved
SUBSCRIPTION-REQUIRED402 Payment RequiredNo active account subscriptionActivate a subscription for the account
DAILY-QUOTA-REACHED429 Too Many RequestsDaily request quota exceededRetry after the quota resets at midnight UTC