Sage.PL.WebAPI.Interface.Purchases.Interfaces Namespace > IPurchasesController Interface > IPurchasesController Methods > GetPDF Method > GetPDF Method (PDFSettings, String, Boolean) | | Drukuj |
.NET Framework Class Library
IPurchasesController.GetPDF Method (PDFSettings, String, Boolean)
Metoda umożliwia pobranie wydruku PDF dokumentu zakupu zakodowanego w Base64, o podanym numerze dokumentu.
[PATCH] /api/Purchases/PDF?documentNumber=numer_zamówienia
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)
Visual Basic |
Function GetPDF ( _ |
C# |
IHttpActionResult GetPDF( |
Visual C++ |
IHttpActionResult^ GetPDF( |
JavaScript |
function getPDF(settings, documentNumber, buffer); |
settings
Type: Sage.PL.WebAPI.Interface.Common.ViewModels.PDFSettings
[FromBody] Ustawienia wydruku.
documentNumber
Type: System.String
[FromUri] Numer dokumentu zakupu.
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.
Zwraca obiekt zawierający skrót dokumentu oraz dokument w Base64 PDF.