Crossborder
2 min
aqui se definen los endoints adicionales a la operatoria cross border exchange rate { "name" "exchange", "method" "get", "url" "https //api interoperable ar/crossborder/exchange/\ target/\ base", "description" "permite conocer la cotización de una moneda con respecto a la moneda de la billetera/banco ", "tab" "examples", "examples" { "languages" \[ { "id" "sajgzttoxrt0hpkliac7v", "language" "curl", "code" "curl location g request get 'https //api interoperable ar/customer/{customer id}/operation' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "qiyvgg7b4jc jddaowkce", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api interoperable ar/customer/{customer id}/operation',\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" "yjl x rqtxow19p lzwe", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api interoperable ar/customer/{customer id}/operation\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "akx2 rgf7kbk2k0gk97e", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/customer/{customer id}/operation\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "bpcle0qq3ia 1hvpgkonx", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/customer/{customer id}/operation\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "sajgzttoxrt0hpkliac7v" }, "results" { "languages" \[ { "id" " cknmsaso g26uxa iaoz", "language" "200", "customlabel" "", "code" "{\n \\"result\\" true,\n \\"data\\" \[{\n \\"status\\" 200,\n \\"transaction id\\" \\"1cgemkervarwbke49ebre9\\",\n \\"createdat\\" 1693835594000\n \\"updatedat\\" 1693835594000\n }, {\n \\"status\\" 200,\n \\"transaction id\\" \\"1cgemkervarwbke49ebre9\\",\n \\"createdat\\" 1693835594000\n \\"updatedat\\" 1693835594000\n }]\n}" }, { "id" "iklvfdmzjsyla6uoaptsq", "language" "404", "customlabel" "", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }" } ], "selectedlanguageid" " cknmsaso g26uxa iaoz" }, "request" { "pathparameters" \[ { "name" "target", "kind" "required", "type" "string", "description" "moneda de la cual se quiere obtener el cambio", "" "moneda de la cual se quiere obtener el cambio" }, { "name" "base", "kind" "optional", "type" "string", "description" "moneda base cuando sea diferente a la de la billetera o banco este parámetro es opcional", "" "moneda base cuando sea diferente a la de la billetera o banco este parámetro es opcional" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } } { "targetrate" 10, "lastupdatedat" 1762313608641 }
