latestSwagger 2.02026-08-20196638916.1 KB

23d8982b533d

Finance Management.Savings Goals
ENTERPRISE

List allocations

List allocations by Savings Goal.

get/api/v1/savings-goals/{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.

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"
    }
  ]
}