Enrichment V2.1.2
The Enrichment V2 endpoint, Accepts a query parameter response-type that allows you to control response type from either consumer or business. It also returns the Brand Website URL, Business Category and Business Sub-category for transactions. Transactions can be sent as single or bulk requests using the same endpoint. Note that in case of not specifying response-type the consumer param value will be set by default.
Query Params (Key)
Value
response-type
consumer
Enriching Consumer Transactions
Enriches single or bulk transactions
AUTHORIZATIONS:
Api-key
REQUEST BODY SCHEMA :
application/json
transactions >
required
Array of objects (Bulk Transaction Objects) [ items ]
Array [
transaction_date
string (YYYY-MM-DD)
amount
required
float (Amount)
currency_code
string (Currency code) 3 charcters ISO currency code
raw_description
required
string (Raw Description)
ref_id
string (Reference ID)
]
Responses
RESPONSE SCHEMA :
application/json
transactions >
Array of objects (Bulk Transaction Objects) [ items ]
Array [
ref_id
string (Reference ID)
category_id
string (See All Main Consumer Categories) [ 1 .. 255 ] charcters
category_name
string (See All Main Consumer Categories)
sub_category_id
string (See All Consumer Sub-Categories) [ 1 .. 255 ] charcters
sub_category_name
string (See All Consumer Sub-Categories)
brand_id
string (Brand ID is a unique identifier) [ 1 .. 255 ] charcters
brand_name
string (Brand Name)
brand_logo
The brand logo is concatenated with https://api.lunedata.io/media to get the actual image.
brand_url
string (Brand website URL)
global_tx_id
string (Global Transaction ID)
]
POST
https://api.lunedata.io/api/v2/transaction/enrich/?response-type=consumer
Payload
application/json
Content type
201
application/json
Content type
Enriching Business Transactions
Query Params (Key)
Value
response-type
business
Enriches single or bulk transactions
AUTHORIZATIONS:
Api-key
REQUEST BODY SCHEMA :
application/json
transactions >
required
Array of objects (Bulk Transaction Objects) [ items ]
Array [
transaction_date
string (YYYY-MM-DD)
amount
required
float (Amount)
currency_code
string (Currency code) 3 charcters ISO currency code
raw_description
required
string (Raw Description)
ref_id
string (Reference ID)
]
Responses
RESPONSE SCHEMA :
application/json
transactions >
Array of objects (Bulk Transaction Objects) [ items ]
Array [
ref_id
string (Reference ID)
business_category_id
string (See All Business Main Categories) [ 1 .. 255 ] charcters
business_category_name
string (See All Business Main Categories)
business_sub_category_id
string (See All Business Sub-Categories) [ 1 .. 255 ] charcters
business_sub_category_name
string (See All Business Sub-Categories)
brand_id
Integer (Brand ID is a unique identifier)
brand_name
string (Brand Name)
brand_logo
The brand logo is concatenated with https://api.lunedata.io/media to get the actual image.
brand_url
string (Brand website URL)
global_tx_id
string (Global Transaction ID)
]
POST
https://api.lunedata.io/api/v2/transaction/enrich/?response-type=business
Payload
application/json
Content type
201
application/json
Content type
Response Status
- 200 Success : Standard response for successful HTTP requests.
- 400 Bad Request: The request cannot be fulfilled due to bad syntax.