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: string
-
branchCode: string
branchCode
-
userId: 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 : ObscfcmTmSupplierCommodityMasterDTO-allOf[1]
Type:
Show Source
object
-
action(optional):
string
-
autoAuth(optional):
string
-
checkerRemarks(optional):
string
-
datasegmentCode(optional):
string
-
id(optional):
string
-
makerRemarks(optional):
string
-
modificationStatus(optional):
string
-
ObscfcmTmSupplierCommodityDetailsDTO(optional):
array ObscfcmTmSupplierCommodityDetailsDTO
-
supplierId(optional):
string
-
supplierName(optional):
string
Nested Schema : ObscfcmTmSupplierCommodityDetailsDTO
Type:
Show Source
object
-
commodityCode(optional):
string
Commodity Code
-
commodityName(optional):
string
Commodity Name
-
countryOfOrigin(optional):
string
Country of origin
-
description(optional):
string
Description
-
discount(optional):
number
Discount
-
id(optional):
string
ID
-
ObscfcmTmCommodityUnitsDTO(optional):
array ObscfcmTmCommodityUnitsDTO
-
supplierCommodityMasterId(optional):
string
Supplier Commodity Master Id
-
tax(optional):
number
Tax
-
year(optional):
number
Year
Nested Schema : ObscfcmTmCommodityUnitsDTO
Type:
Show Source
object
-
id(optional):
string
Id
-
maximumUnit(optional):
number
Maximum Unit
-
minimumUnit(optional):
number
Minimum Unit
-
supplierCommodityDetailsId(optional):
string
Supplier Commodity Details Id
-
unit(optional):
string
Unit
-
unitPrice(optional):
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(optional):
string
Authorization Status
-
commodityCodeResponseDTO(optional):
array commodityCodeResponseDTO
com code
-
errorList(optional):
array errorList
Error List
-
id(optional):
string
Id
-
modNo(optional):
string
Mod Number
-
responseCode(optional):
string
Response Code
-
supplierId(optional):
string
Supplier id
Nested Schema : commodityCodeResponseDTOColl
Type:
Show Source
object
-
commodityCode(optional):
string
Commodity Code
-
commodityName(optional):
string
Commodity Name
Nested Schema : ErrorsDto
Type:
Show Source
object
-
errorCode(optional):
string
Error Code
-
errorDesc(optional):
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