Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

VariableTypeDescription
clubLocationIdIntegerThe Club OS unique id for the club location you wish to access. Club OS will provide these to you.
paymentIdIntegerThe 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.

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
memberIdIntegerY The Club OS unique id for the member who made the payment.
salespersonIdIntegerY The Club OS unique id for the salesperson who was responsible for the payment.
localPaymentIdStringY Your systems unique id for the payment.
serviceNameStringY The name of the service - as of now, 'Personal Training' is the only option.
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.
saleDateDate (M-d-YYYY)Y The date of the sale.
expireDateDate (M-d-YYYY)N The expiration date if one exists.
Response Messages

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

MessageDescription
Payment CreatedPayment successfully created.
Payment FoundPayment exists in the system already.