> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vultlocal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Suspend Processor

> Suspend a processor to prevent transactions

# Suspend Processor

Suspend a processor to prevent them from processing transactions.

## Endpoint

```http theme={null}
POST /api/v1/processors/:id/suspend
```

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer token (Admin JWT)
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  Processor UUID
</ParamField>

## Request Body

<ParamField body="reason" type="string">
  Suspension reason (e.g., "Suspected fraudulent activity")
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "message": "Processor suspended successfully"
}
```

## Effects

* Processor status changes to `suspended`
* All POS transactions are rejected
* Dashboard access is blocked
* API key is deactivated

## Errors

| Code | Description         |
| ---- | ------------------- |
| 400  | Invalid request     |
| 404  | Processor not found |
| 401  | Unauthorized        |


## OpenAPI

````yaml olive-openapi.json POST /processors/{id}/suspend
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /processors/{id}/suspend:
    post:
      tags:
        - Processors
      summary: Suspend a processor
      description: Suspend a processor to prevent transactions
      parameters:
        - description: Processor ID
          name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.SuspendProcessorRequest'
        description: Suspension reason
        required: true
      responses:
        '200':
          description: Processor suspended successfully
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Processor not found
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - BearerAuth: []
components:
  schemas:
    handler.SuspendProcessorRequest:
      type: object
      properties:
        reason:
          type: string
          example: Suspected fraudulent activity
  securitySchemes:
    BearerAuth:
      description: >-
        JWT token from admin login for administrative operations. Format:
        'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
      type: apiKey
      name: Authorization
      in: header

````