Use Communications Server-Side Extensions to Detect Customer Location
The communications storefront and self-care application uses a server-side extension to automatically detect the customer location. This server side extension leverages Oracle Commerce Cloud Integrated Edge Caching (CDN) to detect a customer location based on the customer's IP address.
Here's the endpoint to detect the customer location and its sample response:
/v1/getGeoLocation
{
"georegion": "155",
"country_code": "NL",
"city": "AMSTERDAM",
"lat": "52.35",
"long": "4.92",
"timezone": "GMT+1",
"continent": "EU",
"throughput": "vhigh",
"bw": "5000",
"asnum": [
"206209"
],
"location_id": "0"
}