Get started

The Symlix VENDOR API provides access to read incoming trade data (trade requests, active trades, completed trades, cancelled trades). Get trade details, send instructions via chat and realease cryptocurruncy when payment is completed.

To use this API, you need an API key. Please login to your account and visit API settings page https://symlix.com/settings/user-api

NOTE: Do not forget to whitelist your server IP, wherefrom requests are sent.

NOTE: REQUESTS to API is limited. 1 request per 2 seconds.

Get Active Trades list

To get JSON data of all ACTIVE SELL trades you need to make a POST call to the following url:
https://api.symlix.com/v1/getSellTradeListActive


Active sell trade - the trade initiated by marketplace user, who have opened your SELL offer and just entered TRADEROOM to buy a crypto from you.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/getSellTradeListActive \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/getSellTradeListActive');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/getSellTradeListActive", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/getSellTradeListActive", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});

                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/getSellTradeListActive",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

                                
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/getSellTradeListActive"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                
                            

Response Samples

Copy
                                
{
  "status": "success",
  "tradesData": {
    "count": 1,
    "tradesList": [
      {
        "buyerData": {
          "emailVerified": "Yes",
          "kycVerified": "No",
          "location": "Mauritius, Rodrigues, Port Mathurin",
          "regDate": "2021-05-31 16:14:55",
          "telVerified": "No",
          "userName": "Anne Marie",
          "userStatus": "offline",
          "userUrl": "https://symlix.com/profile/Anne",
          "userimage": "https://symlix.com/uploads/bad82cd14030c708cec44b2bcdd6e45a293551de/userimage.png"
        },
        "cryptoValue": 1,
        "cryptocurrency": {
          "code": "BTC",
          "name": "Bitcoin"
        },
        "currency": "EUR",
        "fiatValue": 250.25,
        "methodData": {
          "methodIcon": "https://symlix.com/uploads/methods/methods_qZM6IqyZt_1612904621.png",
          "methodIconType": "image",
          "methodName": "Paypal",
          "methodType": "Payment systems"
        },
        "methodId": 130,
        "orderId": 27499,
        "orderType": "sell",
        "rate": 37328.96,
        "tradeId": 1345
      }
    ]
  }
}

                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Get Trade Requests

To get JSON data of all TRADE REQUESTS you need to make a GET call to the following url:
https://api.symlix.com/v1/getSellTradeListRequests


Trade request is initiated by another marketplace user, who has opened a SELL offer with you. If there isn't enough crypto, Trade Request will remain at the request stage, If your top-up wallet with requested crypto, trade request will be converted to an Active Trade. This feature is useful if you wish to trade without holding crypto in your wallet and want to avoid price volatility.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/getSellTradeListRequests \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/getSellTradeListRequests');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/getSellTradeListRequests", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/getSellTradeListRequests", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});

                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/getSellTradeListRequests",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

                                
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/getSellTradeListRequests"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                
                            

Response Samples

Copy
                                
{
  "status": "success",
  "tradesData": {
    "count": 1,
    "tradesList": [
      {
        "buyerData": {
          "emailVerified": "Yes",
          "kycVerified": "No",
          "location": "Mauritius, Rodrigues, Port Mathurin",
          "regDate": "2021-05-31 16:14:55",
          "telVerified": "No",
          "userName": "Anne Marie",
          "userStatus": "offline",
          "userUrl": "https://symlix.com/profile/Anne",
          "userimage": "https://symlix.com/uploads/bad82cd14030c708cec44b2bcdd6e45a293551de/userimage.png"
        },
        "cryptoValue": 1,
        "cryptocurrency": {
          "code": "BTC",
          "name": "Bitcoin"
        },
        "currency": "EUR",
        "fiatValue": 250.25,
        "methodData": {
          "methodIcon": "https://symlix.com/uploads/methods/methods_qZM6IqyZt_1612904621.png",
          "methodIconType": "image",
          "methodName": "Paypal",
          "methodType": "Payment systems"
        },
        "methodId": 130,
        "orderId": 27499,
        "orderType": "sell",
        "rate": 37328.96,
        "tradeId": 1345
      }
    ]
  }
}

                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Get Completed Trades

