Loop Returns Fraud Reports API

The Fraud Reports API from Loop Returns — 1 operation(s) for fraud reports.

Operations 1

POST /returns/{return_id}/fraud-report Create Fraud Report #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/loop-returns-fraud-reports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

loop-returns-fraud-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Loop Returns Cart Fraud Reports API
  description: API for managing shop carts in Shop Now On-Store exchanges.
  version: v1
servers:
- url: https://api.loopreturns.com/api/v1
tags:
- name: Fraud Reports
paths:
  /returns/{return_id}/fraud-report:
    post:
      summary: Create Fraud Report
      operationId: createFraudReport
      description: Attach a fraud report to a return to flag it for fraudulent activity.
      tags:
      - Fraud Reports
      security:
      - api_key: []
      parameters:
      - in: path
        name: return_id
        schema:
          type: integer
        required: true
        description: The return's unique identifier.
        example: 23141
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReturnFraudReportRequest'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReturnFraudReport'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: '401'
                      http_code:
                        type: string
                        example: GEN-UNAUTHORIZED
                      message:
                        type: string
                        example: Unauthorized.
        '404':
          description: Return not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: object
                    properties:
                      message:
                        type: string
                        example: No return found with this ID.
        '409':
          description: Fraud report already exists for this return.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Fraud Report already exists.
        '422':
          description: Unprocessable entity.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/InvalidCategory'
                - $ref: '#/components/schemas/InvalidComment'
components:
  schemas:
    InvalidCategory:
      type: object
      properties:
        message:
          type: string
          example: Must be one of the following values.
        errors:
          type: object
    FraudCategoryEnum:
      type: string
      description: The category under which the fraudulent return falls.
      enum:
      - package-never-received
      - package-is-empty
      - package-is-missing-items
      - instant-return-charge-failed
      - keep-item-abuse
      - splitting-returns-to-avoid-restrictions
      - item-is-worn
      - other
    ReturnFraudReport:
      type: object
      properties:
        id:
          type: integer
          example: 87
          description: The fraud report's unique identifier.
        return_id:
          type: integer
          example: 23141
          description: The return's unique identifier.
        category:
          $ref: '#/components/schemas/FraudCategoryEnum'
        comment:
          type: string
          description: Additional context associated with the fraudulent return.
          example: This is a sample comment.
        created_at:
          type: string
          format: date-time
          example: 2024-10-25 16:44:47.038000+00:00
    CreateReturnFraudReportRequest:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/FraudCategoryEnum'
        comment:
          type: string
          description: Additional context. Required if category is 'other'.
          example: This is a sample comment.
    InvalidComment:
      type: object
      properties:
        message:
          type: string
          example: The comment field must not be greater than 512 characters.
        errors:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      name: X-Authorization
      in: header