swiss-golden API
curl --location --request POST 'https://api.swiss-golden.com/client/register' \
--form 'firstname="John"' \
--form 'lastname="Doe"' \
--form 'useremail="[email protected]"' \
--form 'country="2"' \
--form 'pcode="355"' \
--form 'up_currency="EUR"' \
--form 'phonenumber="01111111111111"' \
--form 'source_comment="https://google.com/"' \
--form 'password="XXXXXXXX0"' \
--form 'passwordCheck="XXXXXXXX%40"' \
--form 'promocode="XXXXXXXXXX"' \
--form 'secretKey="XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX"'
{
"status": "true",
"success": {
"user_id": XXX,
"firstname": "John",
"lastname": "Doe",
"useremail": "[email protected]",
"pcode": "355",
"phonenumber": "01111111111111",
"country": "2",
"currency": "EUR",
"trading_account": XXXXXXX
},
"message": "Client Created Successfully."
}
curl --curl --location --request POST 'https://api.swiss-golden.com/client/login' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '[email protected]' \
--data-urlencode 'password=XXXXXXXXXXXX'
{
"status": "true",
"success": {
"user_id": "XXX",
"firstname": "John",
"lastname": "Doe",
"useremail": "[email protected]",
"pcode": "355",
"phonenumber": "01111111111111",
"country": "2",
"currency": "EUR",
"auth_token": "XXXXXXXXXXXXXXXXXXXXXXX"
},
"message": "Client Details"
}
curl --location --request POST 'https://api.swiss-golden.com/get-clients' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'secretKey=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx' \
--data-urlencode 'affiliate_id=xxxxxxxxxxxx' \
--data-urlencode 'from=2019-12-09' \
--data-urlencode 'to=2021-03-18' \
--data-urlencode 'subaffiliates=1'
{
"status": "true",
"success": [
{
"clients_id": "XXX",
"firstname": "John",
"lastname": "Doe",
"useremail": "[email protected]",
"pcode": "355",
"phonenumber": "01111111111111",
"FTD": "0",
"language": null,
"currency": "EUR",
"country": "XXXXXXX",
"status": "New",
"created_at": "2021-03-18 14:56:30"
}
],
"message": "Total 1 Records Found"
}
curl --location --request POST 'https://api.swiss-golden.com/get-ftd-clients' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'secretKey=xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx' \
--data-urlencode 'promocode=xxxxxxxxxxx' \
--data-urlencode 'from=2020-03-01' \
--data-urlencode 'to=2021-03-18'
{
"status": "true",
"success": [
{
"client_id": "XXX",
"firstname": "John",
"lastname": "Doe",
"subaffiliate": "609",
"useremail": "[email protected]",
"pcode": "355",
"phonenumber": "01111111111111",
"currency": "EUR",
"country": "Albania",
"ftd": "1",
"created_at": "2021-03-18 14:56:30",
"status": "New"
}
],
"message": "Total 1 Records Found"
}
curl --location --request GET 'https://api.swiss-golden.com/countries'
{
"status": "true",
"success": [
{
"id": "1",
"name": "Afghanistan",
"code": "AF"
},
{
"id": "2",
"name": "Albania",
"code": "AL"
},
{
"id": "3",
"name": "Algeria",
"code": "DZ"
},
{
"id": "21",
"name": "Belgium",
"code": "BE"
},
{
"id": "22",
"name": "Belize",
"code": "BZ"
},
{
"id": "23",
"name": "Benin",
"code": "BJ"
},
{
"id": "24",
"name": "Bermuda",
"code": "BM"
},
{
"id": "25",
"name": "Bhutan",
"code": "BT"
},
{
"id": "26",
"name": "Bolivia",
"code": "BO"
},
{
"id": "27",
"name": "Bosnia and Herzegovina",
"code": "BA"
},
{
"id": "28",
"name": "Botswana",
"code": "BW"
},
{
"id": "29",
"name": "Bouvet Island",
"code": "BV"
},
{
"id": "30",
"name": "Brazil",
"code": "BR"
},
{
"id": "31",
"name": "British Indian Ocean Territory",
"code": "IO"
},
{
"id": "32",
"name": "Brunei",
"code": "BN"
},
{
"id": "33",
"name": "Bulgaria",
"code": "BG"
},
{
"id": "34",
"name": "Burkina Faso",
"code": "BF"
},
{
"id": "35",
"name": "Burundi",
"code": "BI"
},
{
"id": "36",
"name": "Cambodia",
"code": "KH"
},
{
"id": "37",
"name": "Cameroon",
"code": "CM"
},
{
"id": "38",
"name": "Canada",
"code": "CA"
},
{
"id": "39",
"name": "Cape Verde",
"code": "CV"
},
{
"id": "40",
"name": "Cayman Islands",
"code": "KY"
},
{
"id": "41",
"name": "Central African Republic",
"code": "CF"
},
{
"id": "42",
"name": "Chad",
"code": "TD"
},
{
"id": "43",
"name": "Chile",
"code": "CL"
},
{
"id": "44",
"name": "China",
"code": "CN"
},
{
"id": "45",
"name": "Christmas Island",
"code": "CX"
},
{
"id": "46",
"name": "Cocos (Keeling) Islands",
"code": "CC"
},
{
"id": "47",
"name": "Colombia",
"code": "CO"
},
{
"id": "48",
"name": "Comoros",
"code": "KM"
},
{
"id": "49",
"name": "Republic Of The Congo",
"code": "CG"
},
{
"id": "50",
"name": "Democratic Republic Of The Congo",
"code": "CD"
},
{
"id": "51",
"name": "Cook Islands",
"code": "CK"
},
{
"id": "52",
"name": "Costa Rica",
"code": "CR"
},
{
"id": "53",
"name": "Cote D'Ivoire (Ivory Coast)",
"code": "CI"
},
{
"id": "54",
"name": "Croatia (Hrvatska)",
"code": "HR"
},
{
"id": "55",
"name": "Cuba",
"code": "CU"
},
{
"id": "56",
"name": "Cyprus",
"code": "CY"
},
{
"id": "57",
"name": "Czech Republic",
"code": "CZ"
},
{
"id": "58",
"name": "Denmark",
"code": "DK"
},
{
"id": "59",
"name": "Djibouti",
"code": "DJ"
},
{
"id": "60",
"name": "Dominica",
"code": "DM"
},
{
"id": "61",
"name": "Dominican Republic",
"code": "DO"
},
{
"id": "62",
"name": "East Timor",
"code": "TP"
},
{
"id": "63",
"name": "Ecuador",
"code": "EC"
},
{
"id": "64",
"name": "Egypt",
"code": "EG"
},
{
"id": "65",
"name": "El Salvador",
"code": "SV"
},
{
"id": "66",
"name": "Equatorial Guinea",
"code": "GQ"
},
{
"id": "246",
"name": "Zimbabwe",
"code": "ZW"
}
],
"message": "Total 245 Records Found"
}