Mono Colombia

Deletes a fee policy

Deletes one of your fee policies. From then on it no longer applies — the next less specific policy takes over the accounts it covered — and it is no longer listed, so its target_type, target_id and fee_type combination is free for a new policy.

Your base policies (target_type: tenant) can't be deleted: they guarantee every fee you charge has a price. Only the policies overriding them — the ones targeting a program, an account holder or an account — can.

Returns 204 No Content. Fees already charged with the policy are kept and still reference it.

DELETE
/v1/core/fees/policies/{id}

Autorización

AutorizaciónBearer <token>

En: header

Parámetros de ruta

idstring

Fee policy ID

Match^[A-Za-z]{2,7}_[\w-]{22}$
Example"fpol_5tgliBmzjZ6mpQPRbQjfKj"

Cuerpo de la respuesta

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.sandbox.cuentamono.com/v1/core/fees/policies/fpol_5tgliBmzjZ6mpQPRbQjfKj"
Vacío
{
  "code": "401 Unauthorized",
  "errors": [
    {
      "error_code": "missing_authorization_header",
      "message": "`Authorization` header is missing.",
      "path": null,
      "url": null
    }
  ],
  "id": "log_7MkWaFqvfosB8fzHhb1Eql",
  "message": "Authorization header is missing or invalid."
}
{
  "code": "403 Forbidden",
  "errors": [
    {
      "error_code": "not_authorized",
      "message": "Not authorized to have access to this resource.",
      "path": null,
      "url": null
    }
  ],
  "id": "log_7MkWaFqvfosB8fzHhb1Eql",
  "message": "Not authorized to have access to this resource"
}
{
  "code": "404 Not Found",
  "errors": [
    {
      "error_code": "fee_policy_not_found",
      "message": "The fee policy doesn't exist.",
      "path": null,
      "url": null
    }
  ],
  "id": "log_7MkWaFqvfosB8fzHhb1Eql",
  "message": "Resource not defined"
}
{
  "code": "422 Unprocessable Content",
  "errors": [
    {
      "error_code": "cannot_delete_tenant_policy",
      "message": "The tenant fee policy can't be deleted.",
      "path": "#/path/to/field",
      "url": null
    }
  ],
  "id": "log_7MkWaFqvfosB8fzHhb1Eql",
  "message": "Validation errors"
}