Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

GET /recurringservices

Verifies that the given recurringServiceId exists in Club OS and you have access to it.  

GET https://api.club-os.com/recurringservices?clubLocationId=[clubLocationId]&clubServiceId=[clubServiceId]

VariableTypeDescription
clubLocationIdIntegerThe Club OS unique id for the club location you wish to access. Club OS will provide these to you.
clubServiceIdIntegerThe Club OS unique id for the club service you are requesting.

POST /recurringservices

Add a club service to the system.

POST https://api.club-os.com/recurringservices?clubLocationId=[clubLocationId]

Parameters

The following fields must be included as parameters in the URL of the request.

VariableTypeDescription
clubLocationIdIntegerThe Club OS unique id for the club location you wish to access. Club OS will provide these to you.
Request Body

The following fields must be included in the body of the HTTP request as a valid JSON string.

PropertyTypeRequiredDefaultDescription
localServiceIdStringY Your systems unique id for the club service.
memberIdIntegerY The Club OS unique id for the member who bought the club service.
salespersonIdIntegerN The Club OS unique id for the salesperson who sold the club service. If blank, the default sales support account will be used.
nameStringY The descriptive name of the service, i.e. 'Group Training' or '30 Min Sessions'.
startDateDate (M-d-YYYY)Y The effective start date of the club service.
endDateDate (M-d-YYYY)N The end date of the club service if one exists.
saleDateDate (M-d-YYYY)Y The date of the sale.
qtyDecimalY The qty of sessions purchased.
unitPriceDecimalY The unit price (cost of 1 item) of the service.
taxesDecimalN The amount of taxes on the payment.
autoRenewBooleanYfalse

true - the club service auto-renews.

false - the club service does not auto-renew.

statusBooleanYtrue

true - the club service is active and in good standing.

false - the club service is inactive and not in good standing.

paidOnSaleDecimalY The amount paid on the saleDate, or the date the club service was purchased.
recurTypeStringNmonthlyOne of 'monthly' or 'weekly'.
deletedBooleanNfalse

true - the club service is deleted

false - the club service is non-deleted and active

Response Messages

One of the following messages will be returned when the request succeeds.

MessageValueDescription
clubservice createdthe newly created clubServiceIdClub Service successfully created.
clubservice existsthe existing clubServiceIdClub Service already exists, nothing was done.

PUT /recurringservices

Update a club service in the system.

PUT https://api.club-os.com/recurringservices?clubLocationId=[clubLocationId]

Parameters

The following fields must be included as parameters in the URL of the request.

VariableTypeDescription
clubLocationIdIntegerThe Club OS unique id for the club location you wish to access. Club OS will provide these to you.
Request Body

Any of the fields below may be included in the body of the HTTP request as a valid JSON string.  Only fields included in the request will be updated.  For example, if you only want to update the name and qty, the JSON should be { clubServiceId: "clubOsClubServiceId", name: "newName", qty: "10"}

PropertyTypeRequiredDefaultDescription
clubServiceIdIntegerY The Club OS unique id for the club service you are updating.
salespersonIdIntegerN The Club OS unique id for the salesperson who was responsible for selling the club service.
startDateDate (M-d-YYYY)N The effective start date of the club service.
endDateDate (M-d-YYYY)N The end date of the club service if one exists. Use "" to remove the endDate.
saleDateDate (M-d-YYYY)N The date of the sale.
nameStringN The descriptive name of the service, i.e. 'Group Training' or '30 Min Sessions'.
qtyDecimalN The qty of sessions purchased.
unitPriceDecimalN The unit price (cost of 1 item) of the service.
taxesDecimalN The amount of taxes on the payment.
autoRenewBooleanN 

true - the club service auto-renews.

false - the club service does not auto-renew.

statusBooleanN 

true - the club service is active and in good standing.

false - the club service is inactive and not in good standing.

paidOnSaleDecimalN The amount paid on the saleDate, or the date the club service was purchased.
recurTypeStringNmonthlyOne of 'monthly' or 'weekly'.
deletedBooleanN 

true - soft deletes the club service from the system (can be undone).

false - undeletes a club service.

Response Messages

One of the following messages will be returned when the request succeeds.

MessageDescription
clubservice updated successfullyClub Service was updated successfully.
errorClub Service was not updated due to a data error.
  • No labels