Sage.PL.WebAPI.Interface.Payments.Interfaces Namespace > ISettlementsController Interface > ISettlementsController Methods > GetByDocument Method  > GetByDocument Method (String, Boolean)

Drukuj

.NET Framework Class Library

ISettlementsController.GetByDocument Method (String, Boolean)

Metoda umożliwia pobranie rozrachunku dla dokumentu o podanym numerze dokumentu.

[GET] /api/Settlements?documentNumber=numer_dokumentu

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

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

Syntax

Visual Basic

Function GetByDocument ( _
 documentNumber As String, _
 Optional buffer As Boolean = False _
As IHttpActionResult

C#

IHttpActionResult GetByDocument(
 string documentNumber,
 bool buffer = false
)

Visual C++

IHttpActionResultGetByDocument(
 StringdocumentNumber,
 bool buffer = false
)

JavaScript

function getByDocument(documentNumberbuffer);

Parameters

documentNumber

Type: System.String

[FromUri] Numer dokumentu.

buffer (Optional)

Type: System.Boolean

[FromUri] Czy dokument znajduje się w buforze. W przypadku, gdy parametr nie zostanie podany zostanie pobrany dokument o podanym numerze dokumentu, który nie znajduje się w buforze.

Return Value

Zwraca obiekt rozrachunku Settlement.

See Also

ISettlementsController Interface

ISettlementsController Members

GetByDocument Overload

Sage.PL.WebAPI.Interface.Payments.Interfaces Namespace