ClubReady Api

<back to all web services

CalculatePaymentPlanRequest

The following routes are available for this service:
GET/sales/packages/{PackageId}/installments/calculate/{InstallmentPlanId}Get customer's billing status
CalculatePaymentPlanRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyquerystringYesApi Key - grants access to resources
StoreIdqueryintegerYesID # of store to calculate plan for
InstallmentPlanIdpathintegerYesInstallment Plan to calculate a scheduel for
PackageIdpathintegerYesThe package to calculate for
StartDatequerydatetimeNoDate to calculate schedule from. If not provided, will use today.
PromoCodequerystringNoPromo code to apply a discount.
RestrictedIdqueryint?No
RestrictedResourceTypequeryRestrictedResourceTypeNo
CalculatePaymentPlanRequestDto Parameters:
NameParameterData TypeRequiredDescription
InstallmentPlanIdformintNo
PackageIdformintNo
StartDateformDateTime?No
PromoCodeformstringNo
ApiDtoBase Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
StoreIdformint?No
ChainIdformint?No
RestrictedResourceType Enum:
Store
Chain
User
Undefined
CalculatePaymentPlanResultDto Parameters:
NameParameterData TypeRequiredDescription
PlanTotalformstringNo
SubTotalformstringNo
TaxRateformfloat?No
EnhancementFeeformstringNo
EnhancementFeeTaxAmountformstringNo
TaxEnhFeeformboolNo
TaxformstringNo
TotalDueTodayformstringNo
PaymentsformList<PaymentPlanInstallment>No
FeesformList<PaymentPlanInstallment>No
IsEvergreenformboolNo
RequirePaymentProfileformboolNo
PaymentPlanInstallment Parameters:
NameParameterData TypeRequiredDescription
PayTodayformboolNo
AmountformdecimalNo
TaxedformboolNo
TaxRateformfloat?No
TaxAmountformdecimal?No
FeeNameformstringNo
DueDateformDateTimeNo
TotalformstringNo
SetupFeeIdformint?No

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

HTTP + XML

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

GET /sales/packages/{PackageId}/installments/calculate/{InstallmentPlanId} HTTP/1.1 
Host: www.clubready.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CalculatePaymentPlanResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">
  <EnhancementFee>String</EnhancementFee>
  <Fees>
    <PaymentPlanInstallment>
      <Amount>0</Amount>
      <DueDate>0001-01-01T00:00:00</DueDate>
      <FeeName>String</FeeName>
      <PayToday>false</PayToday>
      <SetupFeeId>0</SetupFeeId>
      <TaxRate>0</TaxRate>
      <Taxed>false</Taxed>
    </PaymentPlanInstallment>
  </Fees>
  <IsEvergreen>false</IsEvergreen>
  <Payments>
    <PaymentPlanInstallment>
      <Amount>0</Amount>
      <DueDate>0001-01-01T00:00:00</DueDate>
      <FeeName>String</FeeName>
      <PayToday>false</PayToday>
      <SetupFeeId>0</SetupFeeId>
      <TaxRate>0</TaxRate>
      <Taxed>false</Taxed>
    </PaymentPlanInstallment>
  </Payments>
  <TaxEnhFee>false</TaxEnhFee>
  <TaxRate>0</TaxRate>
</CalculatePaymentPlanResultDto>