Sage.PL.WebAPI.Interface.Purchases.Interfaces Namespace > IPurchasesController Interface > IPurchasesController Methods > GetListByDeliverer Method  > GetListByDeliverer Method (Int32, Nullable(DateTime), Nullable(DateTime))

Drukuj

.NET Framework Class Library

IPurchasesController.GetListByDeliverer Method (Int32, Nullable(DateTime), Nullable(DateTime))

Metoda umożliwia pobranie wszystkich dokumentów zakupu z podanego przedziału czasowego wystawionych dla kontrahenta (dostawcy) o podanym id.

[GET] /api/Purchases/Filter?delivererId=id_dostawcy&dateFrom=data_od&dateTo=data_do

Namespace: Sage.PL.WebAPI.Interface.Purchases.Interfaces

Assembly:  Sage.PL.WebAPI.Interface.Purchases (in Sage.PL.WebAPI.Interface.Purchases.dll) Version: 24.2.1.0 (24.2.1.0)

Syntax

Visual Basic

Function GetListByDeliverer ( _
 delivererId As Integer, _
 Optional dateFrom As Nullable(Of DateTime) = Nothing, _
 Optional dateTo As Nullable(Of DateTime) = Nothing _
As IHttpActionResult

C#

IHttpActionResult GetListByDeliverer(
 int delivererId,
 Nullable<DateTimedateFrom = null,
 Nullable<DateTimedateTo = null
)

Visual C++

IHttpActionResultGetListByDeliverer(
 int delivererId,
 Nullable<DateTimedateFrom = nullptr,
 Nullable<DateTimedateTo = nullptr
)

JavaScript

function getListByDeliverer(delivererIddateFromdateTo);

Parameters

delivererId

Type: System.Int32

[FromUri] Id kontrahenta (dostawcy).

dateFrom (Optional)

Type: System.Nullable(DateTime)

[FromUri] Data od przedziału czasowego. W przypadku, gdy parametr nie zostanie podany wyszukane zostaną wszystkie dokumenty zakupu do wskazanej daty do. Data paramteru powinna zostać podana w formacie yyyy-MM-dd.

dateTo (Optional)

Type: System.Nullable(DateTime)

[FromUri] Data do przedziału czasowego. W przypadku, gdy parametr nie zostanie podany wyszukane zostaną wszystkie dokumenty zakupu od wskazanej daty od. Data paramteru powinna zostać podana w formacie yyyy-MM-dd.

Return Value

Zwraca kolekcję obiektów PurchaseDocumentListElement.

See Also

IPurchasesController Interface

IPurchasesController Members

GetListByDeliverer Overload

Sage.PL.WebAPI.Interface.Purchases.Interfaces Namespace