To get JSON data of all COMPLETED TRADES you need to make a GET call to the following url:
https://api.symlix.com/v1/getSellTradeListCompleted


Trade request is initiated by another marketplace user, who has opened a SELL offer with you. If there isn't enough crypto, Trade Request will remain at the request stage, If your top-up wallet with requested crypto, trade request will be converted to an Active Trade. This feature is useful if you wish to trade without holding crypto in your wallet and want to avoid price volatility.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/getSellTradeListCompleted \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/getSellTradeListCompleted');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/getSellTradeListCompleted", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/getSellTradeListCompleted", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});

                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/getSellTradeListCompleted",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

                                
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/getSellTradeListCompleted"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                
                            

Response Samples

Copy
                                
{
  "status": "success",
  "tradesData": {
    "count": 1,
    "tradesList": [
      {
        "buyerData": {
          "emailVerified": "Yes",
          "kycVerified": "No",
          "location": "Netherlands, North Holland, Amsterdam",
          "regDate": "2021-06-38 12:13:40",
          "telVerified": "No",
          "userName": "hhantya",
          "userStatus": "offline",
          "userUrl": "https://symlix.com/profile/hhanty",
          "userimage": "https://symlix.com/uploads/03551fb2fa0a36519ebeca3dbbe03d6/userimage.png"
        },
        "cryptoValue": 0.001,
        "cryptocurrency": {
          "code": "DASH",
          "name": "Dash"
        },
        "currency": "RUB",
        "fiatValue": 20.18,
        "methodData": {
          "methodIcon": "https://symlix.com/uploads/methods/methods_Qry1atdY_1622105919.png",
          "methodIconType": "image",
          "methodName": "PayPal",
          "methodType": "Payment systems"
        },
        "methodId": 78,
        "orderId": 21238,
        "orderType": "sell",
        "rate": 20180,
        "tradeId": 3083
      }
    ]
  }
}


                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Get Canceled Trades

To get JSON data of all CANCELED TRADES you need to make a GET call to the following url:
https://api.symlix.com/v1/getSellTradeListCancelled


If the buyer does not pay for crypto in the time specified by the offer and does not press MONEY TRANSFERRED button in this period of time - the trade will be canceled automatically.
The buyer can cancel the trade manually before transferring money.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/getSellTradeListCancelled \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/getSellTradeListCancelled');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/getSellTradeListCancelled", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/getSellTradeListCancelled", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});

                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/getSellTradeListCancelled",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

                                
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/getSellTradeListCancelled"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                
                            

Response Samples

Copy
                                
{
  "status": "success",
  "tradesData": {
    "count": 1,
    "tradesList": [
      {
        "buyerData": {
          "emailVerified": "Yes",
          "kycVerified": "No",
          "location": "Netherlands, North Holland, Amsterdam",
          "regDate": "2021-06-48 12:13:40",
          "telVerified": "No",
          "userName": "hhantya",
          "userStatus": "offline",
          "userUrl": "https://symlix.com/profile/hhanty",
          "userimage": "https://symlix.com/uploads/03551fb2fa0a36519ebeca3dbbe03d6/userimage.png"
        },
        "cryptoValue": 0.001,
        "cryptocurrency": {
          "code": "DASH",
          "name": "Dash"
        },
        "currency": "RUB",
        "fiatValue": 20.18,
        "methodData": {
          "methodIcon": "https://symlix.com/uploads/methods/methods_Qry1atdY_1622105919.png",
          "methodIconType": "image",
          "methodName": "PayPal",
          "methodType": "Payment systems"
        },
        "methodId": 78,
        "orderId": 21238,
        "orderType": "sell",
        "rate": 20180,
        "tradeId": 3083
      }
    ]
  }
}


                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Get trade details by id

To get JSON data of ACTIVE TRADE you need to make a POST call to the following url:
https://api.symlix.com/v1/getTradeDetailsById?tradeId=ID


