Skip to content

Add a new supplier Record

Request

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

Security
Bearer
Query
centerIdstring, (uuid)
Bodyapplication/jsonrequired

The supplier payload

Array [
supplierIdstring, (uuid)

Unique identifier of the supplier.

Example:"3fa85f64-5717-4562-b3fc-2c963f66afa6"
suppIDstring, non-emptyrequired

Supplier ID field.

Example:"SUPP-001"
centerIdstring or null, (uuid)

Center ID associated with the supplier.

supplierNamestring, non-emptyrequired

Name of the supplier.

Example:"Green Energy Solutions Pvt Ltd"
supplierGLNIDstring or null

Global Location Number (GLN) associated with the supplier.

Example:"8901234567890"
companyIdentificationNostring or null

Company identification number of the supplier.

Example:"CIN-U12345AP2020PTC123456"
eorinumberstring or null

Economic Operators Registration and Identification (EORI) number.

Example:"IN123456789000"
hostCountryIdinteger or null, (int32)

Identifier of the supplier's host country. Retrieve it from the Country GET API and use the ID value returned in the response.

Example:101
hostCountryNamestring or null

Name of the host country where the supplier is registered.

Example:"India"
primaryContactNamestring or null

Name of the primary contact person for the supplier.

Example:"Ravi Kumar"
primaryContactEmailIdstring or null

Email address of the primary contact person.

Example:"ravi.kumar@greenenergy.com"
regulationNamestring or null

Regulation name associated with the supplier.

createdBystring or null

User who created the record.

createdOnstring, (date-time)

Date and time when the record was created.

modifiedBystring or null

User who last modified the record.

modifiedOnstring or null, (date-time)

Date and time when the record was last modified.

tranIdstring, (uuid)

Transaction ID.

]
curl -i -X POST \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/SuplierMaster?centerId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "supplierId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "suppID": "SUPP-001",
      "centerId": "282cb687-20cd-4f37-9b5b-b30c06eb5b1b",
      "supplierName": "Green Energy Solutions Pvt Ltd",
      "supplierGLNID": "8901234567890",
      "companyIdentificationNo": "CIN-U12345AP2020PTC123456",
      "eorinumber": "IN123456789000",
      "hostCountryId": 101,
      "hostCountryName": "India",
      "primaryContactName": "Ravi Kumar",
      "primaryContactEmailId": "ravi.kumar@greenenergy.com",
      "regulationName": "string",
      "createdBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedBy": "string",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "tranId": "0966b546-a6c9-4141-86ae-3d3862f1f36c"
    }
  ]'

Responses

Successfully added the supplier record