Look Up Datas | SaaS API Finance Currency Address Country
close

Documentation

2. Endpoints > 2.1. Address


2.1.12. Region

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

To Get [TOKEN] go to 1.1. Token


Request - getall:
  curl 
  --location '[BASEURL]/addressmanagement/api/region/getall' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getall:
  {
    "header": {
        "globalId": "8727b181-8926-457d-85c1-3b9aeee154f1",
        "isSuccess": true,
        "message": null
    },
    "body": [
        {
            "id": "47567e83-036b-4df0-a99a-18c8138882c5",
            "name": "Europe"
        },
        {
            "id": "54d754a1-c9ae-4ad7-9bc0-82dbaf6bdb42",
            "name": "Americas"
        }
    ]
}

Request - getbyid:
  curl 
  --location '[BASEURL]/addressmanagement/api/region/getbyid?id=c526b2ab-a8c0-49d2-b62a-680b1636ace5' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbyid:
  {
    "header": {
        "globalId": "c803af7b-d024-4a77-b428-60a9bc846090",
        "isSuccess": true,
        "message": null
    },
    "body": {
        "id": "c526b2ab-a8c0-49d2-b62a-680b1636ace5",
        "name": "Asia"
    }
}