Flujo de Pago - CIMPRA 535 ( ARG )
5 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 la orden servicio >>interoperable llamada a patch plans interoperable >>aplicacion devuelve los planes calculados aplicacion >>servicio elije medio de pago servicio >>interoperable crea el token de la tarjeta a utilizar servicio >>interoperable ejecuta el pago interoperable >>aplicacion devuelve el resultado del pago esta especificación está diseñada sólo para argentina en base al documento cimpra 535 para utilizar la api genérica, completa y múlti país dirigirse a "flujo de pago" { "tab" "examples", "url" "https //api interoperable ar/qr/resolve?loc=arg", "name" "leer/resolver qr sin cuenta/billetera habiente", "method" "post", "request" { "pathparameters" \[], "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" "fields", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "posreference", "kind" "optional", "type" "string", "description" "referencia del pos" }, { "name" "walletid", "kind" "optional", "type" "string", "description" "identificador de billetera (wallet id) " } ] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "p8twq6nthiwhgzuljikpz", "code" "{\n\t\\"additional info\\" {},\n\t\\"amount\\" {\n\t\t\\"currency\\" \\"test\\",\n\t\t\\"value\\" 999\n\t},\n\t\\"merchant\\" {\n\t\t\\"account\\" {\n\t\t\t\\"cvu\\" \\"xxxxxxxxxxxxxxxxx\\"\n\t\t},\n\t\t\\"category\\" \\"small\\",\n\t\t\\"cuit\\" \\"20121231234\\",\n\t\t\\"field of activity\\" \\"7399\\",\n\t\t\\"free tier\\" true,\n\t\t\\"image\\" \\"https //res mobbex com/images/icons/def store png\\",\n\t\t\\"iva exempt\\" true,\n\t\t\\"mcc\\" \\"7399\\",\n\t\t\\"name\\" \\"prueba 2\\",\n\t\t\\"zip\\" \\"c1000aaa\\"\n\t},\n\t\\"order\\" {\n\t\t\\"id\\" \\"88xi8za3fdrul2p1ri88a7\\",\n\t\t\\"items\\" {\n\t\t\t\\"currency id\\" \\"test\\",\n\t\t\t\\"description\\" \\"compra en prueba 2\\",\n\t\t\t\\"quantity\\" 1,\n\t\t\t\\"title\\" \\"compra en prueba 2\\",\n\t\t\t\\"unit price\\" 999\n\t\t},\n\t\t\\"total amount\\" 999\n\t},\n\t\\"payment methods allowed\\" \[\n\t\t{\n\t\t\t\\"id\\" \\"card\\"\n\t\t}\n\t],\n\t\\"qr id\\" \\"88xi8za3fdrul2p1ri88a7\\"\n}", "language" "200", "customlabel" "" }, { "id" "q79lt9foy8ee1crml5gyv", "code" "{\n \\"code\\" \\"500\\",\n \\"message\\" \\"fat err\\"\n}", "language" "500", "customlabel" "" } ], "selectedlanguageid" "p8twq6nthiwhgzuljikpz" }, "examples" { "languages" \[ { "id" "i vvt862u p zebqrtpdl", "language" "curl", "code" "curl location 'https //api interoperable ar/qr/resolve' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"qr raw\\" \\"string\\"}'", "customlabel" "" }, { "id" "cqypg5 crhhusbgicudgy", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api interoperable ar/qr/resolve',\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" "alddqrshxeqerk7miog3n", "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/resolve\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" " abyd137dohcwis7pazp", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/qr/resolve\\"\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" "f5ydmefwndga2bow6amnt", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/qr/resolve\\")\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" "i vvt862u p zebqrtpdl" }, "description" "este endpoint permite leer el qr", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //api interoperable ar/qr/{order id}/plans?loc=arg", "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" \[] } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "p8twq6nthiwhgzuljikpz", "code" "{\n\t\\"additional info\\" {},\n\t\\"supported bins\\" \[\n\t\t{\n\t\t\t\\"brand id\\" \\"\\",\n\t\t\t\\"type\\" \\"debit\\",\n\t\t\t\\"original bins\\" \[\n\t\t\t\t\\"45079900\\"\n\t\t\t],\n\t\t\t\\"plans\\" \[\n\t\t\t\t{\n\t\t\t\t\t\\"id\\" \\"bqrtpg kc\\",\n\t\t\t\t\t\\"type\\" \\"adquirente\\",\n\t\t\t\t\t\\"description\\" \\"débito\\",\n\t\t\t\t\t\\"installments\\" 1,\n\t\t\t\t\t\\"total amount\\" {\n\t\t\t\t\t\t\\"value\\" 10,\n\t\t\t\t\t\t\\"currency\\" \\"ars\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"installment amount\\" {\n\t\t\t\t\t\t\\"value\\" 10,\n\t\t\t\t\t\t\\"currency\\" \\"ars\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"financial info\\" {\n\t\t\t\t\t\t\\"total fianancial cost\\" \\"0 00\\",\n\t\t\t\t\t\t\\"nominal annual rate\\" \\"0 00\\"\n\t\t\t\t\t},\n\t\t\t\t\t\\"requiered fields\\" \[\n\t\t\t\t\t\t\\"payment method card holder name\\",\n\t\t\t\t\t\t\\"payment method card holder identification number\\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t],\n\t\\"unsupported bins\\" \[\n\t\t\\"44456098\\"\n\t]\n}", "language" "200", "customlabel" "" }, { "id" "q79lt9foy8ee1crml5gyv", "code" "{\n \\"result\\" false,\n}", "language" "500", "customlabel" "" } ], "selectedlanguageid" "p8twq6nthiwhgzuljikpz" }, "examples" { "languages" \[ { "id" "v1fikvb6b9sq3sz5kg5dm", "language" "curl", "code" "curl location globoff request patch 'https //api interoperable ar/qr/{order id}/plans/{order id}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "qw7c325mzkttcp33c3vjh", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'patch',\n 'url' 'https //api interoperable ar/qr/{order id}/plans/{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" "bbbhuowmfovwl1quao l7", "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/{order id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "kzlnnuzsuze4z9pwwgxts", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api interoperable ar/qr/{order id}/plans/{order id}\\"\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" "ixnlx0saq9pjkjggfnzif", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api interoperable ar/qr/{order id}/plans/{order id}\\")\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" "v1fikvb6b9sq3sz5kg5dm" }, "description" "", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } } { "tab" "examples", "url" "https //api interoperable ar/payments/tokens?loc=arg", "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" }, { "name" "wallet", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "brand wallet id", "kind" "optional", "type" "string", "description" "wallet id asignado a la billetera/banco" } ] } ], "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" "body parameter", "value" "bodydataparameters" } } 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?loc=arg", "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" "required", "type" "string", "description" "identificador del plan de cuotas con el que se procesa la transaccio", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "pqkuxxl 6rlvarinl45tk", "code" "{\n\t\\"payment id\\" \\"tav44ox7uqhyhlleoanulx\\",\n\t\\"order id\\" \\"f63khxzt3alib1lt0i4nto\\",\n\t\\"status\\" \\"approved\\",\n\t\\"status code\\" \\"approved\\",\n\t\\"amount\\" {\n\t\t\\"value\\" 10,\n\t\t\\"currency\\" \\"ars\\"\n\t},\n\t\\"authorized amount\\" {\n\t\t\\"value\\" 10,\n\t\t\\"currency\\" \\"ars\\"\n\t},\n\t\\"plan\\" {\n\t\t\\"id\\" \\"jk55pydcz\\",\n\t\t\\"type\\" \\"adquirente\\",\n\t\t\\"description\\" \\"1 cuota\\",\n\t\t\\"installments\\" 1,\n\t\t\\"total amount\\" {\n\t\t\t\\"value\\" 10,\n\t\t\t\\"currency\\" \\"ars\\"\n\t\t},\n\t\t\\"installment amount\\" {\n\t\t\t\\"value\\" 10,\n\t\t\t\\"currency\\" \\"ars\\"\n\t\t},\n\t\t\\"financial info\\" {\n\t\t\t\\"total fianancial cost\\" \\"0 00\\",\n\t\t\t\\"nominal annual rate\\" \\"0 00\\"\n\t\t}\n\t},\n\t\\"card\\" {\n\t\t\\"original bin\\" \\"53236299\\",\n\t\t\\"original last4\\" \\"1008\\",\n\t\t\\"type\\" \\"card\\",\n\t\t\\"brand id\\" \\"mastercard\\",\n\t\t\\"issuer id\\" \\"\\",\n\t\t\\"holder\\" {\n\t\t\t\\"name\\" \\"demo\\",\n\t\t\t\\"identification type\\" \\"dni\\",\n\t\t\t\\"identification number\\" \\"12123123\\"\n\t\t}\n\t},\n\t\\"wallet\\" {\n\t\t\\"brand wallet id\\" \\"20121231234\\",\n\t\t\\"name\\" \\"prueba wallet\\",\n\t\t\\"provider\\" \\"string\\",\n\t\t\\"user\\" {\n\t\t\t\\"device id\\" \\"12123123\\",\n\t\t\t\\"email\\" \\"user\@example com\\",\n\t\t\t\\"identification number\\" \\"12123123\\",\n\t\t\t\\"identification type\\" \\"dni\\",\n\t\t\t\\"phone\\" \\"12123123\\"\n\t\t}\n\t},\n\t\\"authorization code\\" \\"594461\\",\n\t\\"refunds\\" \[],\n\t\\"created at\\" \\"2024 02 26t00 28 09 716z\\",\n\t\\"updated at\\" \\"2024 02 26t00 28 10 726z\\",\n\t\\"additional info\\" {}\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" } } ejemplo de solicitud de pago { "plan" { "id" "bqrtpg kc", "type" "adquirente", "description" "débito", "installments" 1, "total amount" { "value" 10, "currency" "ars" }, "installment amount" { "value" 10, "currency" "ars" } }, "payment method" { "card" { "acceptor token" "t 8f2x2twoufkoztax0vp0c5" }, "wallet" { "name" "string", "provider" "string", "brand wallet id" "string", "user" { "email" "user\@example com", "phone" "string", "device id" "string", "identification type" "dni", "identification number" "string" } } }, "additional info" {} } respuesta con localización argentina { "payment id" "vobhx6h0o3bxs7ksy8z1fk", "order id" "9ztd998uvuhruqfqjvsfb3", "status" "approved", "status code" "approved", "amount" { "value" 10, "currency" "ars" }, "authorized amount" { "value" 10, "currency" "ars" }, "plan" { "id" "bqrtpg kc", "type" "adquirente", "description" "débito", "installments" 1, "total amount" { "value" 10, "currency" "ars" }, "installment amount" { "value" 10, "currency" "ars" }, "financial info" { "total fianancial cost" "00 00", "nominal annual rate" "00 00" } }, "card" { "original bin" "45079900", "original last4" "0010", "type" "debito", "brand id" "", "issuer id" "", "holder" { "name" "demo", "identification type" "dni", "identification number" "12123123" } }, "wallet" { "name" "string", "provider" "string", "brand wallet id" "string", "user" { "email" "user\@example com", "phone" "string", "device id" "string", "identification type" "dni", "identification number" "string" } }, "authorization code" "11111111", "refunds" \[], "created at" "2023 10 26t17 26 03 953z", "updated at" "2023 10 26t17 26 03 953z", "additional info" {} } { "tab" "examples", "url" "https //api interoperable ar/orders/{order id}/payments?loc=arg", "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\\"transaction id\\" \\"1cgemkervarwbke49ebre9\\"\n}", "language" "200", "customlabel" "" }, { "id" "oizzdbf9cxo 43xssxunz", "code" "", "language" "403", "customlabel" "" } ], "selectedlanguageid" "oizzdbf9cxo 43xssxunz" }, "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" } }


