---
title: "Create pay-in to a person's savings account"
method: POST
path: "/v1/persons/{person_id}/deposit_accounts/{account_id}/payin"
tags: ["Savings Accounts"]
---

# Create pay-in to a person's savings account

`POST /v1/persons/{person_id}/deposit_accounts/{account_id}/payin`

Transfers money from a person's main account to their savings account.

## Path parameters

- `person_id` string, required
- `account_id` string, required

## Request body

- PayInRequest
  - `main_account_id` string, required — ID of the main account.
  - `reference` string, uuid, required — UUID to use as an idempotency reference for the transaction.
  - `description` string — Optional note about the transaction.
  - `amount` SolarisResourcesMoneyWithUnit, required
    - `value` integer — The amount.
    - `unit` string — Money unit used to represent the amount.
    - `currency` string — The currency in which the amount is represented.

## Response `201`

The transaction has been executed.

- PayInResponse
  - `id` string, required — Transaction ID of the pay-in request.
  - `main_account_id` string, required — ID of the main account.
  - `reference` string, uuid, required — UUID to use as an idempotency reference for the transaction.
  - `description` string — Optional note about the transaction.
  - `amount` SolarisResourcesMoneyWithUnit, required
    - `value` integer — The amount.
    - `unit` string — Money unit used to represent the amount.
    - `currency` string — The currency in which the amount is represented.
  - `created_at` string, date-time — UTC timestamp from when the transaction was requested.

## Other responses

- `400` — An error occurred on the client side.
- `403` — You are not authorized to perform this action.
- `404` — The provided resource could not be found.
- `500` — Internal server error.

---

[API](https://skmtc.net/solarisgroup/apis/account-management.md) · [All operations](https://skmtc.net/solarisgroup/apis/account-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solarisgroup/account-management/revisions/099ef636a5a1/schema)
