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

# Preview Archive Merchant Account

> Return counts of records that archiving this merchant account will move or remove.



## OpenAPI

````yaml get /billing/merchant_accounts/{merchant_account_id}/archive_preview
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /billing/merchant_accounts/{merchant_account_id}/archive_preview:
    get:
      tags:
        - Merchant Accounts
      summary: Preview Archive Merchant Account
      description: >-
        Return counts of records that archiving this merchant account will move
        or remove.
      operationId: >-
        preview_archive_merchant_account_billing_merchant_accounts__merchant_account_id__archive_preview_get
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: merchant_account_id
          in: path
          required: true
          schema:
            type: string
            title: Merchant Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantAccountArchivePreview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MerchantAccountArchivePreview:
      properties:
        membershipCount:
          type: integer
          title: Membershipcount
          description: Memberships that will be migrated to the target merchant account
        locationCount:
          type: integer
          title: Locationcount
          description: Locations that will be migrated to the target merchant account
        posDevices:
          items:
            $ref: '#/components/schemas/MerchantAccountArchivePosDevice'
          type: array
          title: Posdevices
          description: POS devices that will be de-registered with Rainforest
        outstandingChargeCount:
          type: integer
          title: Outstandingchargecount
          description: >-
            Charges with a remaining balance that will be migrated to the target
            merchant account
        memberOverrideCount:
          type: integer
          title: Memberoverridecount
          description: >-
            Members whose per-member deposit override points here and will be
            migrated to the target
          default: 0
      type: object
      required:
        - membershipCount
        - locationCount
        - outstandingChargeCount
      title: MerchantAccountArchivePreview
      description: >-
        Counts of records that will be migrated or removed when a merchant
        account is archived.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MerchantAccountArchivePosDevice:
      properties:
        deviceRegistrationId:
          type: string
          title: Deviceregistrationid
          description: The Rainforest device registration ID
        locationId:
          type: string
          title: Locationid
          description: The location the device is registered to
      type: object
      required:
        - deviceRegistrationId
        - locationId
      title: MerchantAccountArchivePosDevice
      description: >-
        A POS device that will be de-registered when the merchant account is
        archived.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````