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

# Disable policy

> Disables a policy so it stops applying to new transactions. Recorded usage is retained. Disabling an already-disabled policy returns it unchanged.



## OpenAPI

````yaml /api-reference/openapi.json post /policies/{id}/disable
openapi: 3.1.0
info:
  title: Reap API
  version: 1.0.0
  description: Reap platform API
servers:
  - url: https://sandbox.api.reap.global
    description: Sandbox
  - url: https://prod.api.reap.global
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Accounts
  - name: Activities
  - name: Card Designs
  - name: Card Shipments
  - name: Card Transactions
  - name: Cards
  - name: Companies
  - name: Crypto Deposits
  - name: Policies
  - name: Simulation
  - name: Users
  - name: Virtual Asset Postings
  - name: Virtual Assets
  - name: Webhooks
paths:
  /policies/{id}/disable:
    post:
      tags:
        - Policies
      summary: Disable policy
      description: >-
        Disables a policy so it stops applying to new transactions. Recorded
        usage is retained. Disabling an already-disabled policy returns it
        unchanged.
      operationId: disable_policies
      parameters:
        - name: id
          in: path
          required: true
          schema:
            description: Policy ID
            type: string
            format: uuid
        - name: Reap-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2025-02-14'
            description: API version (YYYY-MM-DD)
            example: '2025-02-14'
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              Unique key for safely retrying this request. Up to 255 characters;
              we recommend a UUIDv4. The first request executes and its response
              is cached; subsequent requests with the same key replay the cached
              response (24h retention).
      responses:
        '200':
          description: Policy resource
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/MerchantRestrictionPolicy'
                    title: MerchantRestriction
                  - $ref: '#/components/schemas/ChannelRestrictionPolicy'
                    title: ChannelRestriction
                  - $ref: '#/components/schemas/TransactionAmountLimitPolicy'
                    title: TransactionAmountLimit
                  - $ref: '#/components/schemas/SpendLimitPolicy'
                    title: SpendLimit
                  - $ref: '#/components/schemas/AuthorizationCountLimitPolicy'
                    title: AuthorizationCountLimit
        '404':
          description: Policy not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        const: POLICY_NOT_FOUND
                      message:
                        type: string
                      detail:
                        anyOf:
                          - type: object
                            additionalProperties: {}
                          - type: 'null'
                    required:
                      - code
                      - message
                      - detail
                required:
                  - error
                title: PolicyNotFoundError
