Skip to content

SunLync API (V2) API Definition (0.0.1)

Open API Specificaitons for SunLync API V2

Download OpenAPI description
Overview
API Support
License
Languages
Servers
Sandbox server
https://sandbox.sunlync.net:9000/

Client

Client related endpoints

Operations

Post account ledger payment

Request

Post account ledger payment

Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
membershipIdstring
Example: "0000000001"
amountnumber(float)
Example: 9.99
descriptionstring
Example: "Payment posted from API"
employeeNumberstring
Example: "0000000001"
storecodestring
Example: "0000000001"
isEFtnumber
Example: 1
curl -i -X POST \
  -u <username>:<password> \
  https://sandbox.sunlync.net:9000/slapi/clients/postaccountledgerpayment \
  -H 'Content-Type: application/json' \
  -d '{
    "clientNumber": "0000000001",
    "membershipId": "0000000001",
    "amount": 9.99,
    "description": "Payment posted from API",
    "employeeNumber": "0000000001",
    "storecode": "0000000001",
    "isEFt": 1
  }'

Responses

Account ledger payment posted

Bodyapplicaiton/json
messagestring
Example: "Account ledger payment posted successfully"
balancenumber(float)
Example: -9.99
Response
applicaiton/json
{ "message": "Account ledger payment posted successfully", "balance": -9.99 }

Insert points

Request

Insert points

Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
expDatestring(date)
Example: "2025-12-31"
employeeNumberstring
Example: "0000000001"
storecodestring
Example: "0000000001"
quantityinteger
Example: 10
descriptionstring
Example: "Insert from API"
curl -i -X POST \
  -u <username>:<password> \
  https://sandbox.sunlync.net:9000/slapi/clients/insertpoints \
  -H 'Content-Type: application/json' \
  -d '{
    "clientNumber": "0000000001",
    "expDate": "2025-12-31",
    "employeeNumber": "0000000001",
    "storecode": "0000000001",
    "quantity": 10,
    "description": "Insert from API"
  }'

Responses

Points inserted successfully

Bodyapplicaiton/json
messagestring
Example: "Points inserted successfully"
balancenumber(float)
Example: -9.99
Response
applicaiton/json
{ "message": "Points inserted successfully", "balance": -9.99 }

Update client communication preferences

Request

Update client communication preferences

Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
doNotSolicitinteger
Example: 0
emailinteger
Example: 1
cellTextinteger
Example: 1
cellVoiceinteger
Example: 1
homeVoiceinteger
Example: 1
workVoiceinteger
Example: 1
mailinteger
Example: 1
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
  }'

Responses

Updated communication preferences successfully

Bodyapplicaiton/json
messagestring
Example: ""
Response
applicaiton/json
{ "message": "" }

Configuration

SunLync configuration related endpoints

Operations

User

User related endpoints

Operations