---
updatedAt: 2026-09-15T17:42:17.000Z
agentTools:
  projectIndex: https://developer.pagbank.com.br/llms.txt
---

# Criar Disputa

Com esse serviço, você pode se defender de um chargeback enviando uma evidência no formato de arquivo PDF. Para isso, basta realizar uma requisição do tipo POST informando o código do chargeback que deseja disputar.

<Callout icon="📘" theme="info">
  ### Regras

  - Só é possível disputar um chargeback que esteja com o status `AWAITING_EVIDENCE`.
  - Apenas **um arquivo** pode ser enviado por chargeback.
  - O arquivo deve estar no formato PDF e ter no máximo 4MB.
  - O arquivo deve possuir no máximo 18 páginas.
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "nova-plataforma-sandbox",
    "version": "4.1"
  },
  "servers": [
    {
      "url": "https://sandbox.api.pagseguro.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/chargebacks/{id}/disputes": {
      "post": {
        "summary": "Criar Disputa",
        "description": "",
        "operationId": "criar-disputa",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identificador único do chargeback a ser consultado.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"DISP_C8B27A16-F77B-48AD-A5DD-808400CA15C7\",\n  \"created_at\": \"2025-02-04T14:13:25\",\n  \"status\": \"RECEIVED\",\n  \"file\": {\n    \"type\": \"application/pdf\",\n    \"name\": \"nome_arquivo.pdf\"\n  },\n  \"links\": [\n    {\n      \"rel\": \"CHARGEBACK\",\n      \"href\": \"https://api.pagseguro.com/chargebacks/CBKS_A836405B-4D81-44B5-B235-92A2723E8371\",\n      \"media\": \"application/json\",\n      \"type\": \"GET\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "DISP_C8B27A16-F77B-48AD-A5DD-808400CA15C7"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2025-02-04T14:13:25"
                    },
                    "status": {
                      "type": "string",
                      "example": "RECEIVED"
                    },
                    "file": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "application/pdf"
                        },
                        "name": {
                          "type": "string",
                          "example": "nome_arquivo.pdf"
                        }
                      }
                    },
                    "links": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rel": {
                            "type": "string",
                            "example": "CHARGEBACK"
                          },
                          "href": {
                            "type": "string",
                            "example": "https://api.pagseguro.com/chargebacks/CBKS_A836405B-4D81-44B5-B235-92A2723E8371"
                          },
                          "media": {
                            "type": "string",
                            "example": "application/json"
                          },
                          "type": {
                            "type": "string",
                            "example": "GET"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error_message\": [\n   \t {\n      \"code\": \"BAD_REQUEST\",\n      \"description\": \"The file exceeded the maximum size of 4MB.\"\n   \t }\n\t\t]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "BAD_REQUEST"
                          },
                          "description": {
                            "type": "string",
                            "example": "The file exceeded the maximum size of 4MB."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request POST \\\n\t\t --url 'https://sandbox.api.pagseguro.com/chargebacks/{id}/disputes' \\\n     --header 'Authorization: Bearer <token>' \\\n\t\t --form 'file=\"arquivo.pdf\"'",
              "name": "cURL Request"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        },
        "x-internal": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```