Adds a new supplier commodity code
post
/service/v1/scommodity
This endpoint is used to add a new supplier Commodity Code.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
appId(required): string
-
branchCode(required): string
branchCode
-
userId(required): string
userId
Request Body that contains data required for creating a new scommoditycode
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
object
Discriminator:
resource_type
Nested Schema : ObscfcmTmSupplierCommodityDetailsDTO
Type:
Show Source
object
-
commodityCode:
string
Commodity Code
-
commodityName:
string
Commodity Name
-
countryOfOrigin:
string
Country of origin
-
description:
string
Description
-
discount:
number
Discount
-
id:
string
ID
-
ObscfcmTmCommodityUnitsDTO:
array ObscfcmTmCommodityUnitsDTO
-
supplierCommodityMasterId:
string
Supplier Commodity Master Id
-
tax:
number
Tax
-
year:
number
Year
Nested Schema : ObscfcmTmCommodityUnitsDTO
Type:
Show Source
object
-
id:
string
Id
-
maximumUnit:
number
Maximum Unit
-
minimumUnit:
number
Minimum Unit
-
supplierCommodityDetailsId:
string
Supplier Commodity Details Id
-
unit:
string
Unit
-
unitPrice:
number
Unit Price
Response
Supported Media Types
- application/json
- application/xml
201 Response
Returns message of succes or failure
Headers
-
Location: string
URL of newly created supplierCommodityCode
Root Schema : CreateComCode
Type:
Show Source
object
-
authStatus:
string
Authorization Status
-
commodityCodeResponseDTO:
array commodityCodeResponseDTO
com code
-
errorList:
array errorList
Error List
-
id:
string
Id
-
modNo:
string
Mod Number
-
responseCode:
string
Response Code
-
supplierId:
string
Supplier id
Nested Schema : commodityCodeResponseDTOColl
Type:
Show Source
object
-
commodityCode:
string
Commodity Code
-
commodityName:
string
Commodity Name
Nested Schema : ErrorsDto
Type:
Show Source
object
-
errorCode:
string
Error Code
-
errorDesc:
string
Error Description
400 Response
Malformed syntax.
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
405 Response
Invalid input
500 Response
Internal error