YM REST Services

<back to all web services

Members

Requires Authentication
Requires any of the roles:admin, oauthadminRequired permission:CanAdminMembers
The following routes are available for this service:
POST/Ams/{ClientID}/MembersCreate a new member.
PUT/Ams/{ClientID}/MembersUpdate the primary address of an existing member.
GET/Ams/{ClientID}/Members/{id}Get the details of a member.
Members Parameters:
NameParameterData TypeRequiredDescription
typeCodebodystringNo
Person Parameters:
NameParameterData TypeRequiredDescription
idformintNo
organizationformstringNo
firstNameformstringNo
lastNameformstringNo
middleNameformstringNo
nameSuffixformstringNo
emailAddressformstringNo
primaryAddressformAddressNo
usernameformstringNo
passwordformstringNo
isMemberformboolNo
expirationDateformstringNo
currentMembershipAllowsMultipleOpenInvoicesformboolNo
currentMembershipInvoiceIsOpenformboolNo
currentMembershipInvoiceAwaitingAutoBillformboolNo
BaseDto Parameters:
NameParameterData TypeRequiredDescription
UsingRedisformboolNo
AppInitTimeformDateTimeNo
ServerIDformstringNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
Address Parameters:
NameParameterData TypeRequiredDescription
firstNameformstringNo
lastNameformstringNo
organizationformstringNo
address1formstringNo
address2formstringNo
cityformstringNo
locationformstringNo
postalCodeformstringNo
countryCodeformstringNo
countryNameformstringNo
areaCodeformstringNo
phoneformstringNo
MembersResponse Parameters:
NameParameterData TypeRequiredDescription
memberTypeIdformintNo

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 /Ams/{ClientID}/Members HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	typeCode: String,
	id: 0,
	organization: String,
	firstName: String,
	lastName: String,
	middleName: String,
	nameSuffix: String,
	emailAddress: String,
	primaryAddress: 
	{
		firstName: String,
		lastName: String,
		organization: String,
		address1: String,
		address2: String,
		city: String,
		location: String,
		postalCode: String,
		countryCode: String,
		countryName: String,
		areaCode: String,
		phone: String
	},
	username: String,
	password: String,
	isMember: False,
	expirationDate: String,
	currentMembershipAllowsMultipleOpenInvoices: False,
	currentMembershipInvoiceIsOpen: False,
	currentMembershipInvoiceAwaitingAutoBill: False,
	UsingRedis: True,
	AppInitTime: 2024-05-03T00:24:41.1317790-04:00,
	ServerID: WS-4-69-031,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T01:14:48.3930298-04:00,
	Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	memberTypeId: 0,
	typeCode: String,
	id: 0,
	organization: String,
	firstName: String,
	lastName: String,
	middleName: String,
	nameSuffix: String,
	emailAddress: String,
	primaryAddress: 
	{
		firstName: String,
		lastName: String,
		organization: String,
		address1: String,
		address2: String,
		city: String,
		location: String,
		postalCode: String,
		countryCode: String,
		countryName: String,
		areaCode: String,
		phone: String
	},
	username: String,
	password: String,
	isMember: False,
	expirationDate: String,
	currentMembershipAllowsMultipleOpenInvoices: False,
	currentMembershipInvoiceIsOpen: False,
	currentMembershipInvoiceAwaitingAutoBill: False,
	UsingRedis: True,
	AppInitTime: 2024-05-03T00:24:41.1317790-04:00,
	ServerID: WS-4-69-031,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T01:14:48.3930298-04:00,
	Device: Desktop
}