ClubReady Api

<back to all web services

ContractTextEndpoint

The following routes are available for this service:
GET/sales/agreement/contractGet a contracts HTML verbiageGet the agreements contract in HTML. Uses the Incomplete Agreements Token to identify the contract verbiage, and converts it into HTML, and returns it to the requestor. The header `X-Forwarded-For` is NOT required. It can be set to the IP address of the end user, or left blank.
ContractTextEndpoint Parameters:
NameParameterData TypeRequiredDescription
XForwardedForheaderstringNoIP address of the end user
ApiKeyquerystringYesApi Authentication Key
StoreIdqueryintYesID# of the store to get contract for.
ChainIdqueryint?No
IncompleteAgreementTokenquerystringYesToken for Incomplete Agreement to get details for
RestrictedIdqueryint?No
RestrictedResourceTypequeryRestrictedResourceTypeNo
RestrictedResourceType Enum:
Store
Chain
User
Undefined
ContractTextResponse Parameters:
NameParameterData TypeRequiredDescription
contractHtmlformstringNo
incompleteAgreementTokenformstringNo
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.

GET /sales/agreement/contract HTTP/1.1 
Host: www.clubready.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	contractHtml: String,
	incompleteAgreementToken: String,
	success: False,
	message: String
}