# PoweredBy API - Save Features 2.0.0

API to provide Greenlight save features to partners.

## Changelog

### v2.0.0
- Baselined at v1.10.3
- Changed update operations to use `PATCH` vs `PUT` method to better align with design standards
- Removed `X-Requestor` requirement to support user access token use cases
- Changed `accountId` to `childReference` to clearly separate where child GLUIDs are expected
- Changed attributes of Ledger Account to be more consistent on financial account representation

## Terminology
### ECI
External Customer Identifier.  An identifier, provided by GL partners, to uniquely identify parents and children that will participate in the GL platform.  This value should not change during the relationship of the user with the GL platform.

### EAI
External Account Identifier.  An identifier, provided by GL partners, to uniquely identify financial accounts owned by parents and children that will participate in the GL platform.  This value should not change during the relationship of the user with the GL platform.

### GLUID
Greenlight Unique Identifier, is a compound Id that is globally unique in the resource model exposed by the GL APIs. A GLUID is composed of a Resource Entity Type and a Resource Id. GlUIDs are constructed with the following format `{ResourceType}::{ResourceId}`.  

As an example, an External User is a GL resource entity type that relates to an External Customer Id (ECI) resource.  If an external user has an ECI of `abc123-xyz789`, this user can be represented as the GLUID `ExternalUser::abc123-xyz789`.

## Types

### DateTime
A DateTime object is represented as a String in the GL resource model.  DateTime strings should be compliant with the date-time format outlined in section 5.6 of the [RFC 3339 profile of the ISO 8601](https://tools.ietf.org/html/rfc3339) standard for representation of dates and times using the Gregorian calendar.  An example of a DateTime string representing a date and time in UTC is `2019-09-03T10:15:30Z`.

A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.

### Currency
Money amounts, or currency, is represented in the resource model as a Number (32.74).  The assumption is that this number represents US currency.

### String
Unless otherwise noted against the specific data type in the specification, the maximum length for all String data types is 255 characters.

## Deprecation

* __Funding Request Types__:  The funding request types have evolved over time in v1 of the specification.  In v2, we expect to rebase the valid types to remove types that are no longer used in the application code.

## Servers

- https://{env}.{partner}.gl-tech.io/api/v2

## Authentication

- `OAuth`: OAuth 2.0

## Operations

### Reporting

- [POST /save/statement](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/getSaveStatement): View Saving Statement

### Save

- [GET /save/goals](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/getSavingsGoals): View Savings Goals
- [POST /save/goals](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/createSavingsGoal): Create Savings Goal
- [GET /save/goals/{id}](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/getSavingsGoal): View Savings Goal
- [PATCH /save/goals/{id}](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/editSavingsGoal): Update Savings Goal
- [DELETE /save/goals/{id}](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/deleteSavingsGoal): Delete Savings Goal
- [POST /save/goals/{id}/statement](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/getSavingsGoalStatement): View Savings Goal Statement
- [POST /save/history](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/operations/searchSavingsHistory): View Savings History

## Schemas

- [Comment](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/Comment)
- [ExceptionPayload](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/ExceptionPayload)
- [FundingAccount](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingAccount)
- [FundingRequest](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingRequest)
- [FundingRequestOverview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingRequestOverview)
- [FundingRequestState](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingRequestState)
- [FundingRequestType](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingRequestType)
- [FundingTransaction](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingTransaction)
- [FundingTransactionType](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/FundingTransactionType)
- [HistorySearch](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/HistorySearch)
- [LedgerAccount](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/LedgerAccount)
- [LedgerActivity](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/LedgerActivity)
- [SavingsGoal](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsGoal)
- [SavingsGoalCreateInput](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsGoalCreateInput)
- [SavingsGoalEditInput](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsGoalEditInput)
- [SavingsGoalOverview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsGoalOverview)
- [SavingsGoalPayload](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsGoalPayload)
- [SavingsHistoryResponse](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/SavingsHistoryResponse)
- [StatementRecord](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/StatementRecord)
- [StatementRequestState](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/StatementRequestState)
- [StatementRequestType](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/StatementRequestType)
- [StatementResponse](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/StatementResponse)
- [StatementSearch](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Save%20Features%20API.json/schemas/StatementSearch)

Bundled OpenAPI file: https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/bundle/v2/Save%20Features%20API.json
