Desarrolladores
Información General
Puntos de Venta
a partir de esta especificación se podrán crear puntos de venta de un comercio o de una sucursal { "name" "crear punto de venta", "method" "post", "url" "https //api bdp gire com/p/pos", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "mwt0bucmns0zj08vmwglf", "language" "curl", "code" "curl location globoff 'https //api bdp gire com/p/branch' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"name\\" \\"string\\",\\"reference\\" \\"string\\", \\"webhook\\" \\"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 //api bdp gire 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 \\"webhook\\" \\"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 \\"webhook\\" \\"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 //api bdp gire 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 //api bdp gire com/p/branch\\"\n\npayload = json dumps({\n \\"name\\" \\"string\\",\n \\"reference\\" \\"string\\",\n \\"webhook\\" \\"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 //api bdp gire 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 \\"webhook\\" \\"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 //api bdp gire com/p/pos' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"name\\" \\"string\\",\\"reference\\" \\"string\\",\\"webhook\\" \\"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 //api bdp gire com/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 \\"webhook\\" \\"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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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", "" "api key" }, { "name" "x access token", "kind" "required", "type" "string", "description" "access token ", "" "access token " } ], "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" "webhook", "kind" "optional", "type" "string", "description" "url a la cual será informado el pago mediante webhooks (post)", "" "url a la cual será informado el pago mediante webhooks (post)" }, { "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 gire", "" "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 gire" }, { "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" } } { "name" "editar punto de venta", "method" "put", "url" "https //api bdp gire com/p/pos/{uid}", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "mwt0bucmns0zj08vmwglf", "language" "curl", "code" "curl location globoff 'https //api bdp gire 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 //api bdp gire 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 //api bdp gire 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 //api bdp gire 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 //api bdp gire 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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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" "lb8rovebwmrsaevbiibvc" }, "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", "" "api key" }, { "name" "x access token", "kind" "required", "type" "string", "description" "access token", "" "access token" } ], "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" "webhook", "kind" "optional", "type" "string", "description" "url a la cual será informado el pago mediante webhooks (post)", "" "url a la cual será informado el pago mediante webhooks (post)" }, { "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" "body parameter", "value" "bodydataparameters" } } 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 {uid} no corresponde a un punto de venta válido { "name" "inactivar punto de venta", "method" "put", "url" "https //api bdp gire com/p/pos/{uid}/inactive", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "ffoydr1j4i2gf94aykowf", "language" "curl", "code" "curl location globoff request put 'https //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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" "don4rayvmrxm6nnlywjnd" }, "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", "" "api key" }, { "name" "x access token", "kind" "required", "type" "string", "description" "access token", "" "access token" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "reactivar punto de venta", "method" "put", "url" "https //api bdp gire com/p/pos/{uid}/active", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "okfmlu2mbdbecivygknar", "language" "curl", "code" "curl location globoff request put 'https //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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 //api bdp gire com/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" "22wjjp7mqkhbzmdgyfn p" }, "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", "" "api key" }, { "name" "x access token", "kind" "required", "type" "string", "description" "access token", "" "access token" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }