Agregadores y PSPaaS
Documentos
1 min
este módulo permite la creación de documentos para un usuario o entidad los mismos serán visualizados por el usuario en "mis documentos" en la consola { "name" "crear documento", "method" "get", "url" "https //{suga id} sugaway io/p/document", "description" "crear documento/s", "tab" "examples", "examples" { "languages" \[ { "id" " 2 qjxcuwafyynklcqzuf", "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" " 2 qjxcuwafyynklcqzuf" }, "results" { "languages" \[ { "id" "7r2xrxjaz5b mtku 0euy", "language" "200", "customlabel" "", "code" "{\n \\"name\\" \\"cake's name\\",\n}" }, { "id" "ksivy976abbty6lig549w", "language" "404", "customlabel" "", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}" } ], "selectedlanguageid" "7r2xrxjaz5b mtku 0euy" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "type", "kind" "optional", "type" "string", "description" "tipo de documento valores posibles invoice, report, certificate, other", "children" \[] }, { "name" "visibility", "kind" "optional", "type" "string", "description" "visibilidad del documento valores posibles entity, user", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "documents" \[ { "entity" "ref / uid", "type" "report", "visibility" "entity", "folder" "/daily reports/2020/10/5", "reference" "", "name" "reporte diario", "description" "reporte del día 2020 10 5", "notification" { "send" true, "to" "demo\@mobbex com", "subject" "su reporte diario fue generado" }, "period" { "day" 5, "month" 10, "year" 2020 }, "file" { "uri" "https //dev/daily reports/2020/10/5/api call xlsx", "contenttype" "application/vnd openxmlformats officedocument spreadsheetml sheet", "name" "api call xlsx" } } ] }