{
 "openapi": "3.1.0",
 "info": {
  "title": "Gstr2b lines (India statutory)",
  "version": "20261030b",
  "description": "Read and maintain gstr2b lines records (india.gstr2b_detail)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "gstr2b-lines": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "import_id": {
      "type": "string",
      "format": "uuid",
      "description": "Import id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "line_no": {
      "type": "integer",
      "description": "Line no",
      "readOnly": true
     },
     "section": {
      "type": "string",
      "description": "Section",
      "readOnly": true
     },
     "supplier_gstin": {
      "type": "string",
      "description": "Supplier gstin",
      "readOnly": true
     },
     "supplier_name": {
      "type": "string",
      "description": "Supplier name",
      "readOnly": true
     },
     "document_no": {
      "type": "string",
      "description": "Document no",
      "readOnly": true
     },
     "document_date": {
      "type": "string",
      "format": "date",
      "description": "Document date",
      "readOnly": true
     },
     "document_type": {
      "type": "string",
      "description": "Document type",
      "readOnly": true
     },
     "place_of_supply": {
      "type": "string",
      "description": "Place of supply",
      "readOnly": true
     },
     "is_reverse_charge": {
      "type": "boolean",
      "description": "Is reverse charge",
      "readOnly": true
     },
     "itc_available": {
      "type": "string",
      "description": "Itc available",
      "readOnly": true
     },
     "taxable_value": {
      "type": "string",
      "format": "decimal",
      "description": "Taxable value",
      "readOnly": true
     },
     "igst": {
      "type": "string",
      "format": "decimal",
      "description": "Igst",
      "readOnly": true
     },
     "cgst": {
      "type": "string",
      "format": "decimal",
      "description": "Cgst",
      "readOnly": true
     },
     "sgst": {
      "type": "string",
      "format": "decimal",
      "description": "Sgst",
      "readOnly": true
     },
     "cess": {
      "type": "string",
      "format": "decimal",
      "description": "Cess",
      "readOnly": true
     },
     "invoice_value": {
      "type": "string",
      "format": "decimal",
      "description": "Invoice value",
      "readOnly": true
     },
     "match_status": {
      "type": "string",
      "description": "Match status",
      "readOnly": true
     },
     "ap_invoice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ap invoice id",
      "readOnly": true
     },
     "ap_invoice_no": {
      "type": "string",
      "description": "Ap invoice no",
      "readOnly": true
     },
     "books_value": {
      "type": "string",
      "format": "decimal",
      "description": "Books value",
      "readOnly": true
     },
     "books_tax": {
      "type": "string",
      "format": "decimal",
      "description": "Books tax",
      "readOnly": true
     },
     "difference": {
      "type": "string",
      "format": "decimal",
      "description": "Difference",
      "readOnly": true
     },
     "note": {
      "type": "string",
      "description": "Note",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "import_no": {
      "type": "string",
      "description": "Import no",
      "readOnly": true
     },
     "gstin": {
      "type": "string",
      "description": "Gstin",
      "readOnly": true
     },
     "return_period": {
      "type": "string",
      "description": "Return period",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/india/gstr2b-lines": {
   "get": {
    "summary": "list gstr2b-lines",
    "operationId": "list_gstr2b_lines_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post gstr2b lines",
    "operationId": "action_gstr2b_lines_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/gstr2b-lines/{id}": {
   "get": {
    "summary": "get gstr2b-lines",
    "operationId": "get_gstr2b_lines_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put gstr2b lines",
    "operationId": "action_gstr2b_lines_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete gstr2b lines",
    "operationId": "action_gstr2b_lines_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/gstr2b-lines/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_gstr2b_lines_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}