GET api/{DataId}/orders/full/{OrderId}
Vráti objednávku s položkami podľa jej OrderId
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
OrderId |
Interné číslo objednávky |
globally unique identifier |
Required |
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": "510a2087-77a2-47f0-bb75-91dec090c863", "OrderNumber": "sample string 2", "InternalOrderNumber": "sample string 3", "Customer": { "CustomerId": "828f5404-6885-4004-9fc3-8c3a12c8c525", "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": "b5f3bf93-162a-4a7d-a7bf-1696e0cff268", "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": "b5f3bf93-162a-4a7d-a7bf-1696e0cff268", "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": "6aef7d69-799a-4acc-937b-ed4ee40a6d37", "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": "2b4d83da-e2c6-4211-bc1e-e5064460bb4b", "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 }, { "ProductId": "2b4d83da-e2c6-4211-bc1e-e5064460bb4b", "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 } ], "Invoices": [ { "InvoiceId": "0e3d35e7-432d-4e28-8c1a-bd09c592ef07", "InvoiceNumber": 2 }, { "InvoiceId": "0e3d35e7-432d-4e28-8c1a-bd09c592ef07", "InvoiceNumber": 2 } ], "Parcels": [ { "ParcelNumber": "sample string 1" }, { "ParcelNumber": "sample string 1" } ], "Created": "2024-05-19T20:41:58.904625+02:00", "ExpeditionDate": "2024-05-19T20:41:58.904625+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>510a2087-77a2-47f0-bb75-91dec090c863</OrderId> <OrderNumber>sample string 2</OrderNumber> <InternalOrderNumber>sample string 3</InternalOrderNumber> <Customer> <CustomerId>828f5404-6885-4004-9fc3-8c3a12c8c525</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>b5f3bf93-162a-4a7d-a7bf-1696e0cff268</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>b5f3bf93-162a-4a7d-a7bf-1696e0cff268</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>6aef7d69-799a-4acc-937b-ed4ee40a6d37</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>2b4d83da-e2c6-4211-bc1e-e5064460bb4b</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> </OrderItem> <OrderItem> <ProductId>2b4d83da-e2c6-4211-bc1e-e5064460bb4b</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> </OrderItem> </Items> <Invoices> <InvoiceFromOrder> <InvoiceId>0e3d35e7-432d-4e28-8c1a-bd09c592ef07</InvoiceId> <InvoiceNumber>2</InvoiceNumber> </InvoiceFromOrder> <InvoiceFromOrder> <InvoiceId>0e3d35e7-432d-4e28-8c1a-bd09c592ef07</InvoiceId> <InvoiceNumber>2</InvoiceNumber> </InvoiceFromOrder> </Invoices> <Parcels> <Parcel> <ParcelNumber>sample string 1</ParcelNumber> </Parcel> <Parcel> <ParcelNumber>sample string 1</ParcelNumber> </Parcel> </Parcels> <Created>2024-05-19T20:41:58.904625+02:00</Created> <ExpeditionDate>2024-05-19T20:41:58.904625+02:00</ExpeditionDate> <Comment>sample string 9</Comment> <TotalPrice>10</TotalPrice> <TotalPriceVAT>11</TotalPriceVAT> <TotalPriceVATFC>12</TotalPriceVATFC> <TotalPriceFC>13</TotalPriceFC> </OrderInfo>