> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solomon.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Remover custo

> Remove um custo adicional pelo `additional_cost_id` e pela `frequency`. Requer o escopo `costs.write`.



## OpenAPI

````yaml delete /costs
openapi: 3.1.0
info:
  title: Solomon Admin API
  description: API aberta para integração com a Solomon
  license:
    name: MIT
  version: 1.1.0
servers:
  - url: https://admin-api.sandbox.solomon.com.br/admin/v1
  - url: https://admin-api.solomon.com.br/admin/v1
security:
  - ApiKeyAuth: []
paths:
  /costs:
    delete:
      summary: Remover custo adicional
      description: >-
        Remove um custo adicional pelo `additional_cost_id` e pela `frequency`.
        Requer o escopo `costs.write`.
      operationId: deleteCost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCost'
            example:
              additional_cost_id: aZ12Bc34De
              frequency: monthly
      responses:
        '200':
          description: Custo removido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
        '400':
          description: Custo inexistente ou requisição inválida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Erro interno do servidor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DeleteCost:
      type: object
      required:
        - additional_cost_id
        - frequency
      properties:
        additional_cost_id:
          type: string
        frequency:
          type: string
          enum:
            - specific
            - daily
            - weekly
            - monthly
    Success:
      type: object
      properties:
        success:
          type: boolean
        request_id:
          type: string
        timestamp:
          type: string
    Error:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
        request_id:
          type: string
        timestamp:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API Key para autenticação

````