PUT api/Supplier

Updates an supplier

Request Information

URI Parameters

None.

Body Parameters

SupplierPutRequest
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Max length: 50

CSID

integer

None.

SupplierNumber

integer

None.

SupplierCategoryId1

globally unique identifier

None.

SupplierCategoryId2

globally unique identifier

None.

Phone

string

Max length: 50

Mobile

string

Max length: 50

OrganisationNumber

string

Max length: 30

Town

string

Max length: 50

SearchCode

string

Max length: 10

Email

string

Max length: 50

Fax

string

Max length: 50

Address1

string

Max length: 100

Address2

string

Max length: 100

Address3

string

Max length: 100

PostalCode

string

Max length: 10

CountryId

string

Max length: 2

Url

string

Max length: 100

VatRegistrationNumber

string

Max length: 50

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "7d5a70ac-20c4-413f-90f8-28be21faf18e",
  "Name": "sample string 2",
  "CSID": 1,
  "SupplierNumber": 1,
  "SupplierCategoryId1": "a72b6d57-5b6c-4525-8deb-bf611efe2f8f",
  "SupplierCategoryId2": "42ed6b6b-d3f2-4d10-ab40-5e42c7c70e1e",
  "Phone": "sample string 3",
  "Mobile": "sample string 4",
  "OrganisationNumber": "sample string 5",
  "Town": "sample string 6",
  "SearchCode": "sample string 7",
  "Email": "sample string 8",
  "Fax": "sample string 9",
  "Address1": "sample string 10",
  "Address2": "sample string 11",
  "Address3": "sample string 12",
  "PostalCode": "sample string 13",
  "CountryId": "sample string 14",
  "Url": "sample string 15",
  "VatRegistrationNumber": "sample string 16"
}

application/xml, text/xml

Sample:
<SupplierPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier">
  <Address1>sample string 10</Address1>
  <Address2>sample string 11</Address2>
  <Address3>sample string 12</Address3>
  <CSID>1</CSID>
  <CountryId>sample string 14</CountryId>
  <Email>sample string 8</Email>
  <Fax>sample string 9</Fax>
  <Mobile>sample string 4</Mobile>
  <Name>sample string 2</Name>
  <OrganisationNumber>sample string 5</OrganisationNumber>
  <Phone>sample string 3</Phone>
  <PostalCode>sample string 13</PostalCode>
  <SearchCode>sample string 7</SearchCode>
  <SupplierCategoryId1>a72b6d57-5b6c-4525-8deb-bf611efe2f8f</SupplierCategoryId1>
  <SupplierCategoryId2>42ed6b6b-d3f2-4d10-ab40-5e42c7c70e1e</SupplierCategoryId2>
  <SupplierNumber>1</SupplierNumber>
  <Town>sample string 6</Town>
  <Url>sample string 15</Url>
  <VatRegistrationNumber>sample string 16</VatRegistrationNumber>
  <Id>7d5a70ac-20c4-413f-90f8-28be21faf18e</Id>
</SupplierPutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SupplierPutResponse
NameDescriptionTypeAdditional information
Errors

Collection of PutSupplierError

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<SupplierPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier">
  <Errors>
    <PutSupplierError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutSupplierError>
    <PutSupplierError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutSupplierError>
  </Errors>
  <Success>true</Success>
</SupplierPutResponse>