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

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": "" }

Insert payment

Request

Inserts a payment

  • Transaction must be saved first
  • Receipt number is returned when inserting transaction
Security
BasicAuthCredentials
Bodyapplication/json
clientNumberstring
Example: "0000000001"
paymentNumberstring
Example: "0000000001"
promoNumberstring
Example: ""
storecodestring
Example: "0000000001"
receiptNumberstring
Example: "0000000001"
employeeNumberstring
Example: "00000000001"
amountnumber(float)
Example: 9.99
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
  }'

Responses

Payment inserted

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

Configuration

SunLync configuration related endpoints

Operations

User

User related endpoints

Operations