---
agentTools:
  projectIndex: https://dev.fitbank.com.br/llms.txt
---

# Get document

Get document account

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Onboarding",
    "version": "1.27.6",
    "contact": {
      "name": "Fitbank",
      "url": "https://www.fitbank.com.br/",
      "email": "contato@fitbank.com.br"
    },
    "termsOfService": "https://www.fitbank.com.br/",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "description": ""
  },
  "servers": [
    {
      "url": "https://sandboxapi.fitbank.com.br/main/execute",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/ GetDocument": {
      "post": {
        "operationId": "413",
        "parameters": [],
        "summary": "Get document",
        "security": [
          {
            "BASE64-username.password": []
          }
        ],
        "tags": [
          "Documents"
        ],
        "description": "Get document account",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CredentialData"
                  },
                  {
                    "$ref": "#/components/schemas/GetDocument"
                  },
                  {
                    "type": "object",
                    "required": [
                      "TaxNumber",
                      "DocumentType"
                    ],
                    "properties": {
                      "Method": {
                        "default": "GetDocument"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSuccess"
                },
                "examples": {
                  "Success: true": {
                    "value": {
                      "Success": "true",
                      "TaxNumber": "30934646000107",
                      "Document": null,
                      "FileName": "Identidade_40678_18072022125622",
                      "Description": "RG Frente",
                      "Extension": ".txt",
                      "ExpirationDate": null,
                      "DocumentKey": null,
                      "DocumentStatus": 0,
                      "BusinessUnitId": 40678
                    }
                  },
                  "Success: false": {
                    "value": {
                      "Success": "false",
                      "Message": "Descrição do erro ocorrido durante a consulta",
                      "Validation": [
                        "Especificação do erro"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GetDocument": {
        "type": "object",
        "required": [
          "TaxNumber",
          "DocumentType"
        ],
        "properties": {
          "Method": {
            "description": "Method name",
            "type": "string",
            "example": "GetDocument"
          },
          "TaxNumber": {
            "$ref": "#/components/schemas/TaxNumber"
          },
          "DocumentType": {
            "$ref": "#/components/schemas/DocumentType"
          }
        }
      },
      "CredentialData": {
        "type": "object",
        "required": [
          "Method",
          "PartnerId",
          "BusinessUnitId"
        ],
        "properties": {
          "Method": {
            "$ref": "#/components/schemas/Method"
          },
          "PartnerId": {
            "$ref": "#/components/schemas/Partner"
          },
          "BusinessUnitId": {
            "$ref": "#/components/schemas/BusinessUnit"
          }
        }
      },
      "Partner": {
        "description": "Partner ID reported by Fitbank",
        "type": "integer",
        "format": "int64",
        "example": 93234
      },
      "Method": {
        "type": "string",
        "description": "Method name"
      },
      "DocumentType": {
        "description": "Document type",
        "type": "integer",
        "format": "enum",
        "enum": [
          "0 - Identity document front",
          "1 - CPF",
          "2 - Proof of residence",
          "3 - CNH Frente",
          "4 - CNPJ",
          "5 - Social contract",
          "6 - Letter of attorney",
          "7 - Identity document back",
          "8 - Document Error",
          "11 - Constitutive Act",
          "13 - Other",
          "14 - Selfie",
          "15 - ElectionMinute",
          "16 - CNHVerso",
          "17 - CompanyAnnualBilling",
          "18 - TermOfHeadMunicipalExecutiveBranch",
          "19 - TermOfHeadMunicipalLegislature",
          "20 - ActHighestRepresentative",
          "21 - MonthlyIncome",
          "22 - DigitalCertificate",
          "23 - TradeUnionStatute",
          "24 - MinutesElectionInductionAssembly",
          "25 - BillingStatement",
          "26 - StatuteReligiousOrganization",
          "27 - MinutesAppointment",
          "28 - MinutesIncorporation"
        ],
        "example": 3
      },
      "BusinessUnit": {
        "description": "Business unit ID reported by Fitbank",
        "type": "integer",
        "format": "int64",
        "example": 40380
      },
      "TaxNumber": {
        "description": "Cpf or Cnpj",
        "type": "string",
        "example": "30934646000107"
      },
      "GetDocumentSuccess": {
        "type": "object",
        "properties": {
          "Success": {
            "type": "string"
          },
          "TaxNumber": {
            "type": "string"
          },
          "Document": {
            "type": "string"
          },
          "FileName": {
            "type": "string"
          },
          "Description": {
            "type": "string"
          },
          "Extension": {
            "type": "string"
          },
          "ExpirationDate": {
            "type": "string"
          },
          "DocumentKey": {
            "type": "string"
          },
          "DocumentStatus": {
            "type": "integer"
          },
          "BusinessUnitId": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "BASE64-username.password": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "BASE64-username.password": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 67,
      "2": 163,
      "3": 4,
      "4": 159,
      "5": 233,
      "6": 189,
      "7": 0,
      "8": 18,
      "9": 95,
      "10": 2,
      "11": 2
    }
  }
}
```