RAPP.BW.MovableInk

<back to all web services

RequestMemberbyGUID

Requires Authentication
The following routes are available for this service:
All Verbs/RequestMemberbyGUID
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
Object = TypeVar('Object')


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MemberData:
    member_summary_id: Optional[str] = None
    member_id: Optional[str] = None
    member_status: Optional[str] = None
    club_code: Optional[str] = None
    tier_code: Optional[str] = None
    ytd_base_points: int = 0
    ytd_night_count: int = 0
    points_to_next_tier: int = 0
    nights_to_next_tier: int = 0
    program_code: Optional[str] = None
    current_points: int = 0
    total_base_points: int = 0
    total_bonus_points: int = 0
    ytd_stay_count: Optional[int] = None
    surname: Optional[str] = None
    forename: Optional[str] = None
    stays_to_next_tier: Optional[int] = None
    language_preference: Optional[str] = None
    country_name: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Response:
    has_error: bool = False
    error: Optional[str] = None
    member_data: Optional[MemberData] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RequestMemberbyGUID:
    member_g_u_i_d: Optional[str] = None

Python RequestMemberbyGUID DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RequestMemberbyGUID HTTP/1.1 
Host: bwdynamicsuat.rapp-customers.co.uk 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	MemberGUID: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	HasError: False,
	Error: String,
	MemberData: 
	{
		MemberSummaryId: String,
		MemberId: String,
		MemberStatus: String,
		ClubCode: String,
		TierCode: String,
		YtdBasePoints: 0,
		YtdNightCount: 0,
		PointsToNextTier: 0,
		NightsToNextTier: 0,
		ProgramCode: String,
		CurrentPoints: 0,
		TotalBasePoints: 0,
		TotalBonusPoints: 0,
		YTDStayCount: 0,
		Surname: String,
		Forename: String,
		StaysToNextTier: 0,
		LanguagePreference: String,
		CountryName: String
	}
}