Skip to main content
GET
Use this endpoint to retrieve the latest geolocation check for a customer. This endpoint returns the most recent location verification data for a given customer, including whether the location check passed or failed. This is useful for checking a customer’s current geo-compliance status before processing transactions or granting access to location-restricted features. Returns null if no geo check has been performed for the customer. Only checks made from coordinates the customer’s device reported (the browser’s or your app’s location) are returned. When the browser shares no position, the checkout may pass the customer on an IP-based location instead; that pass is not returned here, so the result can be an older check (possibly a failed one) or null. The checkout’s own outcome is authoritative.
This endpoint authenticates with your API key, unlike Create Device Ping which uses the client secret. Call it server-side.
Every Soap API request is authenticated with a bearer token in the Authorization header:
Create your API key in the Soap Dashboard under the Developer section. It looks like key_... and is shown once, when you create it, so store it in your server’s secret manager right away. See Managing API keys. Requests with a missing, unknown or inactive API key return 401 with {"error": "API key not found.", "code": "invalid_api_key"}. Branch on the status and code rather than the message. Never expose your API key in client-side code — it is server-side only.

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key (key_...). Used for every endpoint except POST /api/v1/device_pings.

Query Parameters

customer_id
string
required

Unique identifier for the customer

Example:

"cus_vi57KegYgcRqcGHqip8q6UZiqtrwMT870"

Response

object | null

The customer's most recent geo check, or the JSON literal null when no geo check has been performed for the customer yet. Only checks made from coordinates the customer's device reported (the browser's or your app's location) are returned: an IP-based location pass (used when the browser shares no position) is not, so the result may be an older check, possibly a failed one, or null. The checkout's own outcome is authoritative.

id
string
Example:

"gc_8HpqVXHQ7672sFi38yLN9kCMJN1LtiMw"

passed
boolean

Whether the location is in a state that you support.

Example:

true

municipality
string | null
Example:

"San Francisco"

region
string
Example:

"CA"

country
string
Example:

"USA"

latitude
number
Example:

37.785834

longitude
number
Example:

-122.406417

checked_at
string<date-time>

ISO 8601 timestamp of when the check was performed

Example:

"2024-01-15T14:30:22Z"