Open API Specificaitons for SunLync API V2
- Insert payment
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
Update billing info
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 transaction
Shares an affiliated package
Unshares an affiliated package
Cancel membership
Insert spa profile answers
Add a referral
Generate webdoc URL
Insert payment
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/updateclientcommpref
- 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/updateclientcommpref \
-H 'Content-Type: application/json' \
-d '{
"clientNumber": "0000000001",
"doNotSolicit": 0,
"email": 1,
"cellText": 1,
"cellVoice": 1,
"homeVoice": 1,
"workVoice": 1,
"mail": 1
}'Response
applicaiton/json
{ "message": "" }
- Sandbox serverhttps://sandbox.sunlync.net:9000/slapi/clients/insertpayment
- 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/insertpayment \
-H 'Content-Type: application/json' \
-d '{
"clientNumber": "0000000001",
"paymentNumber": "0000000001",
"promoNumber": "",
"storecode": "0000000001",
"receiptNumber": "0000000001",
"employeeNumber": "00000000001",
"amount": 9.99
}'Response
applicaiton/json
{ "message": "Payment inserted successfully" }
Request
Inserts a transaction
- Supported transaction types:
- R = Retail Sale (productNumber is required)
- P = Package Sale (packageId is required)
- M = Membership Sale (membershipId is required)
- 1 = Membership Fee (membershipId is required)
- G = Gift Certificate Sale (giftCertNo is required)
- Amount is total for line item before tax (pricePerUnit * units)
- Receipt number is returned and can be used when inserting a payment
Security
BasicAuthCredentials
- Sandbox serverhttps://sandbox.sunlync.net:9000/slapi/clients/inserttransaction
- 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/inserttransaction \
-H 'Content-Type: application/json' \
-d '{
"clientNumber": "0000000001",
"storecode": "0000000001",
"employeeNumber": "00000000001",
"lineItems": [
{
"tranType": "R",
"description": "Lotion",
"pricePerUnit": 19.99,
"units": 2,
"tax1": 2,
"tax2": 0,
"tax3": 0,
"amount": 39.98,
"membershipId": "",
"packageId": "",
"productNumber": "0000000001",
"giftCertNo": ""
}
]
}'Response
applicaiton/json
{ "message": "Transaction inserted successfully", "receiptNo": "0000000020" }