DIGIT Specifications
PlatformUrbanHealthPublic FinanceSanitation
  • Specifications Overview
    • Standardisation Approach
  • Common Service Specs
    • Access Control
    • Analytics
    • Billing
    • Collection
    • Dashboard Analytics
    • Decision Support System Ingest
    • Document Controller
    • Employee
    • Encryption
    • Filestore
    • ID Generation
    • Inbox
    • Indexer
    • Master
    • Master Data Management
    • OTP
    • Payment Gateway
    • PDF Generation
    • URL Shortening
    • User
    • Workflow
  • Domain Service Specs
    • Attendance
    • Bank Account
    • Billing Calculator
    • Birth-Death
    • Building Plan Approval
    • Building Plan Calculator
    • Campaign
    • Campaign Delivery
    • Contracts
    • Estimates
    • eChallan
    • Facility
    • Faecal Sludge Management (FSM)
    • Fire NOC
    • Fire NOC Calculator
    • Household
    • Individual
    • Inventory
    • Land
    • Muster Roll
    • National Dashboard Ingest
    • No Objection Certificate
    • Organization
    • Planning
    • Product
    • Project
    • Property Registry
    • Property Tax Calculator
    • Public Grievance Redressal
    • Registration
    • Sewerage Connection
    • Stock
    • Supervision
    • Sync
    • Trade Licence
    • Trade Licence Calculator
    • User Events
    • Vehicle Registration
    • Vendor Registration
    • Water Connection
  • Archived-docs
    • DIGIT Urban Service Specs
      • Property Tax Service
        • Property Tax Taxonomy
        • Property Tax Data Model
        • Property Tax Service API
      • Public Grievance Redressal Service
        • Public Grievance Redressal Taxonomy
        • Public Grievance Redressal Data Model
        • Public Grievance Redressal Service API
      • Trade License Service
        • Trade License Taxonomy
        • Trade License Data Model
        • Trade License API
      • Fire NOC Service
        • Fire NOC Taxonomy
        • Fire NOC Data Model
        • Fire NOC API
      • Miscellaneous Collection Service
        • Miscellaneous Collections Taxonomy
        • Miscellaneous Collections Data Model
        • Miscellaneous Collection API
      • Online Building Plan Approval Service
        • Online Building Plan Approval Taxonomy
        • Online Building Plan Approval Data Model
        • Online Building Plan Approval Service API
      • Water & Sewerage Service
        • Water & Sewerage Taxonomy
        • Water Service Data Model
        • Sewerage Service Data Model
        • Water & Sewerage Service API
      • Birth & Death Service
        • Birth & Death Taxonomy
        • Birth & Death Data Model
        • Birth & Death Service API
    • DIGIT Public Finance Management Service Specs
      • iFIX Master Data Service API
      • Adapter Master Data Service API
      • mGramSeva iFIX Adapter Service API
      • iFIX Department Entity Service API
      • Fiscal Event API
    • DIGIT Health Service Specs
      • Health Service Data Model
      • Health Service API
    • DIGIT Sanitation Service Specs
      • Faecal Sludge Management Service
        • Faecal Sludge Management Data Model
        • Faecal Sludge Management Service API
Powered by GitBook

​All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page

Was this helpful?

Export as PDF
  1. Domain Service Specs

Contracts

PreviousCampaign DeliveryNextEstimates

Last updated 1 year ago

Was this helpful?

Contract Service APIs

APIs to manage the functionalities of a Works contract.

  • Contract Service APIs
  • POST/contract/v1/_create
  • POST/contract/v1/_update
  • POST/contract/v1/_search
