Lune Insights API

To make use of the enriched transactions and gain real-time insights on your customers’ spending, raw transaction data and unique customer identifiers should be sent in bulk using the corresponding end points. Once received, the data is processed asynchronously in preparation for insights across value & volume of transactions across demographics and different time series.

Bulk upload customers' accounts

Bulk upload customers' accounts

AUTHORIZATIONS:

APIKey

REQUEST BODY SCHEMA :

application/json

Array [

arrow

account_number

string (Unique Customer identifier) [ 1 .. 36 ] charcters . A unique identifier, not necessary the bank account number e.g. it could be SHA-256 hashed value of the actual bank account number or any other value as long it is unique identifier of the customer

arrow

currency_code

string (Currency code)  3 charcters ISO currency code

arrow

account_holder_gender

string (Account holder gender)  [ 1 .. 36 ] charcters

arrow

account_holder_dob

string (Account holder DOB)  [ 1 .. 36 ] charcters

arrow

account_holder_nationality

string (Account holder nationality)  2 character ISO country code

arrow

account_holder_mobile

string (account_holder_mobile)  [ 1 .. 36 ] charcters

]

Responses

- 201 Success

POST

https://api.lunedata.io/api/v1/accounts/

Payload

application/json

Content type

[
  {
    "account_number": "string",
    "currency_code": "string",
    "account_holder_gender": "string",
    "account_holder_dob": "string",
    "account_holder_nationality": "string",
    "account_holder_mobile": "string"
  }
]

Bulk upload customers' transactions

Bulk upload customers' transactions

AUTHORIZATIONS:

APIKey

REQUEST BODY SCHEMA :

application/json

Array [

arrow

raw_description
required

string (Raw Description)

arrow

amount
required

float (Amount)   >=1.0

arrow

local_id
required

string (Local ID is used to identify the transactions)  [ 1 .. 36 ] charcters

arrow

transaction_id

string (Transaction ID)  [ 1 .. 36 ] charcters

arrow

transaction_date

string (Transaction Date)  [ 1 .. 36 ] charcters

arrow

mcc

string (Mcc)  [ 1 .. 36 ] charcters

arrow

currency_code

string (Currency code)  3 charcters ISO currency code

arrow

account_number

string (Unique Customer identifier) [ 1 .. 36 ] charcters . A unique identifier, not necessary the bank account number e.g. it could be SHA-256 hashed value of the actual bank account number or any other value as long it is unique identifier of the customer

]

Responses

- 201 Success

POST

https://api.lunedata.io/api/v1/transactions/

Payload

application/json

Content type

[
  {
    "raw_description": "string",
    "amount": 1,
    "local_id": "string",
    "transaction_id": "string",
    "transaction_date": "string",
    "mcc": "string",
    "currency_code": "string",
    "account_number": "string"
  }
]