Public API Reference
Public API details and usage examples for the Members Portal
Claims a perk on behalf of the authenticated customer, returning a redirect URL if applicable.
cURL
curl --request POST \ --url https://spaces.nexudus.com/api/public/perks/{perkId}/claim \ --header 'Authorization: Basic <encoded-value>'
{ "Url": "<string>" }
Url
Perks[].Id
GET /api/public/perks
POST /api/public/perks/101/claim Authorization: Bearer {token}
{ "Url": "https://cornercafe.example.com/discount?code=NX15" }
import endpoints from '@/api/endpoints' const result = await httpClient.post(endpoints.perks.claim(101)) if (result.Url) { window.open(result.Url, '_blank') }