Sage.PL.WebAPI.Interface.Orders.Interfaces Namespace > IOrdersController Interface > IOrdersController Methods > GetPDF Method  > GetPDF Method (String, Boolean, Boolean)

Drukuj

.NET Framework Class Library

IOrdersController.GetPDF Method (String, Boolean, Boolean)

Metoda umożliwia pobranie wydruku PDF zamówienia obcego zakodowanego w Base64, o podanym numerze dokumentu.

[GET] /api/Orders/PDF?orderNumber=numer_zamówienia

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

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

Syntax

Visual Basic

Function GetPDF ( _
 orderNumber As String, _
 Optional buffer As Boolean = False, _
 Optional printNote As Boolean = False _
As IHttpActionResult

C#

IHttpActionResult GetPDF(
 string orderNumber,
 bool buffer = false,
 bool printNote = false
)

Visual C++

IHttpActionResultGetPDF(
 StringorderNumber,
 bool buffer = false,
 bool printNote = false
)

JavaScript

function getPDF(orderNumberbufferprintNote);

Parameters

orderNumber

Type: System.String

[FromUri] Numer zamówienia obcego.

buffer (Optional)

Type: System.Boolean

[FromUri] Czy dokument znajduje się w buforze. W przypadku, gdy parametr nie zostanie podany zostanie wybrane zamówienie obce o podanym numerze dokumentu, które nie znajduje się w buforze.

printNote (Optional)

Type: System.Boolean

[FromUri] Czy umieścić notatkę na wydruku PDF. W przypadku, gdy parametr nie zostanie podany notatka nie zostanie umieszczona na wydruku PDF.

Return Value

Zwraca obiekt zawierający skrót dokumentu oraz dokument w Base64 PDF.

See Also

IOrdersController Interface

IOrdersController Members

GetPDF Overload

Sage.PL.WebAPI.Interface.Orders.Interfaces Namespace