components:
  schemas:
    MerchantRestrictionPolicy:
      type: object
      properties:
        id:
          type: string
          description: >-
            Policy ID. A UUID for your policies; a stable identifier for
            platform policies.
        type:
          type: string
          const: MERCHANT_RESTRICTION
        scope:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: PROJECT
              required:
                - type
              title: Project
            - type: object
              properties:
                type:
                  type: string
                  const: USER
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: User
            - type: object
              properties:
                type:
                  type: string
                  const: CARD
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: Card
          description: Where the policy attaches.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable label.
        config:
          type: object
          properties:
            match:
              oneOf:
                - type: object
                  properties:
                    dimension:
                      type: string
                      const: MCC
                    codes:
                      minItems: 1
                      type: array
                      items:
                        type: string
                  required:
                    - dimension
                    - codes
                  title: Mcc
                - type: object
                  properties:
                    dimension:
                      type: string
                      const: MERCHANT_COUNTRY
                    countries:
                      minItems: 1
                      type: array
                      items:
                        type: string
                        minLength: 2
                        maxLength: 2
                  required:
                    - dimension
                    - countries
                  title: MerchantCountry
          required:
            - match
          description: Block transactions whose merchant matches the criteria.
        createdAt:
          type: string
          description: ISO 8601 creation timestamp.
        updatedAt:
          type: string
          description: ISO 8601 last-update timestamp.
      required:
        - id
        - type
        - scope
        - status
        - name
        - config
        - createdAt
        - updatedAt
    ChannelRestrictionPolicy:
      type: object
      properties:
        id:
          type: string
          description: >-
            Policy ID. A UUID for your policies; a stable identifier for
            platform policies.
        type:
          type: string
          const: CHANNEL_RESTRICTION
        scope:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: PROJECT
              required:
                - type
              title: Project
            - type: object
              properties:
                type:
                  type: string
                  const: USER
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: User
            - type: object
              properties:
                type:
                  type: string
                  const: CARD
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: Card
          description: Where the policy attaches.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable label.
        config:
          type: object
          properties:
            channels:
              minItems: 1
              type: array
              items:
                type: string
                enum:
                  - ATM
                  - POS
                  - ECOMMERCE
                example: ATM
          required:
            - channels
          description: Block transactions on the listed channels.
        createdAt:
          type: string
          description: ISO 8601 creation timestamp.
        updatedAt:
          type: string
          description: ISO 8601 last-update timestamp.
      required:
        - id
        - type
        - scope
        - status
        - name
        - config
        - createdAt
        - updatedAt
    TransactionAmountLimitPolicy:
      type: object
      properties:
        id:
          type: string
          description: >-
            Policy ID. A UUID for your policies; a stable identifier for
            platform policies.
        type:
          type: string
          const: TRANSACTION_AMOUNT_LIMIT
        scope:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: PROJECT
              required:
                - type
              title: Project
            - type: object
              properties:
                type:
                  type: string
                  const: USER
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: User
            - type: object
              properties:
                type:
                  type: string
                  const: CARD
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: Card
          description: Where the policy attaches.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable label.
        config:
          type: object
          properties:
            maxAmount:
              type: number
              exclusiveMinimum: 0
              examples:
                - 100.5
                - 0
                - 1234.99
              description: Amount in USD.
          required:
            - maxAmount
          description: Cap the amount of a single transaction.
        createdAt:
          type: string
          description: ISO 8601 creation timestamp.
        updatedAt:
          type: string
          description: ISO 8601 last-update timestamp.
      required:
        - id
        - type
        - scope
        - status
        - name
        - config
        - createdAt
        - updatedAt
    SpendLimitPolicy:
      type: object
      properties:
        id:
          type: string
          description: >-
            Policy ID. A UUID for your policies; a stable identifier for
            platform policies.
        type:
          type: string
          const: SPEND_LIMIT
        scope:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: PROJECT
              required:
                - type
              title: Project
            - type: object
              properties:
                type:
                  type: string
                  const: USER
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: User
            - type: object
              properties:
                type:
                  type: string
                  const: CARD
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: Card
          description: Where the policy attaches.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable label.
        config:
          type: object
          properties:
            window:
              type: object
              properties:
                type:
                  type: string
                  const: CALENDAR
                period:
                  type: string
                  enum:
                    - DAILY
                    - WEEKLY
                    - MONTHLY
                    - YEARLY
                    - LIFETIME
                  example: DAILY
              required:
                - type
                - period
            maxAmount:
              type: number
              exclusiveMinimum: 0
              examples:
                - 100.5
                - 0
                - 1234.99
              description: Amount in USD.
            filter:
              type: object
              properties:
                channels:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - ATM
                      - POS
                      - ECOMMERCE
                    example: ATM
                merchant:
                  oneOf:
                    - type: object
                      properties:
                        dimension:
                          type: string
                          const: MCC
                        codes:
                          minItems: 1
                          type: array
                          items:
                            type: string
                      required:
                        - dimension
                        - codes
                      title: Mcc
                    - type: object
                      properties:
                        dimension:
                          type: string
                          const: MERCHANT_COUNTRY
                        countries:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            minLength: 2
                            maxLength: 2
                      required:
                        - dimension
                        - countries
                      title: MerchantCountry
          required:
            - window
            - maxAmount
          description: Cap cumulative spend over a calendar window.
        createdAt:
          type: string
          description: ISO 8601 creation timestamp.
        updatedAt:
          type: string
          description: ISO 8601 last-update timestamp.
      required:
        - id
        - type
        - scope
        - status
        - name
        - config
        - createdAt
        - updatedAt
    AuthorizationCountLimitPolicy:
      type: object
      properties:
        id:
          type: string
          description: >-
            Policy ID. A UUID for your policies; a stable identifier for
            platform policies.
        type:
          type: string
          const: AUTHORIZATION_COUNT_LIMIT
        scope:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  const: PROJECT
              required:
                - type
              title: Project
            - type: object
              properties:
                type:
                  type: string
                  const: USER
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: User
            - type: object
              properties:
                type:
                  type: string
                  const: CARD
                id:
                  type: string
                  format: uuid
              required:
                - type
                - id
              title: Card
          description: Where the policy attaches.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: Human-readable label.
        config:
          type: object
          properties:
            window:
              type: object
              properties:
                type:
                  type: string
                  const: CALENDAR
                period:
                  type: string
                  enum:
                    - DAILY
                    - WEEKLY
                    - MONTHLY
                    - YEARLY
                    - LIFETIME
                  example: DAILY
              required:
                - type
                - period
            maxCount:
              type: integer
              exclusiveMinimum: 0
              maximum: 9007199254740991
              description: Maximum number of transactions in the window.
            filter:
              type: object
              properties:
                channels:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - ATM
                      - POS
                      - ECOMMERCE
                    example: ATM
                merchant:
                  oneOf:
                    - type: object
                      properties:
                        dimension:
                          type: string
                          const: MCC
                        codes:
                          minItems: 1
                          type: array
                          items:
                            type: string
                      required:
                        - dimension
                        - codes
                      title: Mcc
                    - type: object
                      properties:
                        dimension:
                          type: string
                          const: MERCHANT_COUNTRY
                        countries:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            minLength: 2
                            maxLength: 2
                      required:
                        - dimension
                        - countries
                      title: MerchantCountry
          required:
            - window
            - maxCount
          description: Cap the number of transactions over a calendar window.
        createdAt:
          type: string
          description: ISO 8601 creation timestamp.
        updatedAt:
          type: string
          description: ISO 8601 last-update timestamp.
      required:
        - id
        - type
        - scope
        - status
        - name
        - config
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key as Bearer token

````