post
Body
Responses
202
Accepted create contract request.
*/*
400
Invalid input.
*/*
post
POST /contract/v1/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 942

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "contract": {
    "supplementaryNumber": "text",
    "tenantId": "pb.amritsar",
    "status": "ACTIVE",
    "wfStatus": "text",
    "executingAuthority": "DEPARTMENT",
    "contractType": "WORK_ORDER",
    "totalContractedamount": 1,
    "securityDeposit": 1,
    "agreementDate": 1,
    "defectLiabilityPeriod": 1,
    "orgId": "text",
    "startDate": 1,
    "endDate": 1,
    "lineItems": [
      {
        "estimateId": "text",
        "estimateLineItemId": "text",
        "tenantId": "pb.amritsar",
        "unitRate": 1,
        "noOfunit": 1,
        "amountBreakups": [
          {
            "estimateAmountBreakupId": "251c51eb-e970-4e01-a99a-70136c47a934",
            "status": "ACTIVE",
            "amount": 1,
            "additionalDetails": {}
          }
        ],
        "status": "ACTIVE",
        "additionalDetails": {}
      }
    ],
    "documents": [
      {
        "id": "text",
        "documentType": "text",
        "fileStore": "text",
        "documentUid": "text",
        "additionalDetails": {}
      }
    ],
    "additionalDetails": {}
  },
  "workflow": {
    "action": "text",
    "comment": "text",
    "assignees": [
      "text"
    ]
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "contracts": [
    {
      "id": "32e33343-7b4c-4353-9abf-4de8f5bcd764",
      "contractNumber": "CON/2023-24/001",
      "supplementaryNumber": "text",
      "tenantId": "pb.amritsar",
      "status": "ACTIVE",
      "wfStatus": "text",
      "executingAuthority": "DEPARTMENT",
      "contractType": "WORK_ORDER",
      "totalContractedamount": 1,
      "securityDeposit": 1,
      "agreementDate": 1,
      "defectLiabilityPeriod": 1,
      "orgId": "text",
      "startDate": 1,
      "endDate": 1,
      "lineItems": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "estimateId": "text",
          "estimateLineItemId": "text",
          "tenantId": "pb.amritsar",
          "unitRate": 1,
          "noOfunit": 1,
          "amountBreakups": [
            {
              "id": "251c51eb-e970-4e01-a99a-70136c47a934",
              "estimateAmountBreakupId": "251c51eb-e970-4e01-a99a-70136c47a934",
              "status": "ACTIVE",
              "amount": 1,
              "additionalDetails": {}
            }
          ],
          "status": "ACTIVE",
          "auditDetails": {
            "createdBy": "text",
            "lastModifiedBy": "text",
            "createdTime": 1,
            "lastModifiedTime": 1
          },
          "additionalDetails": {}
        }
      ],
      "documents": [
        {
          "id": "text",
          "documentType": "text",
          "fileStore": "text",
          "documentUid": "text",
          "additionalDetails": {}
        }
      ],
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      },
      "additionalDetails": {}
    }
  ],
  "pagination": {
    "limit": 1,
    "offSet": 1,
    "totalCount": 1,
    "sortBy": "text",
    "order": {
      "0": "a",
      "1": "s",
      "2": "c"
    }
  }
}
post
Body
Responses
202
Accepted create contract request.
*/*
400
Invalid input.
*/*
post
POST /contract/v1/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 942

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "contract": {
    "supplementaryNumber": "text",
    "tenantId": "pb.amritsar",
    "status": "ACTIVE",
    "wfStatus": "text",
    "executingAuthority": "DEPARTMENT",
    "contractType": "WORK_ORDER",
    "totalContractedamount": 1,
    "securityDeposit": 1,
    "agreementDate": 1,
    "defectLiabilityPeriod": 1,
    "orgId": "text",
    "startDate": 1,
    "endDate": 1,
    "lineItems": [
      {
        "estimateId": "text",
        "estimateLineItemId": "text",
        "tenantId": "pb.amritsar",
        "unitRate": 1,
        "noOfunit": 1,
        "amountBreakups": [
          {
            "estimateAmountBreakupId": "251c51eb-e970-4e01-a99a-70136c47a934",
            "status": "ACTIVE",
            "amount": 1,
            "additionalDetails": {}
          }
        ],
        "status": "ACTIVE",
        "additionalDetails": {}
      }
    ],
    "documents": [
      {
        "id": "text",
        "documentType": "text",
        "fileStore": "text",
        "documentUid": "text",
        "additionalDetails": {}
      }
    ],
    "additionalDetails": {}
  },
  "workflow": {
    "action": "text",
    "comment": "text",
    "assignees": [
      "text"
    ]
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "contracts": [
    {
      "id": "32e33343-7b4c-4353-9abf-4de8f5bcd764",
      "contractNumber": "CON/2023-24/001",
      "supplementaryNumber": "text",
      "tenantId": "pb.amritsar",
      "status": "ACTIVE",
      "wfStatus": "text",
      "executingAuthority": "DEPARTMENT",
      "contractType": "WORK_ORDER",
      "totalContractedamount": 1,
      "securityDeposit": 1,
      "agreementDate": 1,
      "defectLiabilityPeriod": 1,
      "orgId": "text",
      "startDate": 1,
      "endDate": 1,
      "lineItems": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "estimateId": "text",
          "estimateLineItemId": "text",
          "tenantId": "pb.amritsar",
          "unitRate": 1,
          "noOfunit": 1,
          "amountBreakups": [
            {
              "id": "251c51eb-e970-4e01-a99a-70136c47a934",
              "estimateAmountBreakupId": "251c51eb-e970-4e01-a99a-70136c47a934",
              "status": "ACTIVE",
              "amount": 1,
              "additionalDetails": {}
            }
          ],
          "status": "ACTIVE",
          "auditDetails": {
            "createdBy": "text",
            "lastModifiedBy": "text",
            "createdTime": 1,
            "lastModifiedTime": 1
          },
          "additionalDetails": {}
        }
      ],
      "documents": [
        {
          "id": "text",
          "documentType": "text",
          "fileStore": "text",
          "documentUid": "text",
          "additionalDetails": {}
        }
      ],
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      },
      "additionalDetails": {}
    }
  ],
  "pagination": {
    "limit": 1,
    "offSet": 1,
    "totalCount": 1,
    "sortBy": "text",
    "order": {
      "0": "a",
      "1": "s",
      "2": "c"
    }
  }
}
post
Body

