GET api/{DataId}/customers/{RegistrationNumber}/orders?FromDate={FromDate}
Vráti zoznam objednávok s položkami daného zákazníka od zadaného dátumu
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
RegistrationNumber |
IČO |
string |
Required |
FromDate |
Dátum od ktorého budú načítané objednávky, vo formáte: M/D/YYYY hh:mm (mesiac/deň/rok hodiny:minúty). Čas je možné vynechať, vtedy sa uvažuje 00:00. |
date |
Default value is 01/01/0001 00:00:00 |
Body Parameters
None.
Response Information
Resource Description
OrderInfoName | Description | Type | Additional information |
---|---|---|---|
OrderId |
Id objednávky (nepovinné, pridelí ho systém) |
globally unique identifier |
None. |
OrderNumber |
Číslo objednávky z eshopu (odberateľa) - zapisuje sa do variabilného čísla VS_OBJ |
string |
None. |
InternalOrderNumber |
Interné číslo objednávky (pridelené v EcoSun) POZOR: Používa sa len pri GET, pri POST je ignorované |
string |
None. |
Customer |
Odberateľ (organizácia) |
CustomerInfo |
None. |
DeliveryMethod |
Spôsob dodania (doprava) |
string |
None. |
PaymentMethod |
Spôsob platby |
ePaymentMethod |
None. |
Status |
Stav objednávky POZOR: Používa sa len pri GET, pri POST je ignorované |
OrderStatus |
None. |
StatusOD |
Stav objednávky (z číselníka) POZOR: Používa sa len pri GET, pri POST je ignorované |
string |
None. |
BillingAddress |
Fakturačná adresa |
CustomerAddress |
None. |
ShippingAddress |
Dodacia adresa - vypĺňa sa v prípade inej ako fakturačnej adresy odberateľa, na dokladoch sa použijú kontaktné údaje zo štruktúry Customer |
CustomerAddress |
None. |
Consignee |
Príjemca - vypĺňa sa namiesto ShippingAddress v prípade dodania do inej prevádzky odberateľa, alebo inej firme/osobe. Na dokladoch sa použijú kontaktné údaje z Consignee a nie z Customer. Adresa musí byť vyplnená, inak sa nevytvorí prevádzka a údaje z Consignee sa nezapíšu. |
CompanyBranchInfo |
None. |
PacketaPickupPoint |
Výdajné miesto v prípade prepravy cez Packetu |
string |
None. |
Items |
Položky objednávky |
Collection of OrderItem |
None. |
Invoices |
Čísla faktúr, ktorými sa vybavila objednávka |
Collection of InvoiceFromOrder |
None. |
Parcels |
Balíky |
Collection of Parcel |
None. |
Created |
Dátum vytvorenia objednávky |
date |
None. |
ExpeditionDate |
Dátum expedície |
date |
None. |
Comment |
Poznámka |
string |
None. |
TotalPrice |
Celková suma objednávky bez DPH (nepovinné) |
decimal number |
None. |
TotalPriceVAT |
Celková suma objednávky s DPH (nepovinné) |
decimal number |
None. |
TotalPriceVATFC |
Celková suma objednávky s DPH v cudzej mene |
decimal number |
None. |
TotalPriceFC |
Celková suma objednávky bez DPH v cudzej mene |
decimal number |
None. |
Response Formats
application/json, text/json
{ "OrderId": "cd5e22cc-4ae6-49e9-87d5-6d73b5a2dbc8", "OrderNumber": "sample string 2", "InternalOrderNumber": "sample string 3", "Customer": { "CustomerId": "84546a11-4fc3-47cf-a220-adfe14563ed6", "RegistrationNumber": "sample string 2", "CompanyName": "sample string 3", "VATIdentificationNumber": "sample string 4", "TaxIdentificationNumber": "sample string 5", "Phone": "sample string 6", "Mobile": "sample string 7", "Email": "sample string 8" }, "DeliveryMethod": "sample string 4", "PaymentMethod": 0, "Status": 0, "StatusOD": "sample string 5", "BillingAddress": { "AddressId": "50dabc5a-1c17-49ad-9e92-20958ab94d8a", "Street": "sample string 2", "City": "sample string 3", "Postcode": "sample string 4", "CountryCode": "sample string 5", "CountryCodeAlfa2": "sample string 6", "CountryCodeAlfa3": "sample string 7" }, "ShippingAddress": { "AddressId": "50dabc5a-1c17-49ad-9e92-20958ab94d8a", "Street": "sample string 2", "City": "sample string 3", "Postcode": "sample string 4", "CountryCode": "sample string 5", "CountryCodeAlfa2": "sample string 6", "CountryCodeAlfa3": "sample string 7" }, "Consignee": { "BranchId": "4b0ee94a-31f0-4237-9c54-0a9da5de001b", "Code": "sample string 2", "Name": "sample string 3", "Phone": "sample string 4", "Mobile": "sample string 5", "Email": "sample string 6" }, "PacketaPickupPoint": "sample string 6", "Items": [ { "ProductId": "5717f77c-1b23-4e23-aee5-7d2881d7f2cc", "ProductCode": "sample string 2", "ProductName": "sample string 3", "StockCode": "sample string 4", "Quantity": 5.0, "MeasureUnit": "sample string 6", "UnitPrice": 7.0, "UnitPriceVAT": 8.0, "UnitPriceFC": 9.0, "UnitPriceVATFC": 10.0, "IsDiscount": true, "Weight": 12.0, "VATRate": 13.0, "Comment": "sample string 14", "Delivered": 15.0, "DeliveredCorrection": 16.0, "Chimney": true, "Height": 18.0 }, { "ProductId": "5717f77c-1b23-4e23-aee5-7d2881d7f2cc", "ProductCode": "sample string 2", "ProductName": "sample string 3", "StockCode": "sample string 4", "Quantity": 5.0, "MeasureUnit": "sample string 6", "UnitPrice": 7.0, "UnitPriceVAT": 8.0, "UnitPriceFC": 9.0, "UnitPriceVATFC": 10.0, "IsDiscount": true, "Weight": 12.0, "VATRate": 13.0, "Comment": "sample string 14", "Delivered": 15.0, "DeliveredCorrection": 16.0, "Chimney": true, "Height": 18.0 } ], "Invoices": [ { "InvoiceId": "259dc767-a122-47e1-a4e0-85a0d18b08a6", "InvoiceNumber": 2 }, { "InvoiceId": "259dc767-a122-47e1-a4e0-85a0d18b08a6", "InvoiceNumber": 2 } ], "Parcels": [ { "ParcelNumber": "sample string 1" }, { "ParcelNumber": "sample string 1" } ], "Created": "2025-07-01T05:58:51.0489909+02:00", "ExpeditionDate": "2025-07-01T05:58:51.0489909+02:00", "Comment": "sample string 9", "TotalPrice": 10.0, "TotalPriceVAT": 11.0, "TotalPriceVATFC": 12.0, "TotalPriceFC": 13.0 }
application/xml, text/xml
<OrderInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <OrderId>cd5e22cc-4ae6-49e9-87d5-6d73b5a2dbc8</OrderId> <OrderNumber>sample string 2</OrderNumber> <InternalOrderNumber>sample string 3</InternalOrderNumber> <Customer> <CustomerId>84546a11-4fc3-47cf-a220-adfe14563ed6</CustomerId> <RegistrationNumber>sample string 2</RegistrationNumber> <CompanyName>sample string 3</CompanyName> <VATIdentificationNumber>sample string 4</VATIdentificationNumber> <TaxIdentificationNumber>sample string 5</TaxIdentificationNumber> <Phone>sample string 6</Phone> <Mobile>sample string 7</Mobile> <Email>sample string 8</Email> </Customer> <DeliveryMethod>sample string 4</DeliveryMethod> <PaymentMethod>BankTransfer</PaymentMethod> <Status>Created</Status> <StatusOD>sample string 5</StatusOD> <BillingAddress> <AddressId>50dabc5a-1c17-49ad-9e92-20958ab94d8a</AddressId> <Street>sample string 2</Street> <City>sample string 3</City> <Postcode>sample string 4</Postcode> <CountryCode>sample string 5</CountryCode> <CountryCodeAlfa2>sample string 6</CountryCodeAlfa2> <CountryCodeAlfa3>sample string 7</CountryCodeAlfa3> </BillingAddress> <ShippingAddress> <AddressId>50dabc5a-1c17-49ad-9e92-20958ab94d8a</AddressId> <Street>sample string 2</Street> <City>sample string 3</City> <Postcode>sample string 4</Postcode> <CountryCode>sample string 5</CountryCode> <CountryCodeAlfa2>sample string 6</CountryCodeAlfa2> <CountryCodeAlfa3>sample string 7</CountryCodeAlfa3> </ShippingAddress> <Consignee> <BranchId>4b0ee94a-31f0-4237-9c54-0a9da5de001b</BranchId> <Code>sample string 2</Code> <Name>sample string 3</Name> <Phone>sample string 4</Phone> <Mobile>sample string 5</Mobile> <Email>sample string 6</Email> </Consignee> <PacketaPickupPoint>sample string 6</PacketaPickupPoint> <Items> <OrderItem> <ProductId>5717f77c-1b23-4e23-aee5-7d2881d7f2cc</ProductId> <ProductCode>sample string 2</ProductCode> <ProductName>sample string 3</ProductName> <StockCode>sample string 4</StockCode> <Quantity>5</Quantity> <MeasureUnit>sample string 6</MeasureUnit> <UnitPrice>7</UnitPrice> <UnitPriceVAT>8</UnitPriceVAT> <UnitPriceFC>9</UnitPriceFC> <UnitPriceVATFC>10</UnitPriceVATFC> <IsDiscount>true</IsDiscount> <Weight>12</Weight> <VATRate>13</VATRate> <Comment>sample string 14</Comment> <Delivered>15</Delivered> <DeliveredCorrection>16</DeliveredCorrection> <Chimney>true</Chimney> <Height>18</Height> </OrderItem> <OrderItem> <ProductId>5717f77c-1b23-4e23-aee5-7d2881d7f2cc</ProductId> <ProductCode>sample string 2</ProductCode> <ProductName>sample string 3</ProductName> <StockCode>sample string 4</StockCode> <Quantity>5</Quantity> <MeasureUnit>sample string 6</MeasureUnit> <UnitPrice>7</UnitPrice> <UnitPriceVAT>8</UnitPriceVAT> <UnitPriceFC>9</UnitPriceFC> <UnitPriceVATFC>10</UnitPriceVATFC> <IsDiscount>true</IsDiscount> <Weight>12</Weight> <VATRate>13</VATRate> <Comment>sample string 14</Comment> <Delivered>15</Delivered> <DeliveredCorrection>16</DeliveredCorrection> <Chimney>true</Chimney> <Height>18</Height> </OrderItem> </Items> <Invoices> <InvoiceFromOrder> <InvoiceId>259dc767-a122-47e1-a4e0-85a0d18b08a6</InvoiceId> <InvoiceNumber>2</InvoiceNumber> </InvoiceFromOrder> <InvoiceFromOrder> <InvoiceId>259dc767-a122-47e1-a4e0-85a0d18b08a6</InvoiceId> <InvoiceNumber>2</InvoiceNumber> </InvoiceFromOrder> </Invoices> <Parcels> <Parcel> <ParcelNumber>sample string 1</ParcelNumber> </Parcel> <Parcel> <ParcelNumber>sample string 1</ParcelNumber> </Parcel> </Parcels> <Created>2025-07-01T05:58:51.0489909+02:00</Created> <ExpeditionDate>2025-07-01T05:58:51.0489909+02:00</ExpeditionDate> <Comment>sample string 9</Comment> <TotalPrice>10</TotalPrice> <TotalPriceVAT>11</TotalPriceVAT> <TotalPriceVATFC>12</TotalPriceVATFC> <TotalPriceFC>13</TotalPriceFC> </OrderInfo>