POST api/Validation/AddTrial

Request Information

URI Parameters

None.

Body Parameters

trial_add_request
NameDescriptionTypeAdditional information
token

string

None.

customer_id

string

None.

product_id

string

None.

no_of_devices

integer

None.

no_of_branch

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "customer_id": "sample string 2",
  "product_id": "sample string 3",
  "no_of_devices": 4,
  "no_of_branch": 5
}

application/xml, text/xml

Sample:
<trial_add_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models">
  <customer_id>sample string 2</customer_id>
  <no_of_branch>5</no_of_branch>
  <no_of_devices>4</no_of_devices>
  <product_id>sample string 3</product_id>
  <token>sample string 1</token>
</trial_add_request>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

trial_add_response
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

trial_id

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "trial_id": "sample string 3"
}

application/xml, text/xml

Sample:
<trial_add_response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models">
  <message>sample string 2</message>
  <success>true</success>
  <trial_id>sample string 3</trial_id>
</trial_add_response>