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

Inventory

PreviousIndividualNextLand

Last updated 1 year ago

Was this helpful?

Campaign Inventory Management APIs

Facilitates the maintenance and management of inventories.

  • Campaign Inventory Management APIs
  • POSTCreate a Inventory Log.
  • POSTUpdate An Inventory Log.
  • POSTSearch Inventory Log.
  • POSTCreate a Reconciliation Log.
  • POSTSearch reconciliation Logs.

Create a Inventory Log.

post

Creates Inventory Log On successful Inventory Log Ok response is returned.

Body

The request object, containing all necessary information for creating an Inventory Log and the request body metadata

Responses
200
Inventory Log created successfully.
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /inventory/log/v1/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 645

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "inventoryLog": {
    "tenantId": "text",
    "campaignId": "CAMP-ID",
    "transactionPartyId": "WARE-HOUSE-2",
    "transactionPartyType": "RECEIVED",
    "transactionReason": "RETURNED REASON",
    "transactionDate": 1663218161,
    "warehouseId": "WARE-HOUSE-3",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE"
    },
    "clientReferenceId": "GUID",
    "additionalFields": {
      "schema": "INVENTORY",
      "version": 2,
      "fields": [
        {
          "key": "Vehicle Number",
          "value": "MH12AB1212"
        }
      ]
    }
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "inventoryLog": {
    "inventoryLogId": "UUID",
    "tenantId": "text",
    "campaignId": "CAMP-ID",
    "transactionPartyId": "WARE-HOUSE-2",
    "transactionPartyType": "RECEIVED",
    "transactionReason": "RETURNED REASON",
    "transactionDate": 1663218161,
    "warehouseId": "WARE-HOUSE-3",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE",
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    },
    "clientReferenceId": "GUID",
    "additionalFields": {
      "schema": "INVENTORY",
      "version": 2,
      "fields": [
        {
          "key": "Vehicle Number",
          "value": "MH12AB1212"
        }
      ]
    },
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Update An Inventory Log.

post

Update An Inventory Log, Ok response is returned.

Body
Responses
200
Updated Inventory Log successfully.
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /inventory/log/v1/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 645

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "inventoryLog": {
    "tenantId": "text",
    "campaignId": "CAMP-ID",
    "transactionPartyId": "WARE-HOUSE-2",
    "transactionPartyType": "RECEIVED",
    "transactionReason": "RETURNED REASON",
    "transactionDate": 1663218161,
    "warehouseId": "WARE-HOUSE-3",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE"
    },
    "clientReferenceId": "GUID",
    "additionalFields": {
      "schema": "INVENTORY",
      "version": 2,
      "fields": [
        {
          "key": "Vehicle Number",
          "value": "MH12AB1212"
        }
      ]
    }
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "inventoryLog": {
    "inventoryLogId": "UUID",
    "tenantId": "text",
    "campaignId": "CAMP-ID",
    "transactionPartyId": "WARE-HOUSE-2",
    "transactionPartyType": "RECEIVED",
    "transactionReason": "RETURNED REASON",
    "transactionDate": 1663218161,
    "warehouseId": "WARE-HOUSE-3",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE",
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    },
    "clientReferenceId": "GUID",
    "additionalFields": {
      "schema": "INVENTORY",
      "version": 2,
      "fields": [
        {
          "key": "Vehicle Number",
          "value": "MH12AB1212"
        }
      ]
    },
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Search Inventory Log.

post

Search Inventory Log Ok response is returned.

Body
Responses
200
Fetched Search InventoryLogs.
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /inventory/log/v1/_search HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 481

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "inventorySearchCriteria": {
    "inventoryLogId": "UUID",
    "transactionPartyId": "WARE-HOUSE-2",
    "warehouseId": "WARE-HOUSE-3",
    "campaignId": "CAMP-ID",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE"
    },
    "transactionType": "RECEIVED",
    "transactionDate": 1663218161
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "totalCount": 0,
  "inventoryLogs": [
    {
      "tenantId": "text",
      "inventoryLogId": "UUID",
      "campaignId": "CAMP-ID",
      "transactionPartyId": "WARE-HOUSE-2",
      "transactionPartyType": "RECEIVED",
      "transactionReason": "RETURNED REASON",
      "transactionDate": 1663218161,
      "warehouseId": "WARE-HOUSE-3",
      "resource": {
        "tenantId": "text",
        "resourceId": "ID-1",
        "resourceType": "BEDNET",
        "resourceName": "LLIN",
        "quantity": 100,
        "quantityUnit": "BALE",
        "auditDetails": {
          "createdBy": "text",
          "lastModifiedBy": "text",
          "createdTime": 1,
          "lastModifiedTime": 1
        }
      },
      "clientReferenceId": "GUID",
      "additionalFields": {
        "schema": "INVENTORY",
        "version": 2,
        "fields": [
          {
            "key": "Vehicle Number",
            "value": "MH12AB1212"
          }
        ]
      },
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    }
  ]
}

Create a Reconciliation Log.

post

Creates Reconciliation Log On successful Reconciliation Ok response is returned.

Body

The request object, containing all necessary information for creating an Inventory Log and the request body metadata

Responses
200
Reconciliation Log created successfully.
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /inventory/reconciliation/v1/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 549

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "reconciliationLog": {
    "tenantId": "text",
    "warehouseId": "WARE-HOUSE-2",
    "campaignId": "CAMP-ID",
    "dateOfReconciliation": 1663218161,
    "clientReferenceId": "GUID",
    "calculatedCount": 200,
    "physicallyRecordedCount": 122,
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE"
    },
    "comment": "RECEIVED",
    "transactionReason": "100 Entry Missing"
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "reconciliationLog": {
    "tenantId": "text",
    "warehouseId": "WARE-HOUSE-2",
    "campaignId": "CAMP-ID",
    "dateOfReconciliation": 1663218161,
    "clientReferenceId": "GUID",
    "calculatedCount": 200,
    "physicallyRecordedCount": 122,
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE",
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    },
    "comment": "RECEIVED",
    "transactionReason": "100 Entry Missing",
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Search reconciliation Logs.

post

Search reconciliation Logs Ok response is returned.

Body

The request object, containing all necessary information for creating an Reconciliation and the request body metadata

Responses
200
Fetched Search reconciliation Logs.
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /inventory/reconciliation/v1/_search HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 427

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "reconciliationSearchCriteria": {
    "warehouseId": "WARE-HOUSE-2",
    "dateOfReconciliation": 1663218161,
    "clientReferenceId": "GUID",
    "resource": {
      "tenantId": "text",
      "resourceId": "ID-1",
      "resourceType": "BEDNET",
      "resourceName": "LLIN",
      "quantity": 100,
      "quantityUnit": "BALE"
    },
    "limit": 5,
    "offset": 5
  }
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "totalCount": 0,
  "reconciliationLogs": [
    {
      "reconciliationId": "1212",
      "tenantId": "text",
      "warehouseId": "WARE-HOUSE-2",
      "campaignId": "CAMP-ID",
      "dateOfReconciliation": 1663218161,
      "clientReferenceId": "GUID",
      "calculatedCount": 200,
      "physicallyRecordedCount": 122,
      "resource": {
        "tenantId": "text",
        "resourceId": "ID-1",
        "resourceType": "BEDNET",
        "resourceName": "LLIN",
        "quantity": 100,
        "quantityUnit": "BALE",
        "auditDetails": {
          "createdBy": "text",
          "lastModifiedBy": "text",
          "createdTime": 1,
          "lastModifiedTime": 1
        }
      },
      "comment": "RECEIVED",
      "transactionReason": "100 Entry Missing",
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    }
  ]
}