POST api/NTCosCompany/SaveCompanyCOSService

Request Information

URI Parameters

None.

Body Parameters

Collection of CompanyCOSServiceDTO
NameDescriptionTypeAdditional information
COSServiceId

integer

None.

Name

string

String length: inclusive between 0 and 50

Status

boolean

None.

Sequence

integer

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:
[
  {
    "COSServiceId": 1,
    "Name": "sample string 2",
    "Status": true,
    "Sequence": 1,
    "ValidFlag": true,
    "DateCreated": "2025-04-05T06:28:45.4381172-07:00",
    "DateUpdated": "2025-04-05T06:28:45.4381172-07:00",
    "UserIDCreated": 7,
    "UserIDUpdated": 8,
    "CompanyCode": "sample string 9",
    "IsExcludeDiscount": true
  },
  {
    "COSServiceId": 1,
    "Name": "sample string 2",
    "Status": true,
    "Sequence": 1,
    "ValidFlag": true,
    "DateCreated": "2025-04-05T06:28:45.4381172-07:00",
    "DateUpdated": "2025-04-05T06:28:45.4381172-07:00",
    "UserIDCreated": 7,
    "UserIDUpdated": 8,
    "CompanyCode": "sample string 9",
    "IsExcludeDiscount": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCompanyCOSServiceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
  <CompanyCOSServiceDTO>
    <CompanyCode>sample string 9</CompanyCode>
    <DateCreated>2025-04-05T06:28:45.4381172-07:00</DateCreated>
    <DateUpdated>2025-04-05T06:28:45.4381172-07:00</DateUpdated>
    <IsExcludeDiscount>true</IsExcludeDiscount>
    <UserIDCreated>7</UserIDCreated>
    <UserIDUpdated>8</UserIDUpdated>
    <ValidFlag>true</ValidFlag>
    <COSServiceId>1</COSServiceId>
    <Name>sample string 2</Name>
    <Sequence>1</Sequence>
    <Status>true</Status>
  </CompanyCOSServiceDTO>
  <CompanyCOSServiceDTO>
    <CompanyCode>sample string 9</CompanyCode>
    <DateCreated>2025-04-05T06:28:45.4381172-07:00</DateCreated>
    <DateUpdated>2025-04-05T06:28:45.4381172-07:00</DateUpdated>
    <IsExcludeDiscount>true</IsExcludeDiscount>
    <UserIDCreated>7</UserIDCreated>
    <UserIDUpdated>8</UserIDUpdated>
    <ValidFlag>true</ValidFlag>
    <COSServiceId>1</COSServiceId>
    <Name>sample string 2</Name>
    <Sequence>1</Sequence>
    <Status>true</Status>
  </CompanyCOSServiceDTO>
</ArrayOfCompanyCOSServiceDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AsapResponseOfListOfCompanyCOSServiceDTO
NameDescriptionTypeAdditional information
isSuccess

boolean

None.

message

string

None.

jsonObj

Collection of CompanyCOSServiceDTO

None.

totalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "message": "sample string 2",
  "jsonObj": [
    {
      "COSServiceId": 1,
      "Name": "sample string 2",
      "Status": true,
      "Sequence": 1,
      "ValidFlag": true,
      "DateCreated": "2025-04-05T06:28:45.4544933-07:00",
      "DateUpdated": "2025-04-05T06:28:45.4544933-07:00",
      "UserIDCreated": 7,
      "UserIDUpdated": 8,
      "CompanyCode": "sample string 9",
      "IsExcludeDiscount": true
    },
    {
      "COSServiceId": 1,
      "Name": "sample string 2",
      "Status": true,
      "Sequence": 1,
      "ValidFlag": true,
      "DateCreated": "2025-04-05T06:28:45.4544933-07:00",
      "DateUpdated": "2025-04-05T06:28:45.4544933-07:00",
      "UserIDCreated": 7,
      "UserIDUpdated": 8,
      "CompanyCode": "sample string 9",
      "IsExcludeDiscount": true
    }
  ],
  "totalCount": 3
}

application/xml, text/xml

Sample:
<AsapResponseOfArrayOfCompanyCOSServiceDTO3NYuOdgi 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:CompanyCOSServiceDTO>
      <d2p1:CompanyCode>sample string 9</d2p1:CompanyCode>
      <d2p1:DateCreated>2025-04-05T06:28:45.4544933-07:00</d2p1:DateCreated>
      <d2p1:DateUpdated>2025-04-05T06:28:45.4544933-07:00</d2p1:DateUpdated>
      <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
      <d2p1:UserIDCreated>7</d2p1:UserIDCreated>
      <d2p1:UserIDUpdated>8</d2p1:UserIDUpdated>
      <d2p1:ValidFlag>true</d2p1:ValidFlag>
      <d2p1:COSServiceId>1</d2p1:COSServiceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Sequence>1</d2p1:Sequence>
      <d2p1:Status>true</d2p1:Status>
    </d2p1:CompanyCOSServiceDTO>
    <d2p1:CompanyCOSServiceDTO>
      <d2p1:CompanyCode>sample string 9</d2p1:CompanyCode>
      <d2p1:DateCreated>2025-04-05T06:28:45.4544933-07:00</d2p1:DateCreated>
      <d2p1:DateUpdated>2025-04-05T06:28:45.4544933-07:00</d2p1:DateUpdated>
      <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
      <d2p1:UserIDCreated>7</d2p1:UserIDCreated>
      <d2p1:UserIDUpdated>8</d2p1:UserIDUpdated>
      <d2p1:ValidFlag>true</d2p1:ValidFlag>
      <d2p1:COSServiceId>1</d2p1:COSServiceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Sequence>1</d2p1:Sequence>
      <d2p1:Status>true</d2p1:Status>
    </d2p1:CompanyCOSServiceDTO>
  </jsonObj>
  <message>sample string 2</message>
  <totalCount>3</totalCount>
</AsapResponseOfArrayOfCompanyCOSServiceDTO3NYuOdgi>