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

Stock

PreviousSewerage ConnectionNextSupervision

Last updated 1 year ago

Was this helpful?

Stock Service APIs

Facilitates the management of stocks.

  • Stock Service APIs
  • POSTCreate/Add a new record for transfer of product variant stock
  • POSTCreate/Add a new record for transfer of product variant stock in bulk
  • POSTUpdate record for transfer of a stock transaction
  • POSTUpdate records for transfer of a stock transaction in bulk
  • POSTSoft delete record for transfer of a stock transaction
  • POSTSoft delete records for transfer of a stock transaction
  • POSTSearch for stock transaction
  • POSTCreate/Add a new stock reconciliation record for a product variant
  • POSTCreate/Add a new stock reconciliation record for a product variant in bulk
  • POSTUpdate stock reconciliation record
  • POSTUpdate stock reconciliation records
  • POSTSoft delete stock reconciliation record
  • POSTSoft delete stock reconciliation records
  • POSTSearch for stock reconciliation record

Create/Add a new record for transfer of product variant stock

post

Create/Add a new record for transfer of product variant stock

Body
Responses
202
Stock Transaction request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 574

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "Stock": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Create/Add a new record for transfer of product variant stock in bulk

post

Create/Add a new record for transfer of product variant stock in bulk

Body
Responses
202
Stock Transaction request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/bulk/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 576

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "quantity": 1,
      "wayBillNumber": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "text",
      "transactingPartyType": "WAREHOUSE",
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  }
}

Update record for transfer of a stock transaction

post

Update record for transfer of a stock transaction

Body
Responses
202
Stock Transaction request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 574

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "Stock": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Update records for transfer of a stock transaction in bulk

post

Update records for transfer of a stock transaction in bulk

Body
Responses
202
Stock Transaction request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/bulk/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 576

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "quantity": 1,
      "wayBillNumber": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "text",
      "transactingPartyType": "WAREHOUSE",
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  }
}

Soft delete record for transfer of a stock transaction

post

Soft delete record for transfer of a stock transaction

Body
Responses
202
Stock Transaction delete request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/_delete HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 574

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "Stock": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "quantity": 1,
    "wayBillNumber": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Soft delete records for transfer of a stock transaction

post

Soft delete records for transfer of a stock transaction

Body
Responses
202
Stock Transaction delete request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/bulk/_delete HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 576

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "quantity": 1,
      "wayBillNumber": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "text",
      "transactingPartyType": "WAREHOUSE",
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  }
}

Search for stock transaction

post

Search for stock transaction

Query parameters
limitanyRequired

Pagination - limit records in response

offsetanyRequired

Pagination - offset from which records should be returned in response

tenantIdanyRequired

Unique id for a tenant.

lastChangedSinceanyOptional

epoch of the time since when the changes on the object should be picked up. Search results from this parameter should include both newly created objects since this time as well as any modified objects since this time. This criterion is included to help polling clients to get the changes in system since a last time they synchronized with the platform.

includeDeletedanyOptional

Used in search APIs to specify if (soft) deleted records should be included in search results.

Body
Responses
200
Stock transfer.
application/json
400
Invalid Input body.
application/json
post
POST /stock/v1/_search?limit=null&offset=null&tenantId=null HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 447

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "Stock": {
    "id": [
      "text"
    ],
    "clientReferenceId": [
      "text"
    ],
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "transactionType": "RECEIVED",
    "transactionReason": "RECEIVED",
    "transactingPartyId": "text",
    "transactingPartyType": "WAREHOUSE",
    "wayBillNumber": "text"
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "Stock": [
    {
      "id": "text",
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "quantity": 1,
      "wayBillNumber": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "text",
      "transactingPartyType": "WAREHOUSE",
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "isDeleted": true,
      "rowVersion": 1,
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    }
  ]
}

Create/Add a new stock reconciliation record for a product variant

post

Create/Add a new stock reconciliation record for a product variant

Body
Responses
202
Accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 535

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "StockReconciliation": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Create/Add a new stock reconciliation record for a product variant in bulk

