v1

latestOpenAPI 3.0.32026-07-243003151.2 MB
Account

Create

This API endpoint allows the calling application to create a new AIR Account

post/connect/account

Headers

Accept-Encoding'''' | ''gzip'' | ''deflate'' | ''gzip,deflate'' | ''deflate,gzip'' string

This request HTTP header advertises which content encoding (usually a compression algorithm) the calling application is able to understand. The server selects one of the proposals, use it and informs the client of its choice with the Content-Encoding Response header. Currently supported gzip and deflate. Please note if this request header is not present, no compression will be used.

Connection'keep-alive' | 'close' string

This general HTTP header controls (or rather influences) whether the network connection stays open after the current request finishes. If the sent value is keep-alive, the connection should stay in a special state, allowing to be reused for subsequent requests to the same server. Please note these connections will be closed after reaching timeout threshold controlled by EES server (usually after 5 seconds).

Content-Typestring string

Standard HTTP header to inform EES API what type of content was passed in request payload

X-EES-AUTH-CLIENT-IDstring string required

Client ID, This will be provided by EES and is unique to the company calling the API.

X-EES-AUTH-HASHstring string required

Request Security Hash, calculated using SHA-256 function from concatenated full Request URI Path with Query String(s), Payload and Client Secret

X-POSCONNECT-TRANSACTION-DATETIMEstring eesDateTime

The ability to specify the date and time that should be used to adjudicate. This can be used to create transactions for past events, whilst ensuring the consumer receives the rewards that they were eligible for at that time. This functionality is only available for events less than 6 months in the past. Please note requested transaction date-time has to use ATOM Date-Time format Y-m-d\TH:i:sP, (e.g. 2017-12-31T23:59:59+09:00).

X-EES-TRANSACTION-IDstring string

Unique Reference for the API transaction within the calling company.

X-CUSTOM-SUBSYSTEM-IDstring string

Optional header provided by the calling application for EES AIR to identify what was the external Subsystem Id / Name.

X-CUSTOM-KEYstring string

Optional header(s) provided by the calling application to EES AIR. Please note this header name has to follow pattern X-CUSTOM-*

Request body

walletIdstring string

EES AIR Wallet ID for which an Account will be created. Please note: this attribute is mandatory for EES AIR Wallet Clients

resourceType'CAMPAIGN' | 'PROGRAMME' | 'SCHEME' | 'PLAN' required

EES AIR Resource Type

resourceIdstring string required

EES AIR Resource ID (Campaign ID, Programme ID, Scheme ID, Plan ID, etc.)

status'ACTIVE' | 'INACTIVE'

EES AIR Account Status (Please note: enum below is different compared to all available Account Statuses)

statestring string nullable

Client specific Account State (available items will be agreed during Client onboarding if applicable)

amountinteger

Account Initial Balance; if applicable for an Account Type

barcodeImageboolean

Optional flag for Token accounts to create a barcode image for the generated Token.

tokenstring

Optional token value to be assigned to a new token account if the campaign is configured to allow it.

Response

EES AIR has successfully processed a Request

messageobject