GET api/transactions/purchases/{shopId}/{transactionNumber}
Provides a list of purchase transactions, given a shop id and a transaction number.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shopId |
The shop id. |
integer |
Required |
transactionNumber |
The transaction number, from which to start. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PurchaseModelName | Description | Type | Additional information |
---|---|---|---|
SupplierOrderNumber |
The ordernumber for this purchase |
integer |
None. |
MachineNumber |
Contains the transaction source machine number. |
integer |
None. |
InvoiceNumber |
The invoice number given by the supplier |
string |
None. |
UserId |
ClerkId |
integer |
None. |
SuggestedSalesPrice |
Suggested sales price by the supplier |
decimal number |
None. |
Discount |
The Discount given by the supplier on this purchase |
decimal number |
None. |
CurrencyCode |
Containing the currency code of this transaction |
string |
None. |
ExchangeRateToLocalCurrency |
The exchange rate from CurrencyCode to local currency |
decimal number |
None. |
ExchangeRateToEUR |
The exchance rate from local currency to EUR |
decimal number |
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
[ { "SupplierOrderNumber": 1, "MachineNumber": 2, "InvoiceNumber": "sample string 3", "UserId": 4, "SuggestedSalesPrice": 5.0, "Discount": 6.0, "CurrencyCode": "sample string 7", "ExchangeRateToLocalCurrency": 8.0, "ExchangeRateToEUR": 9.0, "CostPrice": 10.0, "UniqueItemNumber": 11, "SupplierId": 12, "EAN": 13, "WholeSaleCostPrice": 14.0, "ShopId": 15, "TransactionNumber": 16, "TransactionDateTime": "2025-05-04T06:17:27.7517588+02:00", "TransactionType": 18, "Quantity": 19, "ItemGroupNumber": 20 }, { "SupplierOrderNumber": 1, "MachineNumber": 2, "InvoiceNumber": "sample string 3", "UserId": 4, "SuggestedSalesPrice": 5.0, "Discount": 6.0, "CurrencyCode": "sample string 7", "ExchangeRateToLocalCurrency": 8.0, "ExchangeRateToEUR": 9.0, "CostPrice": 10.0, "UniqueItemNumber": 11, "SupplierId": 12, "EAN": 13, "WholeSaleCostPrice": 14.0, "ShopId": 15, "TransactionNumber": 16, "TransactionDateTime": "2025-05-04T06:17:27.7517588+02:00", "TransactionType": 18, "Quantity": 19, "ItemGroupNumber": 20 } ]
application/xml, text/xml
<ArrayOfPurchaseTransactionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <PurchaseTransactionViewModel> <ItemGroupNumber>20</ItemGroupNumber> <Quantity>19</Quantity> <ShopId>15</ShopId> <TransactionDateTime>2025-05-04T06:17:27.7517588+02:00</TransactionDateTime> <TransactionNumber>16</TransactionNumber> <TransactionType>18</TransactionType> <CostPrice>10</CostPrice> <CurrencyCode>sample string 7</CurrencyCode> <Discount>6</Discount> <EAN>13</EAN> <ExchangeRateToEUR>9</ExchangeRateToEUR> <ExchangeRateToLocalCurrency>8</ExchangeRateToLocalCurrency> <InvoiceNumber>sample string 3</InvoiceNumber> <MachineNumber>2</MachineNumber> <SuggestedSalesPrice>5</SuggestedSalesPrice> <SupplierId>12</SupplierId> <SupplierOrderNumber>1</SupplierOrderNumber> <UniqueItemNumber>11</UniqueItemNumber> <UserId>4</UserId> <WholeSaleCostPrice>14</WholeSaleCostPrice> </PurchaseTransactionViewModel> <PurchaseTransactionViewModel> <ItemGroupNumber>20</ItemGroupNumber> <Quantity>19</Quantity> <ShopId>15</ShopId> <TransactionDateTime>2025-05-04T06:17:27.7517588+02:00</TransactionDateTime> <TransactionNumber>16</TransactionNumber> <TransactionType>18</TransactionType> <CostPrice>10</CostPrice> <CurrencyCode>sample string 7</CurrencyCode> <Discount>6</Discount> <EAN>13</EAN> <ExchangeRateToEUR>9</ExchangeRateToEUR> <ExchangeRateToLocalCurrency>8</ExchangeRateToLocalCurrency> <InvoiceNumber>sample string 3</InvoiceNumber> <MachineNumber>2</MachineNumber> <SuggestedSalesPrice>5</SuggestedSalesPrice> <SupplierId>12</SupplierId> <SupplierOrderNumber>1</SupplierOrderNumber> <UniqueItemNumber>11</UniqueItemNumber> <UserId>4</UserId> <WholeSaleCostPrice>14</WholeSaleCostPrice> </PurchaseTransactionViewModel> </ArrayOfPurchaseTransactionViewModel>