cURL
curl --request POST \ --url https://api.ubpass.co/v1/wallet-pass-location \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "name": "Main Store", "enabled": true, "latitude": 37.7749, "longitude": -122.4194, "relevantText": "You are near Main Store!", "passSerialNumber": "pass-123" }'
{ "name": "Main Store", "enabled": true, "latitude": 37.7749, "longitude": -122.4194, "relevantText": "You are near Main Store!", "passSerialNumber": "pass-123" }
Create a new Pass location for geolocation-based notifications. This location will trigger push notifications when users are nearby.
Location has been created successfully
The response is of type object.
object