# PoweredBy API - Testing 2.1.0

Test support API used to drive behavior that is otherwise scheduled, asynchronous, or triggered by a real-world event.

## Changelog

### v2.1.0
- Allowance payout endpoints accept an allowance id as an `Allowance` GLUID, or the child's `User` or `ExternalCustomer` GLUID
- Savings interest payout endpoints accept a user id as a `User` or `ExternalCustomer` GLUID
- Plain ids are still accepted and read as before

### v2.0.0
- Initial version

## Terminology
### 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 `ExternalCustomer::abc123-xyz789`.

## Servers

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

## Authentication

- `OAuth`: OAuth 2.0

## Operations

### Earn

- [POST /testing/earn/allowances/{id}/payouts](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/operations/createAllowancePayout): Create Allowance Payout
- [GET /testing/earn/allowances/{id}/payouts/preview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/operations/previewAllowancePayout): Preview Allowance Payout

### Save

- [POST /testing/save/users/{id}/savings-interest/payouts](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/operations/createSavingsInterestPayout): Create Savings Interest Payout
- [GET /testing/save/users/{id}/savings-interest/payouts/preview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/operations/previewSavingsInterestPayout): Preview Savings Interest Payout

## Schemas

- [AllowanceFrequency](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/AllowanceFrequency)
- [AllowancePayout](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/AllowancePayout)
- [AllowancePayoutPreview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/AllowancePayoutPreview)
- [AllowancePayoutStatus](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/AllowancePayoutStatus)
- [AllowancePayoutType](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/AllowancePayoutType)
- [BaseExceptionResponse](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/BaseExceptionResponse)
- [CadenceDayOfWeek](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/CadenceDayOfWeek)
- [CreateAllowancePayoutRequest](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/CreateAllowancePayoutRequest)
- [CreateSavingsInterestPayoutRequest](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/CreateSavingsInterestPayoutRequest)
- [SavingsInterestPayout](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/SavingsInterestPayout)
- [SavingsInterestPayoutPreview](https://apis.poweredby.partners.gl-tech.io/api/v1/published/Partnerships/GL-POWEREDBY-API/md/v2/Testing%20API.json/schemas/SavingsInterestPayoutPreview)

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