---
title: Puntos de Venta
slug: puntos-de-venta
createdAt: 2024-01-04T04:54:06.201Z
---

A partir de esta especificación se podrán crear Puntos de Venta de un comercio o de una sucursal.

:::ApiMethodV2
```json
{
  "name": "Crear Punto de Venta",
  "method": "POST",
  "url": "https://{suga-id}.sugaway.io/p/pos",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "Mwt0BUcmNS0Zj08vMWglf",
        "language": "curl",
        "code": "curl --location --globoff 'https://{suga-id}.sugaway.com/p/branch' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"name\":\"string\",\"reference\":\"string\",\"address\":\"Object\",\"state\":\"string\",\"city\":\"string\",\"zipCode\":\"string\",\"email\":\"string\",\"phone\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "lB8roVEBWmRsaEVbIibvc",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://{suga-id}.sugaway.com/p/branch',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"name\": \"string\",\n      \"reference\": \"string\",\n      \"address\": \"Object\",\n      \"state\": \"string\",\n      \"city\": \"string\",\n      \"zipCode\": \"string\",\n      \"email\": \"string\",\n      \"phone\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "vQNUTltQDiXj6h32EoaGM",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.com/p/branch\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "WED_CogpTVQkR7SK6MO20",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.com/p/branch\"\n\npayload = json.dumps({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "-_tFjC9t7JDH7jJMBifBL",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.com/p/branch\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "8cUC8aDR5sRYZXgoovVAy",
        "language": "curl",
        "code": "curl --location --globoff 'https://{suga-id}.sugaway.io/p/pos' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"name\":\"string\",\"reference\":\"string\",\"countryCategoryCode\":\"string\",\"mcc\":\"string\",\"email\":\"string\",\"phone\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "z8xe7ckN1_983u_7V6Pkt",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://{suga-id}.sugaway.io/p/pos',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"name\": \"string\",\n      \"reference\": \"string\",\n      \"countryCategoryCode\": \"string\",\n      \"mcc\": \"string\",\n      \"email\": \"string\",\n      \"phone\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "QomQnZ4Gyos2slcXgId1-",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/pos\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "vFaH-YdKiPbt82XMtCQ9T",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/pos\"\n\npayload = json.dumps({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "dfSpJWhf2ypC08PGG8RWJ",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/pos\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Mwt0BUcmNS0Zj08vMWglf"
  },
  "results": {
    "languages": [
      {
        "id": "gnXmOysEtD2ZtSEKWChGr",
        "language": "200",
        "customLabel": "",
        "code": "{\n      \"result\": true,\n      \"data\": {\n        \"id\": \"posID\"\n      }\n}"
      },
      {
        "id": "YTNhoo1Io7TCRnTMus24X",
        "language": "404",
        "customLabel": "",
        "code": "{\n      \"message\": \"Ain't no cake like that.\"\n    }"
      }
    ],
    "selectedLanguageId": "gnXmOysEtD2ZtSEKWChGr"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "x-api-key",
        "kind": "required",
        "type": "string",
        "description": "API Key del operador",
        "children": []
      },
      {
        "name": "x-access-token",
        "kind": "required",
        "type": "string",
        "description": "Access Token del Operador",
        "children": []
      },
      {
        "name": "x-suga-entity",
        "kind": "required",
        "type": "string",
        "description": "ID del comercio o sucursal sobre el cual se desea crear el punto de venta",
        "children": []
      }
    ],
    "bodyDataParameters": [
      {
        "name": "name",
        "kind": "required",
        "type": "string",
        "description": "Nombre de fantasía del punto de venta"
      },
      {
        "name": "reference",
        "kind": "optional",
        "type": "string",
        "description": "Referencia única que permita identificar al punto de venta dentro del comercio o sucursal. Si no se envía se generara una automáticamente.",
        "children": []
      },
      {
        "name": "countryCategoryCode",
        "kind": "optional",
        "type": "string",
        "description": "Indica el código de actividad a aplicarse en este POS. Si no se envía aplica el principal del comercio.",
        "children": []
      },
      {
        "name": "mcc",
        "kind": "optional",
        "type": "string",
        "description": "Contiene el código de categoría del Punto de Venta, si aplica uno diferente al del comercio. Si no se envía, se aplica por defecto el que indica según la actividad del POS o Comercio",
        "children": []
      },
      {
        "name": "email",
        "kind": "optional",
        "type": "string",
        "description": "Email del punto de venta. Si no se envía se considera el email del comercio.",
        "children": []
      },
      {
        "name": "phone",
        "kind": "optional",
        "type": "string",
        "description": "Teléfono del punto de venta. Si no se envía se considera el teléfono del comercio.",
        "children": []
      },
      {
        "name": "accountType",
        "kind": "optional",
        "type": "string",
        "description": "Permite definir una cuenta bancaria o virtual para el destino de los fondos del punto de venta, en el caso que sea diferente al comercio o sucursal. Aplicar sólo en los casos requeridos y previa autorización de SUGA",
        "children": []
      },
      {
        "name": "accountNumber",
        "kind": "optional",
        "type": "string",
        "description": "En el caso de especificar una cuenta, indica el número de cuenta de destino de los fondos.",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "crear-punto-de-venta",
  "legacyHash": "9IQncrVjq9L77CDM8pB5G"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Editar Punto de Venta",
  "method": "PUT",
  "url": "https://{suga-id}.sugaway.io/p/pos/{uid}",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "Mwt0BUcmNS0Zj08vMWglf",
        "language": "curl",
        "code": "curl --location --globoff 'https://{suga-id}.sugaway.com/p/branch' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"name\":\"string\",\"reference\":\"string\",\"address\":\"Object\",\"state\":\"string\",\"city\":\"string\",\"zipCode\":\"string\",\"email\":\"string\",\"phone\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "lB8roVEBWmRsaEVbIibvc",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://{suga-id}.sugaway.com/p/branch',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"name\": \"string\",\n      \"reference\": \"string\",\n      \"address\": \"Object\",\n      \"state\": \"string\",\n      \"city\": \"string\",\n      \"zipCode\": \"string\",\n      \"email\": \"string\",\n      \"phone\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "vQNUTltQDiXj6h32EoaGM",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.com/p/branch\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "WED_CogpTVQkR7SK6MO20",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.com/p/branch\"\n\npayload = json.dumps({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "-_tFjC9t7JDH7jJMBifBL",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.com/p/branch\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"string\",\n   \"reference\": \"string\",\n   \"address\": \"Object\",\n   \"state\": \"string\",\n   \"city\": \"string\",\n   \"zipCode\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "tGubNDKY-ooZ2u3Qpxrn1",
        "language": "curl",
        "code": "curl --location --globoff 'https://{suga-id}.sugaway.io/p/pos/:id/{id}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"name\":\"string\",\"countryCategoryCode\":\"string\",\"mcc\":\"string\",\"email\":\"string\",\"phone\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "vni47Daxt5zF6ike-_Iq4",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://{suga-id}.sugaway.io/p/pos/:id/{id}',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"name\": \"string\",\n      \"countryCategoryCode\": \"string\",\n      \"mcc\": \"string\",\n      \"email\": \"string\",\n      \"phone\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "Sy54KkXjMQdAF5XNtjMga",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/pos/:id/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "cMkBABgFjiIRpPRNUvj4K",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/pos/:id/{id}\"\n\npayload = json.dumps({\n   \"name\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "h85jxxOLtyoX2igDhQfr3",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/pos/:id/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"name\": \"string\",\n   \"countryCategoryCode\": \"string\",\n   \"mcc\": \"string\",\n   \"email\": \"string\",\n   \"phone\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Mwt0BUcmNS0Zj08vMWglf"
  },
  "results": {
    "languages": [
      {
        "id": "gnXmOysEtD2ZtSEKWChGr",
        "language": "200",
        "customLabel": "",
        "code": "{\n      \"result\": true,\n      \"data\": {}\n}"
      },
      {
        "id": "YTNhoo1Io7TCRnTMus24X",
        "language": "404",
        "customLabel": "",
        "code": "{\n      \"message\": \"Ain't no cake like that.\"\n    }"
      }
    ],
    "selectedLanguageId": "gnXmOysEtD2ZtSEKWChGr"
  },
  "request": {
    "pathParameters": [
      {
        "name": "uid",
        "kind": "required",
        "type": "string",
        "description": "ID del punto de venta que se quiere modificar",
        "children": []
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "x-api-key",
        "kind": "required",
        "type": "string",
        "description": "API Key del operador",
        "children": []
      },
      {
        "name": "x-access-token",
        "kind": "required",
        "type": "string",
        "description": "Access Token del Operador",
        "children": []
      },
      {
        "name": "x-suga-entity",
        "kind": "required",
        "type": "string",
        "description": "ID del comercio o sucursal sobre el cual se desea editar el punto de venta",
        "children": []
      }
    ],
    "bodyDataParameters": [
      {
        "name": "name",
        "kind": "optional",
        "type": "string",
        "description": "Nombre de fantasía del punto de venta"
      },
      {
        "name": "countryCategoryCode",
        "kind": "optional",
        "type": "string",
        "description": "Indica el código de actividad a aplicarse en este POS.",
        "children": []
      },
      {
        "name": "mcc",
        "kind": "optional",
        "type": "string",
        "description": "Contiene el código de categoría del Punto de Venta, si aplica uno diferente al del comercio.",
        "children": []
      },
      {
        "name": "email",
        "kind": "optional",
        "type": "string",
        "description": "Email del punto de venta.",
        "children": []
      },
      {
        "name": "phone",
        "kind": "optional",
        "type": "string",
        "description": "Teléfono del punto de venta.",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "editar-punto-de-venta",
  "legacyHash": "ju9tG0xSxzwoMSk36okm8"
}
```
:::

