Enrich Transactions
Lune's Data API simplifies financial data for businesses by transforming raw transaction information into enriched, meaningful insights. It bridges the gap between complex transaction data and easy-to-understand information for regular teams and end-consumers.
Version 3
Lune's API Version 3 is a comprehensive update focusing on enhancing data enrichment and localization, offering users a more detailed and accurate view of their financial transactions.
Arabic Localization
Version 3 introduces Arabic localization, a significant enhancement that allows for Arabic brands, categories and subcategories to be displayed in Arabic letters, providing a seamless user experience for users in Arabic countries and the Middle East. This update improves the accessibility of the API and enhances the user experience by integrating Arabic brands into the interface, making it easier for users to navigate and understand the information presented. By including Arabic brands, Lune's API Version 3 demonstrates cultural sensitivity and inclusivity, catering to the language preferences of its diverse user base in the region.
Categories & Subcategories
Lune's API Version 3 introduces 100+ unique categories and subcategories for consumer and business transactions, aiming to enhance categorization and user experience. This update provides more relevant and descriptive categorization, allowing for a better understanding of financial activities. With improved categorization, users can gain enhanced insights into their spending habits and receive customized recommendations for managing their finances more effectively.
Webhook Functionality
The webhook functionality enables constant automated updates to the enriched data displayed to clients as it is updated in Lune's database. It also allows Lune to update their customers database based on customer feedback reported on the client portal.
Carbon Footprint Integration
Lune is a proud partner of Connect Earth, a UK & UAE based Carbon Measurement API Company. Founded on the principle that actionable carbon data should be accessible to all, Connect Earth’s data models and intelligence offer financial institutions and their customers an opportunity to optimize emission measurement. They currently operate in the UAE, UK,EU, LATAM and North America. This would empower customers with the insights they need to make informed choices and achieve a financially and environmentally sustainable future.
Post
{{host}}/api/v3/transaction/enrich?response-type=consumer
Request Headers:
Authorization
String
Bearer <your_token_here>
The Authorization header is used to pass a “Bearer” token for authentication in a Restful POST API request.
Request Body Parameters:
customer_id
String Required
customer_id_123
Unique identifier for the customer associated with the transaction. (Can be system generated, no PII needed)
account_id
String Required
account_id_123
Unique identifier for the account from which the transaction originated. (Can be system generated, no PII needed)
card_id
String Required
card_id_123
Unique identifier for the card used in the transaction. (Can be system generated, no PII needed)
merchant_name
String Required
Anghami
Name of the merchant associated with the transaction.
transaction_id
String Required
transaction_id_123
Unique identifier for the transaction.
amount
Float Required
120.00
The monetary value of the transaction.
iso_currency_cd
String Required
AED
ISO currency code representing the transaction currency (e.g., "AED" for UAE Dirham).
occurred_at
String (ISO 8601 Date Format) Required
2024-10-20T10:30:15.000Z
Date the transaction occurred.
mcc
String Required
3781
Merchant Category Code, representing the type of merchant or service.
raw_description
String Required
Anghami Plus Monthly Plan, AED 120, Dubai
Detailed description of the transaction as recorded.
merchant_id
String Required
1234567890
Unique identifier for the merchant.
location
object Required
Location Object
Geographical details about the transaction location.
iso_country_cd
String Required
ARE
ISO country code of the location (e.g., "ARE" for the United Arab Emirates).
city
String
Dubai
City where the transaction occurred.
address
String
street 123
Address of the transaction location.
region
String
gst
Region or state where the transaction occurred.
postal_code
String
12345
Postal code of the transaction location.
Request Payload Sample:
{
"transactions" : [
{
"customer_id" : "vaxfukrv81",
"account_id" : "42g4zyyrdppu",
"card_id" : "zucyl1usngf51yc1",
"merchant_name": "Anghami",
"transaction_id": "1234",
"amount": 120,
"iso_currency_cd": "AED",
"occurred_at": "2024-10-20",
"mcc": "3781",
"raw_description": "Anghami Plus Monthly Plan, AED 120, Dubai",
"merchant_id": "1234567890",
"location": {
"iso_country_cd": "ARE",
"city": "Dubai",
"address": "street 123",
"region": "gst",
"postal_code": "12345"
}
}
]
}
Response Schema:
brand_id
Integer
9844
Unique identifier for the brand.
brand_name
String
Anghami
Name of the brand in English.
brand_logo
String
brand_logos/Anghami_United Arab Emirates.png
Path or URL to the brand's logo image.
global_tx_id
String
1737435b-ce00f-345t
Globally unique identifier for the transaction associated with the brand.
brand_name_ar
String
أنغامي
Name of the brand in Arabic.
brand_url
String
https://www.anghami.com/
Official website URL of the brand.
category_id
String
4
Identifier for the category the brand belongs to.
category_name
String
Entertainment
Name of the category the brand belongs to in English.
payment_service
String or Null
null
Information about the payment service used, if applicable.
category_name_ar
String
الترفيه
Name of the category in Arabic.
sub_category_id
String
3-4
Identifier for the sub-category the brand belongs to.
sub_category_name
String
Music Streaming
Name of the sub-category the brand belongs to in English.
sub_category_name_ar
String
الموسيقى
Name of the sub-category in Arabic.
carbon_emission
Float
7.817279999999999
The estimated carbon emission (in grams or other units) associated with the brand or transaction.
recurring
Boolean
false
Indicates whether the transaction associated with the brand is recurring (e.g., subscription-based).
ref_id
String or Null
null
Reference ID for the transaction sent
Response sample:
{
"success": true,
"message": "",
"data": [
{
"brand_id": 9844,
"brand_name": "Anghami",
"brand_logo": "brand_logos/Anghami_United Arab Emirates.png",
"global_tx_id": "1737435b-ce00-493d-8177-015f4d9e61d8",
"brand_name_ar": "أنغامي",
"brand_url": "https://www.anghami.com/",
"category_id": "4",
"category_name": "Entertainment",
"category_name_ar": "الترفيه",
"sub_category_id": "3-4",
"sub_category_name": "Music Streaming",
"sub_category_name_ar": "الموسيقى",
"carbon_emission": 7.817279999999999,
"recurring": false,
"ref_id": null
}
]
}
Categories & Sub Categories
- Financial Services
- Bank Services
- Entertainment
- Food and Beverages
- Government and Non-Profit
- Groceries & Markets
- Household
- Income
- Loan Payments
- Medical
- Rent and Utilities
- Services
- Shopping
- Transfer In
- Transfer Out
- Transportation
- Travel
- Wellness
- Education
- Miscellaneous
- Currency Exchange
Bank Fees & Charges
Buy-Now-Pay-Later
Investment and Retirement Platforms
Other Financial Services - ATM Fees
Insufficient Funds
Foreign Transaction Fees
Interest Charge
Overdraft Fees
Other Bank Services - Activities
Casinos
Digital Gaming
Music
Cinema
Video Streaming and Movies
Nightlife
Social Media
Events, Parks and Museums
Gaming and Arcades
Memberships
Other Entertainment - Restaurants
Delivery Service
Coffee
Fast Food
Vending Machines
Beer Spirits and Wines
Bakeries & Confectionery
Catering Services
Shisha
Other Food and Beverage - Tax Payment
Government Departments and Agencies
Donations
Other Government and Non-Profit - Delivery
Super Markets
Hypermarkets
Other Groceries & Markets - Repair and Maintenance
Household Services
Laundry
Pet Shops & Services
Property Purchases
Other Household - Retirement Pension
Salary
Dividends
Interest & Profit Sharing
Rental Income
Tax Refund
Other Income - Mortgage Payment
Car Payment
Personal Loan Payment
Student Loan Payment
Credit Card Payment
Investment and Retirement Funds
Other Loans Payment - Hospitals & Clinics
Pharmacies and Supplements
Dental Care
Nursing Care
Eye Care
Other Medical - Rent
Water and Electricity
Air Conditioning
Sewage and Waste Management
Gas
Other Utilities - Insurance Services
Accounting and Financial Planning
Childcare
Consulting and Legal
Postage and Shipping
Storage
Education
Other Services - Gifts, Flowers & Novelties
Discount Stores
Tobacco and Vape
Clothing and Accessories
Electronics
Online Marketplaces
Bookstores and Stationery
Watches and Jewellery
Cosmetics & Beauty
Department Stores
Hardware
Furniture
Sporting Goods
Pet Supplies
Other Shopping - Investment & Retirement Funds
Cash Advances and Loans
Inward Deposit
Savings
Account Transfer
Transfer Between Own Account
Transfer In Remittance
Transfer In Insurance
Other Transfer In - Transfer Between Own Account
Account Transfer
Transfer Out Remittance
Transfer Between Own Accounts
Investment and Retirement Funds
Other Transfer Out - Parking
Tolls
Public Transport
Taxis
Bike and Scooters
Fuel and E-Charging
Vehicle Purchase & Maintenance
Rental Cars
Transportation Services
Other Transportation - Hotels & Accomodation
Cruises
Flights
Travel Services
Other Travel - Spas and Massages
Gym and Fitness Centers
Hair and Beauty
Other Personal Care - Schools
Universities
Training & Courses
Other Education - Miscellaneous