---
updatedAt: 2026-06-03T11:10:39.000Z
agentTools:
  projectIndex: https://docs-us.thisisbud.com/llms.txt
---

# Retrieve Benefits Totals

Provides a customers' total income under each detected benefit type.

When `X-From` is omitted from the request, a default value of 30 days from before today's date will be used.
When `X-To` is omitted from the request, a default value of today's date will be used.


# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Smart Finders API",
    "version": "1.0.0",
    "contact": {
      "name": "API Support",
      "url": "https://www.thisisbud.com/en-us/",
      "email": "contact@thisisbud.com"
    },
    "x-logo": {
      "url": "https://res.cloudinary.com/postman/image/upload/w_152,h_56,c_fit,f_auto,t_team_logo/v1/team/2baee78029d6ee9e2917981a7a70c621ab65d9cf13d44d3dbd042d3d2f0c9881"
    },
    "description": "Get insights about spending, identify key transactions and create your own custom transaction labels to dig deeper into the data and build new services for customers.\n"
  },
  "tags": [
    {
      "name": "Income Finder",
      "x-displayName": "Income Finder",
      "description": "Find information regarding your customer's income.\n"
    },
    {
      "name": "Loan Finder",
      "x-displayName": "Loan Finder",
      "description": "Find information regarding your customer's loans.\n"
    },
    {
      "name": "Product Finder",
      "x-displayName": "Product Finder",
      "description": "Find information regarding your customer's financial products.\n"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://api-sandbox.thisisbud.com",
      "description": "Bud US"
    }
  ],
  "paths": {
    "/v1/benefits/totals": {
      "get": {
        "tags": [
          "Income Finder"
        ],
        "summary": "Retrieve Benefits Totals",
        "description": "Provides a customers' total income under each detected benefit type.\n\nWhen `X-From` is omitted from the request, a default value of 30 days from before today's date will be used.\nWhen `X-To` is omitted from the request, a default value of today's date will be used.\n",
        "operationId": "v1_benefits_totals_get",
        "security": [
          {
            "OAuth2": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/2"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/3"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/4"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Benefit Totals",
                  "type": "object",
                  "description": "Benefits Total income structure",
                  "required": [
                    "operation_id",
                    "data",
                    "metadata"
                  ],
                  "properties": {
                    "operation_id": {
                      "$ref": "#/paths/~1v1~1loans/get/responses/200/content/application~1json/schema/properties/operation_id"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "benefit",
                          "total_credit"
                        ],
                        "properties": {
                          "benefit": {
                            "title": "Benefit",
                            "type": "object",
                            "required": [
                              "type",
                              "display_name"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "The type of benefit",
                                "example": "attendance_allowance"
                              },
                              "display_name": {
                                "type": "string",
                                "example": "Attendance Allowance",
                                "description": "The display name of the benefit type"
                              }
                            }
                          },
                          "total_credit": {
                            "$ref": "#/paths/~1insights~1v2~1products/get/responses/200/content/application~1json/schema/properties/data/items/properties/amount"
                          }
                        }
                      }
                    },
                    "metadata": {
                      "$ref": "#/paths/~1v1~1loans/get/responses/200/content/application~1json/schema/properties/metadata"
                    }
                  }
                },
                "example": {
                  "operation_id": "v1_benefits_get_totals",
                  "data": [
                    {
                      "benefit": {
                        "type": "disability_living_allowance",
                        "display_name": "Disability Living Allowance"
                      },
                      "total_credit": {
                        "value": "333.28",
                        "currency": "USD"
                      }
                    }
                  ],
                  "metadata": {
                    "from": "2022-03-19",
                    "to": "2022-04-19",
                    "results": 1
                  }
                }
              }
            }
          },
          "204": {
            "description": "No transactions found"
          },
          "400": {
            "description": "The request contains an invalid payload.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request Response",
                  "type": "object",
                  "description": "Expected response structure",
                  "required": [
                    "operation_id",
                    "code_id",
                    "message",
                    "errors"
                  ],
                  "properties": {
                    "operation_id": {
                      "$ref": "#/paths/~1v1~1loans/get/responses/200/content/application~1json/schema/properties/operation_id"
                    },
                    "code_id": {
                      "type": "string",
                      "description": "A descriptive enough string that is linked to the reason for the error."
                    },
                    "message": {
                      "type": "string"
                    },
                    "errors": {
                      "anyOf": [
                        {
                          "title": "Error Object",
                          "type": "object",
                          "nullable": true,
                          "description": "Contains a field specific error message",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        {
                          "title": "Array of Error Object",
                          "description": "Contains a list of error messages",
                          "type": "object",
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "operation_id": "merchants_totals_get",
                  "code_id": "failed_validation",
                  "message": "Failed validation",
                  "errors": {
                    "client_id": "This value should not be blank"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorised request"
          },
          "405": {
            "description": "An unexpected HTTP method was used"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/v1/loans": {
      "get": {
        "tags": [
          "Loan Finder"
        ],
        "summary": "Retrieve Loan Transactions",
        "description": "Provides a list of a customers' outgoing loan transactions found within their connected accounts.\n\nWhen `X-From` is omitted from the request, a default value of 30 days from before today's date will be used.\nWhen `X-To` is omitted from the request, a default value of today's date will be used.\n\n**Notes:**\n- Transactions with multiple currencies are supported, but the statistics are currently only calculated for one currency. The endpoint takes the currency of the first transaction and ignores non-matching currencies in its calculations.\n",
        "operationId": "v1_loans_get",
        "security": [
          {
            "OAuth2": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "X-Client-Id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The API Client Identifier (Service Application Identifier).",
            "example": "8711bbef-b357-4c2d-97ca-0d9df4206e9a"
          },
          {
            "in": "header",
            "name": "X-Customer-Id",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true,
            "description": "A unique identifier for a Customer, as registered on Bud's platform.",
            "example": "c3339af9-2426-44d4-9c4d-ddb8fd281e23"
          },
          {
            "in": "header",
            "name": "X-Customer-Idempotent-Identifier",
            "schema": {
              "type": "string"
            },
            "description": "Use the internal client identifier, provided in the `client_metadata` object when creating the customer in __Create Customer V3__, in place of an `X-Customer-Id` header.\n"
          },
          {
            "in": "header",
            "name": "X-From",
            "required": false,
            "schema": {
              "type": "string"
            },
            "examples": {
              "date_only": {
                "value": "2022-02-28"
              },
              "RFC3339": {
                "value": "2019-02-28T07:20:50.52Z"
              }
            },
            "description": "Transaction from date, this works in pair with the 'X-To' parameter"
          },
          {
            "in": "header",
            "name": "X-To",
            "required": false,
            "schema": {
              "type": "string"
            },
            "examples": {
              "date_only": {
                "value": "2022-03-30"
              },
              "RFC3339": {
                "value": "2019-03-30T07:20:50.52Z"
              }
            },
            "description": "Transaction to date, this works in pair with the 'X-From' parameter"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Loans Finder Response",
                  "type": "object",
                  "required": [
                    "operation_id",
                    "data",
                    "metadata"
                  ],
                  "properties": {
                    "operation_id": {
                      "title": "Operation Id Field",
                      "type": "string",
                      "description": "A unique identifier/reference associated with a given endpoint/operation"
                    },
                    "data": {
                      "type": "object",
                      "title": "Loan_Finder_Response_Data",
                      "required": [
                        "transactions",
                        "statistics"
                      ],
                      "properties": {
                        "transactions": {
                          "type": "array",
                          "title": "Loan Transactions",
                          "items": {
                            "title": "Loan Transaction",
                            "allOf": [
                              {
                                "$ref": "#/paths/~1v1~1subscriptions/get/responses/200/content/application~1json/schema/properties/data/items/properties/transactions/items"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "merchant": {
                                    "allOf": [
                                      {
                                        "type": "object",
                                        "nullable": true
                                      },
                                      {
                                        "$ref": "#/paths/~1v1~1debt-collection/get/responses/200/content/application~1json/schema/properties/data/properties/transactions/items/allOf/1/properties/merchant"
                                      }
                                    ]
                                  }
                                }
                              }
                            ]
                          }
                        },
                        "statistics": {
                          "type": "object",
                          "title": "Loan Statistics",
                          "required": [
                            "total_debit"
                          ],
                          "properties": {
                            "total_debit": {
                              "allOf": [
                                {
                                  "description": "Total debit amount of all loan transactions"
                                },
                                {
                                  "$ref": "#/paths/~1insights~1v2~1products/get/responses/200/content/application~1json/schema/properties/data/items/properties/amount"
                                }
                              ]
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "title": "Metadata",
                      "description": "Metadata associated with the response schema",
                      "allOf": [
                        {
                          "title": "Metadata",
                          "type": "object",
                          "required": [
                            "from",
                            "to"
                          ],
                          "properties": {
                            "from": {
                              "type": "string",
                              "description": "The date from when results were retrieved in the format [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html).\nThis is either populated with the default value used when retrieving the results, or the user specified parameter.\n\nExample: `2023-01-17`\n"
                            },
                            "to": {
                              "type": "string",
                              "description": "The date up to when results were retrieved in the format [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html).\nThis is either populated with the default value used when retrieving the results, or the user specified parameter.\n\nExample: `2023-03-17`\n"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "required": [
                            "results"
                          ],
                          "properties": {
                            "results": {
                              "type": "number",
                              "description": "Number of results returned"
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "operation_id": "v1_loans_get",
                  "data": {
                    "transactions": [
                      {
                        "transaction_id": "fdcc55c6-f347-4abc-8c66-61ff290d8bd4",
                        "account_id": "fdcc55c6-f347-4abc-8c66-61ff290d8bd4",
                        "transaction_description": "Bud Loan Repayment",
                        "provider": "Chase",
                        "date": "2022-03-21T01:00:00+0100",
                        "amount": {
                          "value": "133.28",
                          "currency": "USD"
                        },
                        "credit_debit_indicator": "Debit",
                        "merchant": {
                          "id": "bud",
                          "name": "Bud",
                          "logo": "https://thisisbud.com/merchants/bud.png",
                          "confidence": "0.875"
                        }
                      }
                    ],
                    "statistics": {
                      "total_debit": {
                        "value": "133.28",
                        "currency": "USD"
                      }
                    }
                  },
                  "metadata": {
                    "results": 1,
                    "from": "2022-03-19",
                    "to": "2022-04-19"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No transactions"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorised request"
          },
          "405": {
            "description": "An unexpected HTTP method was used"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/insights/v2/products": {
      "get": {
        "tags": [
          "Product Finder"
        ],
        "summary": "Retrieve Financial Products V2",
        "description": "Financial Products returns the finance oriented products and services that a customer uses. \nThis endpoint generates data using a customer's transaction history.\n\nFinancial Products detects the following types of products and services: \n- Loans\n- Buy Now, Pay Later (BNPL)\n- Mortgages\n- Insurance products\n- Credit Cards\n- Private Pensions\n- Savings and Investments\n\n> 🚧 Limitations\n> \n> Financial Products are only identified from debit transactions.\n",
        "operationId": "insights_v2_products",
        "security": [
          {
            "OAuth2": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1v1~1loans/get/parameters/2"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            },
            "example": "2019-02-29",
            "description": "Filter from this date (format: `YYYY-MM-DD`)."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            },
            "example": "2019-02-29",
            "description": "Filter to this date (format: `YYYY-MM-DD`)."
          }
        ],
        "responses": {
          "200": {
            "description": "OK - everything worked as expected",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Retrieve Financial Products V2 Response Structure",
                  "type": "object",
                  "required": [
                    "operation_id",
                    "metadata"
                  ],
                  "properties": {
                    "operation_id": {
                      "$ref": "#/paths/~1v1~1loans/get/responses/200/content/application~1json/schema/properties/operation_id"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "title": "Financial_Product",
                        "description": "A Financial Product that a customer uses.",
                        "type": "object",
                        "required": [
                          "type",
                          "merchant",
                          "amount",
                          "period"
                        ],
                        "properties": {
                          "type": {
                            "title": "Financial_Product_Type",
                            "description": "A list of the types products and services identified for the given Financial Product. Potential values could be (but not limited to):\n  - `loan`\n  - `bnpl`\n  - `mortgage`\n  - `insurance`\n  - `credit_card`\n  - `private_pension`\n  - `savings_and_investment`\n",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "merchant": {
                            "title": "Financial_Product_Merchant",
                            "description": "Details of the merchant providing the Financial Product.",
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "logo"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "A unique ID for the merchant."
                              },
                              "name": {
                                "type": "string",
                                "description": "The merchant's name in a displayable format."
                              },
                              "logo": {
                                "type": "string",
                                "description": "The merchant's logo image URL location."
                              }
                            }
                          },
                          "amount": {
                            "title": "Standard Bud Amount",
                            "type": "object",
                            "description": "The monetary amount.",
                            "required": [
                              "value",
                              "currency"
                            ],
                            "properties": {
                              "value": {
                                "title": "Monetary Value",
                                "description": "The value of the monetary amount. The value is formatted with the number of decimal places for the respective currency. \n\nExample: `10.98`\n",
                                "type": "string"
                              },
                              "currency": {
                                "title": "Currency",
                                "description": "The three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) of the monetary amount.\n\nExample: `GBP`\n",
                                "type": "string"
                              }
                            }
                          },
                          "period": {
                            "title": "Transaction Period",
                            "description": "The period between each transaction for the given product. Possible values are:\n- `daily` -  This product is charged once a day.\n- `weekly` - This product is charged once a week.\n- `biweekly` - This product is charged once every two weeks.\n- `monthly` - This product is charged once a monthy.\n- `quarterly` - This product is charged once a quater (every 3 months).\n- `six_monthly` - product is charged every six months.\n- `annually` - This product is charged once a year.\n- `unknown` - It is unknown how frequently this product is charged.\n",
                            "type": "string",
                            "enum": [
                              "daily",
                              "weekly",
                              "biweekly",
                              "monthly",
                              "quarterly",
                              "six_monthly",
                              "annually",
                              "unknown"
                            ]
                          }
                        }
                      }
                    },
                    "metadata": {
                      "title": "Metadata",
                      "allOf": [
                        {
                          "title": "Metadata",
                          "type": "object",
                          "required": [
                            "from",
                            "to"
                          ],
                          "properties": {
                            "from": {
                              "type": "string",
                              "description": "The date from when results were retrieved in the format [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339).\nThis is either populated with the default value used when retrieving the results, or the user specified parameter.\n\nExamples:\n  - `2023-01-17T17:29:51Z`\n  - `2023-01-17T17:29:51-08:00`\n"
                            },
                            "to": {
                              "type": "string",
                              "description": "The date up to when results were retrieved in the format [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339).\nThis is either populated with the default value used when retrieving the results, or the user specified parameter.\n\nExamples:\n  - `2023-03-17T17:29:51Z`\n  - `2023-03-17T17:29:51-08:00`\n"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "required": [
                            "results"
                          ],
                          "properties": {
                            "results": {
                              "type": "number",
                              "title": "Results count",
                              "description": "Number of products returned."
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v2_products",
                  "data": [
                    {
                      "type": [
                        "credit_card"
                      ],
                      "merchant": {
                        "id": "americanexpress",
                        "logo": "https://assets.thisisbud.com/bud-datasci-images/merchant_logos/5e190e47-3ed5-4549-a29a-7f832862fd3a/v1/americanexpress.jpeg",
                        "name": "American Express"
                      },
                      "amount": {
                        "value": "300.00",
                        "currency": "USD"
                      },
                      "period": "unknown"
                    },
                    {
                      "type": [
                        "insurance"
                      ],
                      "merchant": {
                        "id": "unitedhealthgroup",
                        "logo": "https://assets.thisisbud.com/bud-datasci-images/merchant_logos/3d46d358-6600-4eb8-a23e-2c548ffa2de0/v1/unitedhealthgroup.jpeg",
                        "name": "UnitedHealth Group"
                      },
                      "amount": {
                        "value": "59.99",
                        "currency": "USD"
                      },
                      "period": "monthly"
                    }
                  ],
                  "metadata": {
                    "from": "2022-09-03T11:28:22.00Z",
                    "to": "2023-03-03T11:28:22.00Z",
                    "results": 2
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request contains an invalid payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1v1~1benefits~1totals/get/responses/400/content/application~1json/schema"
                },
                "example": {
                  "operation_id": "insights_v2_products",
                  "code_id": "failed_validation",
                  "message": "Invalid request payload.",
                  "errors": {
                    "from": "invalid 'from' date: '7th March 2023'"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorised Request - the request was not authenticated or authorised",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1v1~1benefits~1totals/get/responses/400/content/application~1json/schema"
                },
                "example": {
                  "operation_id": "unknown",
                  "code_id": "unknown",
                  "message": "Unauthorised request",
                  "errors": {}
                }
              }
            }
          },
          "500": {
            "description": "Server Error - an unexpected error occurred on the server side",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Server Error Response",
                  "type": "object",
                  "required": [
                    "operation_id",
                    "code_id",
                    "message"
                  ],
                  "properties": {
                    "operation_id": {
                      "$ref": "#/paths/~1v1~1loans/get/responses/200/content/application~1json/schema/properties/operation_id"
                    },
                    "code_id": {
                      "type": "string",
                      "description": "A descriptive enough string that is linked to the reason for the error."
                    },
                    "message": {
                      "type": "string",
                      "description": "An actual user friendly error message."
                    },
                    "errors": {
                      "anyOf": [
                        {
                          "$ref": "#/paths/~1v1~1benefits~1totals/get/responses/400/content/application~1json/schema/properties/errors/anyOf/0"
                        },
                        {
                          "$ref": "#/paths/~1v1~1benefits~1totals/get/responses/400/content/application~1json/schema/properties/errors/anyOf/1"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "operation_id": "unknown",
                  "code_id": "unknown",
                  "message": "An error occurred while processing your request. Get in touch with us and provide us your request id: 7ef63242-ba6d-4661-8014-f9eaa9cb2ad8"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/v1/oauth/token",
            "scopes": {}
          }
        },
        "description": "\nAuthentication flow:\n\n1. Perform OAuth2 Client Credentials authentication using API Credentials (`client_id`,`client_secret`) to obtain an `access_token` against `/v1/oauth/token` endpoint,\n2. Use `access_token` as Bearer Authorisation for every other API request,\n3. Include `X-Client-Id` (=client_id) within the header of every API request,\n4. Note that some of the requests may also require `X-Customer-Id` to be provided within the request header.\n\n### Examples\nObtain OAuth2 `access_token` and `refresh_token` using `grant_type=client_credentials` and HTTP Basic auth header\n\n```\ncurl --basic --user {{client_id}}:{{client_secret}} \\\n  -X POST https://api-sandbox.thisisbud.com/v1/oauth/token \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d grant_type=client_credentials\n```\n\nSuccessful response:\n```\n{\n  \"operation_id\": \"oauth_token_post\",\n  \"data\": {\n    \"access_token\": \"dd0c17e3fd6d2ce94aa091257a3ea393b4f9b5cf3d3e998f07dc9826da86ff15\",\n    \"token_type\": \"bearer\",\n    \"expires_in\": 3600,\n    \"refresh_token\": \"fac32cca7559d9f6e8f1dfe9a99c71fa1dcfeb482bedf287d7934d2667ae54b3\"\n  }\n}\n```\n\nRefresh `access_token` token using `refresh_token` against `/v1/oauth/token` endpoint with `grant_type=refresh_token`\n\n```\ncurl -X POST \\\n  https://api-sandbox.thisisbud.com/v1/oauth/token \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -H 'X-Client-Id: {{client_id}}' \\\n  -d 'grant_type=refresh_token&refresh_token={{refresh_token}}'\n```\n\nSuccessful response:\n```\n{\n    \"operation_id\": \"oauth_token_post\",\n    \"data\": {\n        \"access_token\": \"cc0c17e3fd6d2ce94aa091257a3ea393b4f9b5cf3d3e998f07dc9826da86ff94\",\n        \"token_type\": \"bearer\",\n        \"expires_in\": 3600,\n        \"refresh_token\": \"ffc30cca7559d9f6e8f1dfe9a99c71fa1dcfeb482bedf287d7934d2667ae54b3\"\n    }\n}\n```\n"
      }
    }
  }
}
````