> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.simplificagestao.com.br/llms.txt.
> For full documentation content, see https://docs.simplificagestao.com.br/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.simplificagestao.com.br/_mcp/server.

# Atualizar tipo de pagamento

PUT https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/{id}
Content-Type: application/json

Atualiza um tipo de pagamento existente.

Regras:
- a operação atualiza somente os campos enviados;
- campos omitidos continuam com o valor atual;
- `ativo` aceita `S` ou `N`;
- `asaas_billing_type` aceita `BOLETO`, `CREDIT_CARD`, `PIX` ou `UNDEFINED`;
- não existe rota de exclusão por API para esse cadastro.


Reference: https://docs.simplificagestao.com.br/api-reference/financeiro/cadastros/tipos-de-pagamento/update-tipo-pagamento

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: openapi-simplifica
  version: 1.0.0
paths:
  /simplificav2/tipo_pagamento/{id}:
    put:
      operationId: update-tipo-pagamento
      summary: Atualizar tipo de pagamento
      description: >
        Atualiza um tipo de pagamento existente.


        Regras:

        - a operação atualiza somente os campos enviados;

        - campos omitidos continuam com o valor atual;

        - `ativo` aceita `S` ou `N`;

        - `asaas_billing_type` aceita `BOLETO`, `CREDIT_CARD`, `PIX` ou
        `UNDEFINED`;

        - não existe rota de exclusão por API para esse cadastro.
      tags:
        - subpackage_financeiro
      parameters:
        - name: id
          in: path
          description: Identificador do tipo de pagamento.
          required: true
          schema:
            type: integer
        - name: Authorization
          in: header
          description: |
            Token privado usado para consultar dados da plataforma.

            Como usar:
            - obtenha o token privado da sua empresa;
            - envie `Authorization: Bearer SEU_TOKEN_PRIVADO`;
            - não use `x-api-key` neste módulo.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Tipo de pagamento atualizado com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WriteIdSuccessResponse'
        '400':
          description: Corpo JSON inválido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
        '401':
          description: Token ausente, inválido ou sem empresa associada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
        '404':
          description: Recurso não encontrado no escopo da empresa autenticada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
        '409':
          description: >-
            O estado atual do recurso ou o valor informado não permitem a
            operação solicitada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
        '422':
          description: Requisição válida em JSON, mas com regra funcional inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
        '500':
          description: Erro interno inesperado ao executar a operação.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowUpWriteErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                nome:
                  type:
                    - string
                    - 'null'
                descricao:
                  type:
                    - string
                    - 'null'
                asaas_billing_type:
                  oneOf:
                    - $ref: >-
                        #/components/schemas/Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAsaasBillingType
                    - type: 'null'
                ativo:
                  $ref: >-
                    #/components/schemas/Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAtivo
servers:
  - url: https://gestao.simplificagestao.com.br/ords/gestao
  - url: >-
      https://gd341ff411ca4b6-dbdevsimplificav2.adb.sa-saopaulo-1.oraclecloudapps.com/ords/gestao
components:
  schemas:
    Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAsaasBillingType:
      type: string
      enum:
        - BOLETO
        - CREDIT_CARD
        - PIX
        - UNDEFINED
      title: >-
        Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAsaasBillingType
    Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAtivo:
      type: string
      enum:
        - S
        - 'N'
      title: >-
        Simplificav2TipoPagamentoIdPutRequestBodyContentApplicationJsonSchemaAtivo
    WriteIdData:
      type: object
      properties:
        id:
          type: integer
      required:
        - id
      title: WriteIdData
    WriteIdSuccessResponse:
      type: object
      properties:
        status:
          type: string
        mensagem:
          type: string
        data:
          $ref: '#/components/schemas/WriteIdData'
      required:
        - status
        - mensagem
        - data
      title: WriteIdSuccessResponse
    FollowUpWriteErrorResponse:
      type: object
      properties:
        status:
          type: string
        codigo:
          type: string
        mensagem:
          type: string
      required:
        - status
        - codigo
        - mensagem
      title: FollowUpWriteErrorResponse
  securitySchemes:
    SimplificaPrivateBearer:
      type: http
      scheme: bearer
      description: |
        Token privado usado para consultar dados da plataforma.

        Como usar:
        - obtenha o token privado da sua empresa;
        - envie `Authorization: Bearer SEU_TOKEN_PRIVADO`;
        - não use `x-api-key` neste módulo.

```

## SDK Code Examples

```python Financeiro_updateTipoPagamento_example
import requests

url = "https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1"

payload = {
    "descricao": "Pagamento por cartão",
    "asaas_billing_type": "CREDIT_CARD",
    "ativo": "S"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Financeiro_updateTipoPagamento_example
const url = 'https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"descricao":"Pagamento por cartão","asaas_billing_type":"CREDIT_CARD","ativo":"S"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Financeiro_updateTipoPagamento_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1"

	payload := strings.NewReader("{\n  \"descricao\": \"Pagamento por cartão\",\n  \"asaas_billing_type\": \"CREDIT_CARD\",\n  \"ativo\": \"S\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Financeiro_updateTipoPagamento_example
require 'uri'
require 'net/http'

url = URI("https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"descricao\": \"Pagamento por cartão\",\n  \"asaas_billing_type\": \"CREDIT_CARD\",\n  \"ativo\": \"S\"\n}"

response = http.request(request)
puts response.read_body
```

```java Financeiro_updateTipoPagamento_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"descricao\": \"Pagamento por cartão\",\n  \"asaas_billing_type\": \"CREDIT_CARD\",\n  \"ativo\": \"S\"\n}")
  .asString();
```

```php Financeiro_updateTipoPagamento_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1', [
  'body' => '{
  "descricao": "Pagamento por cartão",
  "asaas_billing_type": "CREDIT_CARD",
  "ativo": "S"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Financeiro_updateTipoPagamento_example
using RestSharp;

var client = new RestClient("https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"descricao\": \"Pagamento por cartão\",\n  \"asaas_billing_type\": \"CREDIT_CARD\",\n  \"ativo\": \"S\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Financeiro_updateTipoPagamento_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "descricao": "Pagamento por cartão",
  "asaas_billing_type": "CREDIT_CARD",
  "ativo": "S"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://gestao.simplificagestao.com.br/ords/gestao/simplificav2/tipo_pagamento/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```