latestSwagger 2.02026-08-20196638916.1 KB

23d8982b533d

Finance Management.Savings Goals
ENTERPRISE

ReAllocate amount

ReAllocate amount from a Savings Goal to another Savings Goal.

post/api/v1/savings-goals/allocations/fund:reallocate

Request body

destinationSavingsGoalIdstring

The destination Savings Goal ID to allocate money to.

sourceSavingsGoalIdstring

The source Savings Goal ID to allocate money from.

Example request

{
  "amount": {
    "currencyCode": "EUR",
    "scale": 2,
    "unscaledValue": 2000
  },
  "destinationSavingsGoalId": "d9f134ee2eb44846a4e02990ecc8d32e",
  "sourceSavingsGoalId": "d9f134ee2eb44846a4e02990ecc8d32e"
}

Response

The reallocation allocation.

createTimestring

Date and time in UTC in which the Allocation was made.

destinationIdstring

The ID of the Destination.

destinationType'SAVINGS_GOAL' | 'ACCOUNT'

The type of the destination.<br />- ACCOUNT: Destination of type Account.<br />- SAVINGS_GOAL: Destination of type Savings Goal.

idstring

The ID of the new allocation.

sourceIdstring

The ID of the Source.

sourceTypestring

The type of the source.<br />- ACCOUNT: Source of type Account.<br />- SAVINGS_GOAL: Source of type Savings Goal.

Example response

{
  "amount": {
    "currencyCode": "EUR",
    "scale": 2,
    "unscaledValue": 2000
  },
  "createTime": "2020-05-14T13:30:45Z",
  "destinationId": "d9f134ee2eb44846a4e02990ecc8d32e",
  "id": "d9f134ee2eb44846a4e02990ecc8d32e",
  "sourceId": "d9f134ee2eb44846a4e02990ecc8d32e"
}