Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

General Information


ServiceAPIMethod
multitenant/productPOST


Data Model: Groups

Workflow:

Input


Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
codeBodyYESStringThe length is between 4 - 5Product code
nameBodyYESStringN/AProduct name
descriptionBodyNOStringN/A

Product description

Output


Valid Response

Valid Response Sample
{
    "result": true,
    "data": [
        {
            "name": "Fadi2",
            "code": "FADI2",
            "description": "Some",
            "scope": {
                "acl": {}
            },
            "packages": [],
            "_id": "5d6fedabbed68d11b6f54636"
        }
    ]
}


Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[468],
        "details":[
            {
                "code":468,
                "message":"Product already exists"
            }
        ]
    }
}



Error Codes



Code
Description
468

Product already exists

469

Unable to add the product record

474

Missing required field: either id or code



Example (CURL)

Request

Calling List Products API
 > CURL -X GET http://127.0.0.1:4004/product -d {
    "code": "silver",
    "name": "Silver",
    "description": "product description"
}

Response

List Products API response
{
   "result": true,
   "data": [
      {
         
      }
   ]
}
  • No labels