GET /clubservices
Verifies that the given serviceId exists in Club OS and you have access to itReturns a list of club services for the given clubLocationId.
GET https://api.club-os.com/clubservices?clubLocationId=[clubLocationId]&serviceId=[serviceId]
Variable | Type | Description |
---|---|---|
clubLocationId | Integer | The Club OS unique id for the club location you wish to access. Club OS will provide these to you. |
serviceId | Integer | The Club OS unique id for the club service you are requesting. |
POST /clubservices
Add a club service to the system.
POST https://api.club-os.com/clubservices?clubLocationId=[clubLocationId]
Request Body
The following fields must be included in the body of the HTTP request as a valid JSON string.
Property | Type | Required | Default | Description |
---|---|---|---|---|
memberId | Integer | Y | The Club OS unique id for the member who bought the club service. | |
salespersonId | Integer | Y | The Club OS unique id for the salesperson who was responsible for selling the club service. | |
localServiceId | String | Y | Your systems unique id for the club service. | |
name | String | Y | The name of the service - as of now, 'Personal Training' is the only option. | |
qty | Decimal | Y | The qty of sessions purchased. | |
unitPrice | Decimal | Y | The unit price (cost of 1 item) of the service. | |
taxes | Decimal | N | The amount of taxes on the payment. | |
autoRenew | Boolean | Y | false | true - the club service auto-renews. false - the club service does not auto-renew. |
startDate | Date (M-d-YYYY) | Y | The effective start date of the club service. | |
endDate | Date (M-d-YYYY) | N | The end date of the club service if one exists. | |
saleDate | Date (M-d-YYYY) | Y | The date of the sale. | |
paidOnSale | Decimal | Y | The amount paid on the saleDate, or the date the club service was purchased. | |
recurType | String | N | monthly | One of 'monthly' or 'weekly'. |
Response Messages
One of the following messages will be returned when the request succeeds.
...
Response
You will receive an array of ClubService objects having the following properties:
Property | Type | Description |
id | Integer | the unique Club OS id for the club service |
name | String | the name of the club service |
eventTypeId | Integer | 2=Personal Training, 3=Group Class |