POST api/CustomerGroup/CheckCustomerGroupCode

Request Information

URI Parameters

None.

Body Parameters

CustomerGroupModel
NameDescriptionTypeAdditional information
CustomerGroupId

integer

None.

CustomerId

integer

None.

CustomerGroupName

string

None.

CustomerGroupCode

string

None.

AddressId

integer

None.

CompanyId

integer

None.

EmployeeId

integer

None.

IsDeleted

boolean

None.

UnAdjustedCreditAmt

decimal number

None.

Address

Collection of AddressModel

None.

Filter

string

None.

IsItemCategory

boolean

None.

SSNO

string

None.

PageSize

integer

None.

PageNumber

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerGroupId": 1,
  "CustomerId": 2,
  "CustomerGroupName": "sample string 3",
  "CustomerGroupCode": "sample string 4",
  "AddressId": 5,
  "CompanyId": 6,
  "EmployeeId": 7,
  "IsDeleted": true,
  "UnAdjustedCreditAmt": 8.0,
  "Address": [
    {
      "AddressId": 1,
      "Address": "sample string 2",
      "City": "sample string 3",
      "StateId": 4,
      "CountryId": 5,
      "ZipCode": "sample string 6",
      "Phone1": "sample string 7",
      "Phone2": "sample string 8",
      "MobileNo": "sample string 9",
      "FaxNo": "sample string 10",
      "Pager": "sample string 11",
      "Email": "sample string 12",
      "AddressTitle": "sample string 13",
      "AddressType": "sample string 14",
      "IsDefault": true,
      "ContactName": "sample string 15",
      "CustomerAddressId": 16,
      "CustomerId": 17,
      "CreatedBy": 18,
      "UpdatedBy": 19,
      "Longitude": "sample string 20",
      "Latitude": "sample string 21"
    },
    {
      "AddressId": 1,
      "Address": "sample string 2",
      "City": "sample string 3",
      "StateId": 4,
      "CountryId": 5,
      "ZipCode": "sample string 6",
      "Phone1": "sample string 7",
      "Phone2": "sample string 8",
      "MobileNo": "sample string 9",
      "FaxNo": "sample string 10",
      "Pager": "sample string 11",
      "Email": "sample string 12",
      "AddressTitle": "sample string 13",
      "AddressType": "sample string 14",
      "IsDefault": true,
      "ContactName": "sample string 15",
      "CustomerAddressId": 16,
      "CustomerId": 17,
      "CreatedBy": 18,
      "UpdatedBy": 19,
      "Longitude": "sample string 20",
      "Latitude": "sample string 21"
    }
  ],
  "Filter": "sample string 9",
  "IsItemCategory": true,
  "SSNO": "sample string 11",
  "PageSize": 12,
  "PageNumber": 13
}

application/xml, text/xml

Sample:
<CustomerGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OMSWebApi.Models">
  <Address>
    <AddressModel>
      <Address>sample string 2</Address>
      <AddressId>1</AddressId>
      <AddressTitle>sample string 13</AddressTitle>
      <AddressType>sample string 14</AddressType>
      <City>sample string 3</City>
      <ContactName>sample string 15</ContactName>
      <CountryId>5</CountryId>
      <CreatedBy>18</CreatedBy>
      <CustomerAddressId>16</CustomerAddressId>
      <CustomerId>17</CustomerId>
      <Email>sample string 12</Email>
      <FaxNo>sample string 10</FaxNo>
      <IsDefault>true</IsDefault>
      <Latitude>sample string 21</Latitude>
      <Longitude>sample string 20</Longitude>
      <MobileNo>sample string 9</MobileNo>
      <Pager>sample string 11</Pager>
      <Phone1>sample string 7</Phone1>
      <Phone2>sample string 8</Phone2>
      <StateId>4</StateId>
      <UpdatedBy>19</UpdatedBy>
      <ZipCode>sample string 6</ZipCode>
    </AddressModel>
    <AddressModel>
      <Address>sample string 2</Address>
      <AddressId>1</AddressId>
      <AddressTitle>sample string 13</AddressTitle>
      <AddressType>sample string 14</AddressType>
      <City>sample string 3</City>
      <ContactName>sample string 15</ContactName>
      <CountryId>5</CountryId>
      <CreatedBy>18</CreatedBy>
      <CustomerAddressId>16</CustomerAddressId>
      <CustomerId>17</CustomerId>
      <Email>sample string 12</Email>
      <FaxNo>sample string 10</FaxNo>
      <IsDefault>true</IsDefault>
      <Latitude>sample string 21</Latitude>
      <Longitude>sample string 20</Longitude>
      <MobileNo>sample string 9</MobileNo>
      <Pager>sample string 11</Pager>
      <Phone1>sample string 7</Phone1>
      <Phone2>sample string 8</Phone2>
      <StateId>4</StateId>
      <UpdatedBy>19</UpdatedBy>
      <ZipCode>sample string 6</ZipCode>
    </AddressModel>
  </Address>
  <AddressId>5</AddressId>
  <CompanyId>6</CompanyId>
  <CustomerGroupCode>sample string 4</CustomerGroupCode>
  <CustomerGroupId>1</CustomerGroupId>
  <CustomerGroupName>sample string 3</CustomerGroupName>
  <CustomerId>2</CustomerId>
  <EmployeeId>7</EmployeeId>
  <Filter>sample string 9</Filter>
  <IsDeleted>true</IsDeleted>
  <IsItemCategory>true</IsItemCategory>
  <PageNumber>13</PageNumber>
  <PageSize>12</PageSize>
  <SSNO>sample string 11</SSNO>
  <UnAdjustedCreditAmt>8</UnAdjustedCreditAmt>
</CustomerGroupModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CustomerGroupModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.