The object will contain all the search parameters for contract service.

tenantIdstring · min: 2 · max: 64Required

Tenant Identifier

Example: pb.amritsar
idsstring[]Optional

Search by contract ids

estimateIdsstring[]Optional

Search by estimate ids

estimateLineItemIdsstring[]Optional

Search by estimate line items ids

Responses
200
Successful response sorted by reverse chrnological order of creation
*/*
400
Bad Request.
*/*
post
POST /contract/v1/_search HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 95

{
  "tenantId": "pb.amritsar",
  "ids": [
    "text"
  ],
  "estimateIds": [
    "text"
  ],
  "estimateLineItemIds": [
    "text"
  ]
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "contracts": [
    {
      "id": "32e33343-7b4c-4353-9abf-4de8f5bcd764",
      "contractNumber": "CON/2023-24/001",
      "supplementaryNumber": "text",
      "tenantId": "pb.amritsar",
      "status": "ACTIVE",
      "wfStatus": "text",
      "executingAuthority": "DEPARTMENT",
      "contractType": "WORK_ORDER",
      "totalContractedamount": 1,
      "securityDeposit": 1,
      "agreementDate": 1,
      "defectLiabilityPeriod": 1,
      "orgId": "text",
      "startDate": 1,
      "endDate": 1,
      "lineItems": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "estimateId": "text",
          "estimateLineItemId": "text",
          "tenantId": "pb.amritsar",
          "unitRate": 1,
          "noOfunit": 1,
          "amountBreakups": [
            {
              "id": "251c51eb-e970-4e01-a99a-70136c47a934",
              "estimateAmountBreakupId": "251c51eb-e970-4e01-a99a-70136c47a934",
              "status": "ACTIVE",
              "amount": 1,
              "additionalDetails": {}
            }
          ],
          "status": "ACTIVE",
          "auditDetails": {
            "createdBy": "text",
            "lastModifiedBy": "text",
            "createdTime": 1,
            "lastModifiedTime": 1
          },
          "additionalDetails": {}
        }
      ],
      "documents": [
        {
          "id": "text",
          "documentType": "text",
          "fileStore": "text",
          "documentUid": "text",
          "additionalDetails": {}
        }
      ],
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      },
      "additionalDetails": {}
    }
  ],
  "pagination": {
    "limit": 1,
    "offSet": 1,
    "totalCount": 1,
    "sortBy": "text",
    "order": {
      "0": "a",
      "1": "s",
      "2": "c"
    }
  }
}