Desarrolladores
Información General
Devoluciones
{ "tab" "examples", "url" "https //api bdp gire com/p/operations/{id}/refund", "name" "anulación / devolución total", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "required", "name" "id", "type" "string", "description" "id de la operación que se intenta devolver " } ], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "clave api de su aplicación " }, { "kind" "required", "name" "x access token", "type" "string", "description" "token de acceso a la entidad " } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "lmn7auxnk k0ejvqs1ctt", "code" "{\n \\"result\\" true,\n \\"status message\\" \\"aprobado\\"\n}", "language" "200" } ], "selectedlanguageid" "lmn7auxnk k0ejvqs1ctt" }, "examples" { "languages" \[ { "id" "lp8nsm8r7hai2uktk4xag", "language" "curl", "code" "curl request get \\\\\n url https //api bdp gire com/p/operations/nfkvurrux/refund \\\\\n header 'cache control no cache' \\\\\n header 'x api key zj8lftbx6ba8d611e9io13fdzawj0qmko1hn1yij' \\\\\n header 'x access token d31f0721 2f85 44e7 bcc6 15e19d1a53cc'" }, { "id" "utci y1 wepsueu0rddvd", "language" "javascript", "code" "var xhr = new xmlhttprequest();\nxhr withcredentials = true;\nxhr addeventlistener(\\"readystatechange\\", function () {\n if (this readystate === 4) {\n console log(this responsetext);\n }\n});\nxhr open(\\"get\\", \\"https //api bdp gire com/p/operations/nfkvurrux/refund\\");\nxhr setrequestheader(\\"x api key\\", \\"zj8lftbx6ba8d611e9io13fdzawj0qmko1hn1yij\\");\nxhr setrequestheader(\\"x access token\\", \\"d31f0721 2f85 44e7 bcc6 15e19d1a53cc\\");\nxhr setrequestheader(\\"cache control\\", \\"no cache\\");\nxhr send();" }, { "id" "hl7ghjtqrxfn 3ojcvxk9", "language" "php", "code" "\<?php\n$request = new httprequest();\n$request >seturl('https //api bdp gire com/p/operations/nfkvurrux/refund');\n$request >setmethod(http meth get);\n$request >setheaders(array(\n 'cache control' => 'no cache',\n 'content type' => 'application/json',\n 'x access token' => 'd31f0721 2f85 44e7 bcc6 15e19d1a53cc',\n 'x api key' => 'zj8lftbx6ba8d611e9io13fdzawj0qmko1hn1yij'\n));\ntry {\n $response = $request >send();\n echo $response >getbody();\n} catch (httpexception $ex) {\n echo $ex;\n}\n?>" } ], "selectedlanguageid" "lp8nsm8r7hai2uktk4xag" }, "description" "mediante este llamado a nuestro api podrás procesar la devolución total o anulación de una compra en estado pago ", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } } si la anulación/devolución total se realiza en el día el webhook devolverá 601 (cancelado) en el caso de que se realice al otro día 602 (devuelto) { "tab" "request", "url" "https //api bdp gire com/p/operations/{id}/refund", "name" "devolución total con opciones o parcial", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "required", "name" "id", "type" "string", "description" "id de la operación que se intenta devolver " } ], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "clave api de su aplicación " }, { "kind" "required", "name" "x access token", "type" "string", "description" "token de acceso" } ], "bodydataparameters" \[ { "kind" "optional", "name" "total", "type" "number", "description" "monto que se devolverá si no se envía se devolverá el total de la operación formato xxx xx donde el punto es el separador decimal " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "pajl39m5wcarml yp3cmw", "code" "{\n \\"result\\" true,\n \\"status message\\" \\"aprobado\\"\n}", "language" "200" } ], "selectedlanguageid" "pajl39m5wcarml yp3cmw" }, "examples" { "languages" \[ { "id" "abqab8yw3vowtmrinfah ", "language" "javascript", "code" "var data = json stringify({\n \\"total\\" 100\n});\n\nvar xhr = new xmlhttprequest();\nxhr withcredentials = true;\n\nxhr addeventlistener(\\"readystatechange\\", function() {\n if(this readystate === 4) {\n console log(this responsetext);\n }\n});\n\nxhr open(\\"post\\", \\"https //api bdp gire com/p/operations/91miuu1em/refund\\");\nxhr setrequestheader(\\"x api key\\", \\"zj8lftbx6ba8d611e9io13fdzawj0qmko1hn1yij\\");\nxhr setrequestheader(\\"x access token\\", \\"d31f0721 2f85 44e7 bcc6 15e19d1a53cc\\");\nxhr setrequestheader(\\"content type\\", \\"application/json\\");\n\nxhr send(data);" }, { "id" "2vppmuj6nxax5xh3g bu1", "language" "php", "code" "\<?php\n\n$curl = curl init();\n\ncurl setopt array($curl, array(\n curlopt url => 'https //api bdp gire com/p/operations/91miuu1em/refund',\n curlopt returntransfer => true,\n curlopt encoding => '',\n curlopt maxredirs => 10,\n curlopt timeout => 0,\n curlopt followlocation => true,\n curlopt http version => curl http version 1 1,\n curlopt customrequest => 'post',\n curlopt postfields =>'{\n \\"total\\" 100\n}',\n curlopt httpheader => array(\n 'x api key zj8lftbx6ba8d611e9io13fdzawj0qmko1hn1yij',\n 'x access token d31f0721 2f85 44e7 bcc6 15e19d1a53cc',\n 'content type application/json'\n ),\n));\n\n$response = curl exec($curl);\n\ncurl close($curl);\necho $response;\n" } ], "selectedlanguageid" "abqab8yw3vowtmrinfah " }, "description" "mediante este llamado a nuestro api podrás procesar la devolución parcial de una compra en estado pago es importante aclarar que no todos los medios de pago soportan anulación o devolución del monto abonado ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "id of the cake retrieved" } ] } si la devolución parcial se trata de realizar en el mismo día, dará error únicamente se puede realizar al otro día y el webhook será codigo 200, ya que se sigue encontrando parcialmente aprobada