---
title: "recordSuspiciousAttempt"
method: POST
path: "/core/api/v1/payment-blocking/record-attempt"
tags: ["payment-blocking-controller"]
---

# recordSuspiciousAttempt

`POST /core/api/v1/payment-blocking/record-attempt`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/payment-blocking/record-attempt`
- Auth: none declared

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- RecordAttemptRequestDto
  - `amount` number, double
  - `cardLast4` string
  - `currency` string
  - `errorMessage` string
  - `errorType` string
  - `ipAddress` string
  - `paymentPlatform` string
  - `processingContext` string
  - `productId` integer
  - `productType` string
  - `sessionId` string
  - `stripeErrorCode` string
  - `userAgent` string
  - `userId` integer

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/freshlearn/apis/freshlearn-api.md) · [All operations](https://skmtc.dev/freshlearn/apis/freshlearn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshlearn/apis/freshlearn-api/revisions/8a82ee14b586?raw)
