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

Cancel membership

Request

Cancels an active eft membership

Security
BasicAuthCredentials
Bodyapplication/json
membershipIdstring
Example: "0000000001"
curl -i -X POST \
  -u <username>:<password> \
  https://sandbox.sunlync.net:9000/slapi/clients/cancelmembership \
  -H 'Content-Type: application/json' \
  -d '{
    "membershipId": "0000000001"
  }'

Responses

Membership cancelled

Bodyapplicaiton/json
messagestring
Example: "Membership cancelled successfully"
membershipIdstring
Example: "0000000001"
lastDrawDatestring(date)
Example: "2025-08-01"
expirationDatestring(date)
Example: "2025-08-31"
Response
applicaiton/json
{ "message": "Membership cancelled successfully", "membershipId": "0000000001", "lastDrawDate": "2025-08-01", "expirationDate": "2025-08-31" }

Insert spa profile answers

Request

Inserts spa profile answers

Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
answersArray of objects
curl -i -X POST \
  -u <username>:<password> \
  https://sandbox.sunlync.net:9000/slapi/clients/insertprofileanswers \
  -H 'Content-Type: application/json' \
  -d '{
    "clientNumber": "0000000001",
    "answers": [
      {
        "id": 1,
        "answer": "No",
        "choice_answer_1": 0,
        "choice_answer_2": 0,
        "choice_answer_3": 0,
        "choice_answer_4": 0,
        "choice_answer_5": 0
      }
    ]
  }'

Responses

Profile answers inserted

Bodyapplicaiton/json
messagestring
Example: "Profile answers inserted successfully"
Response
applicaiton/json
{ "message": "Profile answers inserted successfully" }

Add a referral

Request

Add a referral

Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
emailstring
Example: "johndoe@testemail.com"
allowMultiplenumber
Example: 1
curl -i -X POST \
  -u <username>:<password> \
  https://sandbox.sunlync.net:9000/slapi/clients/addreferral \
  -H 'Content-Type: application/json' \
  -d '{
    "clientNumber": "0000000001",
    "email": "johndoe@testemail.com",
    "allowMultiple": 1
  }'

Responses

Referral added successfully

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

Configuration

SunLync configuration related endpoints

Operations

User

User related endpoints

Operations