Open API Specificaitons for SunLync API V2
- Update billing info
Get client details
Get ledger balances
Get communication preferences
Get client memberships
Get client packages
Get points balance
Get client points transactions
Get billing info
Search clients
Get client transaction history
Get affilicated package clients
Insert client
Update client demographics
Insert client comment
Insert client membership
Insert gift certificate
Freeze membership
Unfreeze membership
Activate membership
Upgrade membership
Downgrade membership
Post account ledger payment
Insert points
Update client communication preferences
Insert payment
Insert transaction
Shares an affiliated package
Unshares an affiliated package
Cancel membership
Insert spa profile answers
Add a referral
Generate webdoc URL
Update billing info
SunLync API (V2) API Definition (0.0.1)
Download OpenAPI description
Overview
API Support
License
Languages
Servers
Sandbox server
https://sandbox.sunlync.net:9000/
- Sandbox serverhttps://sandbox.sunlync.net:9000/slapi/clients/updatedemographics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://sandbox.sunlync.net:9000/slapi/clients/updatedemographics \
-H 'Content-Type: application/json' \
-d '{
"clientnumber": "0000000002",
"firstName": "John",
"lastName": "Doe",
"middleInit": "D",
"address1": "1 Main st",
"address2": "Suite 10",
"city": "Buffalo",
"state": "NY",
"zip": "14220",
"homePhone": "7165551234",
"workPhone": "7165555678",
"cellPhone": "7165550987",
"email": "test@test.com",
"dob": "1980-12-25"
}'Response
applicaiton/json
{ "clientNumber": "0000000001", "message": "Client updated successfully" }
Request
Update billing info for a client
- membershipId identifiies the membership the billing account is associated with
- type must be one of the following values
CARD Credit card type, must include lastFour, expMonth, expYear. and tokenId. vaultToken is recommened when using the Cayan processor but is not reqruired.
CHECKING Checking account type, must include accountNo and routingNo
- deductType must be a value returned by getEFTDeductTypes endpoint
Security
BasicAuthCredentials
- Sandbox serverhttps://sandbox.sunlync.net:9000/slapi/clients/updatebillinginfo
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://sandbox.sunlync.net:9000/slapi/clients/updatebillinginfo \
-H 'Content-Type: application/json' \
-d '{
"clientNumber": "0000000001",
"membershipId": "0000000999",
"type": "CARD",
"deductType": "Visa",
"lastFour": "0026",
"expMonth": "08",
"expYear": "2029",
"tokenId": "123456789",
"vaultToken": "1234abcd6789",
"accountNo": "1234567890",
"routingNo": "123456789",
"nameOnAccount": "John Doe",
"billingAddress": "1 Main St",
"billingCity": "Buffalo",
"billingState": "NY",
"billingZip": "14220"
}'Response
applicaiton/json
{ "message": "" }
- Sandbox serverhttps://sandbox.sunlync.net:9000/slapi/clients/insertcomment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://sandbox.sunlync.net:9000/slapi/clients/insertcomment \
-H 'Content-Type: application/json' \
-d '{
"clientNumber": "0000000001",
"employeeNumber": "0000000001",
"comment": "This is a test comment",
"showAtPos": 0
}'Response
applicaiton/json
{ "message": "" }