{
 "openapi": "3.1.0",
 "info": {
  "title": "Gstr1 lines (India statutory)",
  "version": "20261030b",
  "description": "Read and maintain gstr1 lines records (india.gstr1_detail)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "gstr1-lines": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "return_no": {
      "type": "string",
      "description": "Return no",
      "readOnly": true
     },
     "gstin": {
      "type": "string",
      "description": "Gstin",
      "readOnly": true
     },
     "financial_year": {
      "type": "string",
      "description": "Financial year",
      "readOnly": true
     },
     "period_month": {
      "type": "integer",
      "description": "Period month",
      "readOnly": true
     },
     "line_no": {
      "type": "integer",
      "description": "Line no",
      "readOnly": true
     },
     "table_ref": {
      "type": "string",
      "description": "Table ref",
      "readOnly": true
     },
     "document_type": {
      "type": "string",
      "description": "Document type",
      "readOnly": true
     },
     "counterparty_gstin": {
      "type": "string",
      "description": "Counterparty gstin",
      "readOnly": true
     },
     "counterparty_name": {
      "type": "string",
      "description": "Counterparty name",
      "readOnly": true
     },
     "document_no": {
      "type": "string",
      "description": "Document no",
      "readOnly": true
     },
     "document_date": {
      "type": "string",
      "format": "date",
      "description": "Document date",
      "readOnly": true
     },
     "original_document_no": {
      "type": "string",
      "description": "Original document no",
      "readOnly": true
     },
     "place_of_supply": {
      "type": "string",
      "description": "Place of supply",
      "readOnly": true
     },
     "is_reverse_charge": {
      "type": "boolean",
      "description": "Is reverse charge",
      "readOnly": true
     },
     "hsn_code": {
      "type": "string",
      "description": "Hsn code",
      "readOnly": true
     },
     "uqc": {
      "type": "string",
      "description": "Uqc",
      "readOnly": true
     },
     "quantity": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity",
      "readOnly": true
     },
     "gst_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Gst rate",
      "readOnly": true
     },
     "taxable_value": {
      "type": "string",
      "format": "decimal",
      "description": "Taxable value",
      "readOnly": true
     },
     "cgst": {
      "type": "string",
      "format": "decimal",
      "description": "Cgst",
      "readOnly": true
     },
     "sgst": {
      "type": "string",
      "format": "decimal",
      "description": "Sgst",
      "readOnly": true
     },
     "igst": {
      "type": "string",
      "format": "decimal",
      "description": "Igst",
      "readOnly": true
     },
     "cess": {
      "type": "string",
      "format": "decimal",
      "description": "Cess",
      "readOnly": true
     },
     "invoice_value": {
      "type": "string",
      "format": "decimal",
      "description": "Invoice value",
      "readOnly": true
     },
     "doc_from": {
      "type": "string",
      "description": "Doc from",
      "readOnly": true
     },
     "doc_to": {
      "type": "string",
      "description": "Doc to",
      "readOnly": true
     },
     "doc_count": {
      "type": "integer",
      "description": "Doc count",
      "readOnly": true
     },
     "cancelled_count": {
      "type": "integer",
      "description": "Cancelled count",
      "readOnly": true
     },
     "return_id": {
      "type": "string",
      "format": "uuid",
      "description": "Return id",
      "readOnly": true
     },
     "supply_section": {
      "type": "string",
      "description": "Supply section",
      "readOnly": true
     },
     "hsn_description": {
      "type": "string",
      "description": "Hsn description",
      "readOnly": true
     },
     "supply_type": {
      "type": "string",
      "description": "Supply type",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/india/gstr1-lines": {
   "get": {
    "summary": "list gstr1-lines",
    "operationId": "list_gstr1_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 gstr1 lines",
    "operationId": "action_gstr1_lines_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/gstr1-lines/{id}": {
   "get": {
    "summary": "get gstr1-lines",
    "operationId": "get_gstr1_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 gstr1 lines",
    "operationId": "action_gstr1_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 gstr1 lines",
    "operationId": "action_gstr1_lines_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/gstr1-lines/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_gstr1_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"
     }
    }
   }
  }
 }
}