Los posible códigos de error al crear o modificar un Punto de Venta son:

- POS\:INVALID\_REFERENCE
- POS\:INVALID\_MCC
- POS\:INVALID\_ACCOUNT
- POS\:POS\_NOT\_FOUND -> El &#x7B;uid} no corresponde a un punto de venta válido

:::ApiMethodV2
```json
{
  "name": "Inactivar Punto de Venta",
  "method": "PUT",
  "url": "https://{suga-id}.sugaway.io/p/pos/{uid}/inactive",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "ffOYDr1j4i2Gf94ayKOwF",
        "language": "curl",
        "code": "curl --location --globoff --request PUT 'https://{suga-id}.sugaway.io/p/branch/:id/inactive/{id}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      },
      {
        "id": "6DRO5kmgBMHyPdM8k9d43",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://{suga-id}.sugaway.io/p/branch/:id/inactive/{id}',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "GkyZw3NnfRzc7uKPRrXwd",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/branch/:id/inactive/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "ad7-ljCanFqka-apU1HF4",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/branch/:id/inactive/{id}\"\n\npayload = {}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "FKey3rr8haicO2g_gG-Gv",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/branch/:id/inactive/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "NuQhIJw_FC04rs5v9Ur3w",
        "language": "curl",
        "code": "curl --location --globoff --request PUT 'https://{suga-id}.sugaway.io/p/pos/:id/inactive/{id}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      },
      {
        "id": "don4RAYVMRxm6NNlyWJnd",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://{suga-id}.sugaway.io/p/pos/:id/inactive/{id}',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "NXV0WkuttIQLjuQqFny1c",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/pos/:id/inactive/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "MJ_xZRXUiWpd-Sv89Kgi9",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/pos/:id/inactive/{id}\"\n\npayload = {}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "1kVz0NLCiBqB47IrMrxlg",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/pos/:id/inactive/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "ffOYDr1j4i2Gf94ayKOwF"
  },
  "results": {
    "languages": [
      {
        "id": "CmegnowtGkUCFFeAP7tBp",
        "language": "200",
        "customLabel": "",
        "code": "{\n      \"result\": true,\n      \"data\": {}\n    }"
      },
      {
        "id": "lzxKcvOTfYehRtO3InxCx",
        "language": "404",
        "customLabel": "",
        "code": "{\n      \"message\": \"Ain't no cake like that.\"\n    }"
      }
    ],
    "selectedLanguageId": "CmegnowtGkUCFFeAP7tBp"
  },
  "request": {
    "pathParameters": [
      {
        "name": "uid",
        "kind": "required",
        "type": "string",
        "description": "ID del POS que se quiere inactivar",
        "children": []
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "x-api-key",
        "kind": "required",
        "type": "string",
        "description": "API Key del operador",
        "children": []
      },
      {
        "name": "x-access-token",
        "kind": "required",
        "type": "string",
        "description": "Access Token del operador",
        "children": []
      },
      {
        "name": "x-suga-entity",
        "kind": "required",
        "type": "string",
        "description": "ID del comercio sobre el cual se desean gestionar los POS",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "inactivar-punto-de-venta",
  "legacyHash": "CkrvvGCjssCA9NW5tq0yi"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Reactivar Punto de Venta",
  "method": "PUT",
  "url": "https://{suga-id}.sugaway.io/p/pos/{uid}/active",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "OkfMLu2mbdBeCivygkNar",
        "language": "curl",
        "code": "curl --location --globoff --request PUT 'https://{suga-id}.sugaway.io/p/pos/:id/active/{id}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      },
      {
        "id": "I62pRUYnHn0hfuXSSvsr3",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://{suga-id}.sugaway.io/p/pos/:id/active/{id}',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "USJtCmsAv64nueEpreR99",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/pos/:id/active/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "H98oMK5qvGn2BsryDgXrx",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/pos/:id/active/{id}\"\n\npayload = {}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "22WjjP7mqkhbZmDGYfn-P",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/pos/:id/active/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "P44fN1UJGSaydHA5snP-3",
        "language": "curl",
        "code": "curl --location --globoff --request PUT 'https://{suga-id}.sugaway.io/p/pos/{id}/active/{id}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      },
      {
        "id": "V-iGPFlAZW-2_PIeVlhps",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://{suga-id}.sugaway.io/p/pos/{id}/active/{id}',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "TWqsXGAqSAYRRmBS4wVlK",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://{suga-id}.sugaway.io/p/pos/{id}/active/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "rOOvzm83FQ-tGoxntnPFT",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://{suga-id}.sugaway.io/p/pos/{id}/active/{id}\"\n\npayload = {}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "gYBbzXjRVTUatIRX0As2W",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://{suga-id}.sugaway.io/p/pos/{id}/active/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "OkfMLu2mbdBeCivygkNar"
  },
  "results": {
    "languages": [
      {
        "id": "cRrVFJ7HVphHKiRJ8C3J-",
        "language": "200",
        "customLabel": "",
        "code": "{\n      \"result\": true,\n      \"data\": {}\n    }"
      },
      {
        "id": "6t8wrJVEiV-6JrjkeYabZ",
        "language": "404",
        "customLabel": "",
        "code": "{\n      \"message\": \"Ain't no cake like that.\"\n    }"
      }
    ],
    "selectedLanguageId": "cRrVFJ7HVphHKiRJ8C3J-"
  },
  "request": {
    "pathParameters": [
      {
        "name": "uid",
        "kind": "required",
        "type": "string",
        "description": "ID del POS que se quiere reactivar",
        "children": []
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "x-api-key",
        "kind": "required",
        "type": "string",
        "description": "API Key del Operador",
        "children": []
      },
      {
        "name": "x-access-token",
        "kind": "required",
        "type": "string",
        "description": "Access Token del Operador",
        "children": []
      },
      {
        "name": "x-suga-entity",
        "kind": "required",
        "type": "string",
        "description": "ID del comercio sobre el cual se desean gestionar los puntos de venta",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "reactivar-punto-de-venta",
  "legacyHash": "rw82UhzwR52sbE1LwlpWx"
}
```
:::

