POST api/Vendor/SaveVendor

Api to save Vendor with Service Types

Request Information

URI Parameters

None.

Body Parameters

InsertUpdateVendorWithServiceTypesRequestModel
NameDescriptionTypeAdditional information
VendorID

integer

None.

BillComVendorID

string

None.

Name

string

None.

FirstName

string

None.

LastName

string

None.

Code

string

None.

ContactPersionName

string

None.

ContactPersonEmail

string

None.

ContactPersonPhone

string

None.

ContactPerson

string

None.

AddressStreet

string

None.

CityID

integer

None.

CityName

string

None.

StateID

integer

None.

StateName

string

None.

ZipCode

string

None.

SageRecordNo

integer

None.

CountyID

integer

None.

CountyName

string

None.

IsSageSynced

boolean

None.

VendorStatusID

integer

None.

ServiceTypes

Collection of VendorServiceTypeRequestModel

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "vendorID": 1,
  "billComVendorID": "sample string 1",
  "name": "sample string 2",
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "code": "sample string 5",
  "contactPersionName": "sample string 6",
  "contactPersonEmail": "sample string 7",
  "contactPersonPhone": "sample string 8",
  "contactPerson": "sample string 9",
  "addressStreet": "sample string 10",
  "cityID": 1,
  "cityName": "sample string 11",
  "stateID": 1,
  "stateName": "sample string 12",
  "zipCode": "sample string 13",
  "sageRecordNo": 14,
  "countyID": 1,
  "countyName": "sample string 15",
  "isSageSynced": true,
  "vendorStatusID": 1,
  "serviceTypes": [
    {
      "vendorServiceTypeID": 1,
      "vendorServiceTypeName": "sample string 1"
    },
    {
      "vendorServiceTypeID": 1,
      "vendorServiceTypeName": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<InsertUpdateVendorWithServiceTypesRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.Facility">
  <AddressStreet>sample string 10</AddressStreet>
  <BillComVendorID>sample string 1</BillComVendorID>
  <CityID>1</CityID>
  <CityName>sample string 11</CityName>
  <Code>sample string 5</Code>
  <ContactPersionName>sample string 6</ContactPersionName>
  <ContactPerson>sample string 9</ContactPerson>
  <ContactPersonEmail>sample string 7</ContactPersonEmail>
  <ContactPersonPhone>sample string 8</ContactPersonPhone>
  <CountyID>1</CountyID>
  <CountyName>sample string 15</CountyName>
  <FirstName>sample string 3</FirstName>
  <IsSageSynced>true</IsSageSynced>
  <LastName>sample string 4</LastName>
  <Name>sample string 2</Name>
  <SageRecordNo>14</SageRecordNo>
  <ServiceTypes>
    <VendorServiceTypeRequestModel>
      <VendorServiceTypeID>1</VendorServiceTypeID>
      <VendorServiceTypeName>sample string 1</VendorServiceTypeName>
    </VendorServiceTypeRequestModel>
    <VendorServiceTypeRequestModel>
      <VendorServiceTypeID>1</VendorServiceTypeID>
      <VendorServiceTypeName>sample string 1</VendorServiceTypeName>
    </VendorServiceTypeRequestModel>
  </ServiceTypes>
  <StateID>1</StateID>
  <StateName>sample string 12</StateName>
  <VendorID>1</VendorID>
  <VendorStatusID>1</VendorStatusID>
  <ZipCode>sample string 13</ZipCode>
</InsertUpdateVendorWithServiceTypesRequestModel>

multipart/form-data

Sample:
<InsertUpdateVendorWithServiceTypesRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.Facility"><AddressStreet>sample string 10</AddressStreet><BillComVendorID>sample string 1</BillComVendorID><CityID>1</CityID><CityName>sample string 11</CityName><Code>sample string 5</Code><ContactPersionName>sample string 6</ContactPersionName><ContactPerson>sample string 9</ContactPerson><ContactPersonEmail>sample string 7</ContactPersonEmail><ContactPersonPhone>sample string 8</ContactPersonPhone><CountyID>1</CountyID><CountyName>sample string 15</CountyName><FirstName>sample string 3</FirstName><IsSageSynced>true</IsSageSynced><LastName>sample string 4</LastName><Name>sample string 2</Name><SageRecordNo>14</SageRecordNo><ServiceTypes><VendorServiceTypeRequestModel><VendorServiceTypeID>1</VendorServiceTypeID><VendorServiceTypeName>sample string 1</VendorServiceTypeName></VendorServiceTypeRequestModel><VendorServiceTypeRequestModel><VendorServiceTypeID>1</VendorServiceTypeID><VendorServiceTypeName>sample string 1</VendorServiceTypeName></VendorServiceTypeRequestModel></ServiceTypes><StateID>1</StateID><StateName>sample string 12</StateName><VendorID>1</VendorID><VendorStatusID>1</VendorStatusID><ZipCode>sample string 13</ZipCode></InsertUpdateVendorWithServiceTypesRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>