POST api/stocktake/{id}/input/{guid}/import

Import stocktake details from PDE file import utility. This is for when product details are not provided

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Stocktake identifier

globally unique identifier

Required

guid

Input identifier

globally unique identifier

Required

Body Parameters

Stocktake details to import

Collection of StocktakeDetailImport
NameDescriptionTypeAdditional information
APN

Barcode of product

string

None.

TUN

Tun code for product, if provided value will be assumed to be cartons

string

None.

ItemNumber

Item number of product (optional)

string

None.

HostIdentifier

Host identifier for product when scanned using item number

globally unique identifier

None.

Quantity

Quantity recorded

integer

None.

PriceEmbedded

Price embedded for a packed weight product

integer

None.

MarkdownPrice

Markdown price extracted from markdown product

integer

Relation. This field may not always be loaded or used for updates.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "apn": "sample string 1",
    "tun": "sample string 2",
    "itemNumber": "sample string 3",
    "hostIdentifier": "bdabe7b5-fe0b-4ec0-a5a3-94ec25a93eeb",
    "quantity": 4,
    "priceEmbedded": 5,
    "markdownPrice": 1
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStocktakeDetailImport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Stocktake.Imports">
  <StocktakeDetailImport>
    <APN>sample string 1</APN>
    <HostIdentifier>bdabe7b5-fe0b-4ec0-a5a3-94ec25a93eeb</HostIdentifier>
    <ItemNumber>sample string 3</ItemNumber>
    <MarkdownPrice>1</MarkdownPrice>
    <PriceEmbedded>5</PriceEmbedded>
    <Quantity>4</Quantity>
    <TUN>sample string 2</TUN>
  </StocktakeDetailImport>
  <StocktakeDetailImport>
    <APN>sample string 1</APN>
    <HostIdentifier>bdabe7b5-fe0b-4ec0-a5a3-94ec25a93eeb</HostIdentifier>
    <ItemNumber>sample string 3</ItemNumber>
    <MarkdownPrice>1</MarkdownPrice>
    <PriceEmbedded>5</PriceEmbedded>
    <Quantity>4</Quantity>
    <TUN>sample string 2</TUN>
  </StocktakeDetailImport>
</ArrayOfStocktakeDetailImport>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.