POST 17.0/database/products

Description

Create Products

URI Parameters

None.

Name Description Type Additional information
ID

integer

None.

Description

string

String length: inclusive between 0 and 50

Price

decimal number

None.

TaxRateID

integer

None.

ShowVATOnStatements

byte

None.

CostCentreID

integer

None.

CreditCompanyAccount

byte

None.

Invoiced

byte

None.

TransferTo

byte

None.

ChargeLandlordPrice

decimal number

None.

ChargeLandlordProductID

integer

None.

OverseasTaxDeducted

byte

None.

ExternalAccountCode

string

String length: inclusive between 0 and 20

InActive

byte

None.

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 1",
  "price": 1.0,
  "taxRateID": 1,
  "showVATOnStatements": 64,
  "costCentreID": 1,
  "creditCompanyAccount": 64,
  "invoiced": 64,
  "transferTo": 64,
  "chargeLandlordPrice": 1.0,
  "chargeLandlordProductID": 1,
  "overseasTaxDeducted": 64,
  "externalAccountCode": "sample string 2",
  "inActive": 64
}

application/xml, text/xml

Sample:
<ProductsUpdate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <Description>sample string 1</Description>
  <Price>1</Price>
  <TaxRateID>1</TaxRateID>
  <ShowVATOnStatements>64</ShowVATOnStatements>
  <CostCentreID>1</CostCentreID>
  <CreditCompanyAccount>64</CreditCompanyAccount>
  <Invoiced>64</Invoiced>
  <TransferTo>64</TransferTo>
  <ChargeLandlordPrice>1</ChargeLandlordPrice>
  <ChargeLandlordProductID>1</ChargeLandlordProductID>
  <OverseasTaxDeducted>64</OverseasTaxDeducted>
  <ExternalAccountCode>sample string 2</ExternalAccountCode>
  <InActive>64</InActive>
</ProductsUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Name Description Type Additional information
ID

integer

None.

Description

string

String length: inclusive between 0 and 50

Price

decimal number

None.

TaxRateID

integer

None.

ShowVATOnStatements

byte

None.

CostCentreID

integer

None.

CreditCompanyAccount

byte

None.

Invoiced

byte

None.

TransferTo

byte

None.

ChargeLandlordPrice

decimal number

None.

ChargeLandlordProductID

integer

None.

OverseasTaxDeducted

byte

None.

ExternalAccountCode

string

String length: inclusive between 0 and 20

InActive

byte

None.

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 2",
  "price": 3.0,
  "taxRateID": 4,
  "showVATOnStatements": 64,
  "costCentreID": 6,
  "creditCompanyAccount": 64,
  "invoiced": 64,
  "transferTo": 64,
  "chargeLandlordPrice": 10.0,
  "chargeLandlordProductID": 11,
  "overseasTaxDeducted": 64,
  "externalAccountCode": "sample string 13",
  "inActive": 64
}

application/xml, text/xml

Sample:
<Products xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <Description>sample string 2</Description>
  <Price>3</Price>
  <TaxRateID>4</TaxRateID>
  <ShowVATOnStatements>64</ShowVATOnStatements>
  <CostCentreID>6</CostCentreID>
  <CreditCompanyAccount>64</CreditCompanyAccount>
  <Invoiced>64</Invoiced>
  <TransferTo>64</TransferTo>
  <ChargeLandlordPrice>10</ChargeLandlordPrice>
  <ChargeLandlordProductID>11</ChargeLandlordProductID>
  <OverseasTaxDeducted>64</OverseasTaxDeducted>
  <ExternalAccountCode>sample string 13</ExternalAccountCode>
  <InActive>64</InActive>
</Products>