With this method you can get current trade details and trade status, is it active, paid or cancelled.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/getTradeDetailsById?tradeId=3081 \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/getTradeDetailsById?tradeId=3081');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/getTradeDetailsById?tradeId=3081", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/getTradeDetailsById?tradeId=3081", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});


                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/getTradeDetailsById?tradeId=3081",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
                                
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/getTradeDetailsById?tradeId=3081"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
                                
                            

Response Samples

Copy
                                

  "status": "success",
  "tradeData": {
    "buyerData": {
      "emailVerified": "Yes",
      "kycVerified": "No",
      "location": "Netherlands, North Holland, Amsterdam",
      "regDate": "2021-06-28 12:13:40",
      "telVerified": "No",
      "userName": "hhanty",
      "userStatus": "offline",
      "userUrl": "https://symlix.com/profile/hhanty",
      "userimage": "https://symlix.com/uploads/03551fb2fa0a36519ebeca3dbbe03d6b46/userimage.png"
    },
    "cryptoValue": 0.001,
    "cryptocurrency": {
      "code": "DASH",
      "name": "Dash"
    },
    "currency": "RUB",
    "fiatValue": 19.4,
    "methodData": {
      "methodIcon": "https://symlix.com/uploads/methods/methods_Qry1atdY_1622105919.png",
      "methodIconType": "image",
      "methodName": "PayPal",
      "methodType": "Payment systems"
    },
    "methodId": 78,
    "moneySent": true,
    "orderId": 21238,
    "orderType": "sell",
    "rate": 19400,
    "tradeId": 3081,
    "tradeStatus": "Trade completed"
  }

                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Get chat messages by trade id

To get JSON data of CHAT MESSAGES you need to make a POST call to the following url:
https://api.symlix.com/v1/chatMessagesByTradeID?tradeId=ID


With this method you can get chat messages and build communication between buyer and seller.


Request Samples

Copy
                                
curl --request GET \
  --url https://api.symlix.com/v1/chatMessagesByTradeID?tradeId=3081 \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key'
                                
                            
Copy
                                
$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/chatMessagesByTradeID?tradeId=3081');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'authorization' => 'API key'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

headers = {
    'accept': "application/json, text/plain, */*",
    'authorization': "API key"
    }

conn.request("GET", "/v1/chatMessagesByTradeID?tradeId=3081", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/chatMessagesByTradeID?tradeId=3081", {
  "method": "GET",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});


                                
                            
Copy
                                
								
const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/chatMessagesByTradeID?tradeId=3081",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

                   
                            
Copy
                                
								
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/chatMessagesByTradeID?tradeId=3081"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

                                
                            

Response Samples

Copy
                                

  {
  "count": 3,
  "msgList": [
    {
      "fThumb": "",
      "fileId": 0,
      "msgId": 6168,
      "status": "read",
      "text": "Please pay the invoice using the link below",
      "timeMsg": "2021-08-22 20:41:19",
      "typeFile": "",
      "typeMsg": "toBuyer",
      "userId": 27775,
      "username": "hhantyand"
    },
    {
      "fThumb": "",
      "fileId": 0,
      "msgId": 6169,
      "status": "read",
      "text": "Please pay the invoice using the link below
https://www.sandbox.paypal.com/invoice/p/#INV2-U5BN-DVV6-R85X", "timeMsg": "2021-08-22 20:43:37", "typeFile": "", "typeMsg": "toBuyer", "userId": 27775, "username": "hhantyand" }, { "fThumb": "", "fileId": 0, "msgId": 6170, "status": "read", "text": "Paid", "timeMsg": "2021-08-22 20:46:30", "typeFile": "", "typeMsg": "fromBuyer", "userId": 27775, "username": "hhantyand" } ], "status": "success", "tradeId": 3081 }
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 1, 
  "message": "api-key wrong"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Send chat message

To send chat message to buyer you need to make a POST call to the following url:
https://api.symlix.com/v1/sendMessage


With this method you can send chat messages and build communication between buyer and seller.


Request Samples

Copy
                                
curl --request POST \
  --url https://api.symlix.com/v1/sendMessage \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data tradeId=2423 \
  --data message=Test
                                
                            
Copy
                                

$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/sendMessage');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'content-type' => 'application/x-www-form-urlencoded',
  'authorization' => 'API key'
]);

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields([
  'tradeId' => '2423',
  'message' => 'Test'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

payload = "tradeId=2423&message=Test"

headers = {
    'accept': "application/json, text/plain, */*",
    'content-type': "application/x-www-form-urlencoded",
    'authorization': "API key"
    }

conn.request("POST", "/v1/sendMessage", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))


                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/sendMessage", {
  "method": "POST",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "content-type": "application/x-www-form-urlencoded",
    "authorization": "API key"
  },
  "body": {
    "tradeId": "2423",
    "message": "Test"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});

                                
                            
