ClubReady Api

<back to all web services

AddNewUserEndpoint

The following routes are available for this service:
POST/sales/agreement/addNewUserSet up a package that will be sold to an existing userSet up a package that will be sold to an existing user. The header `X-Forwarded-For` is required and should be set to the IP address of the end user.
AddNewUserEndpoint Parameters:
NameParameterData TypeRequiredDescription
XForwardedForheaderstringYesIP address of the end user
ApiKeyquerystringYesApi Authentication Key
MemberIdqueryintYesMember Id of the user buying the Package
StoreIdbodyint?YesId of the store for the user
ChainIdbodyint?No
PackageIdbodyintYesPackage Id number of the package being purchased
InstallmentIdbodyint?NoInstallment Plan Id being purchased. If empty, the default package will be selected.
StartDatebodyDateTime?NoDate contract takes affect
PromoCodebodystringNoPromo code to apply a discount.
StaffIdbodyint?NoStaff Id of salesperson who sold the agreement.
RestrictedIdbodyint?No
RestrictedResourceTypebodyRestrictedResourceTypeNo
FirstNamebodystringYesFirst Name
LastNamebodystringYesLast Name
EmailbodystringYesEmail Address
GenderbodystringNoGender
AddressbodystringNoAddress
CitybodystringNoCity
StatebodystringNoState
ZipbodystringNoZip Code
PhonebodystringNoHome phone
WorkPhonebodystringNoWork phone
DateOfBirthbodyDateTime?NoDate of Birth
CellPhonebodystringNoCell phone
NotebodystringNoAdd an internal note for the new prospect
ExternalIdbodystringNoUnique Id for the user from your system. We store internally as ExternalUserId
UsernamebodystringNoUsername should be between 4 and 255 characters long
ReferralTypeIdbodyint?NoReferralTypeId
EmergencyContactNamebodystringNoEmergency contact name
EmergencyContactPhonebodystringNoEmergency contact phone number
EmergencyContactTypebodystringNoEmergency contact relationship
RestrictedResourceType Enum:
Store
Chain
User
Undefined
AddNewUserResponse Parameters:
NameParameterData TypeRequiredDescription
incompleteAgreementTokenformstringNo
memberIdformint?No
contractIdformint?No
ApiResponse2Base Parameters:
NameParameterData TypeRequiredDescription
successformboolNo
messageformstringNo

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 /sales/agreement/addNewUser HTTP/1.1 
Host: www.clubready.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	XForwardedFor: String,
	ApiKey: String,
	MemberId: 0,
	StoreId: 0,
	ChainId: 0,
	PackageId: 0,
	InstallmentId: 0,
	StartDate: 0001-01-01,
	PromoCode: String,
	StaffId: 0,
	RestrictedId: 0,
	RestrictedResourceType: Store,
	FirstName: String,
	LastName: String,
	Email: String,
	Gender: String,
	Address: String,
	City: String,
	State: String,
	Zip: String,
	Phone: String,
	WorkPhone: String,
	DateOfBirth: 0001-01-01,
	CellPhone: String,
	Note: String,
	ExternalId: String,
	Username: String,
	ReferralTypeId: 0,
	EmergencyContactName: String,
	EmergencyContactPhone: String,
	EmergencyContactType: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	incompleteAgreementToken: String,
	memberId: 0,
	contractId: 0,
	success: False,
	message: String
}