AI resources

Generate report via API

The Other Operations reports API lets you define the file content and delivery channel, generate reports manually or schedule their automatic generation, and download them when they are available.

Use your production Access TokenPrivate key of the application created in Mercado Pago and used in the backend. You can access it through Your integrations > Integration data > Production > Production credentials. to send requests.

The flow consists of the following steps:

  1. Configure the file columns and delivery notifiers.
  2. Generate the report manually, check its status, and download it when available.
  3. Schedule automatic generation if you need to receive the report periodically.
  4. Review the Webhook notification content and validate its signature.

Remember that the report type you want to configure, generate, or schedule is defined through the reportId path parameter. The available values are:

reportIdReport typeDescription
activities_collectionCollection reportIncludes collections received through checkout, QR, Point, marketplace, and other channels.
activities_after_collectionPost-collection reportIncludes refunds, chargebacks, claims, and adjustments made after collection.
activities_withdrawWithdrawal reportIncludes fund withdrawals and transfers from the account.

1. Set up your reports

The configuration determines which columns the file contains, how its data is displayed, and the channels used to notify you about or deliver the report. You must create a configuration for each report type, identified by reportId, before generating or scheduling files.

2. Generate report manually

Generate a report for a specific period and download it when available.

3. Schedule report automatically

Create a schedule to generate the report automatically on a daily, weekly, or monthly basis.

4. Notifications

When the report is available, Mercado Pago sends a POST request to the URL defined in notifiers[].data.url for the webhook notifier. The body identifies the report and the available files.

{
  "report_id": "activities_collection",
  "statement_id": "6d17e034-6eb3-48fc-a6fa-461e886fa406",
  "status": "available",
  "files": [
    {
      "type": "text/csv",
      "name": "activities_collection.csv",
      "size": 20480,
      "has_zip_version": false
    }
  ]
}

Verify the notification signature with the secret sent in notifiers[].data.key and discard the event if it does not match.