{"openapi":"3.0.0","info":{"title":"TecFrame API Reference","version":"","description":"TecFrame Api secification and documentation.","termsOfService":"","license":null,"contact":{"name":"API Support","email":"dev@tecframe.com","url":"https:\/\/tecframe.com"},"x-logo":{"url":"https:\/\/app.tecframe.com\/images\/logo.svg","altText":"TecFrame API Reference","backgroundColor":""}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":[]},"servers":[{"url":"http:\/\/api.tecframe.com","description":"TecFrame server."}],"paths":{"\/v1\/tags":{"get":{"tags":["Tags"],"operationId":"Get All Tags","description":"Tags list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"D!O{z:-E.65]"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"VH]&tja\/r_|A"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/tags\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/tags\");\n\nlet params = {\n    \"api_key\": \"D!O{z:-E.65]\",\n    \"api_secret\": \"VH]&amp;tja\/r_|A\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"D!O{z:-E.65]\",\n    \"api_secret\" => \"VH]&amp;tja\/r_|A\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/tags?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/payment-method":{"get":{"tags":["Orders"],"operationId":"Get All Payment method","description":"Payment method on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"UfN7Nd%G2xg^"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"5XP'}9G[8{bx"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/payment-method\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/payment-method\");\n\nlet params = {\n    \"api_key\": \"UfN7Nd%G2xg^\",\n    \"api_secret\": \"5XP&#039;}9G[8{bx\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"UfN7Nd%G2xg^\",\n    \"api_secret\" => \"5XP&#039;}9G[8{bx\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/payment-method?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/get-orders":{"get":{"tags":["Orders"],"operationId":"Orders List","description":"Get orders list from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"Y~hbg\/QVf\",O"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"#X@Y_^1FGcb'"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/get-orders\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/get-orders\");\n\nlet params = {\n    \"api_key\": \"Y~hbg\/QVf&quot;,O\",\n    \"api_secret\": \"#X@Y_^1FGcb&#039;\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"Y~hbg\/QVf&quot;,O\",\n    \"api_secret\" => \"#X@Y_^1FGcb&#039;\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/get-orders?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/orders\/{order_id}":{"get":{"tags":["Orders"],"operationId":"Order Detail","description":"Get order detail from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"f\"xB(@[dE1`s"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"A45S_[~WBhJS"}},{"in":"path","name":"order_id","description":"Example: 1","required":true,"schema":{"type":"integer","example":5}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\");\n\nlet params = {\n    \"api_key\": \"f&quot;xB(@[dE1`s\",\n    \"api_secret\": \"A45S_[~WBhJS\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"f&quot;xB(@[dE1`s\",\n    \"api_secret\" => \"A45S_[~WBhJS\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/orders\/{order_id}\/update":{"post":{"tags":["Orders"],"operationId":"Update Order","description":"Update order detail on tecframe tenant","requestBody":{"description":"Update order detail on tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["order"],"properties":{"order":{"type":"array","example":"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]","description":"The order of the item."},"discount":{"type":"number","example":0,"description":"The discount of the item."},"shipping":{"type":"number","example":0,"description":"The shipping of the item."},"notes":{"type":"string","example":"xyz","description":"The notes of the item."}},"example":{"order":"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]","discount":0,"shipping":0,"notes":"xyz"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"_y]6=\\VI*y$k"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"?mlFe|h;YSa("}},{"in":"path","name":"order_id","description":"Example : 157816","required":true,"schema":{"type":"integer","example":7}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/update\" \n    -d \"order\"=\"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]\" \\\n    -d \"discount\"=\"0\" \\\n    -d \"shipping\"=\"0\" \\\n    -d \"notes\"=\"xyz\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/update\");\n\nlet params = {\n    \"api_key\": \"_y]6=\\VI*y$k\",\n    \"api_secret\": \"?mlFe|h;YSa(\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"order\": \"[{&quot;product_sku&quot;:&quot;sku700&quot;,&quot;price&quot;:50,&quot;qty&quot;:1,&quot;discount&quot;:0}]\",\n    \"discount\": \"0\",\n    \"shipping\": \"0\",\n    \"notes\": \"xyz\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"order\" => \"json_decode([{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}], true)\",\n    \"discount\" =>  \"0\",\n    \"shipping\" =>  \"0\",\n    \"notes\" =>  \"xyz\",\n];\n\n$query = [\n    \"api_key\" => \"_y]6=\\VI*y$k\",\n    \"api_secret\" => \"?mlFe|h;YSa(\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/orders\/{order_id}\/track":{"post":{"tags":["Orders"],"operationId":"Track Order","description":"Track order status on tecframe tenant","requestBody":{"description":"Track order status on tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"ZhfCm:fjEjM\/"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"Z:j4\">$Khe3I"}},{"in":"path","name":"order_id","description":"Example:157816","required":true,"schema":{"type":"integer","example":20}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/track\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/track\");\n\nlet params = {\n    \"api_key\": \"ZhfCm:fjEjM\/\",\n    \"api_secret\": \"Z:j4&quot;&gt;$Khe3I\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"ZhfCm:fjEjM\/\",\n    \"api_secret\" => \"Z:j4&quot;&gt;$Khe3I\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/orders\/{order_id}\/track?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/order":{"post":{"tags":["Orders"],"operationId":"Create Order","description":"Place new order and save it on your Tecframe tenant","requestBody":{"description":"Place new order and save it on your Tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["first_name","last_name","gender","email","phone","city","state","zipcode","country_id","same_as_billing_info","order","total","shipping","sub_total","payment_method_id"],"properties":{"tenant":{"type":"string","example":"jujube","description":"The tenant of the item ."},"customer_id":{"type":"integer","example":45,"description":"The customer_id of the item is requireed when customer type is existing."},"customer_type":{"type":"string","example":"existing","description":"The customer_id of the item (new,existing)."},"virtual_customer":{"type":"string","example":"Active","description":"The virtual_customer of the item (Active,In-active)."},"no_address":{"type":"string","example":"true","description":"The no_address of the item (true,false)."},"no_login":{"type":"string","example":"true","description":"The no_login of the item (true,false)."},"type":{"type":"string","example":"b2b","description":"The type of the item (b2b,b2c)."},"allow_pre_orders":{"type":"string","example":"Yes","description":"The allow_pre_orders of the item (Yes,No)."},"first_name":{"type":"string","example":"john","description":"The first_name of the item."},"last_name":{"type":"string","example":"Doe","description":"The last_name of the item."},"gender":{"type":"string","example":"Mr","description":"The gender of the item."},"email":{"type":"string","example":"xyz@gmail.com","description":"The email of the item."},"password":{"type":"string","example":"********","description":"The password of the item is required when customer type is new ."},"phone":{"type":"integer","example":123456789,"description":"The phone of the item."},"website":{"type":"string","example":"https:\/\/www.hafocygiqajowef.org","description":"The website of the item."},"company":{"type":"string","example":"xyz","description":"The company name of the item."},"address":{"type":"string","example":"xyz","description":"The address of the item."},"city":{"type":"string","example":"lahore","description":"The city  of the item."},"state":{"type":"string","example":"punjab","description":"The state of the item."},"vat_number":{"type":"number","example":1,"description":"The vat_number of the item."},"zipcode":{"type":"number","example":54000,"description":"The zipcode of the item."},"country_id":{"type":"integer","example":1,"description":"The country_id of the item."},"exemption_vat":{"type":"string","example":"Yes","description":"The exemption_vat of the item (Yes,No)."},"same_as_billing_info":{"type":"string","example":"true","description":"The same_as_billing_info of the item (true,false)."},"billing":{"type":"object","example":"{\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"}","description":"The billing of the item {\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"} ."},"order":{"type":"array","example":"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]","description":"The order of the item."},"total":{"type":"number","example":1000,"description":"The total of the item."},"shipping":{"type":"number","example":0,"description":"The shipping of the item."},"sub_total":{"type":"number","example":1000,"description":"The sub_total of the item."},"notes":{"type":"string","example":"abc","description":"The notes of the item."},"payment_method_id":{"type":"integer","example":1,"description":"The payment_method_id of the item."}},"example":{"tenant":"jujube","customer_id":45,"customer_type":"existing","virtual_customer":"Active","no_address":"true","no_login":"true","type":"b2b","allow_pre_orders":"Yes","first_name":"john","last_name":"Doe","gender":"Mr","email":"xyz@gmail.com","password":"********","phone":123456789,"website":"https:\/\/www.hafocygiqajowef.org","company":"xyz","address":"xyz","city":"lahore","state":"punjab","vat_number":1,"zipcode":54000,"country_id":1,"exemption_vat":"Yes","same_as_billing_info":"true","billing":"{\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"}","order":"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]","total":1000,"shipping":0,"sub_total":1000,"notes":"abc","payment_method_id":1}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"?u^z=,RyRrCI"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"<]fm,?P{vS0q"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/order\" \n    -d \"tenant\"=\"jujube\" \\\n    -d \"customer_id\"=\"45\" \\\n    -d \"customer_type\"=\"existing\" \\\n    -d \"virtual_customer\"=\"Active\" \\\n    -d \"no_address\"=\"true\" \\\n    -d \"no_login\"=\"true\" \\\n    -d \"type\"=\"b2b\" \\\n    -d \"allow_pre_orders\"=\"Yes\" \\\n    -d \"first_name\"=\"john\" \\\n    -d \"last_name\"=\"Doe\" \\\n    -d \"gender\"=\"Mr\" \\\n    -d \"email\"=\"xyz@gmail.com\" \\\n    -d \"password\"=\"********\" \\\n    -d \"phone\"=\"123456789\" \\\n    -d \"website\"=\"https:\/\/www.hafocygiqajowef.org\" \\\n    -d \"company\"=\"xyz\" \\\n    -d \"address\"=\"xyz\" \\\n    -d \"city\"=\"lahore\" \\\n    -d \"state\"=\"punjab\" \\\n    -d \"vat_number\"=\"1\" \\\n    -d \"zipcode\"=\"54000\" \\\n    -d \"country_id\"=\"1\" \\\n    -d \"exemption_vat\"=\"Yes\" \\\n    -d \"same_as_billing_info\"=\"true\" \\\n    -d \"billing\"=\"{\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"}\" \\\n    -d \"order\"=\"[{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}]\" \\\n    -d \"total\"=\"1000\" \\\n    -d \"shipping\"=\"0\" \\\n    -d \"sub_total\"=\"1000\" \\\n    -d \"notes\"=\"abc\" \\\n    -d \"payment_method_id\"=\"1\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/order\");\n\nlet params = {\n    \"api_key\": \"?u^z=,RyRrCI\",\n    \"api_secret\": \"&lt;]fm,?P{vS0q\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"tenant\": \"jujube\",\n    \"customer_id\": \"45\",\n    \"customer_type\": \"existing\",\n    \"virtual_customer\": \"Active\",\n    \"no_address\": \"true\",\n    \"no_login\": \"true\",\n    \"type\": \"b2b\",\n    \"allow_pre_orders\": \"Yes\",\n    \"first_name\": \"john\",\n    \"last_name\": \"Doe\",\n    \"gender\": \"Mr\",\n    \"email\": \"xyz@gmail.com\",\n    \"password\": \"********\",\n    \"phone\": \"123456789\",\n    \"website\": \"https:\/\/www.hafocygiqajowef.org\",\n    \"company\": \"xyz\",\n    \"address\": \"xyz\",\n    \"city\": \"lahore\",\n    \"state\": \"punjab\",\n    \"vat_number\": \"1\",\n    \"zipcode\": \"54000\",\n    \"country_id\": \"1\",\n    \"exemption_vat\": \"Yes\",\n    \"same_as_billing_info\": \"true\",\n    \"billing\": {\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"},\n    \"order\": \"[{&quot;product_sku&quot;:&quot;sku700&quot;,&quot;price&quot;:50,&quot;qty&quot;:1,&quot;discount&quot;:0}]\",\n    \"total\": \"1000\",\n    \"shipping\": \"0\",\n    \"sub_total\": \"1000\",\n    \"notes\": \"abc\",\n    \"payment_method_id\": \"1\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"tenant\" =>  \"jujube\",\n    \"customer_id\" =>  \"45\",\n    \"customer_type\" =>  \"existing\",\n    \"virtual_customer\" =>  \"Active\",\n    \"no_address\" =>  \"true\",\n    \"no_login\" =>  \"true\",\n    \"type\" =>  \"b2b\",\n    \"allow_pre_orders\" =>  \"Yes\",\n    \"first_name\" =>  \"john\",\n    \"last_name\" =>  \"Doe\",\n    \"gender\" =>  \"Mr\",\n    \"email\" =>  \"xyz@gmail.com\",\n    \"password\" =>  \"********\",\n    \"phone\" =>  \"123456789\",\n    \"website\" =>  \"https:\/\/www.hafocygiqajowef.org\",\n    \"company\" =>  \"xyz\",\n    \"address\" =>  \"xyz\",\n    \"city\" =>  \"lahore\",\n    \"state\" =>  \"punjab\",\n    \"vat_number\" =>  \"1\",\n    \"zipcode\" =>  \"54000\",\n    \"country_id\" =>  \"1\",\n    \"exemption_vat\" =>  \"Yes\",\n    \"same_as_billing_info\" =>  \"true\",\n    \"billing\" => \"json_decode({\"first_name\": \"john\",\"last_name\":\"doe\",\"company\":\"xyxz\",\"address\": \"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"country_id\":1,\"phone\":\"032000000000\"}, true)\",\n    \"order\" => \"json_decode([{\"product_sku\":\"sku700\",\"price\":50,\"qty\":1,\"discount\":0}], true)\",\n    \"total\" =>  \"1000\",\n    \"shipping\" =>  \"0\",\n    \"sub_total\" =>  \"1000\",\n    \"notes\" =>  \"abc\",\n    \"payment_method_id\" =>  \"1\",\n];\n\n$query = [\n    \"api_key\" => \"?u^z=,RyRrCI\",\n    \"api_secret\" => \"&lt;]fm,?P{vS0q\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/order?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/order-status":{"get":{"tags":["Orders"],"operationId":"Get All Order Status method","description":"Order Status on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"\/SryXhUZz<?T"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":".<7CFj5E!DT`"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/order-status\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/order-status\");\n\nlet params = {\n    \"api_key\": \"\/SryXhUZz&lt;?T\",\n    \"api_secret\": \".&lt;7CFj5E!DT`\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"\/SryXhUZz&lt;?T\",\n    \"api_secret\" => \".&lt;7CFj5E!DT`\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/order-status?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/attributes":{"get":{"tags":["Attributes"],"operationId":"Get All Attributes","description":"Attributes list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":";b2Ecyx.wfB4"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"fN(rx_m,!0^L"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/attributes\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/attributes\");\n\nlet params = {\n    \"api_key\": \";b2Ecyx.wfB4\",\n    \"api_secret\": \"fN(rx_m,!0^L\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \";b2Ecyx.wfB4\",\n    \"api_secret\" => \"fN(rx_m,!0^L\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/attributes?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/attributes\/{id}":{"get":{"tags":["Attributes"],"operationId":"Get AttributeOptions By Attribute ID","description":"AttributeOptions list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"88bzv0l}!X-M"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"S1hSoNW<HOan"}},{"in":"query","name":"id","description":"Example: 30","required":true,"schema":{"type":"integer","example":17}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/attributes\/{id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/attributes\/{id}\");\n\nlet params = {\n    \"api_key\": \"88bzv0l}!X-M\",\n    \"api_secret\": \"S1hSoNW&lt;HOan\",\n    \"id\": \"17\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"88bzv0l}!X-M\",\n    \"api_secret\" => \"S1hSoNW&lt;HOan\",\n    \"id\" => \"17\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/attributes\/{id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/attributes\/option\/{id}":{"get":{"tags":["Attributes"],"operationId":"Get DisplayOptions By Option ID","description":"DisplayOptions list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"q]TGX`gjD\"Hk"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"|!v+eK=d4'{K"}},{"in":"query","name":"id","description":"Example: 32","required":true,"schema":{"type":"integer","example":14}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/attributes\/option\/{id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/attributes\/option\/{id}\");\n\nlet params = {\n    \"api_key\": \"q]TGX`gjD&quot;Hk\",\n    \"api_secret\": \"|!v+eK=d4&#039;{K\",\n    \"id\": \"14\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"q]TGX`gjD&quot;Hk\",\n    \"api_secret\" => \"|!v+eK=d4&#039;{K\",\n    \"id\" => \"14\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/attributes\/option\/{id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/brands":{"get":{"tags":["Brands"],"operationId":"Get All Brands","description":"Brand list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"+?}49cJd;:tc"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"3Vc\\rS\\5$p#e"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/brands\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/brands\");\n\nlet params = {\n    \"api_key\": \"+?}49cJd;:tc\",\n    \"api_secret\": \"3Vc\\rS\\5$p#e\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"+?}49cJd;:tc\",\n    \"api_secret\" => \"3Vc\\rS\\5$p#e\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/brands?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]},"post":{"tags":["Brands"],"operationId":"Add Brand item","description":"Add a new item to the items collection.","requestBody":{"description":"Add a new item to the items collection.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","example":"Infinix","description":"The title of the item."},"meta_title":{"type":"string","example":"meta title","description":"The meta_title of the item."},"meta_keyword":{"type":"string","example":"meta keyword","description":"The meta_keyword of the item."},"meta_desc":{"type":"string","example":"metadesc","description":"The meta_desc of the item."},"data":{"type":"string","example":"data","description":"The data of the item."},"bottom_data":{"type":"string","example":"data","description":"The data of the item."}},"example":{"title":"Infinix","meta_title":"meta title","meta_keyword":"meta keyword","meta_desc":"metadesc","data":"data","bottom_data":"data"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"E.X]8}13M&F\\"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"\\$UgO]]'4P~d"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/brands\" \n    -d \"title\"=\"Infinix\" \\\n    -d \"meta_title\"=\"meta title\" \\\n    -d \"meta_keyword\"=\"meta keyword\" \\\n    -d \"meta_desc\"=\"metadesc\" \\\n    -d \"data\"=\"data\" \\\n    -d \"bottom_data\"=\"data\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/brands\");\n\nlet params = {\n    \"api_key\": \"E.X]8}13M&amp;F\\\",\n    \"api_secret\": \"\\$UgO]]&#039;4P~d\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"title\": \"Infinix\",\n    \"meta_title\": \"meta title\",\n    \"meta_keyword\": \"meta keyword\",\n    \"meta_desc\": \"metadesc\",\n    \"data\": \"data\",\n    \"bottom_data\": \"data\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"title\" =>  \"Infinix\",\n    \"meta_title\" =>  \"meta title\",\n    \"meta_keyword\" =>  \"meta keyword\",\n    \"meta_desc\" =>  \"metadesc\",\n    \"data\" =>  \"data\",\n    \"bottom_data\" =>  \"data\",\n];\n\n$query = [\n    \"api_key\" => \"E.X]8}13M&amp;F\\\",\n    \"api_secret\" => \"\\$UgO]]&#039;4P~d\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/brands?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/brands\/{brand_id}\/update":{"post":{"tags":["Brands"],"operationId":"Update Brand","description":"Update barnd on tecframe tenant","requestBody":{"description":"Update barnd on tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","example":"Samsung","description":"The title of the item."},"meta_title":{"type":"string","example":"meta title","description":"The meta_title of the item."},"meta_keyword":{"type":"string","example":"meta keyword","description":"The meta_keyword of the item."},"meta_desc":{"type":"string","example":"metadesc","description":"The meta_desc of the item."},"data":{"type":"string","example":"data","description":"The data of the item."},"bottom_data":{"type":"string","example":"data","description":"The data of the item."}},"example":{"title":"Samsung","meta_title":"meta title","meta_keyword":"meta keyword","meta_desc":"metadesc","data":"data","bottom_data":"data"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"0^>HP1iEr@$<"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"P|0L?!!W^?Ud"}},{"in":"path","name":"brand_id","description":"The brand_id of the item.","required":false,"schema":{"type":"integer","example":5}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/brands\/{brand_id}\/update\" \n    -d \"title\"=\"Samsung\" \\\n    -d \"meta_title\"=\"meta title\" \\\n    -d \"meta_keyword\"=\"meta keyword\" \\\n    -d \"meta_desc\"=\"metadesc\" \\\n    -d \"data\"=\"data\" \\\n    -d \"bottom_data\"=\"data\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/brands\/{brand_id}\/update\");\n\nlet params = {\n    \"api_key\": \"0^&gt;HP1iEr@$&lt;\",\n    \"api_secret\": \"P|0L?!!W^?Ud\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"title\": \"Samsung\",\n    \"meta_title\": \"meta title\",\n    \"meta_keyword\": \"meta keyword\",\n    \"meta_desc\": \"metadesc\",\n    \"data\": \"data\",\n    \"bottom_data\": \"data\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"title\" =>  \"Samsung\",\n    \"meta_title\" =>  \"meta title\",\n    \"meta_keyword\" =>  \"meta keyword\",\n    \"meta_desc\" =>  \"metadesc\",\n    \"data\" =>  \"data\",\n    \"bottom_data\" =>  \"data\",\n];\n\n$query = [\n    \"api_key\" => \"0^&gt;HP1iEr@$&lt;\",\n    \"api_secret\" => \"P|0L?!!W^?Ud\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/brands\/{brand_id}\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/brand\/{brand_id}":{"get":{"tags":["Brands"],"operationId":"Get Sub brands By Brand Id","description":"Sub Brand list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"z?FA=DEC>ga!"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"*rGnbyn\\Yel)"}},{"in":"query","name":"id","description":"Example: 851","required":true,"schema":{"type":"integer","example":10}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/brand\/{brand_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/brand\/{brand_id}\");\n\nlet params = {\n    \"api_key\": \"z?FA=DEC&gt;ga!\",\n    \"api_secret\": \"*rGnbyn\\Yel)\",\n    \"id\": \"10\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"z?FA=DEC&gt;ga!\",\n    \"api_secret\" => \"*rGnbyn\\Yel)\",\n    \"id\" => \"10\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/brand\/{brand_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/categories":{"get":{"tags":["Categories"],"operationId":"Categories List","description":"Categories list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":":.n{|YM\"BqH-"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"9wn69&8%dIYj"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/categories\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/categories\");\n\nlet params = {\n    \"api_key\": \":.n{|YM&quot;BqH-\",\n    \"api_secret\": \"9wn69&amp;8%dIYj\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \":.n{|YM&quot;BqH-\",\n    \"api_secret\" => \"9wn69&amp;8%dIYj\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/categories?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]},"post":{"tags":["Categories"],"operationId":"Add Category","description":"Add new category on tecframe tenant","requestBody":{"description":"Add new category on tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","example":"Samsung Galaxy s10","description":"The title of the item."},"meta_title":{"type":"string","example":"meta title","description":"The meta_title of the item."},"meta_desc":{"type":"string","example":"metadesc","description":"The meta_desc of the item."},"data":{"type":"string","example":"data","description":"The data of the item."},"bottom_data":{"type":"string","example":"data","description":"The data of the item."}},"example":{"title":"Samsung Galaxy s10","meta_title":"meta title","meta_desc":"metadesc","data":"data","bottom_data":"data"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"?<o{}w.nHC(g"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"4=MhX'B-tyBg"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/categories\" \n    -d \"title\"=\"Samsung Galaxy s10\" \\\n    -d \"meta_title\"=\"meta title\" \\\n    -d \"meta_desc\"=\"metadesc\" \\\n    -d \"data\"=\"data\" \\\n    -d \"bottom_data\"=\"data\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/categories\");\n\nlet params = {\n    \"api_key\": \"?&lt;o{}w.nHC(g\",\n    \"api_secret\": \"4=MhX&#039;B-tyBg\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"title\": \"Samsung Galaxy s10\",\n    \"meta_title\": \"meta title\",\n    \"meta_desc\": \"metadesc\",\n    \"data\": \"data\",\n    \"bottom_data\": \"data\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"title\" =>  \"Samsung Galaxy s10\",\n    \"meta_title\" =>  \"meta title\",\n    \"meta_desc\" =>  \"metadesc\",\n    \"data\" =>  \"data\",\n    \"bottom_data\" =>  \"data\",\n];\n\n$query = [\n    \"api_key\" => \"?&lt;o{}w.nHC(g\",\n    \"api_secret\" => \"4=MhX&#039;B-tyBg\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/categories?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/categories\/{category_id}\/update":{"post":{"tags":["Categories"],"operationId":"Update Category","description":"Update existing category on tecframe tenant","requestBody":{"description":"Update existing category on tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","example":"Samsung Galaxy s10","description":"The title of the item."},"meta_title":{"type":"string","example":"meta title","description":"The meta_title of the item."},"meta_desc":{"type":"string","example":"metadesc","description":"The meta_desc of the item."},"data":{"type":"string","example":"data","description":"The data of the item."},"bottom_data":{"type":"string","example":"data","description":"The data of the item."}},"example":{"title":"Samsung Galaxy s10","meta_title":"meta title","meta_desc":"metadesc","data":"data","bottom_data":"data"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"Y\\R<D;mSt&6p"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"'~?v|o)v7{u%"}},{"in":"path","name":"category_id","description":"The category_id of the item.","required":false,"schema":{"type":"integer","example":40}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/categories\/{category_id}\/update\" \n    -d \"title\"=\"Samsung Galaxy s10\" \\\n    -d \"meta_title\"=\"meta title\" \\\n    -d \"meta_desc\"=\"metadesc\" \\\n    -d \"data\"=\"data\" \\\n    -d \"bottom_data\"=\"data\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/categories\/{category_id}\/update\");\n\nlet params = {\n    \"api_key\": \"Y\\R&lt;D;mSt&amp;6p\",\n    \"api_secret\": \"&#039;~?v|o)v7{u%\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"title\": \"Samsung Galaxy s10\",\n    \"meta_title\": \"meta title\",\n    \"meta_desc\": \"metadesc\",\n    \"data\": \"data\",\n    \"bottom_data\": \"data\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"title\" =>  \"Samsung Galaxy s10\",\n    \"meta_title\" =>  \"meta title\",\n    \"meta_desc\" =>  \"metadesc\",\n    \"data\" =>  \"data\",\n    \"bottom_data\" =>  \"data\",\n];\n\n$query = [\n    \"api_key\" => \"Y\\R&lt;D;mSt&amp;6p\",\n    \"api_secret\" => \"&#039;~?v|o)v7{u%\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/categories\/{category_id}\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/category\/{category_id}":{"get":{"tags":["Categories"],"operationId":"Sub Categories List","description":"Sub Categories list on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"d?-5-7uu9r*D"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":">`!rQH\/F;(WI"}},{"in":"query","name":"id","description":"Example: 1","required":true,"schema":{"type":"integer","example":15}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/category\/{category_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/category\/{category_id}\");\n\nlet params = {\n    \"api_key\": \"d?-5-7uu9r*D\",\n    \"api_secret\": \"&gt;`!rQH\/F;(WI\",\n    \"id\": \"15\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"d?-5-7uu9r*D\",\n    \"api_secret\" => \"&gt;`!rQH\/F;(WI\",\n    \"id\" => \"15\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/category\/{category_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/customer\/{customer_id}":{"get":{"tags":["Customers"],"operationId":"Customer Detail","description":"Get customer detail from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"GxK\/H\"aNVYEh"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"7Hd_+<Z<fq7B"}},{"in":"path","name":"customer_id","description":"Example: 1","required":true,"schema":{"type":"integer","example":13}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}\");\n\nlet params = {\n    \"api_key\": \"GxK\/H&quot;aNVYEh\",\n    \"api_secret\": \"7Hd_+&lt;Z&lt;fq7B\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"GxK\/H&quot;aNVYEh\",\n    \"api_secret\" => \"7Hd_+&lt;Z&lt;fq7B\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/customer\/{customer_id}\/update":{"post":{"tags":["Customers"],"operationId":"Update Customer","description":"Update customer detail from tecframe tenant","requestBody":{"description":"Update customer detail from tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["first_name","last_name","company","country_id","zipcode"],"properties":{"virtual_customer":{"type":"string","example":"Active","description":"The virtual_customer of the item (Active,In-active)."},"no_address":{"type":"string","example":"true","description":"The no_address of the item (true,false)."},"no_login":{"type":"string","example":"true","description":"The no_login of the item (true,false)."},"other_delivery_address":{"type":"string","example":"true","description":"The other_delivery_address of the item (true,false)."},"allow_pre_orders":{"type":"string","example":"Yes","description":"The allow_pre_orders of the item (Yes,No)."},"first_name":{"type":"string","example":"john","description":"The first_name of the item."},"last_name":{"type":"string","example":"Doe","description":"The last_name of the item."},"company":{"type":"string","example":"company","description":"The company of the item."},"country_id":{"type":"integer","example":17,"description":"The country_id of the item."},"address":{"type":"string","example":"xyz","description":"The address of the item."},"address2":{"type":"string","example":"xyz","description":"The address2 of the item."},"city":{"type":"string","example":"lahore","description":"The city of the item."},"state":{"type":"string","example":"punjab","description":"The state of the item."},"zipcode":{"type":"number","example":54000,"description":"The zipcode of the item."},"phone":{"type":"number","example":123456789,"description":"The phone of the item."},"email":{"type":"string","example":"xyz@gmail.com","description":"The email of the item."},"username":{"type":"string","example":"johndoe","description":"The username of the item."},"exemption_vat":{"type":"string","example":"Yes","description":"The exemption_vat of the item (Yes,No)."},"website":{"type":"string","example":"www.google.com","description":"The website of the item."},"vat_number":{"type":"number","example":1,"description":"The vat_number of the item."},"delivery_address":{"type":"object","example":"{\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"}","description":"when other_delivery_address is true when delivery_address is required of the item {\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"}."}},"example":{"virtual_customer":"Active","no_address":"true","no_login":"true","other_delivery_address":"true","allow_pre_orders":"Yes","first_name":"john","last_name":"Doe","company":"company","country_id":17,"address":"xyz","address2":"xyz","city":"lahore","state":"punjab","zipcode":54000,"phone":123456789,"email":"xyz@gmail.com","username":"johndoe","exemption_vat":"Yes","website":"www.google.com","vat_number":1,"delivery_address":"{\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"}"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"OaD8=(80W41="}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"gb[yVZb:v?!d"}},{"in":"path","name":"customer_id","description":"The customer_id of the unique item.","required":false,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}\/update\" \n    -d \"virtual_customer\"=\"Active\" \\\n    -d \"no_address\"=\"true\" \\\n    -d \"no_login\"=\"true\" \\\n    -d \"other_delivery_address\"=\"true\" \\\n    -d \"allow_pre_orders\"=\"Yes\" \\\n    -d \"first_name\"=\"john\" \\\n    -d \"last_name\"=\"Doe\" \\\n    -d \"company\"=\"company\" \\\n    -d \"country_id\"=\"17\" \\\n    -d \"address\"=\"xyz\" \\\n    -d \"address2\"=\"xyz\" \\\n    -d \"city\"=\"lahore\" \\\n    -d \"state\"=\"punjab\" \\\n    -d \"zipcode\"=\"54000\" \\\n    -d \"phone\"=\"123456789\" \\\n    -d \"email\"=\"xyz@gmail.com\" \\\n    -d \"username\"=\"johndoe\" \\\n    -d \"exemption_vat\"=\"Yes\" \\\n    -d \"website\"=\"www.google.com\" \\\n    -d \"vat_number\"=\"1\" \\\n    -d \"delivery_address\"=\"{\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"}\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}\/update\");\n\nlet params = {\n    \"api_key\": \"OaD8=(80W41=\",\n    \"api_secret\": \"gb[yVZb:v?!d\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"virtual_customer\": \"Active\",\n    \"no_address\": \"true\",\n    \"no_login\": \"true\",\n    \"other_delivery_address\": \"true\",\n    \"allow_pre_orders\": \"Yes\",\n    \"first_name\": \"john\",\n    \"last_name\": \"Doe\",\n    \"company\": \"company\",\n    \"country_id\": \"17\",\n    \"address\": \"xyz\",\n    \"address2\": \"xyz\",\n    \"city\": \"lahore\",\n    \"state\": \"punjab\",\n    \"zipcode\": \"54000\",\n    \"phone\": \"123456789\",\n    \"email\": \"xyz@gmail.com\",\n    \"username\": \"johndoe\",\n    \"exemption_vat\": \"Yes\",\n    \"website\": \"www.google.com\",\n    \"vat_number\": \"1\",\n    \"delivery_address\": {\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"},\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"virtual_customer\" =>  \"Active\",\n    \"no_address\" =>  \"true\",\n    \"no_login\" =>  \"true\",\n    \"other_delivery_address\" =>  \"true\",\n    \"allow_pre_orders\" =>  \"Yes\",\n    \"first_name\" =>  \"john\",\n    \"last_name\" =>  \"Doe\",\n    \"company\" =>  \"company\",\n    \"country_id\" =>  \"17\",\n    \"address\" =>  \"xyz\",\n    \"address2\" =>  \"xyz\",\n    \"city\" =>  \"lahore\",\n    \"state\" =>  \"punjab\",\n    \"zipcode\" =>  \"54000\",\n    \"phone\" =>  \"123456789\",\n    \"email\" =>  \"xyz@gmail.com\",\n    \"username\" =>  \"johndoe\",\n    \"exemption_vat\" =>  \"Yes\",\n    \"website\" =>  \"www.google.com\",\n    \"vat_number\" =>  \"1\",\n    \"delivery_address\" => \"json_decode({\"first_name\":\"abc\",\"last_name\":\"abc\",\"company\":\"abc\",\"country_id\":1,\"address\":\"xyz\",\"address2\":\"xyz\",\"city\":\"lahore\",\"state\":\"punjab\",\"zipcode\":\"54000\",\"email\":\"xyz@gmail.com\",\"phone\":\"03200000000\"}, true)\",\n];\n\n$query = [\n    \"api_key\" => \"OaD8=(80W41=\",\n    \"api_secret\" => \"gb[yVZb:v?!d\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/customer\/{customer_id}\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/products":{"get":{"tags":["Products"],"operationId":"Product All","description":"Get products from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"Vc:wLU;r16TY"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"6F?64AgxLJ\\."}},{"in":"query","name":"brand_id","description":"Example: 1","required":false,"schema":{"type":"integer","example":13}},{"in":"query","name":"sub_brand_id","description":"Example: 851","required":false,"schema":{"type":"integer","example":8}},{"in":"query","name":"category_id","description":"Example: 60,2150","required":false,"schema":{"type":"integer","example":10}},{"in":"query","name":"tag_id","description":"Example: 1,2","required":false,"schema":{"type":"integer","example":9}},{"in":"query","name":"keyword","description":"Example: Product name","required":false,"schema":{"type":"string","example":"|S~`',Wd+T%P"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/products\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/products\");\n\nlet params = {\n    \"api_key\": \"Vc:wLU;r16TY\",\n    \"api_secret\": \"6F?64AgxLJ\\.\",\n    \"brand_id\": \"13\",\n    \"sub_brand_id\": \"8\",\n    \"category_id\": \"10\",\n    \"tag_id\": \"9\",\n    \"keyword\": \"|S~`&#039;,Wd+T%P\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"Vc:wLU;r16TY\",\n    \"api_secret\" => \"6F?64AgxLJ\\.\",\n    \"brand_id\" => \"13\",\n    \"sub_brand_id\" => \"8\",\n    \"category_id\" => \"10\",\n    \"tag_id\" => \"9\",\n    \"keyword\" => \"|S~`&#039;,Wd+T%P\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/products?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/product\/{product_id}":{"get":{"tags":["Products"],"operationId":"Product Detail","description":"Get products detail from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"=t(HQXlo$\"Yd"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"[m&o_{2vC1O$"}},{"in":"path","name":"product_id","description":"Example : 1","required":true,"schema":{"type":"integer","example":18}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/product\/{product_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/product\/{product_id}\");\n\nlet params = {\n    \"api_key\": \"=t(HQXlo$&quot;Yd\",\n    \"api_secret\": \"[m&amp;o_{2vC1O$\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"=t(HQXlo$&quot;Yd\",\n    \"api_secret\" => \"[m&amp;o_{2vC1O$\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/product\/{product_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/product\/create":{"post":{"tags":["Products"],"operationId":"Create Products","description":"Add product  from tecframe tenant","requestBody":{"description":"Add product  from tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["type","title","brand_id","sku","barcode","categories","tags"],"properties":{"type":{"type":"string","example":"single","description":"The type of the item single\/variation."},"status":{"type":"string","example":"active","description":"The status of the item active,in-active,archive."},"title":{"type":"string","example":"product 1","description":"The title of the item."},"brand_id":{"type":"integer","example":112,"description":"The brand_id of the item."},"sku":{"type":"string","example":"product abcd123","description":"The sku of the item."},"barcode":{"type":"string","example":"product abcd123","description":"The barcode of the item."},"sub_title":{"type":"string","example":"product 1","description":"The sub_title of the item."},"product_type":{"type":"string","example":"UPS","description":"The product_type of the item."},"hs_code":{"type":"string","example":"123","description":"The hs_code of the item."},"tax_class":{"type":"string","example":"standard_rates","description":"The tax_class of the item standard_rates,zero_rates,reduced_rates,reduced_rates1,reduce_rates2."},"price":{"type":"number","example":500,"description":"The price of the item."},"sale_price":{"type":"number","example":500,"description":"The sale_price of the item."},"price_type":{"type":"string","example":"percentage","description":"The price_type of the item fixed\/percentage."},"msrp_price":{"type":"number","example":50,"description":"The msrp_price of the item."},"max_order_qty":{"type":"integer","example":50,"description":"The max_order_qty of the item."},"wholesale_price":{"type":"number","example":500,"description":"The wholesale_price of the item."},"wholesale_sale_price":{"type":"number","example":500,"description":"The wholesale_sale_price of the item."},"wholesale_price_type":{"type":"string","example":"percentage","description":"The wholesale_price_type of the item fixed\/percentage."},"min_order_qty":{"type":"integer","example":50,"description":"The min_order_qty of the item."},"supplier_id":{"type":"integer","example":1,"description":"The supplier_id of the item."},"supplier_sku":{"type":"string","example":"abcd","description":"The supplier_sku of the item."},"items_per_pack":{"type":"integer","example":2,"description":"The items_per_pack of the item."},"master_pack":{"type":"integer","example":2,"description":"The master_pack of the item."},"buy_price":{"type":"number","example":2,"description":"The buy_price of the item."},"note":{"type":"string","example":"abc","description":"The note of the item."},"categories":{"type":"array","example":"[60,2150]","description":"categories of the item [60,2150]."},"price_type_id":{"type":"integer","example":1,"description":"The price_type_id of the item."},"items_per_grp":{"type":"integer","example":500,"description":"The items_per_grp of the item."},"discounts":{"type":"array","example":"[{\"items\": 1,\"discount\":2},{\"items\": 1,\"discount\":2}]","description":"discounts of the item [{\"items\": 1,\"discount\":2},{\"items\": 1,\"discount\":2}]."},"stepper":{"type":"object","example":"{\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100}","description":"stepper of the item {\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100}."},"tags":{"type":"array","example":"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]","description":"tags slug of the item [\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]."},"description":{"type":"string","example":"abcd","description":"The notes_1 of the item."},"short_description":{"type":"string","example":"abcd","description":"The notes_2 of the item."},"product_dimension":{"type":"object","example":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","description":"product_dimension of the item {\"weight\":4,\"length\":4,\"width\":4,\"height\":4}."},"package_dimension":{"type":"object","example":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","description":"product_dimension of the item {\"weight\":4,\"length\":4,\"width\":4,\"height\":4}."},"related_product_sku":{"type":"array","example":"[\"152302-500-26\",\"IP-721150-653-42\"]","description":"related_product_id of the item [\"152302-500-26\",\"IP-721150-653-42\"]."},"meta_title":{"type":"string","example":"abcd","description":"The meta_title of the item."},"meta_description":{"type":"string","example":"abcd","description":"The meta_description of the item."},"meta_keyword":{"type":"string","example":"abcd","description":"The meta_keyword of the item."},"attributes":{"type":"array","example":"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]","description":"attributes of the item [{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]."},"warehouse":{"type":"array","example":"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]","description":"warehouse of the item [{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}] ."},"variations":{"type":"array","example":"[]","description":"if type variation then varation is required of the item variation: [{\"title\": \"variation title 1\",\"sub_title\":\"variation sub title 1\",\"sku\":\"sku147\",\"product_id\":\"bar70\",\"product_type\":\"UPS\",\"hs_code\":\"132\",\"price\":\"50\",\"sale_price\":\"50\",\"sale_price_type\":\"fixed\",\"msrp_price\":\"50\",\"wholesale_price\":\"50\",\"wholesale_sale_price\":50,\"wholesale_sale_price_type\":\"fixed\",\"buy_price\":50,\"attributes\":[{\"id\":31,\"display_id\":263,\"option_id\":40},{\"id\":30,\"display_id\":22,\"option_id\":48}]}]."}},"example":{"type":"single","status":"active","title":"product 1","brand_id":112,"sku":"product abcd123","barcode":"product abcd123","sub_title":"product 1","product_type":"UPS","hs_code":"123","tax_class":"standard_rates","price":500,"sale_price":500,"price_type":"percentage","msrp_price":50,"max_order_qty":50,"wholesale_price":500,"wholesale_sale_price":500,"wholesale_price_type":"percentage","min_order_qty":50,"supplier_id":1,"supplier_sku":"abcd","items_per_pack":2,"master_pack":2,"buy_price":2,"note":"abc","categories":"[60,2150]","price_type_id":1,"items_per_grp":500,"discounts":"[{\"items\": 1,\"discount\":2},{\"items\": 1,\"discount\":2}]","stepper":"{\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100}","tags":"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]","description":"abcd","short_description":"abcd","product_dimension":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","package_dimension":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","related_product_sku":"[\"152302-500-26\",\"IP-721150-653-42\"]","meta_title":"abcd","meta_description":"abcd","meta_keyword":"abcd","attributes":"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]","warehouse":"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]","variations":"[]"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"dxqA_o#|q=y&"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"udSF!1WFO(:O"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/product\/create\" \n    -d \"type\"=\"single\" \\\n    -d \"status\"=\"active\" \\\n    -d \"title\"=\"product 1\" \\\n    -d \"brand_id\"=\"112\" \\\n    -d \"sku\"=\"product abcd123\" \\\n    -d \"barcode\"=\"product abcd123\" \\\n    -d \"sub_title\"=\"product 1\" \\\n    -d \"product_type\"=\"UPS\" \\\n    -d \"hs_code\"=\"123\" \\\n    -d \"tax_class\"=\"standard_rates\" \\\n    -d \"price\"=\"500\" \\\n    -d \"sale_price\"=\"500\" \\\n    -d \"price_type\"=\"percentage\" \\\n    -d \"msrp_price\"=\"50\" \\\n    -d \"max_order_qty\"=\"50\" \\\n    -d \"wholesale_price\"=\"500\" \\\n    -d \"wholesale_sale_price\"=\"500\" \\\n    -d \"wholesale_price_type\"=\"percentage\" \\\n    -d \"min_order_qty\"=\"50\" \\\n    -d \"supplier_id\"=\"1\" \\\n    -d \"supplier_sku\"=\"abcd\" \\\n    -d \"items_per_pack\"=\"2\" \\\n    -d \"master_pack\"=\"2\" \\\n    -d \"buy_price\"=\"2\" \\\n    -d \"note\"=\"abc\" \\\n    -d \"categories\"=\"[60,2150]\" \\\n    -d \"price_type_id\"=\"1\" \\\n    -d \"items_per_grp\"=\"500\" \\\n    -d \"discounts\"=\"[{\"items\": 1,\"discount\":2},{\"items\": 1,\"discount\":2}]\" \\\n    -d \"stepper\"=\"{\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100}\" \\\n    -d \"tags\"=\"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]\" \\\n    -d \"description\"=\"abcd\" \\\n    -d \"short_description\"=\"abcd\" \\\n    -d \"product_dimension\"=\"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}\" \\\n    -d \"package_dimension\"=\"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}\" \\\n    -d \"related_product_sku\"=\"[\"152302-500-26\",\"IP-721150-653-42\"]\" \\\n    -d \"meta_title\"=\"abcd\" \\\n    -d \"meta_description\"=\"abcd\" \\\n    -d \"meta_keyword\"=\"abcd\" \\\n    -d \"attributes\"=\"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]\" \\\n    -d \"warehouse\"=\"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]\" \\\n    -d \"variations\"=\"[]\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/product\/create\");\n\nlet params = {\n    \"api_key\": \"dxqA_o#|q=y&amp;\",\n    \"api_secret\": \"udSF!1WFO(:O\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"type\": \"single\",\n    \"status\": \"active\",\n    \"title\": \"product 1\",\n    \"brand_id\": \"112\",\n    \"sku\": \"product abcd123\",\n    \"barcode\": \"product abcd123\",\n    \"sub_title\": \"product 1\",\n    \"product_type\": \"UPS\",\n    \"hs_code\": \"123\",\n    \"tax_class\": \"standard_rates\",\n    \"price\": \"500\",\n    \"sale_price\": \"500\",\n    \"price_type\": \"percentage\",\n    \"msrp_price\": \"50\",\n    \"max_order_qty\": \"50\",\n    \"wholesale_price\": \"500\",\n    \"wholesale_sale_price\": \"500\",\n    \"wholesale_price_type\": \"percentage\",\n    \"min_order_qty\": \"50\",\n    \"supplier_id\": \"1\",\n    \"supplier_sku\": \"abcd\",\n    \"items_per_pack\": \"2\",\n    \"master_pack\": \"2\",\n    \"buy_price\": \"2\",\n    \"note\": \"abc\",\n    \"categories\": \"[60,2150]\",\n    \"price_type_id\": \"1\",\n    \"items_per_grp\": \"500\",\n    \"discounts\": \"[{&quot;items&quot;: 1,&quot;discount&quot;:2},{&quot;items&quot;: 1,&quot;discount&quot;:2}]\",\n    \"stepper\": {\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100},\n    \"tags\": \"[&quot;jujube-amethyst-ice&quot;,&quot;fresh-baby-food-feeders&quot;]\",\n    \"description\": \"abcd\",\n    \"short_description\": \"abcd\",\n    \"product_dimension\": {\"weight\":4,\"length\":4,\"width\":4,\"height\":4},\n    \"package_dimension\": {\"weight\":4,\"length\":4,\"width\":4,\"height\":4},\n    \"related_product_sku\": \"[&quot;152302-500-26&quot;,&quot;IP-721150-653-42&quot;]\",\n    \"meta_title\": \"abcd\",\n    \"meta_description\": \"abcd\",\n    \"meta_keyword\": \"abcd\",\n    \"attributes\": \"[{&quot;id&quot;: 31,&quot;name&quot;:&quot;color&quot;,&quot;option&quot;:[75,202]}]\",\n    \"warehouse\": \"[{&quot;id&quot;: 1,&quot;stock_no&quot;:2,&quot;stock_expiry_date&quot;:2022-07-28,&quot;stock_buy_price&quot;:50}]\",\n    \"variations\": \"[]\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"type\" =>  \"single\",\n    \"status\" =>  \"active\",\n    \"title\" =>  \"product 1\",\n    \"brand_id\" =>  \"112\",\n    \"sku\" =>  \"product abcd123\",\n    \"barcode\" =>  \"product abcd123\",\n    \"sub_title\" =>  \"product 1\",\n    \"product_type\" =>  \"UPS\",\n    \"hs_code\" =>  \"123\",\n    \"tax_class\" =>  \"standard_rates\",\n    \"price\" =>  \"500\",\n    \"sale_price\" =>  \"500\",\n    \"price_type\" =>  \"percentage\",\n    \"msrp_price\" =>  \"50\",\n    \"max_order_qty\" =>  \"50\",\n    \"wholesale_price\" =>  \"500\",\n    \"wholesale_sale_price\" =>  \"500\",\n    \"wholesale_price_type\" =>  \"percentage\",\n    \"min_order_qty\" =>  \"50\",\n    \"supplier_id\" =>  \"1\",\n    \"supplier_sku\" =>  \"abcd\",\n    \"items_per_pack\" =>  \"2\",\n    \"master_pack\" =>  \"2\",\n    \"buy_price\" =>  \"2\",\n    \"note\" =>  \"abc\",\n    \"categories\" => \"json_decode([60,2150], true)\",\n    \"price_type_id\" =>  \"1\",\n    \"items_per_grp\" =>  \"500\",\n    \"discounts\" => \"json_decode([{\"items\": 1,\"discount\":2},{\"items\": 1,\"discount\":2}], true)\",\n    \"stepper\" => \"json_decode({\"min_qty\": 1,\"max_qty\":2,\"qty_step\":100}, true)\",\n    \"tags\" => \"json_decode([\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"], true)\",\n    \"description\" =>  \"abcd\",\n    \"short_description\" =>  \"abcd\",\n    \"product_dimension\" => \"json_decode({\"weight\":4,\"length\":4,\"width\":4,\"height\":4}, true)\",\n    \"package_dimension\" => \"json_decode({\"weight\":4,\"length\":4,\"width\":4,\"height\":4}, true)\",\n    \"related_product_sku\" => \"json_decode([\"152302-500-26\",\"IP-721150-653-42\"], true)\",\n    \"meta_title\" =>  \"abcd\",\n    \"meta_description\" =>  \"abcd\",\n    \"meta_keyword\" =>  \"abcd\",\n    \"attributes\" => \"json_decode([{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}], true)\",\n    \"warehouse\" => \"json_decode([{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}], true)\",\n    \"variations\" => \"json_decode([], true)\",\n];\n\n$query = [\n    \"api_key\" => \"dxqA_o#|q=y&amp;\",\n    \"api_secret\" => \"udSF!1WFO(:O\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/product\/create?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/product\/update":{"post":{"tags":["Products"],"operationId":"Update Product","description":"Update product  from tecframe tenant","requestBody":{"description":"Update product  from tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id","type","title","sku","brand_id","barcode","categories","tags"],"properties":{"id":{"type":"integer","example":1,"description":"The id of the product ."},"type":{"type":"string","example":"single","description":"The type of the item single\/variation."},"status":{"type":"string","example":"active","description":"The status of the item active,in-active,archive."},"title":{"type":"string","example":"product 1","description":"The title of the item."},"sku":{"type":"string","example":"product abcd123","description":"The sku of the item to create."},"brand_id":{"type":"integer","example":112,"description":"The brand_id of the item."},"barcode":{"type":"string","example":"product abcd123","description":"The barcode of the item."},"sub_title":{"type":"string","example":"product 1","description":"The sub_title of the item."},"product_type":{"type":"string","example":"UPS","description":"The product_type of the item."},"hs_code":{"type":"string","example":"123","description":"The hs_code of the item."},"tax_class":{"type":"string","example":"standard_rates","description":"The tax_class of the item standard_rates,zero_rates,reduced_rates,reduced_rates1,reduce_rates2."},"price":{"type":"number","example":500,"description":"The price of the item."},"sale_price":{"type":"number","example":500,"description":"The sale_price of the item."},"price_type":{"type":"string","example":"percentage","description":"The price_type of the item fixed\/percentage."},"msrp_price":{"type":"number","example":50,"description":"The msrp_price of the item."},"max_order_qty":{"type":"integer","example":50,"description":"The max_order_qty of the item."},"preorder":{"type":"string","example":"do_not_allow","description":"The preorder of the item do_not_allow\/allow."},"wholesale_price":{"type":"number","example":500,"description":"The wholesale_price of the item."},"wholesale_sale_price":{"type":"number","example":500,"description":"The wholesale_sale_price of the item."},"wholesale_price_type":{"type":"string","example":"percentage","description":"The wholesale_price_type of the item fixed\/percentage."},"min_order_qty":{"type":"integer","example":50,"description":"The min_order_qty of the item."},"preorderb2b":{"type":"string","example":"do_not_allow","description":"The preorderb2b of the item do_not_allow\/allow."},"sub_brand_id":{"type":"integer","example":1,"description":"The sub_brand_id of the item."},"supplier_id":{"type":"integer","example":1,"description":"The supplier_id of the item."},"supplier_sku":{"type":"string","example":"abcd","description":"The supplier_sku of the item."},"items_per_pack":{"type":"integer","example":2,"description":"The items_per_pack of the item."},"master_pack":{"type":"integer","example":2,"description":"The master_pack of the item."},"buy_price":{"type":"number","example":2,"description":"The buy_price of the item."},"note":{"type":"string","example":"abc","description":"The note of the item."},"categories":{"type":"array","example":"[60,2150]","description":"categories of the item [60,2150]."},"items_per_grp":{"type":"integer","example":500,"description":"The items_per_grp of the item."},"discounts":{"type":"array","example":"[{\"id\":1,\"items\":1,\"discount\":2}]","description":"discounts of the item [{\"id\":1,\"items\":1,\"discount\":2},{{\"id\":1,\"items\":1,\"discount\":2}]."},"stepper":{"type":"object","example":"{\"min_qty\":1,\"max_qty\":2,\"qty_step\":100}","description":"stepper of the item {\"min_qty\":1,\"max_qty\":2,\"qty_step\":100}."},"tags":{"type":"array","example":"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]","description":"tags slug of the item [\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]."},"description":{"type":"string","example":"abcd","description":"The notes_1 of the item."},"short_description":{"type":"string","example":"abcd","description":"The notes_2 of the item."},"product_dimension":{"type":"object","example":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","description":"product_dimension of the item {\"weight\":4,\"length\":4,\"width\":4,\"height\":4}."},"package_dimension":{"type":"object","example":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","description":"product_dimension of the item {\"weight\":4,\"length\":4,\"width\":4,\"height\":4}."},"related_product_sku":{"type":"array","example":"[\"152302-500-26\",\"IP-721150-653-42\"]","description":"related_product_id of the item [\"152302-500-26\",\"IP-721150-653-42\"]."},"meta_title":{"type":"string","example":"abcd","description":"The meta_title of the item."},"meta_description":{"type":"string","example":"abcd","description":"The meta_description of the item."},"meta_keyword":{"type":"string","example":"abcd","description":"The meta_keyword of the item."},"attributes":{"type":"array","example":"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]","description":"attributes of the item [{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]."},"warehouse":{"type":"array","example":"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]","description":"warehouse of the item [{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}] ."},"variations":{"type":"array","example":"[]","description":"if type variation then varation is required of the item [{\"id\":35456,\"title\": \"variation title 1\",\"sub_title\":\"variation sub title 1\",\"sku\":\"sku147\",\"barcode\":\"bar70\",\"product_type\":\"UPS\",\"hs_code\":\"132\",\"price\":\"50\",\"sale_price\":\"50\",\"sale_price_type\":\"fixed\",\"msrp_price\":\"50\",\"wholesale_price\":\"50\",\"wholesale_sale_price\":50,\"wholesale_sale_price_type\":\"fixed\",\"buy_price\":50,\"attributes\":[{\"id\":31,\"display_id\":263,\"option_id\":40},{\"id\":30,\"display_id\":22,\"option_id\":48}]}]."}},"example":{"id":1,"type":"single","status":"active","title":"product 1","sku":"product abcd123","brand_id":112,"barcode":"product abcd123","sub_title":"product 1","product_type":"UPS","hs_code":"123","tax_class":"standard_rates","price":500,"sale_price":500,"price_type":"percentage","msrp_price":50,"max_order_qty":50,"preorder":"do_not_allow","wholesale_price":500,"wholesale_sale_price":500,"wholesale_price_type":"percentage","min_order_qty":50,"preorderb2b":"do_not_allow","sub_brand_id":1,"supplier_id":1,"supplier_sku":"abcd","items_per_pack":2,"master_pack":2,"buy_price":2,"note":"abc","categories":"[60,2150]","items_per_grp":500,"discounts":"[{\"id\":1,\"items\":1,\"discount\":2}]","stepper":"{\"min_qty\":1,\"max_qty\":2,\"qty_step\":100}","tags":"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]","description":"abcd","short_description":"abcd","product_dimension":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","package_dimension":"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}","related_product_sku":"[\"152302-500-26\",\"IP-721150-653-42\"]","meta_title":"abcd","meta_description":"abcd","meta_keyword":"abcd","attributes":"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]","warehouse":"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]","variations":"[]"}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_TB6QReGe1g3zhA1GBEpZPkRr6QFlFyrfpDMGCzaJ","required":true,"schema":{"type":"string","example":"WFoqRLCz^(+1"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"yZj{l%a3LvG+"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/product\/update\" \n    -d \"id\"=\"1\" \\\n    -d \"type\"=\"single\" \\\n    -d \"status\"=\"active\" \\\n    -d \"title\"=\"product 1\" \\\n    -d \"sku\"=\"product abcd123\" \\\n    -d \"brand_id\"=\"112\" \\\n    -d \"barcode\"=\"product abcd123\" \\\n    -d \"sub_title\"=\"product 1\" \\\n    -d \"product_type\"=\"UPS\" \\\n    -d \"hs_code\"=\"123\" \\\n    -d \"tax_class\"=\"standard_rates\" \\\n    -d \"price\"=\"500\" \\\n    -d \"sale_price\"=\"500\" \\\n    -d \"price_type\"=\"percentage\" \\\n    -d \"msrp_price\"=\"50\" \\\n    -d \"max_order_qty\"=\"50\" \\\n    -d \"preorder\"=\"do_not_allow\" \\\n    -d \"wholesale_price\"=\"500\" \\\n    -d \"wholesale_sale_price\"=\"500\" \\\n    -d \"wholesale_price_type\"=\"percentage\" \\\n    -d \"min_order_qty\"=\"50\" \\\n    -d \"preorderb2b\"=\"do_not_allow\" \\\n    -d \"sub_brand_id\"=\"1\" \\\n    -d \"supplier_id\"=\"1\" \\\n    -d \"supplier_sku\"=\"abcd\" \\\n    -d \"items_per_pack\"=\"2\" \\\n    -d \"master_pack\"=\"2\" \\\n    -d \"buy_price\"=\"2\" \\\n    -d \"note\"=\"abc\" \\\n    -d \"categories\"=\"[60,2150]\" \\\n    -d \"items_per_grp\"=\"500\" \\\n    -d \"discounts\"=\"[{\"id\":1,\"items\":1,\"discount\":2}]\" \\\n    -d \"stepper\"=\"{\"min_qty\":1,\"max_qty\":2,\"qty_step\":100}\" \\\n    -d \"tags\"=\"[\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"]\" \\\n    -d \"description\"=\"abcd\" \\\n    -d \"short_description\"=\"abcd\" \\\n    -d \"product_dimension\"=\"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}\" \\\n    -d \"package_dimension\"=\"{\"weight\":4,\"length\":4,\"width\":4,\"height\":4}\" \\\n    -d \"related_product_sku\"=\"[\"152302-500-26\",\"IP-721150-653-42\"]\" \\\n    -d \"meta_title\"=\"abcd\" \\\n    -d \"meta_description\"=\"abcd\" \\\n    -d \"meta_keyword\"=\"abcd\" \\\n    -d \"attributes\"=\"[{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}]\" \\\n    -d \"warehouse\"=\"[{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}]\" \\\n    -d \"variations\"=\"[]\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/product\/update\");\n\nlet params = {\n    \"api_key\": \"WFoqRLCz^(+1\",\n    \"api_secret\": \"yZj{l%a3LvG+\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"id\": \"1\",\n    \"type\": \"single\",\n    \"status\": \"active\",\n    \"title\": \"product 1\",\n    \"sku\": \"product abcd123\",\n    \"brand_id\": \"112\",\n    \"barcode\": \"product abcd123\",\n    \"sub_title\": \"product 1\",\n    \"product_type\": \"UPS\",\n    \"hs_code\": \"123\",\n    \"tax_class\": \"standard_rates\",\n    \"price\": \"500\",\n    \"sale_price\": \"500\",\n    \"price_type\": \"percentage\",\n    \"msrp_price\": \"50\",\n    \"max_order_qty\": \"50\",\n    \"preorder\": \"do_not_allow\",\n    \"wholesale_price\": \"500\",\n    \"wholesale_sale_price\": \"500\",\n    \"wholesale_price_type\": \"percentage\",\n    \"min_order_qty\": \"50\",\n    \"preorderb2b\": \"do_not_allow\",\n    \"sub_brand_id\": \"1\",\n    \"supplier_id\": \"1\",\n    \"supplier_sku\": \"abcd\",\n    \"items_per_pack\": \"2\",\n    \"master_pack\": \"2\",\n    \"buy_price\": \"2\",\n    \"note\": \"abc\",\n    \"categories\": \"[60,2150]\",\n    \"items_per_grp\": \"500\",\n    \"discounts\": \"[{&quot;id&quot;:1,&quot;items&quot;:1,&quot;discount&quot;:2}]\",\n    \"stepper\": {\"min_qty\":1,\"max_qty\":2,\"qty_step\":100},\n    \"tags\": \"[&quot;jujube-amethyst-ice&quot;,&quot;fresh-baby-food-feeders&quot;]\",\n    \"description\": \"abcd\",\n    \"short_description\": \"abcd\",\n    \"product_dimension\": {\"weight\":4,\"length\":4,\"width\":4,\"height\":4},\n    \"package_dimension\": {\"weight\":4,\"length\":4,\"width\":4,\"height\":4},\n    \"related_product_sku\": \"[&quot;152302-500-26&quot;,&quot;IP-721150-653-42&quot;]\",\n    \"meta_title\": \"abcd\",\n    \"meta_description\": \"abcd\",\n    \"meta_keyword\": \"abcd\",\n    \"attributes\": \"[{&quot;id&quot;: 31,&quot;name&quot;:&quot;color&quot;,&quot;option&quot;:[75,202]}]\",\n    \"warehouse\": \"[{&quot;id&quot;: 1,&quot;stock_no&quot;:2,&quot;stock_expiry_date&quot;:2022-07-28,&quot;stock_buy_price&quot;:50}]\",\n    \"variations\": \"[]\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"id\" =>  \"1\",\n    \"type\" =>  \"single\",\n    \"status\" =>  \"active\",\n    \"title\" =>  \"product 1\",\n    \"sku\" =>  \"product abcd123\",\n    \"brand_id\" =>  \"112\",\n    \"barcode\" =>  \"product abcd123\",\n    \"sub_title\" =>  \"product 1\",\n    \"product_type\" =>  \"UPS\",\n    \"hs_code\" =>  \"123\",\n    \"tax_class\" =>  \"standard_rates\",\n    \"price\" =>  \"500\",\n    \"sale_price\" =>  \"500\",\n    \"price_type\" =>  \"percentage\",\n    \"msrp_price\" =>  \"50\",\n    \"max_order_qty\" =>  \"50\",\n    \"preorder\" =>  \"do_not_allow\",\n    \"wholesale_price\" =>  \"500\",\n    \"wholesale_sale_price\" =>  \"500\",\n    \"wholesale_price_type\" =>  \"percentage\",\n    \"min_order_qty\" =>  \"50\",\n    \"preorderb2b\" =>  \"do_not_allow\",\n    \"sub_brand_id\" =>  \"1\",\n    \"supplier_id\" =>  \"1\",\n    \"supplier_sku\" =>  \"abcd\",\n    \"items_per_pack\" =>  \"2\",\n    \"master_pack\" =>  \"2\",\n    \"buy_price\" =>  \"2\",\n    \"note\" =>  \"abc\",\n    \"categories\" => \"json_decode([60,2150], true)\",\n    \"items_per_grp\" =>  \"500\",\n    \"discounts\" => \"json_decode([{\"id\":1,\"items\":1,\"discount\":2}], true)\",\n    \"stepper\" => \"json_decode({\"min_qty\":1,\"max_qty\":2,\"qty_step\":100}, true)\",\n    \"tags\" => \"json_decode([\"jujube-amethyst-ice\",\"fresh-baby-food-feeders\"], true)\",\n    \"description\" =>  \"abcd\",\n    \"short_description\" =>  \"abcd\",\n    \"product_dimension\" => \"json_decode({\"weight\":4,\"length\":4,\"width\":4,\"height\":4}, true)\",\n    \"package_dimension\" => \"json_decode({\"weight\":4,\"length\":4,\"width\":4,\"height\":4}, true)\",\n    \"related_product_sku\" => \"json_decode([\"152302-500-26\",\"IP-721150-653-42\"], true)\",\n    \"meta_title\" =>  \"abcd\",\n    \"meta_description\" =>  \"abcd\",\n    \"meta_keyword\" =>  \"abcd\",\n    \"attributes\" => \"json_decode([{\"id\": 31,\"name\":\"color\",\"option\":[75,202]}], true)\",\n    \"warehouse\" => \"json_decode([{\"id\": 1,\"stock_no\":2,\"stock_expiry_date\":2022-07-28,\"stock_buy_price\":50}], true)\",\n    \"variations\" => \"json_decode([], true)\",\n];\n\n$query = [\n    \"api_key\" => \"WFoqRLCz^(+1\",\n    \"api_secret\" => \"yZj{l%a3LvG+\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/product\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/tax-classes":{"get":{"tags":["Tax Zones & Rates"],"operationId":"Tax Class","description":"Get Tax Class from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"HyDO8-I<js#)"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"I}jBu>Z(W\/Np"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/tax-classes\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/tax-classes\");\n\nlet params = {\n    \"api_key\": \"HyDO8-I&lt;js#)\",\n    \"api_secret\": \"I}jBu&gt;Z(W\/Np\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"HyDO8-I&lt;js#)\",\n    \"api_secret\" => \"I}jBu&gt;Z(W\/Np\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/tax-classes?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/tax-rates\/{tax}":{"get":{"tags":["Tax Zones & Rates"],"operationId":"Tax Zone","description":"Get Tax Zone by Class ID from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"MT8X0wU&QH]B"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"CSzz+QPn\/G^*"}},{"in":"path","name":"class_id","description":"Example: 1","required":true,"schema":{"type":"integer","example":19}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/tax-rates\/{tax}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/tax-rates\/{tax}\");\n\nlet params = {\n    \"api_key\": \"MT8X0wU&amp;QH]B\",\n    \"api_secret\": \"CSzz+QPn\/G^*\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"MT8X0wU&amp;QH]B\",\n    \"api_secret\" => \"CSzz+QPn\/G^*\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/tax-rates\/{tax}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/invoices":{"get":{"tags":["Invoices"],"operationId":"Get Invoices","description":"","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":".%8>au4*\/td+"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"}0#hM1o)ZEQ3"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/invoices\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/invoices\");\n\nlet params = {\n    \"api_key\": \".%8&gt;au4*\/td+\",\n    \"api_secret\": \"}0#hM1o)ZEQ3\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \".%8&gt;au4*\/td+\",\n    \"api_secret\" => \"}0#hM1o)ZEQ3\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/invoices?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/invoice\/{invoice_id}":{"get":{"tags":["Invoices"],"operationId":"Get Invoice Detail","description":"Get item by it's unique ID.","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"Ik4[1H|?BBWB"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"]EGzeT`u]F?w"}},{"in":"path","name":"invoice_id","description":"The ID of the invoice_id to retrieve.","required":true,"schema":{"type":"integer","example":10}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/invoice\/{invoice_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/invoice\/{invoice_id}\");\n\nlet params = {\n    \"api_key\": \"Ik4[1H|?BBWB\",\n    \"api_secret\": \"]EGzeT`u]F?w\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"Ik4[1H|?BBWB\",\n    \"api_secret\" => \"]EGzeT`u]F?w\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/invoice\/{invoice_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/invoice\/order\/{id}":{"get":{"tags":["Invoices"],"operationId":"Create Invoice","description":"Create new invoice on tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"dK^Ec>%yfoM\\"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"yXt~,B,389Jf"}},{"in":"path","name":"order_id","description":"","required":true,"schema":{"type":"integer","example":4}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":[]}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/invoice\/order\/{id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/invoice\/order\/{id}\");\n\nlet params = {\n    \"api_key\": \"dK^Ec&gt;%yfoM\\\",\n    \"api_secret\": \"yXt~,B,389Jf\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"dK^Ec&gt;%yfoM\\\",\n    \"api_secret\" => \"yXt~,B,389Jf\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/invoice\/order\/{id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/send-invoice\/order\/{order_id}":{"get":{"tags":["Invoices"],"operationId":"Send Invoice","description":"Send invoice to customer from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"\/GEW$?=STb79"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"ZhetZcdf-{th"}},{"in":"query","name":"email","description":"Example xyz@gmail.com","required":true,"schema":{"type":"string","example":"bQh{6[_Dbnk)"}},{"in":"path","name":"order_id","description":"","required":true,"schema":{"type":"integer","example":8}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/send-invoice\/order\/{order_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/send-invoice\/order\/{order_id}\");\n\nlet params = {\n    \"api_key\": \"\/GEW$?=STb79\",\n    \"api_secret\": \"ZhetZcdf-{th\",\n    \"email\": \"bQh{6[_Dbnk)\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"\/GEW$?=STb79\",\n    \"api_secret\" => \"ZhetZcdf-{th\",\n    \"email\" => \"bQh{6[_Dbnk)\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/send-invoice\/order\/{order_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/stocks":{"get":{"tags":["Stocks"],"operationId":"Stock List","description":"Get stock list from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"~g~zS58iJA`y"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"u(?T4__~Y[(2"}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/stocks\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/stocks\");\n\nlet params = {\n    \"api_key\": \"~g~zS58iJA`y\",\n    \"api_secret\": \"u(?T4__~Y[(2\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"~g~zS58iJA`y\",\n    \"api_secret\" => \"u(?T4__~Y[(2\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/stocks?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/stock\/product\/{product_id}":{"get":{"tags":["Stocks"],"operationId":"Stock By Product","description":"Get product's stock from tecframe tenant","parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"QwTl&W+NM\\N("}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"o+p>EqPwn\"yI"}},{"in":"path","name":"product_id","description":"","required":true,"schema":{"type":"integer","example":8}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}\");\n\nlet params = {\n    \"api_key\": \"QwTl&amp;W+NM\\N(\",\n    \"api_secret\": \"o+p&gt;EqPwn&quot;yI\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\n    method: \"GET\",\n    headers: headers,\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$query = [\n    \"api_key\" => \"QwTl&amp;W+NM\\N(\",\n    \"api_secret\" => \"o+p&gt;EqPwn&quot;yI\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}},"\/v1\/stock\/product\/{product_id}\/update":{"post":{"tags":["Stocks"],"operationId":"Update Stock By Product","description":"Update product's stock from tecframe tenant","requestBody":{"description":"Update product's stock from tecframe tenant","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["quantity"],"properties":{"quantity":{"type":"number","example":10,"description":"The quantity of the item."}},"example":{"quantity":10}}}}},"parameters":[{"in":"query","name":"api_key","description":"Example: tf_bWJzFA9juu0Ddpf7H5nzYUOMGdxrKhvZ3sZL1X8J","required":true,"schema":{"type":"string","example":"xzF>]V.u*#~X"}},{"in":"query","name":"api_secret","description":"Example: tf_secret_iyjCwdgxxk0TMIMEwnerDEl2PUMS03OAhwED2G8L","required":true,"schema":{"type":"string","example":"'dea,*,kjA\/["}},{"in":"path","name":"product_id","description":"","required":true,"schema":{"type":"integer","example":17}}],"responses":{"200":{"description":"success","content":{"application\/json":{"schema":{"type":"object","example":{"success":false,"statusCode":500,"data":{"message":""}}}}}}},"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}\/update\" \n    -d \"quantity\"=\"10\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}\/update\");\n\nlet params = {\n    \"api_key\": \"xzF&gt;]V.u*#~X\",\n    \"api_secret\": \"&#039;dea,*,kjA\/[\",\n};\n\nObject.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nlet body = JSON.stringify({\n    \"quantity\": \"10\",\n})\n\nfetch(url, {\n    method: \"POST\",\n    headers: headers,\n    body: body\n})\n    .then(response => response.json())\n    .then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n$body = [\n    \"quantity\" =>  \"10\",\n];\n\n$query = [\n    \"api_key\" => \"xzF&gt;]V.u*#~X\",\n    \"api_secret\" => \"&#039;dea,*,kjA\/[\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.tecframe.com\/v1\/stock\/product\/{product_id}\/update?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\n  throw \\Exception($err);\n} else {\n  return $response;\n}\n"}]}}},"x-tagGroups":[]}