Create a Report
Generate a reporting service report
This endpoint generates a report from Mangopay’s Reporting Service, which is replacing the legacy report types.
Two types of report are available, specified in the ReportType
:
USER_WALLET_TRANSACTIONS
– All transactions crediting or debiting user wallets: pay-ins, transfers, conversions, and payouts, as well as refunds of all types and repudiations (from chargebacks).COLLECTED_FEES
– Detail of transactions crediting or debiting the fees wallet: transactions of all types (pay-ins, transfers, refunds, payouts, etc.) that have a positive or negative fees amount.
Note – Report expires after 31 days
A Reporting Service report expires after 31 days, at which point it can no longer be downloaded. On expiry, the report’s Status
becomes EXPIRED
and the DownloadURL
becomes null
.
You can generate a new report with the same filters and dates.
Body parameters
Max. length: 255 characters
Custom data that you can add to this object.
For reports, this parameter can be useful to give the report a name.
Possible values: CSV
The format of the report file.
The type of the report:
USER_WALLET_TRANSACTIONS
– All transactions crediting or debiting user wallets: pay-ins, transfers, conversions, and payouts, as well as refunds of all types and repudiations (from chargebacks).COLLECTED_FEES
– Detail of transactions crediting or debiting the fees wallet: transactions of all types (pay-ins, transfers, refunds, payouts, etc.) that have a positive or negative fees amount.
Possible values: CreationDate:ASC
, CreationDate:DESC
Default value: CreationDate:ASC
The sort direction based on transaction creation date.
Possible values: Any past date and time up 24 months ago that is earlier than the BeforeDate
by less than 12 months
The date and time after which the report’s transaction was created, based on the transaction’s CreationDate
.
Possible values: Any past date and time up 24 months ago that is later than the AfterDate
by less than 12 months
The date and time before which the report’s transaction was created, based on the transaction’s CreationDate
.
Possible values: Currency
, UserId
, WalletId
The filers to apply.
If the ReportType
is COLLECTED_FEES
, only the Currency
filter can be used. If the currency is not specified, the report contains data on all currencies.
If the ReportType
is USER_WALLET_TRANSACTIONS
, each filter can be used on its own or in combination, in which case the report data satisfies both filters.
UserId
andCurrency
– Report contains all transactions (credited or debited) in the currency where UserId is the AuthorIdUserId
andWalletId
– Report contains all transactions (credited or debited) in all currencies where the UserId is specified as theDebitedWalletId
orCreditedWalletId
. If theWalletId
is not a wallet owned by theUserId
, then the report will be empty.
The Currency
and WalletId
cannot be used together.
If no Filters
are specified, the report contains all transactions crediting or debiting all user wallets.
Caution: The WalletId
and UserId
values are not validated before the request is launched, so if both are used but don’t correspond (the user doesn’t own the wallet), then the report will be empty.