post

Create/Add a new stock reconciliation record for a product variant in bulk

Body
Responses
202
Accepted.
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/bulk/_create HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 537

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "physicalCount": 1,
      "calculatedCount": 1,
      "commentsOnReconciliation": "text",
      "dateOfReconciliation": 1663218161,
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}

No content

Update stock reconciliation record

post

Update stock reconciliation record

Body
Responses
202
Stock Reconciliation request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 535

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "StockReconciliation": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Update stock reconciliation records

post

Update stock reconciliation records

Body
Responses
202
Stock Reconciliation request has been accepted.
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/bulk/_update HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 537

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "physicalCount": 1,
      "calculatedCount": 1,
      "commentsOnReconciliation": "text",
      "dateOfReconciliation": 1663218161,
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}

No content

Soft delete stock reconciliation record

post

Soft delete stock reconciliation record

Body
Responses
202
Stock Reconciliation delete request has been accepted.
application/json
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/_delete HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 535

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": {
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "rowVersion": 1
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "StockReconciliation": {
    "id": "text",
    "clientReferenceId": "text",
    "tenantId": "tenantA",
    "facilityId": "FacilityA",
    "productVariantId": "text",
    "referenceId": "C-1",
    "referenceIdType": "PROJECT",
    "physicalCount": 1,
    "calculatedCount": 1,
    "commentsOnReconciliation": "text",
    "dateOfReconciliation": 1663218161,
    "additionalFields": {
      "schema": "HOUSEHOLD",
      "version": 2,
      "fields": [
        {
          "key": "height",
          "value": 180
        }
      ]
    },
    "isDeleted": true,
    "rowVersion": 1,
    "auditDetails": {
      "createdBy": "text",
      "lastModifiedBy": "text",
      "createdTime": 1,
      "lastModifiedTime": 1
    }
  }
}

Soft delete stock reconciliation records

post

Soft delete stock reconciliation records

Body
Responses
202
Stock Reconciliation delete request has been accepted.
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/bulk/_delete HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 537

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": [
    {
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "physicalCount": 1,
      "calculatedCount": 1,
      "commentsOnReconciliation": "text",
      "dateOfReconciliation": 1663218161,
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "rowVersion": 1
    }
  ]
}

No content

Search for stock reconciliation record

post

Search for stock reconciliation record

Query parameters
limitanyRequired

Pagination - limit records in response

offsetanyRequired

Pagination - offset from which records should be returned in response

tenantIdanyRequired

Unique id for a tenant.

lastChangedSinceanyOptional

epoch of the time since when the changes on the object should be picked up. Search results from this parameter should include both newly created objects since this time as well as any modified objects since this time. This criterion is included to help polling clients to get the changes in system since a last time they synchronized with the platform.

includeDeletedanyOptional

Used in search APIs to specify if (soft) deleted records should be included in search results.

Body
Responses
200
Stock reconciliations.
application/json
400
Invalid Input body.
application/json
post
POST /stock/reconciliation/v1/_search?limit=null&offset=null&tenantId=null HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 267

{
  "RequestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text"
  },
  "StockReconciliation": {
    "id": [
      "text"
    ],
    "clientReferenceId": [
      "text"
    ],
    "facilityId": "FacilityA",
    "productVariantId": "text"
  }
}
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "StockReconciliation": [
    {
      "id": "text",
      "clientReferenceId": "text",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "text",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "physicalCount": 1,
      "calculatedCount": 1,
      "commentsOnReconciliation": "text",
      "dateOfReconciliation": 1663218161,
      "additionalFields": {
        "schema": "HOUSEHOLD",
        "version": 2,
        "fields": [
          {
            "key": "height",
            "value": 180
          }
        ]
      },
      "isDeleted": true,
      "rowVersion": 1,
      "auditDetails": {
        "createdBy": "text",
        "lastModifiedBy": "text",
        "createdTime": 1,
        "lastModifiedTime": 1
      }
    }
  ]
}