With the /FCProductCodes endpoint user can manage FCProductCodes from the database.
GET
/api/FCProductCodes/List
Get a list of all FCProductCodes
Request Example
/api/FCProductCodes/List
RESPONSE EXAMPLE
[
{
"Id": "string",
"FCId": "string",
"FCName": "string",
"MapField": "string",
"ProductId": "string",
"OrderCode": "string",
"ProductCode": "string"
},
{...}
]
GET
/api/FCProductCodes/Get
Get a FCProductCodes
Request Example
/api/FCProductCodes/Get?id=FCProductCodesId
RESPONSE EXAMPLE
If found, a FCProductCodes is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "string",
"FCId": "string",
"FCName": "string",
"MapField": "string",
"ProductId": "string",
"OrderCode": "string",
"ProductCode": "string"
}
POST
/api/FCProductCodes/Create
Create a FCProductCodes
Model Request Example
{
"FCId": "string",
"MapField": "string", // Product Code or Media Code
"FrameId": "string", // required if MapField is Media Code
"ProductId": "string", // required if MapField is Product Code
"ProductCode": "string"
}
Response Example
If the operation is successful a FCProductCodes will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/FCProductCodes/Update
Update a FCProductCodes
Request Example
/api/FCProductCodes/Update?id=FCProductCodesId
Model Request Example
{
"FCId": "string",
"MapField": "string", // "Product Code" or "Media Code"
"FrameId": "string", // required if MapField is Media Code
"ProductId": "string", // required if MapField is Product Code
"ProductCode": "string"
}
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409
DELETE
/api/FCProductCodes/Delete
Delete a FCProductCodes
Request Example
/api/FCProductCodes/Delete?id=FCProductCodesId
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409