POST api/NTOrderSettings/PostMedication
Request Information
URI Parameters
None.
Body Parameters
MedicationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
String length: inclusive between 0 and 200 |
|
| Sequence | integer |
None. |
|
| Description | string |
String length: inclusive between 0 and 4000 |
|
| Protocols | string |
String length: inclusive between 0 and 4000 |
|
| lstMedicationDose | Collection of MedicationDoseDTO |
None. |
|
| lstMedicationBrand | Collection of MedicationBrandDTO |
None. |
|
| SearchedBrand | string |
String length: inclusive between 0 and 100 |
|
| IsAuthorizationRequired | boolean |
None. |
|
| ValidFlag | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateUpdated | date |
None. |
|
| UserIDCreated | integer |
None. |
|
| UserIDUpdated | integer |
None. |
|
| CompanyCode | string |
String length: inclusive between 0 and 20 |
|
| IsExcludeDiscount | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Sequence": 3,
"Description": "sample string 4",
"Protocols": "sample string 5",
"lstMedicationDose": [
{
"Id": 1,
"DoseName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"IsClassifiedAsMedicalTreatment": true,
"TangAndCompanyCode": "sample string 6",
"Instruction": "sample string 7",
"IsFavourite": true,
"Quantity": 1,
"CPTCode": "sample string 9",
"NDCCode": "sample string 10",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9213648-07:00",
"DateUpdated": "2025-10-30T07:42:42.9213648-07:00",
"UserIDCreated": 15,
"UserIDUpdated": 16,
"CompanyCode": "sample string 17",
"IsExcludeDiscount": true
},
{
"Id": 1,
"DoseName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"IsClassifiedAsMedicalTreatment": true,
"TangAndCompanyCode": "sample string 6",
"Instruction": "sample string 7",
"IsFavourite": true,
"Quantity": 1,
"CPTCode": "sample string 9",
"NDCCode": "sample string 10",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9213648-07:00",
"DateUpdated": "2025-10-30T07:42:42.9213648-07:00",
"UserIDCreated": 15,
"UserIDUpdated": 16,
"CompanyCode": "sample string 17",
"IsExcludeDiscount": true
}
],
"lstMedicationBrand": [
{
"Id": 1,
"BrandName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9219436-07:00",
"DateUpdated": "2025-10-30T07:42:42.9219436-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
},
{
"Id": 1,
"BrandName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9219436-07:00",
"DateUpdated": "2025-10-30T07:42:42.9219436-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
}
],
"SearchedBrand": "sample string 6",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9219436-07:00",
"DateUpdated": "2025-10-30T07:42:42.9219436-07:00",
"UserIDCreated": 11,
"UserIDUpdated": 12,
"CompanyCode": "sample string 13",
"IsExcludeDiscount": true
}
application/xml, text/xml
Sample:
<MedicationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
<CompanyCode>sample string 13</CompanyCode>
<DateCreated>2025-10-30T07:42:42.9219436-07:00</DateCreated>
<DateUpdated>2025-10-30T07:42:42.9219436-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>11</UserIDCreated>
<UserIDUpdated>12</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<Description>sample string 4</Description>
<Id>1</Id>
<IsAuthorizationRequired>true</IsAuthorizationRequired>
<Name>sample string 2</Name>
<Protocols>sample string 5</Protocols>
<SearchedBrand>sample string 6</SearchedBrand>
<Sequence>3</Sequence>
<lstMedicationBrand>
<MedicationBrandDTO>
<CompanyCode>sample string 10</CompanyCode>
<DateCreated>2025-10-30T07:42:42.9219436-07:00</DateCreated>
<DateUpdated>2025-10-30T07:42:42.9219436-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>8</UserIDCreated>
<UserIDUpdated>9</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<BrandName>sample string 2</BrandName>
<Id>1</Id>
<MedicationId>4</MedicationId>
<Sequence>3</Sequence>
</MedicationBrandDTO>
<MedicationBrandDTO>
<CompanyCode>sample string 10</CompanyCode>
<DateCreated>2025-10-30T07:42:42.9219436-07:00</DateCreated>
<DateUpdated>2025-10-30T07:42:42.9219436-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>8</UserIDCreated>
<UserIDUpdated>9</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<BrandName>sample string 2</BrandName>
<Id>1</Id>
<MedicationId>4</MedicationId>
<Sequence>3</Sequence>
</MedicationBrandDTO>
</lstMedicationBrand>
<lstMedicationDose>
<MedicationDoseDTO>
<CompanyCode>sample string 17</CompanyCode>
<DateCreated>2025-10-30T07:42:42.9213648-07:00</DateCreated>
<DateUpdated>2025-10-30T07:42:42.9213648-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>15</UserIDCreated>
<UserIDUpdated>16</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<CPTCode>sample string 9</CPTCode>
<DoseName>sample string 2</DoseName>
<Id>1</Id>
<Instruction>sample string 7</Instruction>
<IsAuthorizationRequired>true</IsAuthorizationRequired>
<IsClassifiedAsMedicalTreatment>true</IsClassifiedAsMedicalTreatment>
<IsFavourite>true</IsFavourite>
<MedicationId>4</MedicationId>
<NDCCode>sample string 10</NDCCode>
<Quantity>1</Quantity>
<Sequence>3</Sequence>
<TangAndCompanyCode>sample string 6</TangAndCompanyCode>
</MedicationDoseDTO>
<MedicationDoseDTO>
<CompanyCode>sample string 17</CompanyCode>
<DateCreated>2025-10-30T07:42:42.9213648-07:00</DateCreated>
<DateUpdated>2025-10-30T07:42:42.9213648-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>15</UserIDCreated>
<UserIDUpdated>16</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<CPTCode>sample string 9</CPTCode>
<DoseName>sample string 2</DoseName>
<Id>1</Id>
<Instruction>sample string 7</Instruction>
<IsAuthorizationRequired>true</IsAuthorizationRequired>
<IsClassifiedAsMedicalTreatment>true</IsClassifiedAsMedicalTreatment>
<IsFavourite>true</IsFavourite>
<MedicationId>4</MedicationId>
<NDCCode>sample string 10</NDCCode>
<Quantity>1</Quantity>
<Sequence>3</Sequence>
<TangAndCompanyCode>sample string 6</TangAndCompanyCode>
</MedicationDoseDTO>
</lstMedicationDose>
</MedicationDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfMedicationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| jsonObj | MedicationDTO |
None. |
|
| totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"jsonObj": {
"Id": 1,
"Name": "sample string 2",
"Sequence": 3,
"Description": "sample string 4",
"Protocols": "sample string 5",
"lstMedicationDose": [
{
"Id": 1,
"DoseName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"IsClassifiedAsMedicalTreatment": true,
"TangAndCompanyCode": "sample string 6",
"Instruction": "sample string 7",
"IsFavourite": true,
"Quantity": 1,
"CPTCode": "sample string 9",
"NDCCode": "sample string 10",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9375801-07:00",
"DateUpdated": "2025-10-30T07:42:42.9375801-07:00",
"UserIDCreated": 15,
"UserIDUpdated": 16,
"CompanyCode": "sample string 17",
"IsExcludeDiscount": true
},
{
"Id": 1,
"DoseName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"IsClassifiedAsMedicalTreatment": true,
"TangAndCompanyCode": "sample string 6",
"Instruction": "sample string 7",
"IsFavourite": true,
"Quantity": 1,
"CPTCode": "sample string 9",
"NDCCode": "sample string 10",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9375801-07:00",
"DateUpdated": "2025-10-30T07:42:42.9375801-07:00",
"UserIDCreated": 15,
"UserIDUpdated": 16,
"CompanyCode": "sample string 17",
"IsExcludeDiscount": true
}
],
"lstMedicationBrand": [
{
"Id": 1,
"BrandName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9375801-07:00",
"DateUpdated": "2025-10-30T07:42:42.9375801-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
},
{
"Id": 1,
"BrandName": "sample string 2",
"Sequence": 3,
"MedicationId": 4,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9375801-07:00",
"DateUpdated": "2025-10-30T07:42:42.9375801-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9,
"CompanyCode": "sample string 10",
"IsExcludeDiscount": true
}
],
"SearchedBrand": "sample string 6",
"IsAuthorizationRequired": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:42:42.9375801-07:00",
"DateUpdated": "2025-10-30T07:42:42.9375801-07:00",
"UserIDCreated": 11,
"UserIDUpdated": 12,
"CompanyCode": "sample string 13",
"IsExcludeDiscount": true
},
"totalCount": 3
}
application/xml, text/xml
Sample:
<AsapResponseOfMedicationDTO3NYuOdgi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
<isSuccess>true</isSuccess>
<jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
<d2p1:CompanyCode>sample string 13</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>11</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>12</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsAuthorizationRequired>true</d2p1:IsAuthorizationRequired>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Protocols>sample string 5</d2p1:Protocols>
<d2p1:SearchedBrand>sample string 6</d2p1:SearchedBrand>
<d2p1:Sequence>3</d2p1:Sequence>
<d2p1:lstMedicationBrand>
<d2p1:MedicationBrandDTO>
<d2p1:CompanyCode>sample string 10</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>8</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>9</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:BrandName>sample string 2</d2p1:BrandName>
<d2p1:Id>1</d2p1:Id>
<d2p1:MedicationId>4</d2p1:MedicationId>
<d2p1:Sequence>3</d2p1:Sequence>
</d2p1:MedicationBrandDTO>
<d2p1:MedicationBrandDTO>
<d2p1:CompanyCode>sample string 10</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>8</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>9</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:BrandName>sample string 2</d2p1:BrandName>
<d2p1:Id>1</d2p1:Id>
<d2p1:MedicationId>4</d2p1:MedicationId>
<d2p1:Sequence>3</d2p1:Sequence>
</d2p1:MedicationBrandDTO>
</d2p1:lstMedicationBrand>
<d2p1:lstMedicationDose>
<d2p1:MedicationDoseDTO>
<d2p1:CompanyCode>sample string 17</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>15</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>16</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:CPTCode>sample string 9</d2p1:CPTCode>
<d2p1:DoseName>sample string 2</d2p1:DoseName>
<d2p1:Id>1</d2p1:Id>
<d2p1:Instruction>sample string 7</d2p1:Instruction>
<d2p1:IsAuthorizationRequired>true</d2p1:IsAuthorizationRequired>
<d2p1:IsClassifiedAsMedicalTreatment>true</d2p1:IsClassifiedAsMedicalTreatment>
<d2p1:IsFavourite>true</d2p1:IsFavourite>
<d2p1:MedicationId>4</d2p1:MedicationId>
<d2p1:NDCCode>sample string 10</d2p1:NDCCode>
<d2p1:Quantity>1</d2p1:Quantity>
<d2p1:Sequence>3</d2p1:Sequence>
<d2p1:TangAndCompanyCode>sample string 6</d2p1:TangAndCompanyCode>
</d2p1:MedicationDoseDTO>
<d2p1:MedicationDoseDTO>
<d2p1:CompanyCode>sample string 17</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T07:42:42.9375801-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>15</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>16</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:CPTCode>sample string 9</d2p1:CPTCode>
<d2p1:DoseName>sample string 2</d2p1:DoseName>
<d2p1:Id>1</d2p1:Id>
<d2p1:Instruction>sample string 7</d2p1:Instruction>
<d2p1:IsAuthorizationRequired>true</d2p1:IsAuthorizationRequired>
<d2p1:IsClassifiedAsMedicalTreatment>true</d2p1:IsClassifiedAsMedicalTreatment>
<d2p1:IsFavourite>true</d2p1:IsFavourite>
<d2p1:MedicationId>4</d2p1:MedicationId>
<d2p1:NDCCode>sample string 10</d2p1:NDCCode>
<d2p1:Quantity>1</d2p1:Quantity>
<d2p1:Sequence>3</d2p1:Sequence>
<d2p1:TangAndCompanyCode>sample string 6</d2p1:TangAndCompanyCode>
</d2p1:MedicationDoseDTO>
</d2p1:lstMedicationDose>
</jsonObj>
<message>sample string 2</message>
<totalCount>3</totalCount>
</AsapResponseOfMedicationDTO3NYuOdgi>