POST v6/api_1169/AddOrUpdateSuppliers

Adds or updates suppliers

Request Information

URI Parameters

None.

Body Parameters

CommandModelOfSupplierModel
NameDescriptionTypeAdditional information
UserName

string

None.

Password

string

None.

DatabaseCode

string

None.

Items

Collection of SupplierModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "DatabaseCode": "sample string 3",
  "Items": [
    {
      "SupplierNumber": "sample string 1",
      "DisplayName": "sample string 2",
      "OnHold": true,
      "PrimaryContactEmail": "sample string 4",
      "PrimaryContactPhoneWork": "sample string 5",
      "PrimaryContactPhoneMobile": "sample string 6",
      "PrimaryContactPhoneFax": "sample string 7",
      "PrimaryContactNameGiven": "sample string 8",
      "PrimaryContactNameFamily": "sample string 9",
      "PrimaryAddressStreet1": "sample string 10",
      "PrimaryAddressStreet2": "sample string 11",
      "PrimaryAddressCity": "sample string 12",
      "PrimaryAddressPostalCode": "sample string 13",
      "PrimaryAddressCountryCode": "sample string 14",
      "AccountNumber": "sample string 15"
    },
    {
      "SupplierNumber": "sample string 1",
      "DisplayName": "sample string 2",
      "OnHold": true,
      "PrimaryContactEmail": "sample string 4",
      "PrimaryContactPhoneWork": "sample string 5",
      "PrimaryContactPhoneMobile": "sample string 6",
      "PrimaryContactPhoneFax": "sample string 7",
      "PrimaryContactNameGiven": "sample string 8",
      "PrimaryContactNameFamily": "sample string 9",
      "PrimaryAddressStreet1": "sample string 10",
      "PrimaryAddressStreet2": "sample string 11",
      "PrimaryAddressCity": "sample string 12",
      "PrimaryAddressPostalCode": "sample string 13",
      "PrimaryAddressCountryCode": "sample string 14",
      "AccountNumber": "sample string 15"
    }
  ]
}

application/xml, text/xml

Sample:
<CommandModelOfSupplierModelGZV7uSM6 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.CoupaEntegrasyon.Models.Commands">
  <DatabaseCode>sample string 3</DatabaseCode>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.CoupaEntegrasyon.Models">
    <d2p1:SupplierModel>
      <d2p1:AccountNumber>sample string 15</d2p1:AccountNumber>
      <d2p1:DisplayName>sample string 2</d2p1:DisplayName>
      <d2p1:OnHold>true</d2p1:OnHold>
      <d2p1:PrimaryAddressCity>sample string 12</d2p1:PrimaryAddressCity>
      <d2p1:PrimaryAddressCountryCode>sample string 14</d2p1:PrimaryAddressCountryCode>
      <d2p1:PrimaryAddressPostalCode>sample string 13</d2p1:PrimaryAddressPostalCode>
      <d2p1:PrimaryAddressStreet1>sample string 10</d2p1:PrimaryAddressStreet1>
      <d2p1:PrimaryAddressStreet2>sample string 11</d2p1:PrimaryAddressStreet2>
      <d2p1:PrimaryContactEmail>sample string 4</d2p1:PrimaryContactEmail>
      <d2p1:PrimaryContactNameFamily>sample string 9</d2p1:PrimaryContactNameFamily>
      <d2p1:PrimaryContactNameGiven>sample string 8</d2p1:PrimaryContactNameGiven>
      <d2p1:PrimaryContactPhoneFax>sample string 7</d2p1:PrimaryContactPhoneFax>
      <d2p1:PrimaryContactPhoneMobile>sample string 6</d2p1:PrimaryContactPhoneMobile>
      <d2p1:PrimaryContactPhoneWork>sample string 5</d2p1:PrimaryContactPhoneWork>
      <d2p1:SupplierNumber>sample string 1</d2p1:SupplierNumber>
    </d2p1:SupplierModel>
    <d2p1:SupplierModel>
      <d2p1:AccountNumber>sample string 15</d2p1:AccountNumber>
      <d2p1:DisplayName>sample string 2</d2p1:DisplayName>
      <d2p1:OnHold>true</d2p1:OnHold>
      <d2p1:PrimaryAddressCity>sample string 12</d2p1:PrimaryAddressCity>
      <d2p1:PrimaryAddressCountryCode>sample string 14</d2p1:PrimaryAddressCountryCode>
      <d2p1:PrimaryAddressPostalCode>sample string 13</d2p1:PrimaryAddressPostalCode>
      <d2p1:PrimaryAddressStreet1>sample string 10</d2p1:PrimaryAddressStreet1>
      <d2p1:PrimaryAddressStreet2>sample string 11</d2p1:PrimaryAddressStreet2>
      <d2p1:PrimaryContactEmail>sample string 4</d2p1:PrimaryContactEmail>
      <d2p1:PrimaryContactNameFamily>sample string 9</d2p1:PrimaryContactNameFamily>
      <d2p1:PrimaryContactNameGiven>sample string 8</d2p1:PrimaryContactNameGiven>
      <d2p1:PrimaryContactPhoneFax>sample string 7</d2p1:PrimaryContactPhoneFax>
      <d2p1:PrimaryContactPhoneMobile>sample string 6</d2p1:PrimaryContactPhoneMobile>
      <d2p1:PrimaryContactPhoneWork>sample string 5</d2p1:PrimaryContactPhoneWork>
      <d2p1:SupplierNumber>sample string 1</d2p1:SupplierNumber>
    </d2p1:SupplierModel>
  </Items>
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</CommandModelOfSupplierModelGZV7uSM6>

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 'CommandModel`1'.

