Skip to content

Add a new supplierItem Record

Request

Adds a new supplierItem record to the system based on the provided supplierItem details.

Security
Bearer
Query
centerIdstring, (uuid)
Bodyapplication/jsonrequired

The supplierItem payload

Array [
idstring, (uuid)

Gets or sets the unique identifier of the supplier item record.

Example:"3fa85f64-5717-4562-b3fc-2c963f66afa6"
itemIdinteger, (int32)required

Unique identifier of the item associated with the supplier. Retrieve it from the Item/Paged endpoint (POST) and use the item's ID value returned in the response.

Example:101
itemNamestring or null

Gets or sets the name of the item.

Example:"Steel Pipe"
supplierIdstring, (uuid)required

Unique identifier of the supplier. Retrieve it from the SupplierMaster/Paged endpoint (POST) and use the supplierId value returned in the response.

Example:"b12e7a12-8f3b-4d7c-9b12-3d5e2c4f6a11"
supplierNamestring or null

Gets or sets the name of the supplier.

Example:"ABC Supplies Pvt Ltd"
]
curl -i -X POST \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/SupplierItem?centerId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "itemId": 101,
      "itemName": "Steel Pipe",
      "supplierId": "b12e7a12-8f3b-4d7c-9b12-3d5e2c4f6a11",
      "supplierName": "ABC Supplies Pvt Ltd"
    }
  ]'

Responses

Successfully added the supplierItem record