POST crm/products

Get id and name of CRM products by product group or product name.

Request Information

Parameters

NameDescription
json
  • ProductGroup [ Y , string ]
    We can get different products by product group , value must be the same as item group in salesforce
  • ProductName [ Y , string ]
    We can get product id by product name , value must be the same as item number in salesforce

Request body formats

application/json, text/json, text/plain, application/x-www-form-urlencoded

Sample:

{
      "crm_product_group": "Learner Licencing",
      "crm_product_name": ""
}
Or
{
      "crm_product_group": "",
      "crm_product_name": "RT135"
}

Response Information

Response body formats

application/json, text/json

Sample:

{
  "delivery": "true",
  "receipt": "Get products successfully.",
  "products": [
   {
      "product_id": "01t90000000P92vAAC",
       "product_name": "GenWatt Diesel 200kW"
   },
   {
      "product_id": "01t90000000P92wAAC",
       "product_name": "GenWatt Diesel 10kW"
   },
   {
      "product_id": "01t90000000P92zAAC",
       "product_name": "GenWatt Propane 500kW"
   },
   {
      "product_id": "01t90000003EDK6AAO",
       "product_name": "CBR1000RRA9UB1"
   },
   {
      "product_id": "01t90000005lQINAA2",
       "product_name": "RT135"
   }
  ],
}
Or Product Response:
{
"delivery": "true",
"receipt": "Get products successfully.",
"product_id": "01t90000005lQINAA2",
"product_name": "RT135",
"audit_id": "569"
}
Or Bad Response: 
   Get products failed.