Proxy Operaciones
Coelsa
3 min
aceptadores el siguiente conjunto de api's permite transferir todas las notificaciones recibidas por el aceptador desde el administrador coelsa, para poder impactar el resultado de operaciones en interoperable el siguiente listado de apis serán expuestas por interoperable para que el clientes interactue { "name" "qr intención pago", "method" "post", "url" "https //api interoperable ar/proxy/coelsa/qrintencionpago", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "9avblqeaw40d0jg4xkdbs", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" } ], "selectedlanguageid" "9avblqeaw40d0jg4xkdbs" }, "results" { "languages" \[ { "id" "orct45lablca6ialq2tua", "language" "200", "customlabel" "", "code" "{\n \\"validation data\\" {\n \\"mcc\\" string,\n \\"codigo postal\\" string,\n \\"payment reference\\" string\n },\n \\"validation status\\" {\n \\"status\\" \\"pass\\" | \\"fail\\",\n \\"on error\\" ? {\n \\"code\\" string,\n \\"description\\" string\n }\n },\n \\"qr id trx\\" string,\n \\"id debin\\" string,\n \\"id billetera\\" number,\n \\"fecha negocio\\" date\n}" }, { "id" " v6y1e xm5cvk3zu7cm s", "language" "404", "customlabel" "", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}" } ], "selectedlanguageid" "orct45lablca6ialq2tua" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "token bearer de autorización", "children" \[] } ], "bodydataparameters" \[ { "name" "operacion", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "vendedor", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuit", "kind" "required", "type" "string", "description" "" }, { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "banco", "kind" "required", "type" "string", "description" "" }, { "name" "sucursal", "kind" "required", "type" "string", "description" "" }, { "name" "terminal", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "comprador", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuenta", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "alias", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "cuit", "kind" "required", "type" "string", "description" "" } ] }, { "name" "detalle", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "id debin", "kind" "required", "type" "string", "description" "" }, { "name" "fecha negocio", "kind" "required", "type" "string", "description" "" }, { "name" "concepto", "kind" "required", "type" "string", "description" "" }, { "name" "id usuario", "kind" "optional", "type" "number", "description" "" }, { "name" "id comprobante", "kind" "optional", "type" "number", "description" "" }, { "name" "moneda", "kind" "required", "type" "number", "description" "" }, { "name" "importe", "kind" "required", "type" "number", "description" "" }, { "name" "qr", "kind" "required", "type" "string", "description" "" }, { "name" "qr hash", "kind" "optional", "type" "string", "description" "" }, { "name" "qr id trx", "kind" "required", "type" "string", "description" "" }, { "name" "id billetera", "kind" "required", "type" "number", "description" "" } ] }, { "name" "interchange", "kind" "required", "type" "array", "description" "" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "qr confirma debito", "method" "post", "url" "https //api interoperable ar/proxy/coelsa/qrconfirmadebito", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "9avblqeaw40d0jg4xkdbs", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" } ], "selectedlanguageid" "9avblqeaw40d0jg4xkdbs" }, "results" { "languages" \[ { "id" "orct45lablca6ialq2tua", "language" "200", "customlabel" "", "code" "{\n \\"transaction status\\" {\n \\"status\\" \\"approved\\"\n },\n \\"qr id trx\\" \\"\\",\n \\"id debin\\" \\"\\",\n \\"id billetera\\" 123,\n \\"fecha negocio\\" \\"\\",\n \\"payment reference\\" \\"\\"\n}" }, { "id" " v6y1e xm5cvk3zu7cm s", "language" "404", "customlabel" "", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}" } ], "selectedlanguageid" "orct45lablca6ialq2tua" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "token bearer de autorización", "children" \[] } ], "bodydataparameters" \[ { "name" "operacion", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "vendedor", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuit", "kind" "required", "type" "string", "description" "" }, { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "banco", "kind" "required", "type" "string", "description" "" }, { "name" "sucursal", "kind" "required", "type" "string", "description" "" }, { "name" "terminal", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "comprador", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuenta", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "alias", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "cuit", "kind" "required", "type" "string", "description" "" } ] }, { "name" "detalle", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "id debin", "kind" "required", "type" "string", "description" "" }, { "name" "fecha negocio", "kind" "required", "type" "string", "description" "" }, { "name" "concepto", "kind" "required", "type" "string", "description" "" }, { "name" "id usuario", "kind" "optional", "type" "number", "description" "" }, { "name" "id comprobante", "kind" "optional", "type" "number", "description" "" }, { "name" "moneda", "kind" "required", "type" "number", "description" "" }, { "name" "importe", "kind" "required", "type" "number", "description" "" }, { "name" "qr", "kind" "required", "type" "string", "description" "" }, { "name" "qr hash", "kind" "optional", "type" "string", "description" "" }, { "name" "qr id trx", "kind" "required", "type" "string", "description" "" }, { "name" "id billetera", "kind" "required", "type" "number", "description" "" } ] }, { "name" "respuesta", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "descripcion", "kind" "required", "type" "string", "description" "" }, { "name" "codigo", "kind" "required", "type" "string", "description" "" } ] } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "name" "qr reverso", "method" "post", "url" "https //api interoperable ar/proxy/coelsa/qrreverso", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "9avblqeaw40d0jg4xkdbs", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "w1eheqz4yyhpafjgmw0lv", "language" "curl", "code" "curl location 'https //api interoperable ar/proxy/coelsa/qrreverso' \\\\\n header 'authorization string' \\\\\n data '{\\"operacion\\" \\"object\\"}'", "customlabel" "" }, { "id" "ocm4tdr0n 1xkvcxpvxll", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api interoperable ar/proxy/coelsa/qrreverso',\n 'headers' {\n 'authorization' 'string'\n },\n body '{\\"operacion\\" \\"object\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "nvl1rpndoyy6blkigdhqz", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"operacion\\\\\\" \\\\\\"object\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/proxy/coelsa/qrreverso\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "nmnlpgefxteurrawclcls", "language" "python", "code" "import requests\n\nurl = \\"https //api interoperable ar/proxy/coelsa/qrreverso\\"\n\npayload = \\"{\\\\\\"operacion\\\\\\" \\\\\\"object\\\\\\"}\\"\nheaders = {\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "jsj52 mmolkllbxn9dmyd", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/proxy/coelsa/qrreverso\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"operacion\\\\\\" \\\\\\"object\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "9avblqeaw40d0jg4xkdbs" }, "results" { "languages" \[ { "id" "orct45lablca6ialq2tua", "language" "200", "customlabel" "", "code" "{}" }, { "id" " v6y1e xm5cvk3zu7cm s", "language" "400", "customlabel" "", "code" "{}" } ], "selectedlanguageid" "orct45lablca6ialq2tua" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "token bearer de autorización", "children" \[] } ], "bodydataparameters" \[ { "name" "operacion", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "vendedor", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuit", "kind" "required", "type" "string", "description" "" }, { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "banco", "kind" "required", "type" "string", "description" "" }, { "name" "sucursal", "kind" "required", "type" "string", "description" "" }, { "name" "terminal", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "comprador", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuenta", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cbu", "kind" "required", "type" "string", "description" "" }, { "name" "alias", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "cuit", "kind" "required", "type" "string", "description" "" } ] }, { "name" "detalle", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "id debin", "kind" "required", "type" "string", "description" "" }, { "name" "fecha negocio", "kind" "required", "type" "string", "description" "" }, { "name" "concepto", "kind" "required", "type" "string", "description" "" }, { "name" "id usuario", "kind" "optional", "type" "number", "description" "" }, { "name" "id comprobante", "kind" "optional", "type" "number", "description" "" }, { "name" "moneda", "kind" "required", "type" "number", "description" "" }, { "name" "importe", "kind" "required", "type" "number", "description" "" }, { "name" "qr", "kind" "required", "type" "string", "description" "" }, { "name" "qr hash", "kind" "optional", "type" "string", "description" "" }, { "name" "qr id trx", "kind" "required", "type" "string", "description" "" }, { "name" "id billetera", "kind" "required", "type" "number", "description" "" } ] }, { "name" "respuesta", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "descripcion", "kind" "required", "type" "string", "description" "" }, { "name" "codigo", "kind" "required", "type" "string", "description" "" } ] } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } el siguiente listado de api's deberán ser expuestas por el cliente para realizar operaciones de tipo administrativas { "name" "realizar devolución de operación", "method" "post", "url" "https //{url cliente}/coelsa/qrsolicitudcontracargo", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "aujmhtxm6kow qt0pwy7 ", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "knubqjdn9t6jece61zrvu", "language" "curl", "code" "curl location globoff 'https //{url cliente}/coelsa/qrsolicitudcontracargo' \\\\\n header 'authorization string' \\\\\n data '{\\"operacion original\\" \\"object\\",\\"objeto\\" \\"object\\"}'", "customlabel" "" }, { "id" "7hbt6 hpjhtoks80x8ulu", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //{url cliente}/coelsa/qrsolicitudcontracargo',\n 'headers' {\n 'authorization' 'string'\n },\n body '{\\"operacion original\\" \\"object\\",\\"objeto\\" \\"object\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "e2jyshsw9axg9l8rz5ot3", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"operacion original\\\\\\" \\\\\\"object\\\\\\",\\\\\\"objeto\\\\\\" \\\\\\"object\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //{url cliente}/coelsa/qrsolicitudcontracargo\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "16vhrres 4 ptczedfdyw", "language" "python", "code" "import requests\n\nurl = \\"https //{url cliente}/coelsa/qrsolicitudcontracargo\\"\n\npayload = \\"{\\\\\\"operacion original\\\\\\" \\\\\\"object\\\\\\",\\\\\\"objeto\\\\\\" \\\\\\"object\\\\\\"}\\"\nheaders = {\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "itct53pi9mpo0qruczsen", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //{url cliente}/coelsa/qrsolicitudcontracargo\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"operacion original\\\\\\" \\\\\\"object\\\\\\",\\\\\\"objeto\\\\\\" \\\\\\"object\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "aujmhtxm6kow qt0pwy7 " }, "results" { "languages" \[ { "id" "zezojlvhjc0k7ed2fddwi", "language" "200", "customlabel" "", "code" "{\n respuesta {\n codigo string;\n descripcion string;\n };\n id string;\n tipo 'contracargo';\n fecha negocio date;\n}" } ], "selectedlanguageid" "zezojlvhjc0k7ed2fddwi" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "el cliente deberá brindar una forma de autenticación de las solicitudes los tipos pueden ser basic, bearer ", "children" \[] } ], "bodydataparameters" \[ { "name" "operacion original", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "detalle", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "moneda", "kind" "required", "type" "number", "description" "" }, { "name" "importe", "kind" "required", "type" "number", "description" "" }, { "name" "motivo", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "vendedor", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "cuit", "kind" "required", "type" "string", "description" "" }, { "name" "cbu", "kind" "required", "type" "string", "description" "" } ] }, { "name" "tipo", "kind" "required", "type" "string", "description" "" }, { "name" "qr id trx", "kind" "required", "type" "string", "description" "" } ] }, { "name" "objeto", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "ori trx id", "kind" "required", "type" "number", "description" "" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "name" "obtener información de operación", "method" "get", "url" "https //{url cliente}/qrdebin/{qr id}", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "aujmhtxm6kow qt0pwy7 ", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "lo2fqadrhqg3qpjbnlik0", "language" "curl", "code" "curl location globoff 'https //{url cliente}/coelsa/qrdebin/{qr id}/{qr id}' \\\\\n header 'authorization string'", "customlabel" "" }, { "id" "2mgs8e9ey8h51jw4cna7v", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //{url cliente}/coelsa/qrdebin/{qr id}/{qr id}',\n 'headers' {\n 'authorization' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "zkqc rrxmbjftlh dvztz", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //{url cliente}/coelsa/qrdebin/{qr id}/{qr id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "kugzg90ecxhx5clbjhnpq", "language" "python", "code" "import requests\n\nurl = \\"https //{url cliente}/coelsa/qrdebin/{qr id}/{qr id}\\"\n\npayload = {}\nheaders = {\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "tqph uac7zviq92ao ubk", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //{url cliente}/coelsa/qrdebin/{qr id}/{qr id}\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "aujmhtxm6kow qt0pwy7 " }, "results" { "languages" \[ { "id" "zezojlvhjc0k7ed2fddwi", "language" "200", "customlabel" "", "code" "{\n\n}" } ], "selectedlanguageid" "zezojlvhjc0k7ed2fddwi" }, "request" { "pathparameters" \[ { "name" "qr id", "kind" "required", "type" "string", "description" "qr id del qr a consultar", "children" \[] } ], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "el cliente deberá brindar una forma de autenticación de las solicitudes los tipos pueden ser basic, bearer ", "children" \[] } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } }
