---
agentTools:
  projectIndex: https://geopagos.readme.io/llms.txt
---

# Criar fee Rule

Requisição para adicionar taxas para uma company (a taxa especificada é a taxa final, considerando custos de adquirente e de spread).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Geopagos API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.{dev}.geopagos.com.br",
      "variables": {
        "dev": {
          "default": "dev"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/children/{company_id}/fee_rule": {
      "post": {
        "summary": "Criar fee Rule",
        "description": "Requisição para adicionar taxas para uma company (a taxa especificada é a taxa final, considerando custos de adquirente e de spread).",
        "operationId": "criar-fee-rule-1",
        "parameters": [
          {
            "name": "company_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "anticipation_fee",
                  "brands"
                ],
                "properties": {
                  "anticipation_fee": {
                    "type": "number",
                    "default": 1.99,
                    "format": "float"
                  },
                  "anticipation_type": {
                    "type": "string",
                    "description": "Define o cálculo do custo de antecipação. Para entender o cálculo ver a seção `Spot Anticipation`.",
                    "default": "per_month",
                    "enum": [
                      "per_installment",
                      "per_month"
                    ]
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "brand": {
                          "type": "string",
                          "description": "Bandeira do cartão",
                          "default": "visa",
                          "enum": [
                            "visa",
                            "mastercard",
                            "hiper",
                            "elo",
                            "hipercard",
                            "amex"
                          ]
                        },
                        "fee": {
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "646d75355a394d07dc8d3bbc:646e50f1af57ab0072bd0fcd"
}
```