Flujo de Pago
6 min
este flujo es exclusivo para cuenta/billetera habientes sequencediagram participant aplicacion participant servicio participant interoperable aplicacion >>servicio lee un qr servicio >>interoperable envía el qr al endpoint "resolve" interoperable >>aplicacion devuelve los medios de pago servicio >>interoperable llamada a patch plans interoperable >>aplicacion devuelve los planes calculados aplicacion >>servicio elije medio de pago servicio >>interoperable ejecuta el pago interoperable >>aplicacion devuelve el resultado del pago { "tab" "examples", "url" "https //api interoperable ar/qr/customer/{customer id}/resolve", "name" "leer/resolver qr con cuenta/billetera habiente", "method" "post", "request" { "pathparameters" \[ { "kind" "required", "name" "customer id", "type" "string", "children" \[], "description" "referencia de la cuenta con la cual se debe leer el qr" } ], "queryparameters" \[ { "name" "loc", "kind" "optional", "type" "string", "description" "localización de la respuesta opciones arg", "children" \[] } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[ { "kind" "required", "name" "qr raw", "type" "string", "description" "qr raw data" }, { "name" "sources", "kind" "optional", "type" "array", "description" "", "children" \[] }, { "name" "sources \[$]", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "type", "kind" "required", "type" "string", "description" "valor fijo bank" }, { "name" "data", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "name", "kind" "required", "type" "string", "description" "nombre del titular" }, { "name" "identification", "kind" "required", "type" "string", "description" "dni, cuil, cuit del titular" }, { "name" "cvu", "kind" "optional", "type" "string", "description" "clave bancaria uniforme ( sólo argentina y tipo bank )" }, { "name" "cbu", "kind" "optional", "type" "string", "description" "clave virtual uniforme ( sólo argentina y tipo bank )" } ] } ] }, { "name" "thirdpartyresolve", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "qr id", "kind" "required", "type" "string", "description" "" }, { "name" "merchant", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "name", "kind" "optional", "type" "string", "description" "" }, { "name" "cuit", "kind" "optional", "type" "string", "description" "" }, { "name" "category", "kind" "optional", "type" "string", "description" "" }, { "name" "field of activity", "kind" "optional", "type" "string", "description" "" }, { "name" "mcc", "kind" "optional", "type" "string", "description" "" }, { "name" "zip", "kind" "optional", "type" "string", "description" "" }, { "name" "free tier", "kind" "optional", "type" "boolean", "description" "" }, { "name" "iva exempt", "kind" "optional", "type" "boolean", "description" "" }, { "name" "image", "kind" "optional", "type" "string", "description" "" }, { "name" "account", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "transaction type", "kind" "optional", "type" "string", "description" "pct, ect" } ] }, { "name" "country", "kind" "optional", "type" "string", "description" "iso 3166 1 alpha 3 código de 3 letras indicando el código de país esto es sólo necesario para enviar una llave pix u otras llaves manuales ", "" "iso 3166 1 alpha 3 código de 3 letras indicando el código de país esto es sólo necesario para enviar una llave pix u otras llaves manuales " }, { "name" "text", "kind" "optional", "type" "string", "description" "este campo es sólo necesario si se envía una llave pix u otras llaves manuales aquí se debe enviar la llave ", "" "este campo es sólo necesario si se envía una llave pix u otras llaves manuales aquí se debe enviar la llave " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "p8twq6nthiwhgzuljikpz", "language" "200", "code" "{\n\t\\"id\\" \\"2o31v162nryceld6x30nqz\\",\n\t\\"currency\\" \\"ars\\",\n\t\\"total\\" 10,\n\t\\"acquirers\\" \[\n\t\t\\"ar interoperable\\"\n\t],\n\t\\"merchantdata\\" {\n\t\t\\"accountnumber\\" \\"xxxxxxxxxxxxxxxxx\\",\n\t\t\\"accounttype\\" \\"cvu\\",\n\t\t\\"country\\" \\"arg\\",\n\t\t\\"countrycategorycode\\" \\"641930\\",\n\t\t\\"legalname\\" \\"prueba 2\\",\n\t\t\\"mcc\\" \\"6010\\",\n\t\t\\"name\\" \\"prueba 2\\",\n\t\t\\"reference\\" \\"65a59b415d3731a69545a476\\",\n\t\t\\"taxid\\" \\"20121231234\\",\n\t\t\\"taxidtype\\" \\"arg cuit\\",\n\t\t\\"zipcode\\" \\"c1000aaa\\"\n\t},\n\t\\"localizedorder\\" {},\n\t\\"sources\\" \[\n\t\t{\n\t\t\t\\"source\\" {\n\t\t\t\t\\"uid\\" \\"65e5ec0561658049e63991ba\\",\n\t\t\t\t\\"type\\" \\"card\\",\n\t\t\t\t\\"data\\" {\n\t\t\t\t\t\\"bin\\" \\"45079900\\",\n\t\t\t\t\t\\"country\\" \\"arg\\",\n\t\t\t\t\t\\"expirationmonth\\" \\"12\\",\n\t\t\t\t\t\\"expirationyear\\" \\"34\\",\n\t\t\t\t\t\\"identification\\" \\"12123123\\",\n\t\t\t\t\t\\"last4\\" \\"0010\\",\n\t\t\t\t\t\\"name\\" \\"demo customer\\",\n\t\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t\t},\n\t\t\t\t\\"kind\\" \\"customer\\"\n\t\t\t},\n\t\t\t\\"data\\" {\n\t\t\t\t\\"source\\" {\n\t\t\t\t\t\\"card\\" {\n\t\t\t\t\t\t\\"issuer\\" {\n\t\t\t\t\t\t\t\\"color\\" \\"#122d98\\",\n\t\t\t\t\t\t\t\\"logo\\" \\"https //res mobbex com/images/sources/png/visa png\\",\n\t\t\t\t\t\t\t\\"metadata\\" null,\n\t\t\t\t\t\t\t\\"name\\" \\"visa\\",\n\t\t\t\t\t\t\t\\"shortname\\" \\"visa\\",\n\t\t\t\t\t\t\t\\"type\\" \\"unknown\\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\\"level\\" \\"classic\\",\n\t\t\t\t\t\t\\"product\\" {\n\t\t\t\t\t\t\t\\"code\\" {\n\t\t\t\t\t\t\t\t\\"length\\" 3,\n\t\t\t\t\t\t\t\t\\"name\\" \\"cvv\\",\n\t\t\t\t\t\t\t\t\\"position\\" 1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\\"gaps\\" \[\n\t\t\t\t\t\t\t\t4,\n\t\t\t\t\t\t\t\t8,\n\t\t\t\t\t\t\t\t12\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"lengths\\" \[\n\t\t\t\t\t\t\t\t16\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"logo\\" \\"https //res mobbex com/images/sources/png/visa png\\",\n\t\t\t\t\t\t\t\\"metadata\\" null,\n\t\t\t\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\t\t\t\\"shortname\\" \\"visa débit\\",\n\t\t\t\t\t\t\t\\"validation\\" \[\n\t\t\t\t\t\t\t\t\\"length\\",\n\t\t\t\t\t\t\t\t\\"exp\\",\n\t\t\t\t\t\t\t\t\\"cvv\\",\n\t\t\t\t\t\t\t\t\\"luhn\\"\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"variant\\" \\"debit\\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\t\\"reference\\" \\"visa debit\\",\n\t\t\t\t\t\\"references\\" \[\n\t\t\t\t\t\t\\"visa debit\\"\n\t\t\t\t\t],\n\t\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t\t},\n\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t}\n\t\t}\n\t]\n}", "customlabel" "" }, { "id" "q79lt9foy8ee1crml5gyv", "language" "500", "code" "{\n \\"code\\" \\"500\\",\n \\"message\\" \\"fat err\\"\n}", "customlabel" "" } ], "selectedlanguageid" "p8twq6nthiwhgzuljikpz" }, "examples" { "languages" \[ { "id" "5esz2ozvttkcfb6cmhhtj", "language" "curl", "code" "curl location globoff 'https //api interoperable ar/qr/customer/{customer id}/resolve/{customer id}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"qr raw\\" \\"string\\"}'", "customlabel" "" }, { "id" "mgcqnhp8l ltadmkekkfh", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api interoperable ar/qr/customer/{customer id}/resolve/{customer id}',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"qr raw\\" \\"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" "4mw0hpu65d3bsyu2n6vhb", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"qr raw\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/qr/customer/{customer id}/resolve/{customer id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "hlisyyvzm90qg3zd0xcp3", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/qr/customer/{customer id}/resolve/{customer id}\\"\n\npayload = json dumps({\n \\"qr raw\\" \\"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" "rstyh0 oi63fvb5o leot", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/qr/customer/{customer id}/resolve/{customer 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 \\"qr raw\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "5esz2ozvttkcfb6cmhhtj" }, "description" "este endpoint permite leer el qr", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } extensiones para otros paises el servicio permite extender las respuestas para otros países o pagos cross border cuando se detecte un pago cross border cambiará la información del merchant indicando correctamente el país y agregando en el campo "additional info" toda la información extra recabada { "id" "dr8ay5jpaie1m5ncr9ss67", "isstatic" true, "currency" "ars", "total" 15000, "acquirers" \[], "merchantdata" { "accountnumber" "0000000000000000000", "accounttype" "none", "country" "bra", "legalname" "nombre fantasia", "mcc" "xxxx", "name" "nombre fantasia", "reference" "8cec2373 a74b d9ea 62a44e32df079be7", "taxid" "0000000000", "taxidtype" "bra cpf", "zipcode" "" }, "additional info" { "merchantcurrency" "brl", "merchanttotal" 10, "exchangerate" 1 4, "exchangeratelastupdatedat" 1762313608641 }, "localizedorder" {}, "sources" \[] } { "tab" "examples", "url" "https //api interoperable ar/qr/{order id}/plans", "name" "patch plans", "method" "patch", "request" { "pathparameters" \[ { "kind" "required", "name" "order id", "type" "string", "children" \[], "description" "referencia de la cuenta con la cual se debe leer el qr" } ], "queryparameters" \[ { "name" "loc", "kind" "optional", "type" "string", "description" "localización de la respuesta opciones arg", "children" \[] }, { "name" "total", "kind" "optional", "type" "number", "description" "total a pagar este campo es opcional y sólo necesario para pagos con qr estático ", "" "total a pagar este campo es opcional y sólo necesario para pagos con qr estático " } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "p8twq6nthiwhgzuljikpz", "code" "{\n\t\\"supported\\" \[\n\t\t{\n\t\t\t\\"source\\" {\n\t\t\t\t\\"uid\\" \\"csp tzla1wrcmysz9xq2sqat03\\",\n\t\t\t\t\\"type\\" \\"card\\",\n\t\t\t\t\\"data\\" {\n\t\t\t\t\t\\"bin\\" \\"45079900\\"\n\t\t\t\t},\n\t\t\t\t\\"kind\\" \\"customer\\"\n\t\t\t},\n\t\t\t\\"data\\" {\n\t\t\t\t\\"installments\\" \[\n\t\t\t\t\t{\n\t\t\t\t\t\t\\"uid\\" \\"cgq7y9nfz\\",\n\t\t\t\t\t\t\\"count\\" 1,\n\t\t\t\t\t\t\\"description\\" \\"\\",\n\t\t\t\t\t\t\\"name\\" \\"débito\\",\n\t\t\t\t\t\t\\"order\\" 1,\n\t\t\t\t\t\t\\"reference\\" \\"1\\",\n\t\t\t\t\t\t\\"tags\\" \[],\n\t\t\t\t\t\t\\"totals\\" {\n\t\t\t\t\t\t\t\\"currency\\" {\n\t\t\t\t\t\t\t\t\\"exponent\\" 2,\n\t\t\t\t\t\t\t\t\\"isocode\\" \\"032\\",\n\t\t\t\t\t\t\t\t\\"label\\" \\"peso argentino\\",\n\t\t\t\t\t\t\t\t\\"locale\\" \\"es ar\\",\n\t\t\t\t\t\t\t\t\\"symbol\\" \\"$\\",\n\t\t\t\t\t\t\t\t\\"value\\" \\"ars\\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\\"financial\\" {\n\t\t\t\t\t\t\t\t\\"amount\\" 0,\n\t\t\t\t\t\t\t\t\\"percentage\\" 0\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\\"installment\\" {\n\t\t\t\t\t\t\t\t\\"amount\\" 10,\n\t\t\t\t\t\t\t\t\\"count\\" 1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\\"total\\" 10\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\\"source\\" {\n\t\t\t\t\t\\"card\\" {\n\t\t\t\t\t\t\\"issuer\\" {\n\t\t\t\t\t\t\t\\"color\\" \\"#122d98\\",\n\t\t\t\t\t\t\t\\"logo\\" \\"https //res mobbex com/images/sources/png/visa png\\",\n\t\t\t\t\t\t\t\\"metadata\\" null,\n\t\t\t\t\t\t\t\\"name\\" \\"visa\\",\n\t\t\t\t\t\t\t\\"shortname\\" \\"visa\\",\n\t\t\t\t\t\t\t\\"type\\" \\"unknown\\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\\"level\\" \\"classic\\",\n\t\t\t\t\t\t\\"product\\" {\n\t\t\t\t\t\t\t\\"code\\" {\n\t\t\t\t\t\t\t\t\\"length\\" 3,\n\t\t\t\t\t\t\t\t\\"name\\" \\"cvv\\",\n\t\t\t\t\t\t\t\t\\"position\\" 1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\\"gaps\\" \[\n\t\t\t\t\t\t\t\t4,\n\t\t\t\t\t\t\t\t8,\n\t\t\t\t\t\t\t\t12\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"lengths\\" \[\n\t\t\t\t\t\t\t\t16\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"logo\\" \\"https //res mobbex com/images/sources/png/visa png\\",\n\t\t\t\t\t\t\t\\"metadata\\" null,\n\t\t\t\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\t\t\t\\"shortname\\" \\"visa débit\\",\n\t\t\t\t\t\t\t\\"validation\\" \[\n\t\t\t\t\t\t\t\t\\"length\\",\n\t\t\t\t\t\t\t\t\\"exp\\",\n\t\t\t\t\t\t\t\t\\"cvv\\",\n\t\t\t\t\t\t\t\t\\"luhn\\"\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\\"variant\\" \\"debit\\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\t\\"reference\\" \\"visa debit\\",\n\t\t\t\t\t\\"references\\" \[\n\t\t\t\t\t\t\\"visa debit\\"\n\t\t\t\t\t],\n\t\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t\t},\n\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t}\n\t\t}\n\t],\n\t\\"unsupported\\" \[]\n}", "language" "200", "customlabel" "" }, { "id" "q79lt9foy8ee1crml5gyv", "code" "{\n \\"result\\" false,\n}", "language" "500", "customlabel" "" } ], "selectedlanguageid" "p8twq6nthiwhgzuljikpz" }, "examples" { "languages" \[ { "id" "tj27aidbmh18ea78xc 7p", "language" "curl", "code" "curl location globoff request patch 'https //api interoperable ar/qr/{order id}/plans' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "ogpehc8ny7ml0nro2fw9b", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'patch',\n 'url' 'https //api interoperable ar/qr/{order id}/plans',\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" "b5sail61o0pj8olfyu9y9", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'patch',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/qr/{order id}/plans\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "c62idqmwpzl6jv agv82f", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/qr/{order id}/plans\\"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"patch\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "gei9vcerjqcpntuxxql7i", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/qr/{order id}/plans\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http patch new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "tj27aidbmh18ea78xc 7p" }, "description" "", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } } creación de token crear token no es necesario en este flujo y sólo debe ser invocado si se desea hacer un pago con una tarjeta cargada por el cliente al momento del pago { "tab" "examples", "url" "https //api interoperable ar/payments/tokens", "name" "crear token", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "token de acceso" } ], "bodydataparameters" \[ { "kind" "required", "name" "card", "type" "object", "description" "objeto con los datos del tarjeta habiente" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "pqkuxxl 6rlvarinl45tk", "code" "{\n\t\\"created at\\" \\"2024 03 04t10 44 49z\\",\n\t\\"expiry at\\" \\"2024 03 04t10 59 49z\\",\n\t\\"token\\" \\"t\ p0wg66kq9wrpqq9eetiecj\\"\n}", "language" "200", "customlabel" "" }, { "id" "oizzdbf9cxo 43xssxunz", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }", "language" "404", "customlabel" "" } ], "selectedlanguageid" "pqkuxxl 6rlvarinl45tk" }, "examples" { "languages" \[ { "id" "lbdj53f8mjb 0fhgqgtuy", "language" "curl", "code" "curl location 'https //api interoperable ar/payments/tokens' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"card\\" \\"object\\"}'", "customlabel" "" }, { "id" "hr2bsarmmbenjntft9rzm", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api interoperable ar/payments/tokens',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"card\\" \\"object\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "teazcudzxz98obovqdf9c", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"card\\" \\"object\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/payments/tokens\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "3piepgmckzhsn4z jw l", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/payments/tokens\\"\n\npayload = json dumps({\n \\"card\\" \\"object\\"\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" "zu0zbnih5k80ivagafesb", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/payments/tokens\\")\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 \\"card\\" \\"object\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "lbdj53f8mjb 0fhgqgtuy" }, "description" "pagar orden via qr", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } ejemplo de solicitud de creación de token { 	"card" { 	 "holder" { 	 "name" "demo", 	 "identification type" "dni", 	 "identification number" "12123123" 	 }, 	 "card data" { 	 "number" "4507990000000010", 	 "security code" "200", 	 "expiration month" 12, 	 "expiration year" 2032, 	 "entry mode" "manual" 	 } 	} } { "tab" "examples", "url" "https //api interoperable ar/orders/{order id}/payments", "name" "pagar qr", "method" "post", "request" { "pathparameters" \[ { "kind" "required", "name" "order id", "type" "string", "children" \[], "description" "id de la orden sobre la que se realizará el pago " } ], "queryparameters" \[ { "name" "loc", "kind" "optional", "type" "string", "description" "localización de la respuesta opciones arg", "children" \[] } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "token de autorizacio" } ], "bodydataparameters" \[ { "name" "source", "kind" "required", "type" "string", "description" "token del medio de pago con el que se efectùa la transacción ", "children" \[] }, { "name" "installment", "kind" "optional", "type" "string", "description" "identificador del plan de cuotas con el que se procesa la transaccion sólo es requerido para operaciones con tarjetas no se debe enviar en operaciones entre cuentas bancarias o virtuales ", "children" \[] }, { "name" "total", "kind" "optional", "type" "number", "description" "total a pagar este campo es opcional y sólo necesario para pagos con qr abierto en operaciones cross border se debe enviar el monto en la moneda del comercio, si el pago será via pix el monto deberá ser enviado en reales ", "" "total a pagar este campo es opcional y sólo necesario para pagos con qr abierto en operaciones cross border se debe enviar el monto en la moneda del comercio, si el pago será via pix el monto deberá ser enviado en reales " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "pqkuxxl 6rlvarinl45tk", "code" "{\n\t\\"data\\" {\n\t\t\\"data\\" {\n\t\t\t\\"entity\\" {\n\t\t\t\t\\"name\\" \\"prueba 2\\",\n\t\t\t\t\\"uid\\" \\"arg test 123\\"\n\t\t\t},\n\t\t\t\\"payment\\" {\n\t\t\t\t\\"id\\" \\"chd 0kj3npgcc9b49qba7c\\",\n\t\t\t\t\\"reference\\" \\"chd t8tw2j30r3hgufhnne\\",\n\t\t\t\t\\"source\\" {\n\t\t\t\t\t\\"cardholder\\" {\n\t\t\t\t\t\t\\"identification\\" \\"33996953\\",\n\t\t\t\t\t\t\\"name\\" \\"\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"expiration\\" {\n\t\t\t\t\t\t\\"month\\" \\"12\\",\n\t\t\t\t\t\t\\"year\\" \\"34\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"installment\\" {\n\t\t\t\t\t\t\\"amount\\" 10,\n\t\t\t\t\t\t\\"count\\" 1,\n\t\t\t\t\t\t\\"description\\" \\"débito\\",\n\t\t\t\t\t\t\\"reference\\" \\"1\\",\n\t\t\t\t\t\t\\"uid\\" \\"cgq7y9nfz\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\t\\"number\\" \\"45079900 0010\\",\n\t\t\t\t\t\\"reference\\" \\"visa debit\\",\n\t\t\t\t\t\\"transaction\\" {\n\t\t\t\t\t\t\\"authorizationcode\\" \\"\\",\n\t\t\t\t\t\t\\"batchno\\" \\"\\",\n\t\t\t\t\t\t\\"resultcode\\" \\"03\\",\n\t\t\t\t\t\t\\"retrievalreferenceno\\" \\"\\",\n\t\t\t\t\t\t\\"ticketno\\" \\"\\",\n\t\t\t\t\t\t\\"transactionid\\" \\"chd 0kj3npgcc9b49qba7c\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t\t},\n\t\t\t\t\\"status\\" {\n\t\t\t\t\t\\"code\\" \\"500\\",\n\t\t\t\t\t\\"data\\" {},\n\t\t\t\t\t\\"message\\" \\"error en emisor, reintentar operación (cod 03)\\",\n\t\t\t\t\t\\"resultcode\\" \\"03\\",\n\t\t\t\t\t\\"text\\" \\"error\\",\n\t\t\t\t\t\\"view\\" \\"default\\"\n\t\t\t\t},\n\t\t\t\t\\"total\\" 10\n\t\t\t},\n\t\t\t\\"source\\" {\n\t\t\t\t\\"name\\" \\"visa débito\\",\n\t\t\t\t\\"reference\\" \\"visa debit\\",\n\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t},\n\t\t\t\\"view\\" {\n\t\t\t\t\\"type\\" \\"card\\"\n\t\t\t}\n\t\t},\n\t\t\\"id\\" \\"chd 0kj3npgcc9b49qba7c\\",\n\t\t\\"status\\" \\"500\\"\n\t},\n\t\\"result\\" true\n}", "language" "200", "customlabel" "" }, { "id" "oizzdbf9cxo 43xssxunz", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }", "language" "404", "customlabel" "" } ], "selectedlanguageid" "pqkuxxl 6rlvarinl45tk" }, "examples" { "languages" \[ { "id" "u8f jyk4w0ijo3xg97ui ", "language" "curl", "code" "curl location globoff 'https //api interoperable ar/orders/{order id}/payments/{order id}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"source\\" \\"string\\",\\"installment\\" \\"string\\"}'", "customlabel" "" }, { "id" "0 kamhpyb0eiskn m00zf", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api interoperable ar/orders/{order id}/payments/{order id}',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"source\\" \\"string\\",\n \\"installment\\" \\"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" "c004zeyg4ovw 20vdhecx", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"source\\" \\"string\\",\n \\"installment\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/orders/{order id}/payments/{order id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "2h8g3qnyfjcxgquevqijk", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/orders/{order id}/payments/{order id}\\"\n\npayload = json dumps({\n \\"source\\" \\"string\\",\n \\"installment\\" \\"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" "xxnyxl gix2oummozv6jh", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/orders/{order id}/payments/{order 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 \\"source\\" \\"string\\",\n \\"installment\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "u8f jyk4w0ijo3xg97ui " }, "description" "pagar orden via qr", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } operación con tarjeta { 	"source" "csp tzla1wrcmysz9xq2sqat03", 	"installment" "cgq7y9nfz" } operación con cuenta { 	"source" "cst 96fmmyyfoukkg7fjlihktg" } { "tab" "examples", "url" "https //api interoperable ar/orders/{order id}/payments", "name" "devolver operación", "method" "delete", "request" { "pathparameters" \[ { "kind" "required", "name" "order id", "type" "string", "children" \[], "description" "id de la orden sobre la que se realizará el pago " } ], "queryparameters" \[], "headerparameters" \[ { "kind" "optional", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "pqkuxxl 6rlvarinl45tk", "code" "{\n\\"result\\" true,\n\\"status message\\" \\"\\",\n\\"transaction id\\" \\"1cgemkervarwbke49ebre9\\"\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "pqkuxxl 6rlvarinl45tk" }, "examples" { "languages" \[ { "id" "j hjgr5lzjkpj 9tieafm", "language" "curl", "code" "curl location globoff request delete 'https //api interoperable ar/orders/{order id}/payments/{order id}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "rvwgk5g7gtfr cquhjepw", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'delete',\n 'url' 'https //api interoperable ar/orders/{order id}/payments/{order 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" "y3hp8v1n9p24gnbhasvie", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'delete',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/orders/{order id}/payments/{order id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "otn3ub732ut9f7rmtoyp ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/orders/{order id}/payments/{order id}\\"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"delete\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "5ugfm4mbpudmghlvo6itk", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/orders/{order id}/payments/{order id}\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http delete new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "j hjgr5lzjkpj 9tieafm" }, "description" "devolución de la orden", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }

