Build the ultimate banking experience with the power of financial data enrichment.
See how Lune helps leading companies across the region grow their business through the power of financial data enrichment.
Get to know Lune: Explore our mission, gain valuable insights, or join our team.
We care about your data, and we'd use cookies only to improve your experience. By using this website, you accept our Cookies Policy.
import requests import json url = "https://api.lunedata.io/api/v1/transaction/enrich/" payload = json.dumps({ "raw_description": "ENOC SZR, 2231 ld4", "amount": 120 }) headers = { 'Authorization': 'Token --YOUR Token--', 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
var axios = require('axios'); var data = JSON.stringify({ "raw_description": "ENOC SZR, 2231 ld4", "amount": 120 }); var config = { method: 'post', url: 'https://api.lunedata.io/api/v1/transaction/enrich/', headers: { 'Authorization': 'Token --YOUR Token--', 'Content-Type': 'application/json' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType,"{\n \"raw_description\": \"ENOC SZR, 2231 ld4\",\n \"amount\": 120\n}"); Request request = new Request.Builder() .url("https://api.lunedata.io/api/v1/transaction/enrich/") .method("POST", body) .addHeader("Authorization", "Token --YOUR Token--") .addHeader("Content-Type", "application/json") .build(); Response response = client.newCall(request).execute();
CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "https://api.lunedata.io/api/v1/transaction/enrich/"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Token --YOUR Token--"); headers = curl_slist_append(headers, "Content-Type: application/json"); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); const char *data = "{\n \"raw_description\": \"ENOC SZR, 2231 ld4\",\n \"amount\": 120\n}"; curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); res = curl_easy_perform(curl); } curl_easy_cleanup(curl);
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://api.lunedata.io/api/v1/transaction/enrich/" method := "POST" payload := strings.NewReader(`{ "raw_description": "ENOC SZR, 2231 ld4", "amount": 120 }`) client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) return } req.Header.Add("Authorization", "Token --YOUR Token--") req.Header.Add("Content-Type", "application/json") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }