GET api/transactions/corrections/{shopId}/{from}

Provides a list of correction transactions, given a shop id and a from date. Will provide up to 31 days of data.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

The shop id.

integer

Required

from

The from date in yyyy-MM-dd format.

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CorrectionModel
NameDescriptionTypeAdditional information
Type

Indication if the correction is manually typed in or is via filetransfere/barecode scanner

PublicAPI.Models.CorrectionTypeViewModel

None.

ReceiptNumber

Receipt number of the correction

integer

None.

UserId

Identification number of the user reporting the correction

integer

None.

CostPrice

The items cost price

decimal number

None.

UniqueItemNumber

DdD's unique item identifier also known as a EDB-number

integer

None.

SupplierId

The supplers id

integer

None.

EAN

The items EAN

integer

None.

WholeSaleCostPrice

decimal number

None.

ShopId

The shop id.

integer

None.

TransactionNumber

A unique auto increment number over ShopId.

integer

None.

TransactionDateTime

The date and time of the transaction.

date

None.

TransactionType

The type of transaction, this ranges from card type to return, this varies from country to country and is there for unknown to us.

integer

None.

Quantity

The number of items on this line.

integer

None.

ItemGroupNumber

The itemgroup this item belongs to.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Type": "Unknown",
    "ReceiptNumber": 1,
    "UserId": 2,
    "CostPrice": 3.0,
    "UniqueItemNumber": 4,
    "SupplierId": 5,
    "EAN": 6,
    "WholeSaleCostPrice": 7.0,
    "ShopId": 8,
    "TransactionNumber": 9,
    "TransactionDateTime": "2025-05-04T05:49:24.665158+02:00",
    "TransactionType": 11,
    "Quantity": 12,
    "ItemGroupNumber": 13
  },
  {
    "Type": "Unknown",
    "ReceiptNumber": 1,
    "UserId": 2,
    "CostPrice": 3.0,
    "UniqueItemNumber": 4,
    "SupplierId": 5,
    "EAN": 6,
    "WholeSaleCostPrice": 7.0,
    "ShopId": 8,
    "TransactionNumber": 9,
    "TransactionDateTime": "2025-05-04T05:49:24.665158+02:00",
    "TransactionType": 11,
    "Quantity": 12,
    "ItemGroupNumber": 13
  }
]

application/xml, text/xml

Sample:
<ArrayOfCorrectionTransactionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <CorrectionTransactionViewModel>
    <ItemGroupNumber>13</ItemGroupNumber>
    <Quantity>12</Quantity>
    <ShopId>8</ShopId>
    <TransactionDateTime>2025-05-04T05:49:24.665158+02:00</TransactionDateTime>
    <TransactionNumber>9</TransactionNumber>
    <TransactionType>11</TransactionType>
    <CostPrice>3</CostPrice>
    <EAN>6</EAN>
    <ReceiptNumber>1</ReceiptNumber>
    <SupplierId>5</SupplierId>
    <Type>Unknown</Type>
    <UniqueItemNumber>4</UniqueItemNumber>
    <UserId>2</UserId>
    <WholeSaleCostPrice>7</WholeSaleCostPrice>
  </CorrectionTransactionViewModel>
  <CorrectionTransactionViewModel>
    <ItemGroupNumber>13</ItemGroupNumber>
    <Quantity>12</Quantity>
    <ShopId>8</ShopId>
    <TransactionDateTime>2025-05-04T05:49:24.665158+02:00</TransactionDateTime>
    <TransactionNumber>9</TransactionNumber>
    <TransactionType>11</TransactionType>
    <CostPrice>3</CostPrice>
    <EAN>6</EAN>
    <ReceiptNumber>1</ReceiptNumber>
    <SupplierId>5</SupplierId>
    <Type>Unknown</Type>
    <UniqueItemNumber>4</UniqueItemNumber>
    <UserId>2</UserId>
    <WholeSaleCostPrice>7</WholeSaleCostPrice>
  </CorrectionTransactionViewModel>
</ArrayOfCorrectionTransactionViewModel>