# Use Cases
source: https://developer.mastercard.com/transaction-insights/documentation/use-cases/index.md

## User journey {#user-journey}

### Get transaction statistics {#get-transaction-statistics}

1. The user makes a GET request to the Mexico Insights API on the endpoint `/mexicoinsights/transaction-stats` with query parameters.
2. The request first lands at the Mastercard API Gateway.
3. The API Gateway routes the request to the Secure Access Service to authenticate the user.
4. The Secure Access Service validates the user.
5. On successful validation, the API Gateway validates the request.
6. The API Gateway sends the request to the API with a secure Auth token.
7. The PCF Application validates that the request has a valid Auth token attached.
8. The PCF Application validates the parameters for searching data.
9. On successful validation, the PCF Application calls the datasource for the requested information.
10. The Data Sources fetch data from the database.
11. The Data Sources return the requested information back to the PCF Application.
12. The PCF Application curates and formats the data into a response.
13. The PCF Application sends the response back to the user.

Diagram complex

### Endpoint {#endpoint}


API Reference: `GET /transaction-stats`

