---
updatedAt: 2025-06-12T21:07:24.000Z
agentTools:
  projectIndex: https://docs.beeteller.com/v1.0-international-pix/llms.txt
---

# Reverting a Pix Transaction

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "international-pix",
    "version": "1.0-international-pix"
  },
  "servers": [
    {
      "url": "https://api-test.beeteller.com/pix-pos"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/transaction/{transaction_id}/revert": {
      "put": {
        "summary": "Reverting a Pix Transaction",
        "description": "",
        "operationId": "reverting-a-pix-transaction",
        "parameters": [
          {
            "name": "idempotency-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "7c6adaa5-2eac-43d1-89d2-46a41cedbe22"
            }
          },
          {
            "name": "transaction_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "auth_code"
                ],
                "properties": {
                  "auth_code": {
                    "type": "string",
                    "description": "6 digits TOTP Code generate from Secret Key provided as a second-factor authenticator.",
                    "default": "312314"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Reverting transaction": {
                    "value": "{\n    \"id\": \"a0f23d92-f0cf-4021-a27f-d2272f369174\",\n    \"currency\": \"USD\",\n    \"value\": 1000.85,\n    \"method\": \"PIX\",\n    \"status\": \"REVERTED\",\n    \"created_at\": \"2023-08-09T21:37:08.233702-03:00\",\n    \"reverted_at\": \"2023-08-09T21:50:09.887162-03:00\",\n    \"reference\": \"123141241231\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "a0f23d92-f0cf-4021-a27f-d2272f369174"
                    },
                    "currency": {
                      "type": "string",
                      "example": "USD"
                    },
                    "value": {
                      "type": "number",
                      "example": 1000.85,
                      "default": 0
                    },
                    "method": {
                      "type": "string",
                      "example": "PIX"
                    },
                    "status": {
                      "type": "string",
                      "example": "REVERTED"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2023-08-09T21:37:08.233702-03:00"
                    },
                    "reverted_at": {
                      "type": "string",
                      "example": "2023-08-09T21:50:09.887162-03:00"
                    },
                    "reference": {
                      "type": "string",
                      "example": "123141241231"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid auth code": {
                    "value": {
                      "errors": {
                        "authCode": "Without authorization. The auth code is wrong."
                      },
                      "errors_details": [
                        {
                          "field": "authCode",
                          "error_code": "0006",
                          "error_label": "without.authorization",
                          "error_detail": "Without authorization. The auth code is wrong.",
                          "action": "Verify the authorization code (2FA) provided in the request. Ensure that it is valid and correctly associated with the user."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "authCode": {
                          "type": "string",
                          "example": "Without authorization. The auth code is wrong."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```