POST api/quickbook/UpdateVendor

Update Vendor

Request Information

URI Parameters

None.

Body Parameters

VendorRequestDataModel
NameDescriptionTypeAdditional information
RequestModel

QboCommonRequestModel

None.

QuickbookID

string

None.

VendorId

integer

None.

VendorCode

string

None.

VendorName

string

None.

VendorDescription

string

None.

VendorBalance

decimal number

None.

VendorEmail

string

None.

VendorPhoneCode

string

None.

VendorPhoneNo

string

None.

VendorFaxNo

string

None.

VendorCompanyName

string

None.

VendorContactFirstName

string

None.

VendorContactMiddleName

string

None.

VendorContactLastName

string

None.

VendorAddress

CustomerAddressRequestModel

None.

IsPartialUpdate

boolean

None.

Request Formats

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

Sample:
{
  "requestModel": {
    "userId": 1,
    "apiKey": "sample string 2"
  },
  "quickbookID": "sample string 1",
  "vendorId": 1,
  "vendorCode": "sample string 2",
  "vendorName": "sample string 3",
  "vendorDescription": "sample string 4",
  "vendorBalance": 5.0,
  "vendorEmail": "sample string 6",
  "vendorPhoneCode": "sample string 7",
  "vendorPhoneNo": "sample string 8",
  "vendorFaxNo": "sample string 9",
  "vendorCompanyName": "sample string 10",
  "vendorContactFirstName": "sample string 11",
  "vendorContactMiddleName": "sample string 12",
  "vendorContactLastName": "sample string 13",
  "vendorAddress": {
    "addressL1": "sample string 1",
    "addressL2": "sample string 2",
    "country": "sample string 3",
    "state": "sample string 4",
    "city": "sample string 5",
    "zip": "sample string 6"
  },
  "isPartialUpdate": true
}

application/xml, text/xml

Sample:
<VendorRequestDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <IsPartialUpdate>true</IsPartialUpdate>
  <QuickbookID>sample string 1</QuickbookID>
  <RequestModel>
    <APIKey>sample string 2</APIKey>
    <UserId>1</UserId>
  </RequestModel>
  <VendorAddress>
    <AddressL1>sample string 1</AddressL1>
    <AddressL2>sample string 2</AddressL2>
    <City>sample string 5</City>
    <Country>sample string 3</Country>
    <State>sample string 4</State>
    <Zip>sample string 6</Zip>
  </VendorAddress>
  <VendorBalance>5</VendorBalance>
  <VendorCode>sample string 2</VendorCode>
  <VendorCompanyName>sample string 10</VendorCompanyName>
  <VendorContactFirstName>sample string 11</VendorContactFirstName>
  <VendorContactLastName>sample string 13</VendorContactLastName>
  <VendorContactMiddleName>sample string 12</VendorContactMiddleName>
  <VendorDescription>sample string 4</VendorDescription>
  <VendorEmail>sample string 6</VendorEmail>
  <VendorFaxNo>sample string 9</VendorFaxNo>
  <VendorId>1</VendorId>
  <VendorName>sample string 3</VendorName>
  <VendorPhoneCode>sample string 7</VendorPhoneCode>
  <VendorPhoneNo>sample string 8</VendorPhoneNo>
</VendorRequestDataModel>

multipart/form-data

Sample:
<VendorRequestDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><IsPartialUpdate>true</IsPartialUpdate><QuickbookID>sample string 1</QuickbookID><RequestModel><APIKey>sample string 2</APIKey><UserId>1</UserId></RequestModel><VendorAddress><AddressL1>sample string 1</AddressL1><AddressL2>sample string 2</AddressL2><City>sample string 5</City><Country>sample string 3</Country><State>sample string 4</State><Zip>sample string 6</Zip></VendorAddress><VendorBalance>5</VendorBalance><VendorCode>sample string 2</VendorCode><VendorCompanyName>sample string 10</VendorCompanyName><VendorContactFirstName>sample string 11</VendorContactFirstName><VendorContactLastName>sample string 13</VendorContactLastName><VendorContactMiddleName>sample string 12</VendorContactMiddleName><VendorDescription>sample string 4</VendorDescription><VendorEmail>sample string 6</VendorEmail><VendorFaxNo>sample string 9</VendorFaxNo><VendorId>1</VendorId><VendorName>sample string 3</VendorName><VendorPhoneCode>sample string 7</VendorPhoneCode><VendorPhoneNo>sample string 8</VendorPhoneNo></VendorRequestDataModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Action Status

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/ATMP.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/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>