Look Up Datas | SaaS API Finance Currency Address Country
close

Documentation

2. Endpoints > 2.1. Address


2.1.14. Domain

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

To Get [TOKEN] go to 1.1. Token


Request - getall:
  curl 
  --location '[BASEURL]/addressmanagement/api/webdomain/getall' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getall:
  {
    "header": {
        "globalId": "b390dd44-c76f-4d70-ad50-c7829d8f28d8",
        "isSuccess": true,
        "message": null
    },
    "body": [
        {
            "id": "0077521A-CF56-4E20-9144-A7F1B059C41C",
            "name": "nu",
            "isTopLevel": true
        },
        {
            "id": "00F78C66-1AAE-4F1B-8AEF-8C74BED21E67",
            "name": "id",
            "isTopLevel": true
        }
    ]
}

Request - getbyid:
  curl 
  --location '[BASEURL]/addressmanagement/api/webdomain/getbyid?id=A66FAA42-A5CC-4FBC-9053-7D76C3864E56' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Request - getbyname:
  curl 
  --location '[BASEURL]/addressmanagement/api/webdomain/getbyname?name=us' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbyid, getbyname:
  {
    "header": {
        "globalId": "ca027286-558c-4b05-a6c8-6a9d245e6aaf",
        "isSuccess": true,
        "message": null
    },
    "body": {
        "id": "A66FAA42-A5CC-4FBC-9053-7D76C3864E56",
        "name": "us",
        "isTopLevel": true
    }
}

Request - getbyistoplevel:
  curl 
  --location '[BASEURL]/addressmanagement/api/webdomain/getbyistoplevel?istoplevel=true' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbyistoplevel:
  {
    "header": {
        "globalId": "b390dd44-c76f-4d70-ad50-c7829d8f28d8",
        "isSuccess": true,
        "message": null
    },
    "body": [
        {
            "id": "0077521A-CF56-4E20-9144-A7F1B059C41C",
            "name": "nu",
            "isTopLevel": true
        },
        {
            "id": "00F78C66-1AAE-4F1B-8AEF-8C74BED21E67",
            "name": "id",
            "isTopLevel": true
        }
    ]
}