---
title: "Contribute to a goal (must be in goal currency)"
method: POST
path: "/personal-finance/goals/{id}/contribute"
tags: ["personal finance"]
---

# Contribute to a goal (must be in goal currency)

`POST /personal-finance/goals/{id}/contribute`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/personal-finance/goals/{id}/contribute`
- Auth: `bearer` (a scheme the document does not define)

## Path parameters

- `id` string, required

## Request body

- ContributeToGoalDto
  - `amount` number, required: Contribution amount
  - `createTransaction` boolean: Create a transaction record for this contribution
  - `transactionDescription` string: Transaction description (if createTransaction is true)

## Response `200`

Contribution made

## Other responses

- `404`: Goal not found

---

[API](https://skmtc.dev/spliteo/apis/spliteo-api.md) · [All operations](https://skmtc.dev/spliteo/apis/spliteo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spliteo/apis/spliteo-api/revisions/bd9b84f4e407?raw)
