Get Locations By User

GET
/v2/issuers/:organizationId/users/:userId/locations

Retrieve national and local geographic locations that a specified user has eligible in-store offers at. To include local locations, add the includeLocal query parameter to your api call. Use this endpoint to build out your map-specific UX experiences. Please note that Longitude and Latitude fields are prioritized over State, City and Zipcode and are the recommended search pattern.


Required scopes: rewards:read

Path parameters

organizationIdstringRequired

Your issuer organization ID, provided by Kard

userIdstringRequired

The ID of the user as defined on the issuers system

Query parameters

page[size]integerOptional
page[after]stringOptional
page[before]stringOptional
filter[name]stringOptional
filter[city]stringOptional
filter[zipCode]stringOptional
filter[state]enumOptional
filter[category]enumOptional

Category of merchant. Please use URL Encode for non single word categories. (Food & Beverage should be Food%20%26%20Beverage)

filter[longitude]doubleOptional
filter[latitude]doubleOptional
filter[radius]integerOptional
sort"locationName" or "-locationName"Optional

If provided, response will be sorted by the specified fields

Allowed values: locationName-locationName
includestringOptional

CSV list of included resources in the response (e.g “offers,categories”). Allowed values are offers and categories.

Response

This endpoint returns an object.
datalist of objects
includedlist of objectsOptional

Errors

Built with