Response Information

Resource Description

ResultModelOfSupplierModel
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

ErrorMessage

string

None.

ItemResults

Collection of ItemResultModelOfSupplierModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "ErrorMessage": "sample string 2",
  "ItemResults": [
    {
      "IsSuccessfull": true,
      "ErrorMessage": "sample string 2",
      "Item": {
        "SupplierNumber": "sample string 1",
        "DisplayName": "sample string 2",
        "OnHold": true,
        "PrimaryContactEmail": "sample string 4",
        "PrimaryContactPhoneWork": "sample string 5",
        "PrimaryContactPhoneMobile": "sample string 6",
        "PrimaryContactPhoneFax": "sample string 7",
        "PrimaryContactNameGiven": "sample string 8",
        "PrimaryContactNameFamily": "sample string 9",
        "PrimaryAddressStreet1": "sample string 10",
        "PrimaryAddressStreet2": "sample string 11",
        "PrimaryAddressCity": "sample string 12",
        "PrimaryAddressPostalCode": "sample string 13",
        "PrimaryAddressCountryCode": "sample string 14",
        "AccountNumber": "sample string 15"
      }
    },
    {
      "IsSuccessfull": true,
      "ErrorMessage": "sample string 2",
      "Item": {
        "SupplierNumber": "sample string 1",
        "DisplayName": "sample string 2",
        "OnHold": true,
        "PrimaryContactEmail": "sample string 4",
        "PrimaryContactPhoneWork": "sample string 5",
        "PrimaryContactPhoneMobile": "sample string 6",
        "PrimaryContactPhoneFax": "sample string 7",
        "PrimaryContactNameGiven": "sample string 8",
        "PrimaryContactNameFamily": "sample string 9",
        "PrimaryAddressStreet1": "sample string 10",
        "PrimaryAddressStreet2": "sample string 11",
        "PrimaryAddressCity": "sample string 12",
        "PrimaryAddressPostalCode": "sample string 13",
        "PrimaryAddressCountryCode": "sample string 14",
        "AccountNumber": "sample string 15"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<ResultModelOfSupplierModelGZV7uSM6 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.CoupaEntegrasyon.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
  <ItemResults xmlns:d2p1="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.CoupaEntegrasyon.Models.ResultModels">
    <d2p1:ItemResultModelOfSupplierModelGZV7uSM6>
      <d2p1:ErrorMessage>sample string 2</d2p1:ErrorMessage>
      <d2p1:IsSuccessfull>true</d2p1:IsSuccessfull>
      <d2p1:Item>
        <AccountNumber>sample string 15</AccountNumber>
        <DisplayName>sample string 2</DisplayName>
        <OnHold>true</OnHold>
        <PrimaryAddressCity>sample string 12</PrimaryAddressCity>
        <PrimaryAddressCountryCode>sample string 14</PrimaryAddressCountryCode>
        <PrimaryAddressPostalCode>sample string 13</PrimaryAddressPostalCode>
        <PrimaryAddressStreet1>sample string 10</PrimaryAddressStreet1>
        <PrimaryAddressStreet2>sample string 11</PrimaryAddressStreet2>
        <PrimaryContactEmail>sample string 4</PrimaryContactEmail>
        <PrimaryContactNameFamily>sample string 9</PrimaryContactNameFamily>
        <PrimaryContactNameGiven>sample string 8</PrimaryContactNameGiven>
        <PrimaryContactPhoneFax>sample string 7</PrimaryContactPhoneFax>
        <PrimaryContactPhoneMobile>sample string 6</PrimaryContactPhoneMobile>
        <PrimaryContactPhoneWork>sample string 5</PrimaryContactPhoneWork>
        <SupplierNumber>sample string 1</SupplierNumber>
      </d2p1:Item>
    </d2p1:ItemResultModelOfSupplierModelGZV7uSM6>
    <d2p1:ItemResultModelOfSupplierModelGZV7uSM6>
      <d2p1:ErrorMessage>sample string 2</d2p1:ErrorMessage>
      <d2p1:IsSuccessfull>true</d2p1:IsSuccessfull>
      <d2p1:Item>
        <AccountNumber>sample string 15</AccountNumber>
        <DisplayName>sample string 2</DisplayName>
        <OnHold>true</OnHold>
        <PrimaryAddressCity>sample string 12</PrimaryAddressCity>
        <PrimaryAddressCountryCode>sample string 14</PrimaryAddressCountryCode>
        <PrimaryAddressPostalCode>sample string 13</PrimaryAddressPostalCode>
        <PrimaryAddressStreet1>sample string 10</PrimaryAddressStreet1>
        <PrimaryAddressStreet2>sample string 11</PrimaryAddressStreet2>
        <PrimaryContactEmail>sample string 4</PrimaryContactEmail>
        <PrimaryContactNameFamily>sample string 9</PrimaryContactNameFamily>
        <PrimaryContactNameGiven>sample string 8</PrimaryContactNameGiven>
        <PrimaryContactPhoneFax>sample string 7</PrimaryContactPhoneFax>
        <PrimaryContactPhoneMobile>sample string 6</PrimaryContactPhoneMobile>
        <PrimaryContactPhoneWork>sample string 5</PrimaryContactPhoneWork>
        <SupplierNumber>sample string 1</SupplierNumber>
      </d2p1:Item>
    </d2p1:ItemResultModelOfSupplierModelGZV7uSM6>
  </ItemResults>
</ResultModelOfSupplierModelGZV7uSM6>