Look Up Datas | SaaS API Finance Currency Address Country
close

Documentation

2. Endpoints > 2.2. Finance


2.2.2. Currency

Base URL:
  https://api.lookupdatas.com

To Get [TOKEN] go to 1.1. Token


Request - getall:
  curl 
  --location '[BASEURL]/financemanagement/api/currency/getall' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getall:
  {
    "header": {
        "globalId": "7ab8c3fd-03c5-4fa3-b4aa-c3f9e5447b1f",
        "isSuccess": true,
        "message": null
    },
    "body": [
        {
            "id": "016acf7f-c29d-4349-a0a9-42ed24901513",
            "name": "Croatian kuna",
            "code": "HRK"
        },
        {
            "id": "021cd271-efcd-4cc0-af48-37e6e41284b7",
            "name": "Nigerian Naira",
            "code": "NGN"
        }
    ]
}

Request - getbyid:
  curl 
  --location '[BASEURL]/financemanagement/api/currency/getbyid?id=bbf5c3a4-4ba9-4a29-9533-f131c88ed01c' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Request - getbycode:
  curl 
  --location '[BASEURL]/financemanagement/api/currency/getbycode?code=usd' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbyid, getbycode:
  {
    "header": {
        "globalId": "34a4ad1d-5dd6-4577-830b-647a4007a214",
        "isSuccess": true,
        "message": null
    },
    "body": {
        "id": "bbf5c3a4-4ba9-4a29-9533-f131c88ed01c",
        "name": "US Dollar",
        "code": "USD"
    }
}