POST api/v1/customer/specialpricelist

JOS: ADD COMMENTS

Request Information

URI Parameters

None.

Body Parameters

CustomerIdentifierV1
NameDescriptionTypeAdditional information
CustomerId

Internal use only

integer

None.

CustomerNumber

Debitor number

string

None.

CustomerIdentifier

The guid

globally unique identifier

None.

ImportSource

The import source

string

None.

ExternId

Extern Id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "CustomerNumber": "sample string 1",
  "CustomerIdentifier": "41cc28bf-00ee-403c-89da-79fe1a0352ca",
  "ImportSource": "sample string 2",
  "ExternId": "sample string 3"
}

application/xml, text/xml

Sample:
<CustomerIdentifier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://promotionaloffice.promidata.com/2012/08/08">
  <CustomerId>1</CustomerId>
  <CustomerIdentifier>41cc28bf-00ee-403c-89da-79fe1a0352ca</CustomerIdentifier>
  <CustomerNumber>sample string 1</CustomerNumber>
  <ExternId>sample string 3</ExternId>
  <ImportSource>sample string 2</ImportSource>
</CustomerIdentifier>

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

Response Information

Resource Description

Collection of SpecialPriceItem
NameDescriptionTypeAdditional information
AmountOfUnits

The amount of units this item is starting with

integer

None.

Price

Price for this amount of units

decimal number

None.

IsCompletePrice

Is the price the same for each amount above the amoutn of units?

boolean

None.

ValidFrom

When can the price be used. Start date of period

date

None.

ValidTill

When can the price be used. End date of period

date

None.

VariationIdentifier

Identifier of the variation the price is for

globally unique identifier

None.

ProductIdentifier

Identifier of the product the variation belongs to

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AmountOfUnits": 1,
    "Price": 2.0,
    "IsCompletePrice": true,
    "ValidFrom": "2024-04-28T04:02:23.8484163+00:00",
    "ValidTill": "2024-04-28T04:02:23.8484163+00:00",
    "VariationIdentifier": "0989c4e8-7dfb-40eb-a9b7-db31d0a70017",
    "ProductIdentifier": "e008ecfe-bc29-4c28-8d04-afba35f2a924"
  },
  {
    "AmountOfUnits": 1,
    "Price": 2.0,
    "IsCompletePrice": true,
    "ValidFrom": "2024-04-28T04:02:23.8484163+00:00",
    "ValidTill": "2024-04-28T04:02:23.8484163+00:00",
    "VariationIdentifier": "0989c4e8-7dfb-40eb-a9b7-db31d0a70017",
    "ProductIdentifier": "e008ecfe-bc29-4c28-8d04-afba35f2a924"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSpecialPriceItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Promidata.PromotionalOffice.Webservice.Contracts">
  <SpecialPriceItem>
    <AmountOfUnits>1</AmountOfUnits>
    <IsCompletePrice>true</IsCompletePrice>
    <Price>2</Price>
    <ProductIdentifier>e008ecfe-bc29-4c28-8d04-afba35f2a924</ProductIdentifier>
    <ValidFrom>2024-04-28T04:02:23.8484163+00:00</ValidFrom>
    <ValidTill>2024-04-28T04:02:23.8484163+00:00</ValidTill>
    <VariationIdentifier>0989c4e8-7dfb-40eb-a9b7-db31d0a70017</VariationIdentifier>
  </SpecialPriceItem>
  <SpecialPriceItem>
    <AmountOfUnits>1</AmountOfUnits>
    <IsCompletePrice>true</IsCompletePrice>
    <Price>2</Price>
    <ProductIdentifier>e008ecfe-bc29-4c28-8d04-afba35f2a924</ProductIdentifier>
    <ValidFrom>2024-04-28T04:02:23.8484163+00:00</ValidFrom>
    <ValidTill>2024-04-28T04:02:23.8484163+00:00</ValidTill>
    <VariationIdentifier>0989c4e8-7dfb-40eb-a9b7-db31d0a70017</VariationIdentifier>
  </SpecialPriceItem>
</ArrayOfSpecialPriceItem>