...
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.
...
Property | Type | Required | Default | Description | |||
---|---|---|---|---|---|---|---|
memberId | Integer | Y | The Club OS unique id for the member who made the payment. | ||||
salespersonId | Integer | YN | The Club OS unique id for the salesperson who was responsible for the payment. | ||||
localPaymentIdtransactionId | String | Y | Your systems unique id for the payment. | nameA reference to the transactionId for this payment / invoice. | |||
lineItemId | String | YN | A descriptive name of the payment, i.e. PT 30 Min Sessions | serviceName | String | Yreference to the line item Id within the transaction. | |
clubServiceId | Integer | N | The Club OS unique id for the club service that is being paid for. Use the /clubservices to get this id. Not required. | ||||
name | String | N | The descriptive name of the service - one of 'Personal Training' or 'Group Training'.product or service, i.e. 'Group Training', '30 Min Sessions', 'Multi-Vitamin'. Only required if no clubServiceId is used. | ||||
qty | Decimal | Y | The qty of sessions purchased. | ||||
unitPrice | Decimal | Y | The unit price (cost of 1 item) of the product or service. | ||||
upc | String | N | The UPC for the product or service that was purchased. | ||||
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. |
...
Message | Description |
Payment Created | Payment successfully created. |
Payment Found | Payment exists in the system already. |
POST /payments/batch
Add multiple payments to the system.
POST https://api.club-os.com/payments/batch
This method works identical to the above method, but the request body needs to be an array of payments, rather than a single payment, and a clubLocationId value must be specified for each payment. Use this to submit multiple transactions at once.
Note, if any payments in the batch fail, the entire batch will fail. Validation errors will be returned for the first invalid payment.