---
updatedAt: 2026-07-17T18:00:07.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Attach fee model to account

Attach the fee model to an account.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Platform setup - Rates and fees",
    "description": "Rates and fees API endpoint documentation.",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/rates",
      "description": "Sandbox API server for testing"
    }
  ],
  "tags": [
    {
      "name": "Fee models",
      "description": "Fee model endpoints."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "parameters": {
      "AccountIDpath": {
        "in": "path",
        "name": "account_id",
        "schema": {
          "type": "integer"
        },
        "description": "Pismo account ID",
        "required": true
      },
      "AuthNoAccount": {
        "name": "Authorization",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "required": true,
        "description": "Access token, not an account-specific token. Tokens can expire quickly, which can result in an <b>401 Unauthorized</b> message\n"
      },
      "ModelIDpath": {
        "name": "model_id",
        "in": "path",
        "schema": {
          "type": "string"
        },
        "description": "Fee model ID",
        "required": true
      }
    },
    "schemas": {
      "BadRequestError": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "example": "RCAPI-INVALID-REQUEST-PAYLOAD"
          },
          "message": {
            "type": "string",
            "description": "Error description",
            "example": "The request payload is invalid"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "example": "RCAPI-DOMAIN-VIOLATION",
            "description": "Error code ID."
          },
          "message": {
            "type": "string",
            "example": "Internal server error",
            "description": "Error description."
          }
        }
      },
      "HTTPPutErrors": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "error_code": {
              "type": "string",
              "example": "RCAPI-INTEGRITY-VIOLATION",
              "description": "Error code ID."
            },
            "message": {
              "type": "string",
              "example": "Attachment has been created already",
              "description": "Error description"
            }
          }
        }
      },
      "NotFoundModelError": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "example": "RCAPI-NOT_FOUND-VIOLATION"
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "example": "Model with the provided key does not exist"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "400BadRequestError": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BadRequestError"
            }
          }
        }
      },
      "401Unauthorized": {
        "description": "InvalidToken",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404ModelNotFound": {
        "description": "Fee model not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundModelError"
            }
          }
        }
      },
      "409Conflict": {
        "description": "Conflict",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/HTTPPutErrors"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/fee/models/{model_id}/attachment/account/{account_id}": {
      "put": {
        "summary": "Attach fee model to account",
        "description": "Attach the fee model to an account.",
        "operationId": "attachmentByAccount",
        "tags": [
          "Fee models"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ModelIDpath"
          },
          {
            "$ref": "#/components/parameters/AccountIDpath"
          },
          {
            "$ref": "#/components/parameters/AuthNoAccount"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/400BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/404ModelNotFound"
          },
          "409": {
            "$ref": "#/components/responses/409Conflict"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```