POST   https://api.d-tools.com/SI/Publish/Vendors/Update

Update an existing vendor in SI (BETA)

Request Information

URI Parameters

None.

Body Parameters

UpdateVendor
NameDescriptionTypeAdditional information
IntegrationId

Integration Id of vendor to update (Must pass either IntegrationId Or Vendor Number)

string

None.

Number

Number of vendor to update (Must pass either IntegrationId Or Vendor Number)

string

None.

UpdateFields

List of UpdateFields for the vendor. Each UpdateField has a Id and a Value.

Collection of UpdateVendorField

None.

SiteAddress

Vendor Site Address

Address

None.

BillingAddress

Vendor Billing Address

Address

None.

Request Formats

application/json, text/json

Sample:
{
  "IntegrationId": "sample string 1",
  "Number": "sample string 2",
  "UpdateFields": [
    {
      "VendorFieldId": 64,
      "Value": "sample string 2"
    },
    {
      "VendorFieldId": 64,
      "Value": "sample string 2"
    }
  ],
  "SiteAddress": {
    "Street1": "sample string 1",
    "Street2": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "PostalCode": "sample string 5",
    "Country": "sample string 6",
    "Phone": "sample string 7",
    "Fax": "sample string 8"
  },
  "BillingAddress": {
    "Street1": "sample string 1",
    "Street2": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "PostalCode": "sample string 5",
    "Country": "sample string 6",
    "Phone": "sample string 7",
    "Fax": "sample string 8"
  }
}

application/xml, text/xml

Sample:
<UpdateVendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects">
  <BillingAddress>
    <City>sample string 3</City>
    <Country>sample string 6</Country>
    <Fax>sample string 8</Fax>
    <Phone>sample string 7</Phone>
    <PostalCode>sample string 5</PostalCode>
    <State>sample string 4</State>
    <Street1>sample string 1</Street1>
    <Street2>sample string 2</Street2>
  </BillingAddress>
  <IntegrationId>sample string 1</IntegrationId>
  <Number>sample string 2</Number>
  <SiteAddress>
    <City>sample string 3</City>
    <Country>sample string 6</Country>
    <Fax>sample string 8</Fax>
    <Phone>sample string 7</Phone>
    <PostalCode>sample string 5</PostalCode>
    <State>sample string 4</State>
    <Street1>sample string 1</Street1>
    <Street2>sample string 2</Street2>
  </SiteAddress>
  <UpdateFields>
    <UpdateVendorField>
      <Value>sample string 2</Value>
      <VendorFieldId>64</VendorFieldId>
    </UpdateVendorField>
    <UpdateVendorField>
      <Value>sample string 2</Value>
      <VendorFieldId>64</VendorFieldId>
    </UpdateVendorField>
  </UpdateFields>
</UpdateVendor>

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 'UpdateVendor'.

Response Information

Resource Description

PublishResponse
NameDescriptionTypeAdditional information
MessageId

Check the status of the transaction using this Message Id

globally unique identifier

None.

Message

Success Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageId": "3db5edd1-78cb-457c-ab75-a629440a2a64",
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<PublishResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTools.SICloudAPI.DataObjects">
  <Message>sample string 2</Message>
  <MessageId>3db5edd1-78cb-457c-ab75-a629440a2a64</MessageId>
</PublishResponse>