---
updatedAt: 2026-04-30T22:53:04.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.

# Get account buckets

Get one or all buckets for a specific tenant. Buckets are accumulators that are related to an accounting script. Buckets can have their values changed with each related accounting entry.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Accounting",
    "version": "1.0.0",
    "description": "API used to manage the accounting context",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/accounting",
      "description": "Sandbox API server for testing"
    }
  ],
  "components": {
    "schemas": {
      "Bucket": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Bucket name",
            "example": "bacen_pre_2039"
          },
          "account": {
            "type": "integer",
            "format": "int64",
            "description": "Account ID",
            "example": 123456
          },
          "value": {
            "type": "number",
            "description": "Bucket value",
            "example": 100
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "description": "Bucket last updated date",
            "example": "2021-06-26"
          }
        }
      },
      "Page": {
        "type": "object",
        "properties": {
          "has_next": {
            "type": "boolean",
            "description": "Indicates if there are more items to be retrieved."
          },
          "items": {
            "type": "array",
            "description": "Items retrieved from a given request.",
            "items": {
              "type": "object"
            }
          }
        }
      }
    },
    "parameters": {
      "pageSize": {
        "in": "query",
        "name": "pageSize",
        "description": "Maximum number of accounting event types per page.",
        "schema": {
          "type": "integer"
        }
      },
      "pageOffset": {
        "name": "pageOffset",
        "in": "query",
        "description": "Number to offset page resuts. For example, value `2` returns the third page. Defaults to `0`, which returns the first page.",
        "schema": {
          "type": "integer"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Buckets",
      "description": "Endpoints to manage account buckets."
    }
  ],
  "paths": {
    "/v1/buckets": {
      "get": {
        "operationId": "GetBucketsByAccount",
        "summary": "Get account buckets",
        "description": "Get one or all buckets for a specific tenant. Buckets are accumulators that are related to an accounting script. Buckets can have their values changed with each related accounting entry.\n",
        "tags": [
          "Buckets"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/pageSize"
          },
          {
            "$ref": "#/components/parameters/pageOffset"
          },
          {
            "in": "query",
            "name": "accountId",
            "schema": {
              "type": "integer"
            },
            "description": "Account ID"
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Bucket name"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Page"
                    },
                    {
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Bucket"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          }
        }
      }
    }
  }
}
```