Product
  • 04 Jul 2022
  • 1 Minute to read
  • Dark
    Light

Product

  • Dark
    Light

Article Summary

Product JSON Format

Product is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idstringID of Product.
moduleIdstringID of module.
namestringName of Product.
descriptionstringDescription of Product.
isDeletedboolWhether the Product is deleted or not.
modulearrayDetails of module.

Get the list of Products

GET global/products

  • Parameters:

NameTypeinRequiredDescription
modulestringquerynoID of the module.
  • Response:

An array of Product

  • Example

Sample Request:

curl https://partnerapi.comm100.io/v4/global/products \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "LiveChat",
      "moduleId":"LiveChat",
      "name": "LiveChat",
      "description": "This is LiveChat.",
      "isDeleted": false,
      "module": {
          "id": "LiveChat",
          "name": "Live Chat",
          "description": "",
          "order": 1,
          "isDeleted": false
      }
  }
] 

Get site Products

GET global/sites/{siteId}/products

  • Parameters:

No Parameters

  • Response:

An array of Product

  • Example

Sample Request:

curl https://partnerapi.comm100.io/v4/global/sites/100/products \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

[
  {
      "id": "LiveChat",
      "moduleId":"LiveChat",
      "name": "LiveChat",
      "description": "This is LiveChat.",
      "isDeleted": false
  }
] 

Was this article helpful?