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

# 19 - Consult Return of Resource

> <p>Scopes:</p>
<b>api.pix api.recurso.devolver</b>

Through this endpoint, the partner can check the return status. The system will display the return status.

***Requirement***
To check the return status, it is essential to enter the transaction code.


## OpenAPI

````yaml get /api/Recurso/Devolver/Status/{codigoTransacao}
openapi: 3.0.1
info:
  title: Api Externa BMP SPI
  description: '<p><strong>Build Number: </strong>#0.0</p>'
  version: v1
servers:
  - url: https://api.ext.pix.dbs.moneyp.com.br/
    description: Localhost
security:
  - Bearer: []
paths:
  /api/Recurso/Devolver/Status/{codigoTransacao}:
    get:
      tags:
        - Recurso
      summary: Consulta o status de uma devolução Pix específica.
      description: "<p>Scopes:</p>\r\n<b>api.pix api.recurso.devolver</b>"
      parameters:
        - name: codigoTransacao
          in: path
          description: Identificador UUID da devolução Pix.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BMPSPB.Domain.Messaging.API.Pix.Recurso.ConsultarStatusDevolver.ConsultarStatusDevolverResponse
        '400':
          description: Erro de negócio
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
        '500':
          description: Erro interno do servidor
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
components:
  schemas:
    BMPSPB.Domain.Messaging.API.Pix.Recurso.ConsultarStatusDevolver.ConsultarStatusDevolverResponse:
      type: object
      properties:
        sucesso:
          type: boolean
        mensagem:
          type: string
          nullable: true
        codigoTransacao:
          type: string
          format: uuid
          nullable: true
        situacaoPix:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.SituacaoTransacaoPix'
          nullable: true
      additionalProperties: false
    BMPSPB.Infra.Enums.SituacaoTransacaoPix:
      enum:
        - 1
        - 2
      type: integer
      description: ''
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Copie 'Bearer ' + token
      name: Authorization
      in: header

````