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

# Complete a Charge

> Use this operator endpoint to change a collection from ACTIVE to COMPLETED. It changes only the collection status and makes no call to Midaz or BTG. A collection in any other status is rejected. Identify the collection by its id (collection_id), not by its txId.



## OpenAPI

````yaml /es/openapi/v3-current/indirect-pix.yaml post /v1/admin/collections/{collection_id}/complete
openapi: 3.1.0
info:
  description: >-
    API for Pix Indirect via BTG. It covers DICT keys and claims; MED infraction
    reports, fraud markers, refund requests, and funds recoveries; DICT
    statistics and reconciliation; Pix transfers, refunds, and schedules; static
    QR codes and QR code decoding; immediate and due-date collections; Pix
    Automático for the payer; transaction reports and TemposTransacoes
    statistics; and inbound and outbound webhook records.
  title: Plugin BR Pix Indirect - Complete API
  version: 1.11.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - BearerAuth: []
paths:
  /v1/admin/collections/{collection_id}/complete:
    post:
      tags:
        - Admin
      summary: Complete a Charge
      description: >-
        Use this operator endpoint to change a collection from ACTIVE to
        COMPLETED. It changes only the collection status and makes no call to
        Midaz or BTG. A collection in any other status is rejected. Identify the
        collection by its id (collection_id), not by its txId.
      operationId: collection-admin-complete
      parameters:
        - description: Identifier of the collection to force-complete
          in: path
          name: collection_id
          required: true
          schema:
            description: Identifier of the collection to force-complete
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminCompleteCollectionBody'
          description: OK
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    AdminCompleteCollectionBody:
      additionalProperties: false
      properties:
        id:
          description: Identifier of the completed collection
          type: string
        status:
          description: Collection status after completion (COMPLETED on success)
          type: string
      required:
        - id
        - status
      type: object
    LegacyErrorBody:
      additionalProperties: false
      properties:
        fields:
          additionalProperties:
            type: string
          type: object
        headers:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
        paths:
          additionalProperties:
            type: string
          type: object
        queryParams:
          additionalProperties:
            type: string
          type: object
        raw:
          type: string
        code:
          type: string
        title:
          type: string
      required:
        - code
        - title
        - message
      type: object
  responses:
    Error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorBody'
      description: Error
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.