PoweredBy API - Spend Features

API to provide Greenlight spend features to partners.

Changelog

v2.0.0

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 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.

POST /spend/history

View Spending History

POST /spend/requests

Search Spending Requests

GET /spend/requests/{id}

View Spending Request

GET /spend/rules

View Spending Rules

POST /spend/rules

Create Spending Rule

GET /spend/rules/{id}

View Spending Rule

PATCH /spend/rules/{id}

Update Spending Rule

DELETE /spend/rules/{id}

Delete Spending Rule

POST /spend/rules/{id}/statement

View Spending Rule Statement

POST /spend/statement

View Spending Statement

GET /spend/storematch/categories

View Categories

POST /spend/storematch/search

Search Stores and Categories