POST api/Serials
Request Information
URI Parameters
None.
Body Parameters
Serial| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialStr | string |
String length: inclusive between 0 and 20 |
|
| ProductCode | string |
String length: inclusive between 0 and 20 |
|
| Assigned | boolean |
None. |
|
| Activated | boolean |
None. |
|
| AssignedCustomerName | string |
String length: inclusive between 0 and 50 |
|
| ActivatedCustomerName | string |
String length: inclusive between 0 and 50 |
|
| CustomerCity | string |
None. |
|
| CustomerState | string |
None. |
|
| CustomerPhone | string |
None. |
|
| CustomerEmail | string |
None. |
|
| ActivationTime | date |
None. |
|
| PCKey | string |
None. |
|
| ActivatedBy | string |
None. |
|
| ActivationCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"SerialStr": "sample string 1",
"ProductCode": "sample string 2",
"Assigned": true,
"Activated": true,
"AssignedCustomerName": "sample string 5",
"ActivatedCustomerName": "sample string 6",
"CustomerCity": "sample string 7",
"CustomerState": "sample string 8",
"CustomerPhone": "sample string 9",
"CustomerEmail": "sample string 10",
"ActivationTime": "2025-12-15T21:33:11.0396285+03:30",
"PCKey": "sample string 12",
"ActivatedBy": "sample string 13",
"ActivationCode": "sample string 14"
}
application/xml, text/xml
Sample:
<Serial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SharifLicensing.DataLayer"> <Activated>true</Activated> <ActivatedBy>sample string 13</ActivatedBy> <ActivatedCustomerName>sample string 6</ActivatedCustomerName> <ActivationCode>sample string 14</ActivationCode> <ActivationTime>2025-12-15T21:33:11.0396285+03:30</ActivationTime> <Assigned>true</Assigned> <AssignedCustomerName>sample string 5</AssignedCustomerName> <CustomerCity>sample string 7</CustomerCity> <CustomerEmail>sample string 10</CustomerEmail> <CustomerPhone>sample string 9</CustomerPhone> <CustomerState>sample string 8</CustomerState> <PCKey>sample string 12</PCKey> <ProductCode>sample string 2</ProductCode> <SerialStr>sample string 1</SerialStr> </Serial>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Serial| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialStr | string |
String length: inclusive between 0 and 20 |
|
| ProductCode | string |
String length: inclusive between 0 and 20 |
|
| Assigned | boolean |
None. |
|
| Activated | boolean |
None. |
|
| AssignedCustomerName | string |
String length: inclusive between 0 and 50 |
|
| ActivatedCustomerName | string |
String length: inclusive between 0 and 50 |
|
| CustomerCity | string |
None. |
|
| CustomerState | string |
None. |
|
| CustomerPhone | string |
None. |
|
| CustomerEmail | string |
None. |
|
| ActivationTime | date |
None. |
|
| PCKey | string |
None. |
|
| ActivatedBy | string |
None. |
|
| ActivationCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"SerialStr": "sample string 1",
"ProductCode": "sample string 2",
"Assigned": true,
"Activated": true,
"AssignedCustomerName": "sample string 5",
"ActivatedCustomerName": "sample string 6",
"CustomerCity": "sample string 7",
"CustomerState": "sample string 8",
"CustomerPhone": "sample string 9",
"CustomerEmail": "sample string 10",
"ActivationTime": "2025-12-15T21:33:11.0552617+03:30",
"PCKey": "sample string 12",
"ActivatedBy": "sample string 13",
"ActivationCode": "sample string 14"
}
application/xml, text/xml
Sample:
<Serial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SharifLicensing.DataLayer"> <Activated>true</Activated> <ActivatedBy>sample string 13</ActivatedBy> <ActivatedCustomerName>sample string 6</ActivatedCustomerName> <ActivationCode>sample string 14</ActivationCode> <ActivationTime>2025-12-15T21:33:11.0552617+03:30</ActivationTime> <Assigned>true</Assigned> <AssignedCustomerName>sample string 5</AssignedCustomerName> <CustomerCity>sample string 7</CustomerCity> <CustomerEmail>sample string 10</CustomerEmail> <CustomerPhone>sample string 9</CustomerPhone> <CustomerState>sample string 8</CustomerState> <PCKey>sample string 12</PCKey> <ProductCode>sample string 2</ProductCode> <SerialStr>sample string 1</SerialStr> </Serial>