DELETE Api/Suppliers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Supplier
NameDescriptionTypeAdditional information
SupplierId

integer

None.

SupplierName

string

Required

String length: inclusive between 0 and 100

SupplierStreet

string

String length: inclusive between 0 and 100

SupplierDepartment

Department

None.

SupplierPCode

string

String length: inclusive between 0 and 20

SupplierCity

string

String length: inclusive between 0 and 100

SupplierCountryId

integer

None.

Country

Country

None.

SupplierTelephone1

string

String length: inclusive between 0 and 35

SupplierTelephone2

string

String length: inclusive between 0 and 35

SupplierMobile1

string

String length: inclusive between 0 and 35

SupplierTelefax

string

String length: inclusive between 0 and 35

SupplierEmailGeneral

string

String length: inclusive between 0 and 100

SupplierEmailSales

string

String length: inclusive between 0 and 100

SupplierEmailPurchasing

string

String length: inclusive between 0 and 100

SupplierEmailDelivery

string

String length: inclusive between 0 and 100

SupplierCompanyNumber

string

String length: inclusive between 0 and 35

SupplierVATregime

integer

None.

SupplierValutaId

integer

None.

Valuta

Valuta

None.

SupplierLanguageId

integer

None.

Language

Language

None.

SupplierDateLastMeeting

date

Data type: Date

SupplierIsInUse

boolean

None.

SupplierDateCreated

date

None.

SupplierUserIdCreated

string

None.

SupplierDateChanged

date

None.

SupplierUserIdChanged

string

None.

SupplierBrands

Collection of Brand

None.

CompanyId

integer

None.

SupplierGeneralNotes

string

None.

ObjectState

ObjectState

None.

Response Formats

application/json, text/json

Sample:
{
  "supplierId": 1,
  "supplierName": "sample string 2",
  "supplierStreet": "sample string 3",
  "supplierDepartment": 0,
  "supplierPCode": "sample string 4",
  "supplierCity": "sample string 5",
  "supplierCountryId": 6,
  "country": {
    "countryId": 1,
    "countryName": "sample string 2",
    "countryIsocode": "sample string 3",
    "defaultLanguageId": 4,
    "telephoneCountryPrefix": "sample string 5",
    "objectState": 0
  },
  "supplierTelephone1": "sample string 7",
  "supplierTelephone2": "sample string 8",
  "supplierMobile1": "sample string 9",
  "supplierTelefax": "sample string 10",
  "supplierEmailGeneral": "sample string 11",
  "supplierEmailSales": "sample string 12",
  "supplierEmailPurchasing": "sample string 13",
  "supplierEmailDelivery": "sample string 14",
  "supplierCompanyNumber": "sample string 15",
  "supplierVATregime": 16,
  "supplierValutaId": 17,
  "valuta": {
    "valutaId": 1,
    "valutaIsocode": "sample string 2",
    "valutaName": "sample string 3",
    "isInUse": true,
    "objectState": 0
  },
  "supplierLanguageId": 18,
  "language": {
    "languageId": 1,
    "languageName": "sample string 2",
    "languageIsocode": "sample string 3",
    "languageNumberWebsite": 4,
    "isInUse": true,
    "languageImageName": "sample string 6",
    "objectState": 0
  },
  "supplierDateLastMeeting": "2025-12-10T16:42:16.2317881+01:00",
  "supplierIsInUse": true,
  "supplierDateCreated": "2025-12-10T16:42:16.2317881+01:00",
  "supplierUserIdCreated": "sample string 20",
  "supplierDateChanged": "2025-12-10T16:42:16.2317881+01:00",
  "supplierUserIdChanged": "sample string 21",
  "supplierBrands": [
    {
      "brandId": 1,
      "brandName": "sample string 2",
      "brandIsInUse": true,
      "companyId": 4,
      "objectState": 0
    },
    {
      "brandId": 1,
      "brandName": "sample string 2",
      "brandIsInUse": true,
      "companyId": 4,
      "objectState": 0
    }
  ],
  "companyId": 22,
  "supplierGeneralNotes": "sample string 23",
  "objectState": 0
}

application/xml, text/xml

Sample:
<Supplier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
  <CompanyId>22</CompanyId>
  <Country>
    <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
    <CountryId>1</CountryId>
    <CountryIsocode>sample string 3</CountryIsocode>
    <CountryName>sample string 2</CountryName>
    <DefaultLanguageId>4</DefaultLanguageId>
    <TelephoneCountryPrefix>sample string 5</TelephoneCountryPrefix>
  </Country>
  <Language>
    <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
    <IsInUse>true</IsInUse>
    <LanguageId>1</LanguageId>
    <LanguageImageName>sample string 6</LanguageImageName>
    <LanguageIsocode>sample string 3</LanguageIsocode>
    <LanguageName>sample string 2</LanguageName>
    <LanguageNumberWebsite>4</LanguageNumberWebsite>
  </Language>
  <SupplierBrands>
    <Brand>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <BrandId>1</BrandId>
      <BrandIsInUse>true</BrandIsInUse>
      <BrandName>sample string 2</BrandName>
      <CompanyId>4</CompanyId>
    </Brand>
    <Brand>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <BrandId>1</BrandId>
      <BrandIsInUse>true</BrandIsInUse>
      <BrandName>sample string 2</BrandName>
      <CompanyId>4</CompanyId>
    </Brand>
  </SupplierBrands>
  <SupplierCity>sample string 5</SupplierCity>
  <SupplierCompanyNumber>sample string 15</SupplierCompanyNumber>
  <SupplierCountryId>6</SupplierCountryId>
  <SupplierDateChanged>2025-12-10T16:42:16.2317881+01:00</SupplierDateChanged>
  <SupplierDateCreated>2025-12-10T16:42:16.2317881+01:00</SupplierDateCreated>
  <SupplierDateLastMeeting>2025-12-10T16:42:16.2317881+01:00</SupplierDateLastMeeting>
  <SupplierDepartment>Empty</SupplierDepartment>
  <SupplierEmailDelivery>sample string 14</SupplierEmailDelivery>
  <SupplierEmailGeneral>sample string 11</SupplierEmailGeneral>
  <SupplierEmailPurchasing>sample string 13</SupplierEmailPurchasing>
  <SupplierEmailSales>sample string 12</SupplierEmailSales>
  <SupplierGeneralNotes>sample string 23</SupplierGeneralNotes>
  <SupplierId>1</SupplierId>
  <SupplierIsInUse>true</SupplierIsInUse>
  <SupplierLanguageId>18</SupplierLanguageId>
  <SupplierMobile1>sample string 9</SupplierMobile1>
  <SupplierName>sample string 2</SupplierName>
  <SupplierPCode>sample string 4</SupplierPCode>
  <SupplierStreet>sample string 3</SupplierStreet>
  <SupplierTelefax>sample string 10</SupplierTelefax>
  <SupplierTelephone1>sample string 7</SupplierTelephone1>
  <SupplierTelephone2>sample string 8</SupplierTelephone2>
  <SupplierUserIdChanged>sample string 21</SupplierUserIdChanged>
  <SupplierUserIdCreated>sample string 20</SupplierUserIdCreated>
  <SupplierVATregime>16</SupplierVATregime>
  <SupplierValutaId>17</SupplierValutaId>
  <Valuta>
    <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
    <IsInUse>true</IsInUse>
    <ValutaId>1</ValutaId>
    <ValutaIsocode>sample string 2</ValutaIsocode>
    <ValutaName>sample string 3</ValutaName>
  </Valuta>
</Supplier>