|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "IN-D Payables", |
| 5 | + "description": "IN-D Payables process invoices to extract only the useful details like invoice numbers, PO number, vendor name, etc., and the line items in the table automatically without a need to input a template. The IN-D Payables, can process multiple invoices at once directly from the source you choose from, and send the relevant fields to the accounting software connected in the flow for accounting purposes in a matter of seconds.", |
| 6 | + "version": "1.0", |
| 7 | + "contact": { |
| 8 | + "name": "IN-D Support", |
| 9 | + "url": "https://one.in-d.ai/developer/", |
| 10 | + "email": "explore@in-d.ai" |
| 11 | + } |
| 12 | + }, |
| 13 | + "host": "api.payables.in-d.ai", |
| 14 | + "basePath": "/api", |
| 15 | + "schemes": [ |
| 16 | + "https" |
| 17 | + ], |
| 18 | + "consumes": [], |
| 19 | + "produces": [], |
| 20 | + "paths": { |
| 21 | + "/extract_data": { |
| 22 | + "post": { |
| 23 | + "responses": { |
| 24 | + "200": { |
| 25 | + "description": "success", |
| 26 | + "schema": { |
| 27 | + "type": "object", |
| 28 | + "properties": { |
| 29 | + "result": { |
| 30 | + "type": "array", |
| 31 | + "items": { |
| 32 | + "type": "object", |
| 33 | + "properties": { |
| 34 | + "file_name": { |
| 35 | + "type": "string", |
| 36 | + "description": "file_name" |
| 37 | + }, |
| 38 | + "invoice_number": { |
| 39 | + "type": "object", |
| 40 | + "properties": { |
| 41 | + "value": { |
| 42 | + "type": "string", |
| 43 | + "description": "A reference generated by the supplier which uniquely identifies a document, e.g. INV-1447" |
| 44 | + }, |
| 45 | + "conf_score": { |
| 46 | + "type": "number", |
| 47 | + "format": "float", |
| 48 | + "description": "confidence score for invoice number", |
| 49 | + "title": "conf_score" |
| 50 | + } |
| 51 | + }, |
| 52 | + "description": "invoice number with confidence score" |
| 53 | + }, |
| 54 | + "invoice_date": { |
| 55 | + "type": "object", |
| 56 | + "properties": { |
| 57 | + "value": { |
| 58 | + "type": "string", |
| 59 | + "description": "The date at which the documentwas released or printed. Generally distinct from the due date for bills and may be presented in a variety of formats,e.g. 11st December, 2018 or 11-12-2018 in invoices. However, thereturned date always follows a stdformat of yyyy-mm-dd." |
| 60 | + }, |
| 61 | + "conf_score": { |
| 62 | + "type": "number", |
| 63 | + "format": "float", |
| 64 | + "description": "confidence score for invoice date", |
| 65 | + "title": "conf_score" |
| 66 | + } |
| 67 | + }, |
| 68 | + "description": "invoice date with confidence score" |
| 69 | + }, |
| 70 | + "po_number": { |
| 71 | + "type": "object", |
| 72 | + "properties": { |
| 73 | + "value": { |
| 74 | + "type": "string", |
| 75 | + "description": "A reference generated by thebuyer which uniquely identifies aproduct, e.g. PO-112345." |
| 76 | + }, |
| 77 | + "conf_score": { |
| 78 | + "type": "number", |
| 79 | + "format": "float", |
| 80 | + "description": "confidence score for po number", |
| 81 | + "title": "conf_score" |
| 82 | + } |
| 83 | + }, |
| 84 | + "description": "po number with confidence score" |
| 85 | + }, |
| 86 | + "vendor_name": { |
| 87 | + "type": "object", |
| 88 | + "properties": { |
| 89 | + "value": { |
| 90 | + "type": "string", |
| 91 | + "description": "Name of a supplier. A name used to describe a Company or Individual." |
| 92 | + }, |
| 93 | + "conf_score": { |
| 94 | + "type": "number", |
| 95 | + "format": "float", |
| 96 | + "description": "confidence score for vendor name", |
| 97 | + "title": "conf_score" |
| 98 | + } |
| 99 | + }, |
| 100 | + "description": "vendor name with confidence score" |
| 101 | + }, |
| 102 | + "vendor_address": { |
| 103 | + "type": "object", |
| 104 | + "properties": { |
| 105 | + "value": { |
| 106 | + "type": "string", |
| 107 | + "description": "Address of a supplier. It refers to the location where the Vendor\\u2019s office exists. For e.g. XYZ street,Chennai,India" |
| 108 | + }, |
| 109 | + "conf_score": { |
| 110 | + "type": "number", |
| 111 | + "format": "float", |
| 112 | + "description": "confidence score for vendor address", |
| 113 | + "title": "conf_score" |
| 114 | + } |
| 115 | + }, |
| 116 | + "description": "vendor address with confidence score" |
| 117 | + }, |
| 118 | + "total_amount": { |
| 119 | + "type": "object", |
| 120 | + "properties": { |
| 121 | + "value": { |
| 122 | + "type": "string", |
| 123 | + "description": "Total Amount (including taxes)" |
| 124 | + }, |
| 125 | + "conf_score": { |
| 126 | + "type": "number", |
| 127 | + "format": "float", |
| 128 | + "description": "confidence score for total amount", |
| 129 | + "title": "conf_score" |
| 130 | + } |
| 131 | + }, |
| 132 | + "description": "Total Amount (including taxes) with confidence score" |
| 133 | + }, |
| 134 | + "subtotal_amount": { |
| 135 | + "type": "object", |
| 136 | + "properties": { |
| 137 | + "value": { |
| 138 | + "type": "string", |
| 139 | + "description": "Base Amount (excluding taxes)" |
| 140 | + }, |
| 141 | + "conf_score": { |
| 142 | + "type": "number", |
| 143 | + "format": "float", |
| 144 | + "description": "confidence score for base amount (excluding taxes)", |
| 145 | + "title": "conf_score" |
| 146 | + } |
| 147 | + }, |
| 148 | + "description": "Base Amount (excluding taxes) with confidence score" |
| 149 | + }, |
| 150 | + "tax_amount": { |
| 151 | + "type": "object", |
| 152 | + "properties": { |
| 153 | + "value": { |
| 154 | + "type": "string", |
| 155 | + "description": "Total Tax Amount" |
| 156 | + }, |
| 157 | + "conf_score": { |
| 158 | + "type": "number", |
| 159 | + "format": "float", |
| 160 | + "description": "confidence score for total tax amount", |
| 161 | + "title": "conf_score" |
| 162 | + } |
| 163 | + }, |
| 164 | + "description": "Total Tax Amount with confidence score" |
| 165 | + }, |
| 166 | + "cgst": { |
| 167 | + "type": "object", |
| 168 | + "properties": { |
| 169 | + "value": { |
| 170 | + "type": "string", |
| 171 | + "description": "Central GST" |
| 172 | + }, |
| 173 | + "conf_score": { |
| 174 | + "type": "number", |
| 175 | + "format": "float", |
| 176 | + "description": "confidence score for Central GST", |
| 177 | + "title": "conf_score" |
| 178 | + } |
| 179 | + }, |
| 180 | + "description": "Central GST with confidence score" |
| 181 | + }, |
| 182 | + "sgst": { |
| 183 | + "type": "object", |
| 184 | + "properties": { |
| 185 | + "value": { |
| 186 | + "type": "string", |
| 187 | + "description": "State GST" |
| 188 | + }, |
| 189 | + "conf_score": { |
| 190 | + "type": "number", |
| 191 | + "format": "float", |
| 192 | + "description": "confidence score for State GST", |
| 193 | + "title": "conf_score" |
| 194 | + } |
| 195 | + }, |
| 196 | + "description": "State GST with confidence score" |
| 197 | + }, |
| 198 | + "igst": { |
| 199 | + "type": "object", |
| 200 | + "properties": { |
| 201 | + "value": { |
| 202 | + "type": "string", |
| 203 | + "description": "Integrated GST" |
| 204 | + }, |
| 205 | + "conf_score": { |
| 206 | + "type": "number", |
| 207 | + "format": "float", |
| 208 | + "description": "confidence score with Integrated GST", |
| 209 | + "title": "conf_score" |
| 210 | + } |
| 211 | + }, |
| 212 | + "description": "Integrated GST with confidence score" |
| 213 | + }, |
| 214 | + "table_data": { |
| 215 | + "type": "object", |
| 216 | + "properties": { |
| 217 | + "columns": { |
| 218 | + "type": "array", |
| 219 | + "items": { |
| 220 | + "type": "string" |
| 221 | + }, |
| 222 | + "description": "columns" |
| 223 | + }, |
| 224 | + "data": { |
| 225 | + "type": "array", |
| 226 | + "items": { |
| 227 | + "type": "array", |
| 228 | + "items": { |
| 229 | + "type": "string" |
| 230 | + } |
| 231 | + }, |
| 232 | + "description": "data" |
| 233 | + } |
| 234 | + }, |
| 235 | + "description": "Quantity of the item, Price of each unit of line item, Total Price that includes all the line- item quantities.Total Price = Quantity * Unit Price" |
| 236 | + } |
| 237 | + } |
| 238 | + }, |
| 239 | + "description": "result" |
| 240 | + } |
| 241 | + } |
| 242 | + } |
| 243 | + }, |
| 244 | + "400": { |
| 245 | + "description": "invalid base64 string", |
| 246 | + "schema": { |
| 247 | + "type": "object", |
| 248 | + "properties": { |
| 249 | + "message": { |
| 250 | + "type": "string", |
| 251 | + "description": "message" |
| 252 | + } |
| 253 | + } |
| 254 | + } |
| 255 | + }, |
| 256 | + "401": { |
| 257 | + "description": "invalid api key", |
| 258 | + "schema": { |
| 259 | + "type": "object", |
| 260 | + "properties": { |
| 261 | + "message": { |
| 262 | + "type": "string", |
| 263 | + "description": "message" |
| 264 | + } |
| 265 | + } |
| 266 | + } |
| 267 | + }, |
| 268 | + "403": { |
| 269 | + "description": "authorization headers or api key not given", |
| 270 | + "schema": { |
| 271 | + "type": "object", |
| 272 | + "properties": { |
| 273 | + "message": { |
| 274 | + "type": "string", |
| 275 | + "description": "message" |
| 276 | + } |
| 277 | + } |
| 278 | + } |
| 279 | + }, |
| 280 | + "500": { |
| 281 | + "description": "internal error", |
| 282 | + "schema": { |
| 283 | + "type": "object", |
| 284 | + "properties": { |
| 285 | + "message": { |
| 286 | + "type": "string", |
| 287 | + "description": "message" |
| 288 | + } |
| 289 | + } |
| 290 | + } |
| 291 | + } |
| 292 | + }, |
| 293 | + "summary": "invoice process", |
| 294 | + "operationId": "InvoiceCapture", |
| 295 | + "description": "Process invoices to extract only the useful details like invoice numbers, PO number, vendor name, etc., and the line items in the table automatically without a need to input a template.", |
| 296 | + "parameters": [ |
| 297 | + { |
| 298 | + "name": "Content-Type", |
| 299 | + "in": "header", |
| 300 | + "required": true, |
| 301 | + "type": "string", |
| 302 | + "default": "application/json", |
| 303 | + "description": "Content-Type of POST request", |
| 304 | + "x-ms-summary": "Content-Type of request" |
| 305 | + }, |
| 306 | + { |
| 307 | + "name": "body", |
| 308 | + "in": "body", |
| 309 | + "required": true, |
| 310 | + "schema": { |
| 311 | + "type": "array", |
| 312 | + "items": { |
| 313 | + "type": "object", |
| 314 | + "properties": { |
| 315 | + "payload": { |
| 316 | + "type": "string", |
| 317 | + "description": "payload", |
| 318 | + "title": "Base64 content of file", |
| 319 | + "format": "byte" |
| 320 | + } |
| 321 | + }, |
| 322 | + "required": [ |
| 323 | + "payload" |
| 324 | + ] |
| 325 | + }, |
| 326 | + "required": [ |
| 327 | + "items" |
| 328 | + ] |
| 329 | + } |
| 330 | + } |
| 331 | + ] |
| 332 | + } |
| 333 | + } |
| 334 | + }, |
| 335 | + "x-ms-connector-metadata": [ |
| 336 | + { |
| 337 | + "propertyName": "Website", |
| 338 | + "propertyValue": "https://www.in-d.ai" |
| 339 | + }, |
| 340 | + { |
| 341 | + "propertyName": "Privacy policy", |
| 342 | + "propertyValue": "https://www.in-d.ai/privacy-policy" |
| 343 | + }, |
| 344 | + { |
| 345 | + "propertyName": "Categories", |
| 346 | + "propertyValue": "AI;IT Operations" |
| 347 | + } |
| 348 | + ], |
| 349 | + "definitions": {}, |
| 350 | + "parameters": {}, |
| 351 | + "responses": {}, |
| 352 | + "securityDefinitions": { |
| 353 | + "API Key": { |
| 354 | + "type": "apiKey", |
| 355 | + "in": "header", |
| 356 | + "name": "x-api-key" |
| 357 | + } |
| 358 | + }, |
| 359 | + "security": [ |
| 360 | + { |
| 361 | + "API Key": [] |
| 362 | + } |
| 363 | + ], |
| 364 | + "tags": [] |
| 365 | +} |
0 commit comments