Copy
                                
								
const qs = require("querystring");
const http = require("https");

const options = {
  "method": "POST",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/sendMessage",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "content-type": "application/x-www-form-urlencoded",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(qs.stringify({tradeId: '2423', message: 'Test'}));
req.end();

                   
                            
Copy
                                
								
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/sendMessage"

	payload := strings.NewReader("tradeId=2423&message=Test")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("content-type", "application/x-www-form-urlencoded")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

                                
                            

Response Samples

Copy
                                

  {
  "mesId": 9230,
  "status": "success",
  "tradeId": 2423
}


                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 15, 
  "message": "message, tradeId - required field"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}

                                
                            

Release coins when you get paid

To release a coins of the trade you need to make a POST call to the following url:
https://api.symlix.com/v1/releaseCoins


With this method you can release coins to buyer when you get paid.


Request Samples

Copy
                                
curl --request POST \
  --url https://api.symlix.com/v1/releaseCoins \
  --header 'accept: application/json, text/plain, */*' \
  --header 'authorization: API key' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data tradeId=2423
                                
                            
Copy
                                

$request = new HttpRequest();
$request->setUrl('https://api.symlix.com/v1/releaseCoins');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => 'application/json, text/plain, */*',
  'content-type' => 'application/x-www-form-urlencoded',
  'authorization' => 'API key'
]);

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields([
  'tradeId' => '2423'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

                                
                            
Copy
                                
import http.client

conn = http.client.HTTPSConnection("api.symlix.com")

payload = "tradeId=2423"

headers = {
    'accept': "application/json, text/plain, */*",
    'content-type': "application/x-www-form-urlencoded",
    'authorization': "API key"
    }

conn.request("POST", "/v1/releaseCoins", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

                                
                            
Copy
                                
								
fetch("https://api.symlix.com/v1/releaseCoins", {
  "method": "POST",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "content-type": "application/x-www-form-urlencoded",
    "authorization": "API key"
  },
  "body": {
    "tradeId": "2423"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});


                                
                            
Copy
                                
								
const qs = require("querystring");
const http = require("https");

const options = {
  "method": "POST",
  "hostname": "api.symlix.com",
  "port": null,
  "path": "/v1/releaseCoins",
  "headers": {
    "accept": "application/json, text/plain, */*",
    "content-type": "application/x-www-form-urlencoded",
    "authorization": "API key"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(qs.stringify({tradeId: '2423'}));
req.end();

                   
                            
Copy
                                
								
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.symlix.com/v1/releaseCoins"

	payload := strings.NewReader("tradeId=2423")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json, text/plain, */*")
	req.Header.Add("content-type", "application/x-www-form-urlencoded")
	req.Header.Add("authorization", "API key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

                                
                            

Response Samples

Copy
                                

  {
  "status": "success",
  "tradeId": 2423
}


                                
                            
Copy
                                
{
  "errorCode": 10,
  "message": "Access is denied from this ip",
  "status": "error"
}
                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 15, 
  "message": "tradeId - required field"
}

                                
                            
Copy
                                
{
  "status": "error", 
  "errorCode": 18, 
  "message": "Too many requests"
}