Finance Management.Savings Goals
ENTERPRISE

List allocations by Account

get/api/v1/savings-goals/accounts/{id}/allocations

Path parameters

idstring required

The Savings Goal ID

Query parameters

page_sizeinteger

(Optional) Size of the page to fetch.

page_tokenstring

(Optional) The first token is presented on the response of the first call if there are multiple pages.

Response

The list of allocations withdraw from, and deposit to, the Account.

nextPageTokenstring

Next page token to be used for pagination, use it with the next request parameter <code>page_token</code> to request the next page of the list.

Example response

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