⚙️API Integration
Customerarea
Clients
3 min
{ "tab" "examples", "url" "https //api fsflt net/customerarea/customers/new", "name" "create new customer", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "x api key" } ], "bodydataparameters" \[ { "kind" "required", "name" "email", "type" "string", "description" "the customer email" }, { "kind" "required", "name" "password", "type" "string", "description" "the customer password used to login" }, { "kind" "required", "name" "customer name", "type" "string", "description" "the customer name" }, { "kind" "required", "name" "country code", "type" "string", "description" "the customer country code (iso 3166 1 alpha 2 format) \nsee directory/countries for countries list" }, { "kind" "required", "name" "industry code", "type" "number", "description" "the customer industry\nsee directory/industries for industries list" }, { "kind" "required", "name" "company name", "type" "string", "description" "the company name\nrequired with all industries except family" }, { "kind" "optional", "name" "customer surname", "type" "string", "description" "the customer surname" }, { "kind" "optional", "name" "skype", "type" "string", "description" "the customer skype contact" }, { "kind" "optional", "name" "phone", "type" "string", "description" "the customer phone number" }, { "kind" "optional", "name" "lang", "type" "string", "description" "preferred customer language, defaults en" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "rsfryuopvvhgsgqepd1tn", "code" "{\n \\"code\\" 200,\n \\"content\\" {\n \\"customer code\\" 1\n }\n}", "language" "200" }, { "id" "zp0bdayjxjuc tscs0cqt", "code" "{\n \\"message\\" \\"invalid token or unauthorized admin\\"\n}", "language" "401" }, { "id" "goqmtt2lu1kbkc7dygww2", "code" "{\r\n \\"code\\" 500,\r\n \\"message\\" \\"the given data was invalid \\",\r\n \\"errors\\" {\r\n \\"lang\\" \[\r\n \\"the lang must be one of the following types en, it, es, de\\"\r\n ]\r\n }\r\n}", "language" "500" } ], "selectedlanguageid" "rsfryuopvvhgsgqepd1tn" }, "examples" { "languages" \[ { "id" "z5g4fznz9mujlrtjn5fam", "code" "curl x 'post' \\\\\n 'https //api fsflt net/customerarea/customers/new' \\\\\n h 'accept application/json' \\\\\n h \\"content type application/json\\" \\\\\n h \\"x api key your api key\\" \\\\\n d '{your param}'", "language" "shell" } ], "selectedlanguageid" "z5g4fznz9mujlrtjn5fam" }, "description" "use this route to create a new customer", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //api fsflt net/customerarea/customers/list", "name" "get customer list", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "sqw8ze1oo140uuroicwqd", "code" "{\n \\"code\\" 200,\n \\"content\\" \[\n {\n \\"main\\" true,\n \\"code\\" 4242,\n \\"name\\" \\"my\\",\n \\"surname\\" \\"account\\",\n \\"email\\" \\"myaccount\@email com\\",\n \\"lang\\" 'en',\n \\"country code\\" \\"gb\\",\n \\"company name\\" \\"my company name\\",\n \\"industry code\\" 1,\n \\"contacts\\" {\n \\"skype\\" \\"\\",\n \\"phone\\" \\"+3912345\\"\n }\n },\n {\n \\"main\\" false,\n \\"code\\" 1234,\n \\"name\\" \\"jack\\",\n \\"surname\\" \\"jhonson\\",\n \\"email\\" \\"jack123\@email com\\",\n \\"lang\\" 'en',\n \\"country code\\" \\"gb\\",\n \\"company name\\" \\"jack tech co \\",\n \\"industry code\\" 1,\n \\"contacts\\" {\n \\"skype\\" \\"jack2021\\",\n \\"phone\\" \\"+3912345\\"\n }\n }\n ]\n}", "language" "200" }, { "id" "ihbqxnm7ws7pfrfwtzpqs", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "language" "404" } ], "selectedlanguageid" "sqw8ze1oo140uuroicwqd" }, "examples" { "languages" \[ { "id" "fy3bef8yq0pyoqjscywl2", "code" "curl x 'get' \\\\\r\n 'https //api fsflt net/customerarea/customers/list' \\\\\r\n h 'accept application/json' \\\\\r\n h \\"content type application/json\\" \\\\\r\n h \\"x api key your api key\\" \\\\\r\n d '{your param}'", "language" "shell", "customlabel" "shell" } ], "selectedlanguageid" "fy3bef8yq0pyoqjscywl2" }, "description" "get your customer list", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "tab" "examples", "url" "https //api fsflt net/customerarea/customers/licenses", "name" "get customer licenses", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "string", "description" "" }, { "kind" "optional", "name" "lang", "type" "string", "description" "en, es, it" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "wihci9qdi8ga8 vn403pm", "code" "{\n \\"active licenses\\" \[\n {\n \\"id\\" 223344,\n \\"code\\" \\"cl q a005 m1\\",\n \\"title\\" \\"business filter license 5 nominal user\\",\n \\"purchase date\\" \\"2024 01 24\\",\n \\"expiration date\\" \\"2024 02 29\\",\n \\"note\\" \\"license note\\",\n \\"canceled\\" \\"0\\"\n },\n {\n \\"id\\" 112233,\n \\"code\\" \\"cl q a005 m1\\",\n \\"title\\" \\"business filter license 5 nominal user\\",\n \\"purchase date\\" \\"2024 01 24\\",\n \\"expiration date\\" \\"2024 02 29\\",\n \\"note\\" \\"license note\\",\n \\"canceled\\" \\"0\\"\n }\n]}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "wihci9qdi8ga8 vn403pm" }, "examples" { "languages" \[ { "id" "co1ddaky9xv1umq4jbohu", "code" "curl x 'post' \\\\\n 'https //api fsflt net/customerarea/customers/licenses' \\\\\n h 'accept application/json' \\\\\n h \\"content type application/json\\" \\\\\n h \\"x api key your api key\\" \\\\\n d '{your param}'", "language" "shell", "customlabel" "" } ], "selectedlanguageid" "co1ddaky9xv1umq4jbohu" }, "description" "", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "tab" "examples", "url" "https //api fsflt net/customerarea/customers/licenses/remove", "name" "remove a customer license (must have been assigned in the last 3 days)", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "string", "description" "customer code" }, { "kind" "required", "name" "license id", "type" "string", "description" "the license id" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "wihci9qdi8ga8 vn403pm", "code" "{\n \\"code\\" 200,\n \\"content\\" \\"license removed successfully\\"\n}", "language" "200", "customlabel" "" }, { "id" "74pmips2kgecmwcqmbtyf", "language" "412", "code" "{\n \\"code\\" 412,\n \\"content\\" \\"unable to find the license provided the license must have been assigned in the last 3 days \\"\n}", "customlabel" "" } ], "selectedlanguageid" "wihci9qdi8ga8 vn403pm" }, "examples" { "languages" \[ { "id" "ish1ri8vz ync7rimusrx", "language" "curl", "code" "curl location 'https //api fsflt net/customerarea/customers/licenses/remove' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"customer code\\" \\"string\\",\\"license id\\" \\"string\\"}'", "customlabel" "" }, { "id" "o znqpuef veboqu5mrse", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/customerarea/customers/licenses/remove',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"customer code\\" \\"string\\",\n \\"license id\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "xsgeu4fxt9xcejuj4te8g", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"customer code\\" \\"string\\",\n \\"license id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/customerarea/customers/licenses/remove\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "g8djcwzbiairwsi5dr8ke", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/customerarea/customers/licenses/remove\\"\n\npayload = json dumps({\n \\"customer code\\" \\"string\\",\n \\"license id\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "6b8 c dqmruxrat9kusa0", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/customerarea/customers/licenses/remove\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"customer code\\" \\"string\\",\n \\"license id\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "ish1ri8vz ync7rimusrx" }, "description" "", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "tab" "request", "url" "https //api fsflt net/customerarea/customers/change/password", "name" "change customer password", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "string", "description" "id of the customer" }, { "kind" "required", "name" "password", "type" "string", "description" "must be at least 8 chars\nmust be maximum 15 chars" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "hzxx47lijvlcwi5inn0qb", "code" "{\n \\"code\\" 200,\n \\"content\\" {\n \\"message\\" \\"the password has been modified \\"\n }\n}", "language" "200" }, { "id" "jq0hngclnc19l02p7t0os", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "language" "404" } ], "selectedlanguageid" "hzxx47lijvlcwi5inn0qb" }, "examples" { "languages" \[ { "id" "tuahhgh7ea 3nnzegdjho", "code" "curl x 'post' \\\\\r\n 'https //api fsflt net/customerarea/customers/change/password' \\\\\r\n h 'accept application/json' \\\\\r\n h \\"content type application/json\\" \\\\\r\n h \\"x api key your api key\\" \\\\\r\n d '{your param}'", "language" "shell" } ], "selectedlanguageid" "tuahhgh7ea 3nnzegdjho" }, "description" "", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }