GET /payments
Verifies that the given paymentId exists in Club OS and you have access to it.
GET https://api.club-os.com/payments?clubLocationId=[clubLocationId]&paymentId=[paymentId]
Parameters
The following fields must be included as parameters in the URL of the request.
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. |
paymentId | Integer | The Club OS unique id for the payment you are requesting. |
POST /payments
Add a payment to the system.
POST https://api.club-os.com/payments?clubLocationId=[clubLocationId]
Parameters
The following fields must be included as parameters in the URL of the request.
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. |
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 made the payment. | |
salespersonId | Integer | Y | The Club OS unique id for the salesperson who was responsible for the payment. | |
localPaymentId | String | Y | Your systems unique id for the payment. | |
name | String | Y | A descriptive name of the payment, i.e. PT 30 Min Sessions | |
serviceName | String | Y | The name of the service - one of 'Personal Training' or 'Group Training'. | |
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. | |
saleDate | Date (M-d-YYYY) | Y | The date of the sale. | |
expireDate | Date (M-d-YYYY) | N | The expiration date if one exists. |
Response Messages
One of the following messages will be returned when the request succeeds.
Message | Description |
Payment Created | Payment successfully created. |
Payment Found | Payment exists in the system already. |