AS Server - API - PurchaseInvoice

Default

purchaseInvoiceAddLines

PurchaseInvoice_AddLines


/PurchaseInvoice/{id}/lines

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}/lines" \
 -d '{
  "WebsiteID" : 6,
  "LineSort" : "LineSort",
  "LineSearchFilter" : {
    "ParentID" : 7,
    "Types" : [ "Types", "Types" ],
    "IsApprovedForPOS" : true,
    "IsApprovedForWeb" : true,
    "AdaptorID" : 2,
    "SortField" : "SortField",
    "IsExactMatch" : true,
    "CategoryIDs" : [ 4, 4 ],
    "GetCountOnly" : true,
    "SearchString" : "SearchString",
    "IncludeDeleted" : true,
    "IncludeSystemTasks" : true,
    "StartDate" : "2000-01-23T04:56:07.000+00:00",
    "TenantID" : 1,
    "IgnoreID" : 2,
    "IsShowFavourites" : true,
    "IsHierarchicalSort" : true,
    "UserID" : 5,
    "Search" : "Search",
    "SortAsc" : true,
    "GUIDs" : [ "GUIDs", "GUIDs" ],
    "IncludeLogs" : true,
    "ID" : 1,
    "LinkedSupplierID" : 1,
    "Status" : [ "Status", "Status" ],
    "CategoryID" : 3,
    "WebsiteID" : 4,
    "IsHidden" : true,
    "GroupBy" : "GroupBy",
    "BrandIDs" : [ 7, 7 ],
    "LastRowNumber" : 6,
    "MaxResults" : 7,
    "EndDate" : "2000-01-23T04:56:07.000+00:00",
    "Statuses" : [ 5, 5 ],
    "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
    "IsGetBasicInfo" : true,
    "BatchStatus" : "BatchStatus",
    "DatePeriod" : "DatePeriod",
    "IDs" : [ 1, 1 ],
    "IsSystem" : true,
    "SearchNameOnly" : true,
    "IsApprovedForService" : true,
    "TransactionTypeDatTypeID" : 9
  },
  "IsShowSummaryLines" : true,
  "Discount" : 0.8008281904610115,
  "RefBusTrans" : [ {
    "AppliedAmountString" : "AppliedAmountString",
    "AmountString" : "AmountString",
    "ClaimDescription" : "ClaimDescription",
    "TransType" : "TransType",
    "GUIDstring" : "GUIDstring",
    "MerchantSurcharge" : 6.878052220127876,
    "ID" : 3,
    "AppliedCredit" : 3.353193347011243,
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "Amount" : 6.965117697638846,
    "RefNumber" : "RefNumber",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "AppliedAmount" : 2.8841621266687802,
    "TotalInc" : 6.438423552598547,
    "AppliedTransID" : 6,
    "ClaimRequestID" : 3,
    "AppliedDateString" : "AppliedDateString",
    "TransSubType" : "TransSubType",
    "TransTypeID" : 1,
    "BSID" : "BSID",
    "Summary" : "Summary",
    "MerchantSurchargeLineID" : 5,
    "Balance" : 6.778324963048013,
    "IsEarlyClaimShortPayment" : true
  }, {
    "AppliedAmountString" : "AppliedAmountString",
    "AmountString" : "AmountString",
    "ClaimDescription" : "ClaimDescription",
    "TransType" : "TransType",
    "GUIDstring" : "GUIDstring",
    "MerchantSurcharge" : 6.878052220127876,
    "ID" : 3,
    "AppliedCredit" : 3.353193347011243,
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "Amount" : 6.965117697638846,
    "RefNumber" : "RefNumber",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "AppliedAmount" : 2.8841621266687802,
    "TotalInc" : 6.438423552598547,
    "AppliedTransID" : 6,
    "ClaimRequestID" : 3,
    "AppliedDateString" : "AppliedDateString",
    "TransSubType" : "TransSubType",
    "TransTypeID" : 1,
    "BSID" : "BSID",
    "Summary" : "Summary",
    "MerchantSurchargeLineID" : 5,
    "Balance" : 6.778324963048013,
    "IsEarlyClaimShortPayment" : true
  } ],
  "IsGetExtraInfo" : true,
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "RefTransRefNumber" : "RefTransRefNumber",
  "CustomerID" : 1,
  "DiscountMode" : "DiscountMode",
  "SupplierID" : 5,
  "IsPriceRefresh" : true,
  "TenantID" : 9,
  "UserID" : 8,
  "TotalRefund" : 6.027456183070403,
  "IsLineSortDesc" : true,
  "IsGetMessages" : true,
  "ID" : 9,
  "IsExcludeFailedPayments" : true,
  "Lines" : [ {
    "SellPriceInc" : 1.2555055362323109,
    "FeeID" : 4,
    "TotalQuantityReceived" : 0.4867146239815201,
    "AdjustedQuantityReceived" : 7.88722683998926,
    "InventoryID" : 9,
    "ShortDescription" : "ShortDescription",
    "AcquisitionWarehouseID" : 3,
    "FeeGUID" : "00000000-0000-0000-0000-000000000000",
    "SequenceNumber" : 0,
    "ID" : 7,
    "SellPriceTaxString" : "SellPriceTaxString",
    "InventoryGUIDstring" : "InventoryGUIDstring",
    "InventoryType" : "InventoryType",
    "DefaultThumbnailURL" : "DefaultThumbnailURL",
    "IsOnSpecial" : true,
    "MinOrderQuantity" : 2.380090174313445,
    "RefBarCode" : "RefBarCode",
    "IsShowOriginalPriceInReceipts" : true,
    "DatTypeID" : 9,
    "PricingMode" : "PricingMode",
    "Code" : "Code",
    "IsDiscontinued" : true,
    "LineTotalTaxString" : "LineTotalTaxString",
    "SupplierInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "EAN" : "EAN",
    "Barcode" : "Barcode",
    "IsAmendedByOtherParty" : true,
    "ReturnReason" : "ReturnReason",
    "DefaultImageURL" : "DefaultImageURL",
    "StandardSellPriceEx" : 6.173804034172511,
    "Description" : "Description",
    "ClaimReason" : "ClaimReason",
    "SellPriceTax" : 3.812761638325517,
    "QuantityPicked" : 6.4280627569296165,
    "CurrentSuppliersInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsTaxable" : true,
    "SellPriceExString" : "SellPriceExString",
    "QuantityInCartString" : "QuantityInCartString",
    "DeliveryMethod" : "DeliveryMethod",
    "SellPriceEx" : 1.3949519358941398,
    "LineTotalInc" : 1.5970080735609526,
    "CommentFromOtherParty" : "CommentFromOtherParty",
    "QuantityOutofDate" : 4.943637496515336,
    "InventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsVariantMaster" : true,
    "LineTotalExString" : "LineTotalExString",
    "IsPriceRefresh" : true,
    "DiscountPercentage" : 0.8411762798681321,
    "QuantityOrdered" : 5.747795090145878,
    "IsCanUpdateInventoryOnMerge" : true,
    "QuantityOnBackOrder" : 7.203794749804894,
    "OrderTotalIncDesc" : "OrderTotalIncDesc",
    "AcquisitionMethod" : "AcquisitionMethod",
    "LabourRateID" : 2,
    "LineID" : 7,
    "RefInventoryBSID" : "RefInventoryBSID",
    "IsCreatedByOtherParty" : true,
    "WarehouseID" : 5,
    "GUIDstring" : "GUIDstring",
    "PostingInventoryCode" : "PostingInventoryCode",
    "ReturnInNumberOfWeeks" : 0.4833312865174044,
    "ExpectedBuyPriceEx" : 9.456612101333725,
    "CalculatedBuyPriceTax" : 9.721723570087065,
    "AccountCode" : "AccountCode",
    "MaxOrderQuantity" : 3.1497903714250555,
    "QuantityIncorrect" : 6.749525837406151,
    "ClaimRequestLines" : [ {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    }, {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    } ],
    "QuantityCancelled" : 4.518309517874243,
    "FeePercentage" : 5.877124706116695,
    "LineTotalIncString" : "LineTotalIncString",
    "StandardSellPriceInc" : 0.35262192099236644,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "UoMDescription" : "UoMDescription",
    "LineTotalEx" : 5.6644160867523485,
    "IsRejected" : true,
    "ItemID" : 0,
    "FeeGUIDstring" : "FeeGUIDstring",
    "PriceDescription" : "PriceDescription",
    "LineTotalTax" : 4.372688051310086,
    "TaxType" : "TaxType",
    "PostingInventoryID" : 2,
    "CostPriceInc" : 4.8789878742268815,
    "SellPriceIncString" : "SellPriceIncString",
    "QuantityClaimed" : 0.30134145536422907,
    "QuantityRefunded" : 6.918231485891953,
    "PriceType" : "PriceType",
    "InventoryBSID" : "InventoryBSID",
    "Warehouse" : {
      "Description" : "Description",
      "IsActive" : true,
      "TotalNumberOfDistinctProducts" : 9,
      "Users" : [ {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      }, {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      } ],
      "Name" : "Name",
      "GUIDstring" : "GUIDstring",
      "Version" : 7.726998920545485,
      "SyncLogs" : [ {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      }, {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      } ],
      "WarehouseTypeID" : 1,
      "ID" : 7,
      "DefaultPOSCustomerName" : "DefaultPOSCustomerName",
      "MinimumStockHoldingValue" : 6.458262756685686,
      "IsDefault" : true,
      "DefaultPOSCustomerID" : 8,
      "TenantLocationName" : "TenantLocationName",
      "Code" : "Code",
      "TotalStockValue" : 8.276461147928103,
      "RowNumber" : 7,
      "BSID" : "BSID",
      "MaximumStockHoldingValue" : 4.141296055235948,
      "TenantLocationID" : 9,
      "Barcode" : "Barcode",
      "WarehouseType" : {
        "Description" : "Description",
        "WarehouseTypeID" : 2,
        "ID" : 8,
        "IsVirtual" : true,
        "Name" : "Name",
        "RefNumberPrefix" : "RefNumberPrefix"
      },
      "TotalSOH" : 4.010300976654761,
      "IsSystem" : true,
      "CostCentreCode" : "CostCentreCode",
      "Location" : {
        "IsActive" : true,
        "TimeZoneName" : "TimeZoneName",
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "EmailAddress" : "EmailAddress",
        "Name" : "Name",
        "LocationName" : "LocationName",
        "GUIDstring" : "GUIDstring",
        "Addresses" : [ {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        }, {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        } ],
        "UtcOffset" : 3,
        "IsVisibleToPublic" : true,
        "Contacts" : [ {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        }, {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        } ],
        "Phone" : "Phone",
        "IsSystem" : true,
        "ID" : 4,
        "Fax" : "Fax",
        "IsDefaultLocation" : true
      },
      "IsStockOpeningBalanceComplete" : true
    },
    "DeliveryMethodDescription" : "DeliveryMethodDescription",
    "CostPriceEx" : 9.806951670467935,
    "IsActive" : true,
    "HasPriceBeenEdited" : true,
    "IsSpecialPrice" : true,
    "OrderTotalInc" : 3.804112695731078,
    "Attachments" : [ {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    }, {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    } ],
    "UoM" : "UoM",
    "IsPhysical" : true,
    "TaxRate" : 5.974942028545841,
    "AssetID" : 3,
    "LineType" : "LineType",
    "Comment" : "Comment",
    "RefInventoryCode" : "RefInventoryCode",
    "QuantityInCart" : 8.675064425986758,
    "Title" : "Title",
    "Quantity" : 2.535258963197524,
    "CostPriceTax" : 6.966044574347761,
    "QuantityFaulty" : 7.3842318535314,
    "QuantityReceived" : 0.7012260588964747,
    "SKU" : "SKU",
    "CostPriceExString" : "CostPriceExString",
    "IsAssetItem" : true,
    "SupplierInventoryGUIDString" : "SupplierInventoryGUIDString"
  }, {
    "SellPriceInc" : 1.2555055362323109,
    "FeeID" : 4,
    "TotalQuantityReceived" : 0.4867146239815201,
    "AdjustedQuantityReceived" : 7.88722683998926,
    "InventoryID" : 9,
    "ShortDescription" : "ShortDescription",
    "AcquisitionWarehouseID" : 3,
    "FeeGUID" : "00000000-0000-0000-0000-000000000000",
    "SequenceNumber" : 0,
    "ID" : 7,
    "SellPriceTaxString" : "SellPriceTaxString",
    "InventoryGUIDstring" : "InventoryGUIDstring",
    "InventoryType" : "InventoryType",
    "DefaultThumbnailURL" : "DefaultThumbnailURL",
    "IsOnSpecial" : true,
    "MinOrderQuantity" : 2.380090174313445,
    "RefBarCode" : "RefBarCode",
    "IsShowOriginalPriceInReceipts" : true,
    "DatTypeID" : 9,
    "PricingMode" : "PricingMode",
    "Code" : "Code",
    "IsDiscontinued" : true,
    "LineTotalTaxString" : "LineTotalTaxString",
    "SupplierInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "EAN" : "EAN",
    "Barcode" : "Barcode",
    "IsAmendedByOtherParty" : true,
    "ReturnReason" : "ReturnReason",
    "DefaultImageURL" : "DefaultImageURL",
    "StandardSellPriceEx" : 6.173804034172511,
    "Description" : "Description",
    "ClaimReason" : "ClaimReason",
    "SellPriceTax" : 3.812761638325517,
    "QuantityPicked" : 6.4280627569296165,
    "CurrentSuppliersInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsTaxable" : true,
    "SellPriceExString" : "SellPriceExString",
    "QuantityInCartString" : "QuantityInCartString",
    "DeliveryMethod" : "DeliveryMethod",
    "SellPriceEx" : 1.3949519358941398,
    "LineTotalInc" : 1.5970080735609526,
    "CommentFromOtherParty" : "CommentFromOtherParty",
    "QuantityOutofDate" : 4.943637496515336,
    "InventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsVariantMaster" : true,
    "LineTotalExString" : "LineTotalExString",
    "IsPriceRefresh" : true,
    "DiscountPercentage" : 0.8411762798681321,
    "QuantityOrdered" : 5.747795090145878,
    "IsCanUpdateInventoryOnMerge" : true,
    "QuantityOnBackOrder" : 7.203794749804894,
    "OrderTotalIncDesc" : "OrderTotalIncDesc",
    "AcquisitionMethod" : "AcquisitionMethod",
    "LabourRateID" : 2,
    "LineID" : 7,
    "RefInventoryBSID" : "RefInventoryBSID",
    "IsCreatedByOtherParty" : true,
    "WarehouseID" : 5,
    "GUIDstring" : "GUIDstring",
    "PostingInventoryCode" : "PostingInventoryCode",
    "ReturnInNumberOfWeeks" : 0.4833312865174044,
    "ExpectedBuyPriceEx" : 9.456612101333725,
    "CalculatedBuyPriceTax" : 9.721723570087065,
    "AccountCode" : "AccountCode",
    "MaxOrderQuantity" : 3.1497903714250555,
    "QuantityIncorrect" : 6.749525837406151,
    "ClaimRequestLines" : [ {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    }, {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    } ],
    "QuantityCancelled" : 4.518309517874243,
    "FeePercentage" : 5.877124706116695,
    "LineTotalIncString" : "LineTotalIncString",
    "StandardSellPriceInc" : 0.35262192099236644,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "UoMDescription" : "UoMDescription",
    "LineTotalEx" : 5.6644160867523485,
    "IsRejected" : true,
    "ItemID" : 0,
    "FeeGUIDstring" : "FeeGUIDstring",
    "PriceDescription" : "PriceDescription",
    "LineTotalTax" : 4.372688051310086,
    "TaxType" : "TaxType",
    "PostingInventoryID" : 2,
    "CostPriceInc" : 4.8789878742268815,
    "SellPriceIncString" : "SellPriceIncString",
    "QuantityClaimed" : 0.30134145536422907,
    "QuantityRefunded" : 6.918231485891953,
    "PriceType" : "PriceType",
    "InventoryBSID" : "InventoryBSID",
    "Warehouse" : {
      "Description" : "Description",
      "IsActive" : true,
      "TotalNumberOfDistinctProducts" : 9,
      "Users" : [ {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      }, {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      } ],
      "Name" : "Name",
      "GUIDstring" : "GUIDstring",
      "Version" : 7.726998920545485,
      "SyncLogs" : [ {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      }, {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      } ],
      "WarehouseTypeID" : 1,
      "ID" : 7,
      "DefaultPOSCustomerName" : "DefaultPOSCustomerName",
      "MinimumStockHoldingValue" : 6.458262756685686,
      "IsDefault" : true,
      "DefaultPOSCustomerID" : 8,
      "TenantLocationName" : "TenantLocationName",
      "Code" : "Code",
      "TotalStockValue" : 8.276461147928103,
      "RowNumber" : 7,
      "BSID" : "BSID",
      "MaximumStockHoldingValue" : 4.141296055235948,
      "TenantLocationID" : 9,
      "Barcode" : "Barcode",
      "WarehouseType" : {
        "Description" : "Description",
        "WarehouseTypeID" : 2,
        "ID" : 8,
        "IsVirtual" : true,
        "Name" : "Name",
        "RefNumberPrefix" : "RefNumberPrefix"
      },
      "TotalSOH" : 4.010300976654761,
      "IsSystem" : true,
      "CostCentreCode" : "CostCentreCode",
      "Location" : {
        "IsActive" : true,
        "TimeZoneName" : "TimeZoneName",
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "EmailAddress" : "EmailAddress",
        "Name" : "Name",
        "LocationName" : "LocationName",
        "GUIDstring" : "GUIDstring",
        "Addresses" : [ {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        }, {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        } ],
        "UtcOffset" : 3,
        "IsVisibleToPublic" : true,
        "Contacts" : [ {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        }, {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        } ],
        "Phone" : "Phone",
        "IsSystem" : true,
        "ID" : 4,
        "Fax" : "Fax",
        "IsDefaultLocation" : true
      },
      "IsStockOpeningBalanceComplete" : true
    },
    "DeliveryMethodDescription" : "DeliveryMethodDescription",
    "CostPriceEx" : 9.806951670467935,
    "IsActive" : true,
    "HasPriceBeenEdited" : true,
    "IsSpecialPrice" : true,
    "OrderTotalInc" : 3.804112695731078,
    "Attachments" : [ {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    }, {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    } ],
    "UoM" : "UoM",
    "IsPhysical" : true,
    "TaxRate" : 5.974942028545841,
    "AssetID" : 3,
    "LineType" : "LineType",
    "Comment" : "Comment",
    "RefInventoryCode" : "RefInventoryCode",
    "QuantityInCart" : 8.675064425986758,
    "Title" : "Title",
    "Quantity" : 2.535258963197524,
    "CostPriceTax" : 6.966044574347761,
    "QuantityFaulty" : 7.3842318535314,
    "QuantityReceived" : 0.7012260588964747,
    "SKU" : "SKU",
    "CostPriceExString" : "CostPriceExString",
    "IsAssetItem" : true,
    "SupplierInventoryGUIDString" : "SupplierInventoryGUIDString"
  } ],
  "IsOverridingLines" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<AddLinesRequest>
  <DiscountMode>aeiou</DiscountMode>
  <Discount>3.149</Discount>
  <null>
    <ID>123</ID>
    <IsPriceRefresh>true</IsPriceRefresh>
    <AcquisitionMethod>aeiou</AcquisitionMethod>
    <AcquisitionWarehouseID>123</AcquisitionWarehouseID>
    <AssetID>123</AssetID>
    <CostPriceExString>aeiou</CostPriceExString>
    <DatTypeID>123</DatTypeID>
    <DefaultImageURL>aeiou</DefaultImageURL>
    <DefaultThumbnailURL>aeiou</DefaultThumbnailURL>
    <DeliveryMethodDescription>aeiou</DeliveryMethodDescription>
    <FeePercentage>3.149</FeePercentage>
    <LineID>123</LineID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <FeeGUID>00000000-0000-0000-0000-000000000000</FeeGUID>
    <InventoryGUID>00000000-0000-0000-0000-000000000000</InventoryGUID>
    <HasPriceBeenEdited>true</HasPriceBeenEdited>
    <IsAssetItem>true</IsAssetItem>
    <IsDiscontinued>true</IsDiscontinued>
    <IsOnSpecial>true</IsOnSpecial>
    <IsVariantMaster>true</IsVariantMaster>
    <ItemID>123</ItemID>
    <LineTotalExString>aeiou</LineTotalExString>
    <LineTotalIncString>aeiou</LineTotalIncString>
    <LineTotalTaxString>aeiou</LineTotalTaxString>
    <LineType>aeiou</LineType>
    <MaxOrderQuantity>3.149</MaxOrderQuantity>
    <MinOrderQuantity>3.149</MinOrderQuantity>
    <OrderTotalInc>3.149</OrderTotalInc>
    <OrderTotalIncDesc>aeiou</OrderTotalIncDesc>
    <QuantityInCart>3.149</QuantityInCart>
    <QuantityInCartString>aeiou</QuantityInCartString>
    <QuantityCancelled>3.149</QuantityCancelled>
    <ReturnInNumberOfWeeks>3.149</ReturnInNumberOfWeeks>
    <SellPriceExString>aeiou</SellPriceExString>
    <SellPriceIncString>aeiou</SellPriceIncString>
    <SellPriceTaxString>aeiou</SellPriceTaxString>
    <Title>aeiou</Title>
    <StandardSellPriceInc>3.149</StandardSellPriceInc>
    <IsCreatedByOtherParty>true</IsCreatedByOtherParty>
    <IsAmendedByOtherParty>true</IsAmendedByOtherParty>
    <CommentFromOtherParty>aeiou</CommentFromOtherParty>
    <CurrentSuppliersInventoryGUID>00000000-0000-0000-0000-000000000000</CurrentSuppliersInventoryGUID>
    <IsCanUpdateInventoryOnMerge>true</IsCanUpdateInventoryOnMerge>
    <SupplierInventoryGUID>00000000-0000-0000-0000-000000000000</SupplierInventoryGUID>
    <IsShowOriginalPriceInReceipts>true</IsShowOriginalPriceInReceipts>
    <QuantityOnBackOrder>3.149</QuantityOnBackOrder>
    <GUIDstring>aeiou</GUIDstring>
    <FeeID>123</FeeID>
    <FeeGUIDstring>aeiou</FeeGUIDstring>
    <LabourRateID>123</LabourRateID>
    <InventoryID>123</InventoryID>
    <SequenceNumber>123</SequenceNumber>
    <Code>aeiou</Code>
    <InventoryBSID>aeiou</InventoryBSID>
    <InventoryGUIDstring>aeiou</InventoryGUIDstring>
    <InventoryType>aeiou</InventoryType>
    <Barcode>aeiou</Barcode>
    <EAN>aeiou</EAN>
    <SKU>aeiou</SKU>
    <ShortDescription>aeiou</ShortDescription>
    <Description>aeiou</Description>
    <UoM>aeiou</UoM>
    <UoMDescription>aeiou</UoMDescription>
    <Quantity>3.149</Quantity>
    <StandardSellPriceEx>3.149</StandardSellPriceEx>
    <CostPriceInc>3.149</CostPriceInc>
    <CostPriceTax>3.149</CostPriceTax>
    <CostPriceEx>3.149</CostPriceEx>
    <SellPriceEx>3.149</SellPriceEx>
    <SellPriceInc>3.149</SellPriceInc>
    <SellPriceTax>3.149</SellPriceTax>
    <LineTotalEx>3.149</LineTotalEx>
    <LineTotalInc>3.149</LineTotalInc>
    <LineTotalTax>3.149</LineTotalTax>
    <Comment>aeiou</Comment>
    <WarehouseID>123</WarehouseID>
    <IsActive>true</IsActive>
    <PriceDescription>aeiou</PriceDescription>
    <PricingMode>aeiou</PricingMode>
    <PriceType>aeiou</PriceType>
    <IsSpecialPrice>true</IsSpecialPrice>
    <TaxRate>3.149</TaxRate>
    <DeliveryMethod>aeiou</DeliveryMethod>
    <RefInventoryCode>aeiou</RefInventoryCode>
    <RefBarCode>aeiou</RefBarCode>
    <RefInventoryBSID>aeiou</RefInventoryBSID>
    <AccountCode>aeiou</AccountCode>
    <TaxType>aeiou</TaxType>
    <IsPhysical>true</IsPhysical>
    <ReturnReason>aeiou</ReturnReason>
    <IsRejected>true</IsRejected>
    <QuantityPicked>3.149</QuantityPicked>
    <DiscountPercentage>3.149</DiscountPercentage>
    <PostingInventoryID>123</PostingInventoryID>
    <PostingInventoryCode>aeiou</PostingInventoryCode>
    <QuantityOrdered>3.149</QuantityOrdered>
    <QuantityReceived>3.149</QuantityReceived>
    <QuantityFaulty>3.149</QuantityFaulty>
    <QuantityIncorrect>3.149</QuantityIncorrect>
    <QuantityOutofDate>3.149</QuantityOutofDate>
    <QuantityClaimed>3.149</QuantityClaimed>
    <TotalQuantityReceived>3.149</TotalQuantityReceived>
    <ExpectedBuyPriceEx>3.149</ExpectedBuyPriceEx>
    <CalculatedBuyPriceTax>3.149</CalculatedBuyPriceTax>
    <AdjustedQuantityReceived>3.149</AdjustedQuantityReceived>
    <SupplierInventoryGUIDString>aeiou</SupplierInventoryGUIDString>
    <QuantityRefunded>3.149</QuantityRefunded>
    <IsTaxable>true</IsTaxable>
    <ClaimReason>aeiou</ClaimReason>
  </null>
  <IsOverridingLines>true</IsOverridingLines>
  <RefTransRefNumber>aeiou</RefTransRefNumber>
  <null>
    <AmountString>aeiou</AmountString>
    <AppliedAmountString>aeiou</AppliedAmountString>
    <AppliedDateString>aeiou</AppliedDateString>
    <Summary>aeiou</Summary>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Status>aeiou</Status>
    <TotalInc>3.149</TotalInc>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <Amount>3.149</Amount>
    <TransTypeID>123</TransTypeID>
    <TransType>aeiou</TransType>
    <RefNumber>aeiou</RefNumber>
    <AppliedDate>2000-01-23T04:56:07.000Z</AppliedDate>
    <AppliedAmount>3.149</AppliedAmount>
    <Balance>3.149</Balance>
    <MerchantSurcharge>3.149</MerchantSurcharge>
    <MerchantSurchargeLineID>123</MerchantSurchargeLineID>
    <TransSubType>aeiou</TransSubType>
    <AppliedTransID>123</AppliedTransID>
    <AppliedCredit>3.149</AppliedCredit>
    <ClaimRequestID>123</ClaimRequestID>
    <ClaimDescription>aeiou</ClaimDescription>
    <IsEarlyClaimShortPayment>true</IsEarlyClaimShortPayment>
  </null>
  <TotalRefund>3.149</TotalRefund>
  <LineSort>aeiou</LineSort>
  <IsLineSortDesc>true</IsLineSortDesc>
  <IsGetMessages>true</IsGetMessages>
  <CustomerID>123</CustomerID>
  <SupplierID>123</SupplierID>
  <IsPriceRefresh>true</IsPriceRefresh>
  <null>
    <Statuses>123</Statuses>
    <StatusStrings>aeiou</StatusStrings>
    <Status>aeiou</Status>
    <SearchString>aeiou</SearchString>
    <SearchNameOnly>true</SearchNameOnly>
    <Search>aeiou</Search>
    <StartDate>2000-01-23T04:56:07.000Z</StartDate>
    <EndDate>2000-01-23T04:56:07.000Z</EndDate>
    <DatePeriod>aeiou</DatePeriod>
    <IsExactMatch>true</IsExactMatch>
    <IsGetBasicInfo>true</IsGetBasicInfo>
    <IncludeDeleted>true</IncludeDeleted>
    <IncludeLogs>true</IncludeLogs>
    <IgnoreID>123</IgnoreID>
    <ParentID>123</ParentID>
    <GetCountOnly>true</GetCountOnly>
    <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
    <CategoryID>123</CategoryID>
    <AdaptorID>123</AdaptorID>
    <CategoryIDs>123</CategoryIDs>
    <BrandIDs>123</BrandIDs>
    <IDs>123</IDs>
    <GUIDs>aeiou</GUIDs>
    <LinkedSupplierID>123</LinkedSupplierID>
    <IsApprovedForPOS>true</IsApprovedForPOS>
    <IsApprovedForWeb>true</IsApprovedForWeb>
    <IsApprovedForService>true</IsApprovedForService>
    <ID>123</ID>
    <IsHierarchicalSort>true</IsHierarchicalSort>
    <Types>aeiou</Types>
    <IsShowFavourites>true</IsShowFavourites>
    <IsHidden>true</IsHidden>
    <IncludeSystemTasks>true</IncludeSystemTasks>
    <IsSystem>true</IsSystem>
    <BatchStatus>aeiou</BatchStatus>
    <SortField>aeiou</SortField>
    <SortAsc>true</SortAsc>
    <GroupBy>aeiou</GroupBy>
    <LastRowNumber>123456789</LastRowNumber>
    <MaxResults>123</MaxResults>
    <TenantID>123</TenantID>
    <WebsiteID>123</WebsiteID>
    <UserID>123</UserID>
  </null>
  <IsExcludeFailedPayments>true</IsExcludeFailedPayments>
  <IsShowSummaryLines>true</IsShowSummaryLines>
  <ID>123</ID>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <IsGetExtraInfo>true</IsGetExtraInfo>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</AddLinesRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        AddLinesRequest addLinesRequest = ; // AddLinesRequest | 

        try {
            AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLines(id, addLinesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceAddLines");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final AddLinesRequest addLinesRequest = new AddLinesRequest(); // AddLinesRequest | 

try {
    final result = await api_instance.purchaseInvoiceAddLines(id, addLinesRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceAddLines: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        AddLinesRequest addLinesRequest = ; // AddLinesRequest | 

        try {
            AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLines(id, addLinesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceAddLines");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
AddLinesRequest *addLinesRequest = ; //  (optional)

// PurchaseInvoice_AddLines
[apiInstance purchaseInvoiceAddLinesWith:id
    addLinesRequest:addLinesRequest
              completionHandler: ^(AddLinesResponse_PurchaseInvoiceT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'addLinesRequest':  // {AddLinesRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceAddLines(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceAddLinesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var addLinesRequest = new AddLinesRequest(); // AddLinesRequest |  (optional) 

            try {
                // PurchaseInvoice_AddLines
                AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLines(id, addLinesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceAddLines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$addLinesRequest = ; // AddLinesRequest | 

try {
    $result = $api_instance->purchaseInvoiceAddLines($id, $addLinesRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceAddLines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $addLinesRequest = WWW::OPenAPIClient::Object::AddLinesRequest->new(); # AddLinesRequest | 

eval {
    my $result = $api_instance->purchaseInvoiceAddLines(id => $id, addLinesRequest => $addLinesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceAddLines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
addLinesRequest =  # AddLinesRequest |  (optional)

try:
    # PurchaseInvoice_AddLines
    api_response = api_instance.purchase_invoice_add_lines(id, addLinesRequest=addLinesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceAddLines: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let addLinesRequest = ; // AddLinesRequest

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceAddLines(id, addLinesRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
addLinesRequest

Responses


purchaseInvoiceAddLinesPreview

PurchaseInvoice_AddLinesPreview


/PurchaseInvoice/{id}/lines

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}/lines" \
 -d '{
  "WebsiteID" : 6,
  "LineSort" : "LineSort",
  "LineSearchFilter" : {
    "ParentID" : 7,
    "Types" : [ "Types", "Types" ],
    "IsApprovedForPOS" : true,
    "IsApprovedForWeb" : true,
    "AdaptorID" : 2,
    "SortField" : "SortField",
    "IsExactMatch" : true,
    "CategoryIDs" : [ 4, 4 ],
    "GetCountOnly" : true,
    "SearchString" : "SearchString",
    "IncludeDeleted" : true,
    "IncludeSystemTasks" : true,
    "StartDate" : "2000-01-23T04:56:07.000+00:00",
    "TenantID" : 1,
    "IgnoreID" : 2,
    "IsShowFavourites" : true,
    "IsHierarchicalSort" : true,
    "UserID" : 5,
    "Search" : "Search",
    "SortAsc" : true,
    "GUIDs" : [ "GUIDs", "GUIDs" ],
    "IncludeLogs" : true,
    "ID" : 1,
    "LinkedSupplierID" : 1,
    "Status" : [ "Status", "Status" ],
    "CategoryID" : 3,
    "WebsiteID" : 4,
    "IsHidden" : true,
    "GroupBy" : "GroupBy",
    "BrandIDs" : [ 7, 7 ],
    "LastRowNumber" : 6,
    "MaxResults" : 7,
    "EndDate" : "2000-01-23T04:56:07.000+00:00",
    "Statuses" : [ 5, 5 ],
    "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
    "IsGetBasicInfo" : true,
    "BatchStatus" : "BatchStatus",
    "DatePeriod" : "DatePeriod",
    "IDs" : [ 1, 1 ],
    "IsSystem" : true,
    "SearchNameOnly" : true,
    "IsApprovedForService" : true,
    "TransactionTypeDatTypeID" : 9
  },
  "IsShowSummaryLines" : true,
  "Discount" : 0.8008281904610115,
  "RefBusTrans" : [ {
    "AppliedAmountString" : "AppliedAmountString",
    "AmountString" : "AmountString",
    "ClaimDescription" : "ClaimDescription",
    "TransType" : "TransType",
    "GUIDstring" : "GUIDstring",
    "MerchantSurcharge" : 6.878052220127876,
    "ID" : 3,
    "AppliedCredit" : 3.353193347011243,
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "Amount" : 6.965117697638846,
    "RefNumber" : "RefNumber",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "AppliedAmount" : 2.8841621266687802,
    "TotalInc" : 6.438423552598547,
    "AppliedTransID" : 6,
    "ClaimRequestID" : 3,
    "AppliedDateString" : "AppliedDateString",
    "TransSubType" : "TransSubType",
    "TransTypeID" : 1,
    "BSID" : "BSID",
    "Summary" : "Summary",
    "MerchantSurchargeLineID" : 5,
    "Balance" : 6.778324963048013,
    "IsEarlyClaimShortPayment" : true
  }, {
    "AppliedAmountString" : "AppliedAmountString",
    "AmountString" : "AmountString",
    "ClaimDescription" : "ClaimDescription",
    "TransType" : "TransType",
    "GUIDstring" : "GUIDstring",
    "MerchantSurcharge" : 6.878052220127876,
    "ID" : 3,
    "AppliedCredit" : 3.353193347011243,
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "Amount" : 6.965117697638846,
    "RefNumber" : "RefNumber",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "AppliedAmount" : 2.8841621266687802,
    "TotalInc" : 6.438423552598547,
    "AppliedTransID" : 6,
    "ClaimRequestID" : 3,
    "AppliedDateString" : "AppliedDateString",
    "TransSubType" : "TransSubType",
    "TransTypeID" : 1,
    "BSID" : "BSID",
    "Summary" : "Summary",
    "MerchantSurchargeLineID" : 5,
    "Balance" : 6.778324963048013,
    "IsEarlyClaimShortPayment" : true
  } ],
  "IsGetExtraInfo" : true,
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "RefTransRefNumber" : "RefTransRefNumber",
  "CustomerID" : 1,
  "DiscountMode" : "DiscountMode",
  "SupplierID" : 5,
  "IsPriceRefresh" : true,
  "TenantID" : 9,
  "UserID" : 8,
  "TotalRefund" : 6.027456183070403,
  "IsLineSortDesc" : true,
  "IsGetMessages" : true,
  "ID" : 9,
  "IsExcludeFailedPayments" : true,
  "Lines" : [ {
    "SellPriceInc" : 1.2555055362323109,
    "FeeID" : 4,
    "TotalQuantityReceived" : 0.4867146239815201,
    "AdjustedQuantityReceived" : 7.88722683998926,
    "InventoryID" : 9,
    "ShortDescription" : "ShortDescription",
    "AcquisitionWarehouseID" : 3,
    "FeeGUID" : "00000000-0000-0000-0000-000000000000",
    "SequenceNumber" : 0,
    "ID" : 7,
    "SellPriceTaxString" : "SellPriceTaxString",
    "InventoryGUIDstring" : "InventoryGUIDstring",
    "InventoryType" : "InventoryType",
    "DefaultThumbnailURL" : "DefaultThumbnailURL",
    "IsOnSpecial" : true,
    "MinOrderQuantity" : 2.380090174313445,
    "RefBarCode" : "RefBarCode",
    "IsShowOriginalPriceInReceipts" : true,
    "DatTypeID" : 9,
    "PricingMode" : "PricingMode",
    "Code" : "Code",
    "IsDiscontinued" : true,
    "LineTotalTaxString" : "LineTotalTaxString",
    "SupplierInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "EAN" : "EAN",
    "Barcode" : "Barcode",
    "IsAmendedByOtherParty" : true,
    "ReturnReason" : "ReturnReason",
    "DefaultImageURL" : "DefaultImageURL",
    "StandardSellPriceEx" : 6.173804034172511,
    "Description" : "Description",
    "ClaimReason" : "ClaimReason",
    "SellPriceTax" : 3.812761638325517,
    "QuantityPicked" : 6.4280627569296165,
    "CurrentSuppliersInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsTaxable" : true,
    "SellPriceExString" : "SellPriceExString",
    "QuantityInCartString" : "QuantityInCartString",
    "DeliveryMethod" : "DeliveryMethod",
    "SellPriceEx" : 1.3949519358941398,
    "LineTotalInc" : 1.5970080735609526,
    "CommentFromOtherParty" : "CommentFromOtherParty",
    "QuantityOutofDate" : 4.943637496515336,
    "InventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsVariantMaster" : true,
    "LineTotalExString" : "LineTotalExString",
    "IsPriceRefresh" : true,
    "DiscountPercentage" : 0.8411762798681321,
    "QuantityOrdered" : 5.747795090145878,
    "IsCanUpdateInventoryOnMerge" : true,
    "QuantityOnBackOrder" : 7.203794749804894,
    "OrderTotalIncDesc" : "OrderTotalIncDesc",
    "AcquisitionMethod" : "AcquisitionMethod",
    "LabourRateID" : 2,
    "LineID" : 7,
    "RefInventoryBSID" : "RefInventoryBSID",
    "IsCreatedByOtherParty" : true,
    "WarehouseID" : 5,
    "GUIDstring" : "GUIDstring",
    "PostingInventoryCode" : "PostingInventoryCode",
    "ReturnInNumberOfWeeks" : 0.4833312865174044,
    "ExpectedBuyPriceEx" : 9.456612101333725,
    "CalculatedBuyPriceTax" : 9.721723570087065,
    "AccountCode" : "AccountCode",
    "MaxOrderQuantity" : 3.1497903714250555,
    "QuantityIncorrect" : 6.749525837406151,
    "ClaimRequestLines" : [ {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    }, {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    } ],
    "QuantityCancelled" : 4.518309517874243,
    "FeePercentage" : 5.877124706116695,
    "LineTotalIncString" : "LineTotalIncString",
    "StandardSellPriceInc" : 0.35262192099236644,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "UoMDescription" : "UoMDescription",
    "LineTotalEx" : 5.6644160867523485,
    "IsRejected" : true,
    "ItemID" : 0,
    "FeeGUIDstring" : "FeeGUIDstring",
    "PriceDescription" : "PriceDescription",
    "LineTotalTax" : 4.372688051310086,
    "TaxType" : "TaxType",
    "PostingInventoryID" : 2,
    "CostPriceInc" : 4.8789878742268815,
    "SellPriceIncString" : "SellPriceIncString",
    "QuantityClaimed" : 0.30134145536422907,
    "QuantityRefunded" : 6.918231485891953,
    "PriceType" : "PriceType",
    "InventoryBSID" : "InventoryBSID",
    "Warehouse" : {
      "Description" : "Description",
      "IsActive" : true,
      "TotalNumberOfDistinctProducts" : 9,
      "Users" : [ {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      }, {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      } ],
      "Name" : "Name",
      "GUIDstring" : "GUIDstring",
      "Version" : 7.726998920545485,
      "SyncLogs" : [ {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      }, {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      } ],
      "WarehouseTypeID" : 1,
      "ID" : 7,
      "DefaultPOSCustomerName" : "DefaultPOSCustomerName",
      "MinimumStockHoldingValue" : 6.458262756685686,
      "IsDefault" : true,
      "DefaultPOSCustomerID" : 8,
      "TenantLocationName" : "TenantLocationName",
      "Code" : "Code",
      "TotalStockValue" : 8.276461147928103,
      "RowNumber" : 7,
      "BSID" : "BSID",
      "MaximumStockHoldingValue" : 4.141296055235948,
      "TenantLocationID" : 9,
      "Barcode" : "Barcode",
      "WarehouseType" : {
        "Description" : "Description",
        "WarehouseTypeID" : 2,
        "ID" : 8,
        "IsVirtual" : true,
        "Name" : "Name",
        "RefNumberPrefix" : "RefNumberPrefix"
      },
      "TotalSOH" : 4.010300976654761,
      "IsSystem" : true,
      "CostCentreCode" : "CostCentreCode",
      "Location" : {
        "IsActive" : true,
        "TimeZoneName" : "TimeZoneName",
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "EmailAddress" : "EmailAddress",
        "Name" : "Name",
        "LocationName" : "LocationName",
        "GUIDstring" : "GUIDstring",
        "Addresses" : [ {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        }, {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        } ],
        "UtcOffset" : 3,
        "IsVisibleToPublic" : true,
        "Contacts" : [ {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        }, {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        } ],
        "Phone" : "Phone",
        "IsSystem" : true,
        "ID" : 4,
        "Fax" : "Fax",
        "IsDefaultLocation" : true
      },
      "IsStockOpeningBalanceComplete" : true
    },
    "DeliveryMethodDescription" : "DeliveryMethodDescription",
    "CostPriceEx" : 9.806951670467935,
    "IsActive" : true,
    "HasPriceBeenEdited" : true,
    "IsSpecialPrice" : true,
    "OrderTotalInc" : 3.804112695731078,
    "Attachments" : [ {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    }, {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    } ],
    "UoM" : "UoM",
    "IsPhysical" : true,
    "TaxRate" : 5.974942028545841,
    "AssetID" : 3,
    "LineType" : "LineType",
    "Comment" : "Comment",
    "RefInventoryCode" : "RefInventoryCode",
    "QuantityInCart" : 8.675064425986758,
    "Title" : "Title",
    "Quantity" : 2.535258963197524,
    "CostPriceTax" : 6.966044574347761,
    "QuantityFaulty" : 7.3842318535314,
    "QuantityReceived" : 0.7012260588964747,
    "SKU" : "SKU",
    "CostPriceExString" : "CostPriceExString",
    "IsAssetItem" : true,
    "SupplierInventoryGUIDString" : "SupplierInventoryGUIDString"
  }, {
    "SellPriceInc" : 1.2555055362323109,
    "FeeID" : 4,
    "TotalQuantityReceived" : 0.4867146239815201,
    "AdjustedQuantityReceived" : 7.88722683998926,
    "InventoryID" : 9,
    "ShortDescription" : "ShortDescription",
    "AcquisitionWarehouseID" : 3,
    "FeeGUID" : "00000000-0000-0000-0000-000000000000",
    "SequenceNumber" : 0,
    "ID" : 7,
    "SellPriceTaxString" : "SellPriceTaxString",
    "InventoryGUIDstring" : "InventoryGUIDstring",
    "InventoryType" : "InventoryType",
    "DefaultThumbnailURL" : "DefaultThumbnailURL",
    "IsOnSpecial" : true,
    "MinOrderQuantity" : 2.380090174313445,
    "RefBarCode" : "RefBarCode",
    "IsShowOriginalPriceInReceipts" : true,
    "DatTypeID" : 9,
    "PricingMode" : "PricingMode",
    "Code" : "Code",
    "IsDiscontinued" : true,
    "LineTotalTaxString" : "LineTotalTaxString",
    "SupplierInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "EAN" : "EAN",
    "Barcode" : "Barcode",
    "IsAmendedByOtherParty" : true,
    "ReturnReason" : "ReturnReason",
    "DefaultImageURL" : "DefaultImageURL",
    "StandardSellPriceEx" : 6.173804034172511,
    "Description" : "Description",
    "ClaimReason" : "ClaimReason",
    "SellPriceTax" : 3.812761638325517,
    "QuantityPicked" : 6.4280627569296165,
    "CurrentSuppliersInventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsTaxable" : true,
    "SellPriceExString" : "SellPriceExString",
    "QuantityInCartString" : "QuantityInCartString",
    "DeliveryMethod" : "DeliveryMethod",
    "SellPriceEx" : 1.3949519358941398,
    "LineTotalInc" : 1.5970080735609526,
    "CommentFromOtherParty" : "CommentFromOtherParty",
    "QuantityOutofDate" : 4.943637496515336,
    "InventoryGUID" : "00000000-0000-0000-0000-000000000000",
    "IsVariantMaster" : true,
    "LineTotalExString" : "LineTotalExString",
    "IsPriceRefresh" : true,
    "DiscountPercentage" : 0.8411762798681321,
    "QuantityOrdered" : 5.747795090145878,
    "IsCanUpdateInventoryOnMerge" : true,
    "QuantityOnBackOrder" : 7.203794749804894,
    "OrderTotalIncDesc" : "OrderTotalIncDesc",
    "AcquisitionMethod" : "AcquisitionMethod",
    "LabourRateID" : 2,
    "LineID" : 7,
    "RefInventoryBSID" : "RefInventoryBSID",
    "IsCreatedByOtherParty" : true,
    "WarehouseID" : 5,
    "GUIDstring" : "GUIDstring",
    "PostingInventoryCode" : "PostingInventoryCode",
    "ReturnInNumberOfWeeks" : 0.4833312865174044,
    "ExpectedBuyPriceEx" : 9.456612101333725,
    "CalculatedBuyPriceTax" : 9.721723570087065,
    "AccountCode" : "AccountCode",
    "MaxOrderQuantity" : 3.1497903714250555,
    "QuantityIncorrect" : 6.749525837406151,
    "ClaimRequestLines" : [ {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    }, {
      "Comment" : "Comment",
      "ClaimRequestLineID" : 4,
      "SellPriceEx" : 7.390706075830692,
      "LineTotalInc" : 4.1661834558007,
      "SellPriceInc" : 1.0502890910539986,
      "IsActive" : true,
      "Quantity" : 0.36062689002149373,
      "IsReturnToStock" : true,
      "LineTotalEx" : 2.0981949483881577,
      "WarehouseID" : 3,
      "WarehouseName" : "WarehouseName",
      "ClaimRequestID" : 0,
      "ClaimRequestStatus" : "ClaimRequestStatus",
      "LineTotalTax" : 2.026856458177285,
      "SellPriceTax" : 6.176386745020588,
      "TransDate" : "2000-01-23T04:56:07.000+00:00",
      "InvoiceQuantity" : 5.296102445648278,
      "ClaimableQuantity" : 1.9626702727164813,
      "ClaimedQuantity" : 3.8156682252305574
    } ],
    "QuantityCancelled" : 4.518309517874243,
    "FeePercentage" : 5.877124706116695,
    "LineTotalIncString" : "LineTotalIncString",
    "StandardSellPriceInc" : 0.35262192099236644,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "UoMDescription" : "UoMDescription",
    "LineTotalEx" : 5.6644160867523485,
    "IsRejected" : true,
    "ItemID" : 0,
    "FeeGUIDstring" : "FeeGUIDstring",
    "PriceDescription" : "PriceDescription",
    "LineTotalTax" : 4.372688051310086,
    "TaxType" : "TaxType",
    "PostingInventoryID" : 2,
    "CostPriceInc" : 4.8789878742268815,
    "SellPriceIncString" : "SellPriceIncString",
    "QuantityClaimed" : 0.30134145536422907,
    "QuantityRefunded" : 6.918231485891953,
    "PriceType" : "PriceType",
    "InventoryBSID" : "InventoryBSID",
    "Warehouse" : {
      "Description" : "Description",
      "IsActive" : true,
      "TotalNumberOfDistinctProducts" : 9,
      "Users" : [ {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      }, {
        "FirstName" : "FirstName",
        "IsActive" : true,
        "PositionOrOccupation" : "PositionOrOccupation",
        "EmailAddress" : "EmailAddress",
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "BSID" : "BSID",
        "IsEmployee" : true,
        "CreatedWith" : "CreatedWith",
        "ID" : 2,
        "LastName" : "LastName"
      } ],
      "Name" : "Name",
      "GUIDstring" : "GUIDstring",
      "Version" : 7.726998920545485,
      "SyncLogs" : [ {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      }, {
        "Status" : "Status",
        "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "AdaptorID" : 0,
        "LastImportDateTime_offset" : 7,
        "LastExportDateTime_offset" : 6,
        "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
        "BSID" : "BSID",
        "Details" : "Details",
        "SyncCode" : "SyncCode",
        "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
        "LastModifiedDateTime_offset" : 0,
        "ID" : 7,
        "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
      } ],
      "WarehouseTypeID" : 1,
      "ID" : 7,
      "DefaultPOSCustomerName" : "DefaultPOSCustomerName",
      "MinimumStockHoldingValue" : 6.458262756685686,
      "IsDefault" : true,
      "DefaultPOSCustomerID" : 8,
      "TenantLocationName" : "TenantLocationName",
      "Code" : "Code",
      "TotalStockValue" : 8.276461147928103,
      "RowNumber" : 7,
      "BSID" : "BSID",
      "MaximumStockHoldingValue" : 4.141296055235948,
      "TenantLocationID" : 9,
      "Barcode" : "Barcode",
      "WarehouseType" : {
        "Description" : "Description",
        "WarehouseTypeID" : 2,
        "ID" : 8,
        "IsVirtual" : true,
        "Name" : "Name",
        "RefNumberPrefix" : "RefNumberPrefix"
      },
      "TotalSOH" : 4.010300976654761,
      "IsSystem" : true,
      "CostCentreCode" : "CostCentreCode",
      "Location" : {
        "IsActive" : true,
        "TimeZoneName" : "TimeZoneName",
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "EmailAddress" : "EmailAddress",
        "Name" : "Name",
        "LocationName" : "LocationName",
        "GUIDstring" : "GUIDstring",
        "Addresses" : [ {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        }, {
          "FullAddress" : "FullAddress",
          "IsDefaultDeliverTo" : true,
          "IsActive" : true,
          "LocationID" : 0,
          "Latitude" : 0.8774076871421566,
          "GUIDstring" : "GUIDstring",
          "IsPostalAddress" : true,
          "AddressDescription" : "AddressDescription",
          "ID" : 9,
          "Notes" : "Notes",
          "IsDeliverTo" : true,
          "IsSelectedBilling" : true,
          "IsSelectedDelivery" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "City" : "City",
          "Longitude" : 9.702963800023566,
          "StreetAddress" : "StreetAddress",
          "IsMailTo" : true,
          "IsServiceTo" : true,
          "State" : "State",
          "IsDefaultServiceTo" : true,
          "IsOfficeOrShop" : true,
          "Country" : "Country",
          "IsSystem" : true,
          "AddressType" : 7,
          "PostCode" : "PostCode",
          "IsDefaultBilling" : true
        } ],
        "UtcOffset" : 3,
        "IsVisibleToPublic" : true,
        "Contacts" : [ {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        }, {
          "BusinessName" : "BusinessName",
          "FirstName" : "FirstName",
          "IsActive" : true,
          "GUID" : "00000000-0000-0000-0000-000000000000",
          "Title" : "Title",
          "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
          "Birthday" : "2000-01-23T04:56:07.000+00:00",
          "Gender" : "Gender",
          "PositionOrOccupation" : "PositionOrOccupation",
          "IsIncludeInEmails" : true,
          "EmailAddress" : "EmailAddress",
          "ContactRole" : "ContactRole",
          "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
          "BusinessContactID" : 6,
          "GUIDstring" : "GUIDstring",
          "PhoneMobile" : "PhoneMobile",
          "IsPrimaryContact" : true,
          "Phone1" : "Phone1",
          "IsSystem" : true,
          "ID" : 4,
          "LastName" : "LastName",
          "BusinessID" : 8
        } ],
        "Phone" : "Phone",
        "IsSystem" : true,
        "ID" : 4,
        "Fax" : "Fax",
        "IsDefaultLocation" : true
      },
      "IsStockOpeningBalanceComplete" : true
    },
    "DeliveryMethodDescription" : "DeliveryMethodDescription",
    "CostPriceEx" : 9.806951670467935,
    "IsActive" : true,
    "HasPriceBeenEdited" : true,
    "IsSpecialPrice" : true,
    "OrderTotalInc" : 3.804112695731078,
    "Attachments" : [ {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    }, {
      "AttachmentType" : "AttachmentType",
      "LineID" : 9,
      "IsActive" : true,
      "ThumbnailURI" : "ThumbnailURI",
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "IsImage" : true,
      "URI" : "URI",
      "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
      "Caption" : "Caption",
      "GUIDstring" : "GUIDstring",
      "IsPDF" : true,
      "IsFromParent" : true,
      "ID" : 3,
      "AttachedByUserID" : 3,
      "MessageID" : 1
    } ],
    "UoM" : "UoM",
    "IsPhysical" : true,
    "TaxRate" : 5.974942028545841,
    "AssetID" : 3,
    "LineType" : "LineType",
    "Comment" : "Comment",
    "RefInventoryCode" : "RefInventoryCode",
    "QuantityInCart" : 8.675064425986758,
    "Title" : "Title",
    "Quantity" : 2.535258963197524,
    "CostPriceTax" : 6.966044574347761,
    "QuantityFaulty" : 7.3842318535314,
    "QuantityReceived" : 0.7012260588964747,
    "SKU" : "SKU",
    "CostPriceExString" : "CostPriceExString",
    "IsAssetItem" : true,
    "SupplierInventoryGUIDString" : "SupplierInventoryGUIDString"
  } ],
  "IsOverridingLines" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<AddLinesRequest>
  <DiscountMode>aeiou</DiscountMode>
  <Discount>3.149</Discount>
  <null>
    <ID>123</ID>
    <IsPriceRefresh>true</IsPriceRefresh>
    <AcquisitionMethod>aeiou</AcquisitionMethod>
    <AcquisitionWarehouseID>123</AcquisitionWarehouseID>
    <AssetID>123</AssetID>
    <CostPriceExString>aeiou</CostPriceExString>
    <DatTypeID>123</DatTypeID>
    <DefaultImageURL>aeiou</DefaultImageURL>
    <DefaultThumbnailURL>aeiou</DefaultThumbnailURL>
    <DeliveryMethodDescription>aeiou</DeliveryMethodDescription>
    <FeePercentage>3.149</FeePercentage>
    <LineID>123</LineID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <FeeGUID>00000000-0000-0000-0000-000000000000</FeeGUID>
    <InventoryGUID>00000000-0000-0000-0000-000000000000</InventoryGUID>
    <HasPriceBeenEdited>true</HasPriceBeenEdited>
    <IsAssetItem>true</IsAssetItem>
    <IsDiscontinued>true</IsDiscontinued>
    <IsOnSpecial>true</IsOnSpecial>
    <IsVariantMaster>true</IsVariantMaster>
    <ItemID>123</ItemID>
    <LineTotalExString>aeiou</LineTotalExString>
    <LineTotalIncString>aeiou</LineTotalIncString>
    <LineTotalTaxString>aeiou</LineTotalTaxString>
    <LineType>aeiou</LineType>
    <MaxOrderQuantity>3.149</MaxOrderQuantity>
    <MinOrderQuantity>3.149</MinOrderQuantity>
    <OrderTotalInc>3.149</OrderTotalInc>
    <OrderTotalIncDesc>aeiou</OrderTotalIncDesc>
    <QuantityInCart>3.149</QuantityInCart>
    <QuantityInCartString>aeiou</QuantityInCartString>
    <QuantityCancelled>3.149</QuantityCancelled>
    <ReturnInNumberOfWeeks>3.149</ReturnInNumberOfWeeks>
    <SellPriceExString>aeiou</SellPriceExString>
    <SellPriceIncString>aeiou</SellPriceIncString>
    <SellPriceTaxString>aeiou</SellPriceTaxString>
    <Title>aeiou</Title>
    <StandardSellPriceInc>3.149</StandardSellPriceInc>
    <IsCreatedByOtherParty>true</IsCreatedByOtherParty>
    <IsAmendedByOtherParty>true</IsAmendedByOtherParty>
    <CommentFromOtherParty>aeiou</CommentFromOtherParty>
    <CurrentSuppliersInventoryGUID>00000000-0000-0000-0000-000000000000</CurrentSuppliersInventoryGUID>
    <IsCanUpdateInventoryOnMerge>true</IsCanUpdateInventoryOnMerge>
    <SupplierInventoryGUID>00000000-0000-0000-0000-000000000000</SupplierInventoryGUID>
    <IsShowOriginalPriceInReceipts>true</IsShowOriginalPriceInReceipts>
    <QuantityOnBackOrder>3.149</QuantityOnBackOrder>
    <GUIDstring>aeiou</GUIDstring>
    <FeeID>123</FeeID>
    <FeeGUIDstring>aeiou</FeeGUIDstring>
    <LabourRateID>123</LabourRateID>
    <InventoryID>123</InventoryID>
    <SequenceNumber>123</SequenceNumber>
    <Code>aeiou</Code>
    <InventoryBSID>aeiou</InventoryBSID>
    <InventoryGUIDstring>aeiou</InventoryGUIDstring>
    <InventoryType>aeiou</InventoryType>
    <Barcode>aeiou</Barcode>
    <EAN>aeiou</EAN>
    <SKU>aeiou</SKU>
    <ShortDescription>aeiou</ShortDescription>
    <Description>aeiou</Description>
    <UoM>aeiou</UoM>
    <UoMDescription>aeiou</UoMDescription>
    <Quantity>3.149</Quantity>
    <StandardSellPriceEx>3.149</StandardSellPriceEx>
    <CostPriceInc>3.149</CostPriceInc>
    <CostPriceTax>3.149</CostPriceTax>
    <CostPriceEx>3.149</CostPriceEx>
    <SellPriceEx>3.149</SellPriceEx>
    <SellPriceInc>3.149</SellPriceInc>
    <SellPriceTax>3.149</SellPriceTax>
    <LineTotalEx>3.149</LineTotalEx>
    <LineTotalInc>3.149</LineTotalInc>
    <LineTotalTax>3.149</LineTotalTax>
    <Comment>aeiou</Comment>
    <WarehouseID>123</WarehouseID>
    <IsActive>true</IsActive>
    <PriceDescription>aeiou</PriceDescription>
    <PricingMode>aeiou</PricingMode>
    <PriceType>aeiou</PriceType>
    <IsSpecialPrice>true</IsSpecialPrice>
    <TaxRate>3.149</TaxRate>
    <DeliveryMethod>aeiou</DeliveryMethod>
    <RefInventoryCode>aeiou</RefInventoryCode>
    <RefBarCode>aeiou</RefBarCode>
    <RefInventoryBSID>aeiou</RefInventoryBSID>
    <AccountCode>aeiou</AccountCode>
    <TaxType>aeiou</TaxType>
    <IsPhysical>true</IsPhysical>
    <ReturnReason>aeiou</ReturnReason>
    <IsRejected>true</IsRejected>
    <QuantityPicked>3.149</QuantityPicked>
    <DiscountPercentage>3.149</DiscountPercentage>
    <PostingInventoryID>123</PostingInventoryID>
    <PostingInventoryCode>aeiou</PostingInventoryCode>
    <QuantityOrdered>3.149</QuantityOrdered>
    <QuantityReceived>3.149</QuantityReceived>
    <QuantityFaulty>3.149</QuantityFaulty>
    <QuantityIncorrect>3.149</QuantityIncorrect>
    <QuantityOutofDate>3.149</QuantityOutofDate>
    <QuantityClaimed>3.149</QuantityClaimed>
    <TotalQuantityReceived>3.149</TotalQuantityReceived>
    <ExpectedBuyPriceEx>3.149</ExpectedBuyPriceEx>
    <CalculatedBuyPriceTax>3.149</CalculatedBuyPriceTax>
    <AdjustedQuantityReceived>3.149</AdjustedQuantityReceived>
    <SupplierInventoryGUIDString>aeiou</SupplierInventoryGUIDString>
    <QuantityRefunded>3.149</QuantityRefunded>
    <IsTaxable>true</IsTaxable>
    <ClaimReason>aeiou</ClaimReason>
  </null>
  <IsOverridingLines>true</IsOverridingLines>
  <RefTransRefNumber>aeiou</RefTransRefNumber>
  <null>
    <AmountString>aeiou</AmountString>
    <AppliedAmountString>aeiou</AppliedAmountString>
    <AppliedDateString>aeiou</AppliedDateString>
    <Summary>aeiou</Summary>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Status>aeiou</Status>
    <TotalInc>3.149</TotalInc>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <Amount>3.149</Amount>
    <TransTypeID>123</TransTypeID>
    <TransType>aeiou</TransType>
    <RefNumber>aeiou</RefNumber>
    <AppliedDate>2000-01-23T04:56:07.000Z</AppliedDate>
    <AppliedAmount>3.149</AppliedAmount>
    <Balance>3.149</Balance>
    <MerchantSurcharge>3.149</MerchantSurcharge>
    <MerchantSurchargeLineID>123</MerchantSurchargeLineID>
    <TransSubType>aeiou</TransSubType>
    <AppliedTransID>123</AppliedTransID>
    <AppliedCredit>3.149</AppliedCredit>
    <ClaimRequestID>123</ClaimRequestID>
    <ClaimDescription>aeiou</ClaimDescription>
    <IsEarlyClaimShortPayment>true</IsEarlyClaimShortPayment>
  </null>
  <TotalRefund>3.149</TotalRefund>
  <LineSort>aeiou</LineSort>
  <IsLineSortDesc>true</IsLineSortDesc>
  <IsGetMessages>true</IsGetMessages>
  <CustomerID>123</CustomerID>
  <SupplierID>123</SupplierID>
  <IsPriceRefresh>true</IsPriceRefresh>
  <null>
    <Statuses>123</Statuses>
    <StatusStrings>aeiou</StatusStrings>
    <Status>aeiou</Status>
    <SearchString>aeiou</SearchString>
    <SearchNameOnly>true</SearchNameOnly>
    <Search>aeiou</Search>
    <StartDate>2000-01-23T04:56:07.000Z</StartDate>
    <EndDate>2000-01-23T04:56:07.000Z</EndDate>
    <DatePeriod>aeiou</DatePeriod>
    <IsExactMatch>true</IsExactMatch>
    <IsGetBasicInfo>true</IsGetBasicInfo>
    <IncludeDeleted>true</IncludeDeleted>
    <IncludeLogs>true</IncludeLogs>
    <IgnoreID>123</IgnoreID>
    <ParentID>123</ParentID>
    <GetCountOnly>true</GetCountOnly>
    <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
    <CategoryID>123</CategoryID>
    <AdaptorID>123</AdaptorID>
    <CategoryIDs>123</CategoryIDs>
    <BrandIDs>123</BrandIDs>
    <IDs>123</IDs>
    <GUIDs>aeiou</GUIDs>
    <LinkedSupplierID>123</LinkedSupplierID>
    <IsApprovedForPOS>true</IsApprovedForPOS>
    <IsApprovedForWeb>true</IsApprovedForWeb>
    <IsApprovedForService>true</IsApprovedForService>
    <ID>123</ID>
    <IsHierarchicalSort>true</IsHierarchicalSort>
    <Types>aeiou</Types>
    <IsShowFavourites>true</IsShowFavourites>
    <IsHidden>true</IsHidden>
    <IncludeSystemTasks>true</IncludeSystemTasks>
    <IsSystem>true</IsSystem>
    <BatchStatus>aeiou</BatchStatus>
    <SortField>aeiou</SortField>
    <SortAsc>true</SortAsc>
    <GroupBy>aeiou</GroupBy>
    <LastRowNumber>123456789</LastRowNumber>
    <MaxResults>123</MaxResults>
    <TenantID>123</TenantID>
    <WebsiteID>123</WebsiteID>
    <UserID>123</UserID>
  </null>
  <IsExcludeFailedPayments>true</IsExcludeFailedPayments>
  <IsShowSummaryLines>true</IsShowSummaryLines>
  <ID>123</ID>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <IsGetExtraInfo>true</IsGetExtraInfo>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</AddLinesRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        AddLinesRequest addLinesRequest = ; // AddLinesRequest | 

        try {
            AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLinesPreview(id, addLinesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceAddLinesPreview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final AddLinesRequest addLinesRequest = new AddLinesRequest(); // AddLinesRequest | 

try {
    final result = await api_instance.purchaseInvoiceAddLinesPreview(id, addLinesRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceAddLinesPreview: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        AddLinesRequest addLinesRequest = ; // AddLinesRequest | 

        try {
            AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLinesPreview(id, addLinesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceAddLinesPreview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
AddLinesRequest *addLinesRequest = ; //  (optional)

// PurchaseInvoice_AddLinesPreview
[apiInstance purchaseInvoiceAddLinesPreviewWith:id
    addLinesRequest:addLinesRequest
              completionHandler: ^(AddLinesResponse_PurchaseInvoiceT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'addLinesRequest':  // {AddLinesRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceAddLinesPreview(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceAddLinesPreviewExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var addLinesRequest = new AddLinesRequest(); // AddLinesRequest |  (optional) 

            try {
                // PurchaseInvoice_AddLinesPreview
                AddLinesResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceAddLinesPreview(id, addLinesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceAddLinesPreview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$addLinesRequest = ; // AddLinesRequest | 

try {
    $result = $api_instance->purchaseInvoiceAddLinesPreview($id, $addLinesRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceAddLinesPreview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $addLinesRequest = WWW::OPenAPIClient::Object::AddLinesRequest->new(); # AddLinesRequest | 

eval {
    my $result = $api_instance->purchaseInvoiceAddLinesPreview(id => $id, addLinesRequest => $addLinesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceAddLinesPreview: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
addLinesRequest =  # AddLinesRequest |  (optional)

try:
    # PurchaseInvoice_AddLinesPreview
    api_response = api_instance.purchase_invoice_add_lines_preview(id, addLinesRequest=addLinesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceAddLinesPreview: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let addLinesRequest = ; // AddLinesRequest

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceAddLinesPreview(id, addLinesRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
addLinesRequest

Responses


purchaseInvoiceCreateUsingDeliveryReceiptLines

PurchaseInvoice_CreateUsingDeliveryReceiptLines


/PurchaseInvoice/deliveryreceiptlines

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/deliveryreceiptlines" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestSupplierTransUsingTransLines actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestSupplierTransUsingTransLines | 

        try {
            ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceCreateUsingDeliveryReceiptLines");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ActionRequestSupplierTransUsingTransLines actionRequestSupplierTransUsingTransLines = new ActionRequestSupplierTransUsingTransLines(); // ActionRequestSupplierTransUsingTransLines | 

try {
    final result = await api_instance.purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceCreateUsingDeliveryReceiptLines: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestSupplierTransUsingTransLines actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestSupplierTransUsingTransLines | 

        try {
            ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceCreateUsingDeliveryReceiptLines");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestSupplierTransUsingTransLines *actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// PurchaseInvoice_CreateUsingDeliveryReceiptLines
[apiInstance purchaseInvoiceCreateUsingDeliveryReceiptLinesWith:actionRequestSupplierTransUsingTransLines
              completionHandler: ^(ActionResults_PurchaseInvoiceT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'actionRequestSupplierTransUsingTransLines': {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestSupplierTransUsingTransLines} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceCreateUsingDeliveryReceiptLines(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceCreateUsingDeliveryReceiptLinesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var actionRequestSupplierTransUsingTransLines = new ActionRequestSupplierTransUsingTransLines(); // ActionRequestSupplierTransUsingTransLines |  (optional) 

            try {
                // PurchaseInvoice_CreateUsingDeliveryReceiptLines
                ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceCreateUsingDeliveryReceiptLines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestSupplierTransUsingTransLines | 

try {
    $result = $api_instance->purchaseInvoiceCreateUsingDeliveryReceiptLines($actionRequestSupplierTransUsingTransLines);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceCreateUsingDeliveryReceiptLines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $actionRequestSupplierTransUsingTransLines = WWW::OPenAPIClient::Object::ActionRequestSupplierTransUsingTransLines->new(); # ActionRequestSupplierTransUsingTransLines | 

eval {
    my $result = $api_instance->purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines => $actionRequestSupplierTransUsingTransLines);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceCreateUsingDeliveryReceiptLines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestSupplierTransUsingTransLines |  (optional)

try:
    # PurchaseInvoice_CreateUsingDeliveryReceiptLines
    api_response = api_instance.purchase_invoice_create_using_delivery_receipt_lines(actionRequestSupplierTransUsingTransLines=actionRequestSupplierTransUsingTransLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceCreateUsingDeliveryReceiptLines: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let actionRequestSupplierTransUsingTransLines = {"Value":{"WarehouseID":0,"SupplierID":0,"RefNumber":"string","TransID":0,"LineIDs":[0],"TransDate":"string","DueDate":"string","ExpectedTotalInc":0,"ExpectedTotalTax":0,"PriceEntryMode":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestSupplierTransUsingTransLines

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceCreateUsingDeliveryReceiptLines(actionRequestSupplierTransUsingTransLines, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
actionRequestSupplierTransUsingTransLines

Responses


purchaseInvoiceDelete

PurchaseInvoice_Delete


/PurchaseInvoice/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceDelete: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)

// PurchaseInvoice_Delete
[apiInstance purchaseInvoiceDeleteWith:id
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // PurchaseInvoice_Delete
                ActionResults result = apiInstance.purchaseInvoiceDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)

try:
    # PurchaseInvoice_Delete
    api_response = api_instance.purchase_invoice_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


purchaseInvoiceDeleteAttachment

PurchaseInvoice_DeleteAttachment


/PurchaseInvoice/attachments

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/attachments" \
 -d '{
  "AttachmentType" : "AttachmentType",
  "LineID" : 9,
  "IsActive" : true,
  "ThumbnailURI" : "ThumbnailURI",
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "Title" : "Title",
  "IsImage" : true,
  "URI" : "URI",
  "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "Caption" : "Caption",
  "GUIDstring" : "GUIDstring",
  "IsPDF" : true,
  "IsFromParent" : true,
  "ID" : 3,
  "AttachedByUserID" : 3,
  "MessageID" : 1
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<BusTransAttachmentT>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <Title>aeiou</Title>
  <IsImage>true</IsImage>
  <IsPDF>true</IsPDF>
  <ID>123</ID>
  <GUIDstring>aeiou</GUIDstring>
  <MessageID>123</MessageID>
  <URI>aeiou</URI>
  <AttachedByUserID>123</AttachedByUserID>
  <AttachedDateTime_utc>2000-01-23T04:56:07.000Z</AttachedDateTime_utc>
  <IsActive>true</IsActive>
  <Caption>aeiou</Caption>
  <ThumbnailURI>aeiou</ThumbnailURI>
  <AttachmentType>aeiou</AttachmentType>
  <IsFromParent>true</IsFromParent>
  <LineID>123</LineID>
</BusTransAttachmentT>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        BusTransAttachmentT busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}; // BusTransAttachmentT | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceDeleteAttachment(busTransAttachmentT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceDeleteAttachment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BusTransAttachmentT busTransAttachmentT = new BusTransAttachmentT(); // BusTransAttachmentT | 

try {
    final result = await api_instance.purchaseInvoiceDeleteAttachment(busTransAttachmentT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceDeleteAttachment: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        BusTransAttachmentT busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}; // BusTransAttachmentT | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceDeleteAttachment(busTransAttachmentT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceDeleteAttachment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
BusTransAttachmentT *busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}; //  (optional)

// PurchaseInvoice_DeleteAttachment
[apiInstance purchaseInvoiceDeleteAttachmentWith:busTransAttachmentT
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'busTransAttachmentT': {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0} // {BusTransAttachmentT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceDeleteAttachment(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceDeleteAttachmentExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var busTransAttachmentT = new BusTransAttachmentT(); // BusTransAttachmentT |  (optional) 

            try {
                // PurchaseInvoice_DeleteAttachment
                ActionResults result = apiInstance.purchaseInvoiceDeleteAttachment(busTransAttachmentT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceDeleteAttachment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}; // BusTransAttachmentT | 

try {
    $result = $api_instance->purchaseInvoiceDeleteAttachment($busTransAttachmentT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceDeleteAttachment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $busTransAttachmentT = WWW::OPenAPIClient::Object::BusTransAttachmentT->new(); # BusTransAttachmentT | 

eval {
    my $result = $api_instance->purchaseInvoiceDeleteAttachment(busTransAttachmentT => $busTransAttachmentT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceDeleteAttachment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0} # BusTransAttachmentT |  (optional)

try:
    # PurchaseInvoice_DeleteAttachment
    api_response = api_instance.purchase_invoice_delete_attachment(busTransAttachmentT=busTransAttachmentT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceDeleteAttachment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let busTransAttachmentT = {"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}; // BusTransAttachmentT

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceDeleteAttachment(busTransAttachmentT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
busTransAttachmentT

Responses


purchaseInvoiceGet

PurchaseInvoice_Get


/PurchaseInvoice/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/?filter.businessID=56&filter.customerID=56&filter.supplierID=56&filter.warehouseID=56&filter.deliveryMethods=filterPerioddeliveryMethods_example&filter.datTypes=&filter.maxExpiresInDays=56&filter.repUserID=56&filter.isCreatedByOtherPartyOnly=true&filter.createdByUserId=56&filter.statuses=&filter.statusStrings=&filter.status=&filter.searchString=filterPeriodsearchString_example&filter.searchNameOnly=true&filter.search=filterPeriodsearch_example&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.datePeriod=filterPerioddatePeriod_example&filter.isExactMatch=true&filter.isGetBasicInfo=true&filter.includeDeleted=true&filter.includeLogs=true&filter.ignoreID=56&filter.parentID=56&filter.getCountOnly=true&filter.transactionTypeDatTypeID=56&filter.categoryID=56&filter.adaptorID=56&filter.categoryIDs=&filter.brandIDs=&filter.iDs=&filter.gUIDs=&filter.linkedSupplierID=56&filter.isApprovedForPOS=true&filter.isApprovedForWeb=true&filter.isApprovedForService=true&filter.iD=56&filter.isHierarchicalSort=true&filter.types=&filter.isShowFavourites=true&filter.isHidden=true&filter.includeSystemTasks=true&filter.isSystem=true&filter.batchStatus=filterPeriodbatchStatus_example&filter.sortField=filterPeriodsortField_example&filter.sortAsc=true&filter.groupBy=filterPeriodgroupBy_example&filter.lastRowNumber=789&filter.maxResults=56&filter.tenantID=56&filter.websiteID=56&filter.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodbusinessID = 56; // Integer | 
        Integer filterPeriodcustomerID = 56; // Integer | 
        Integer filterPeriodsupplierID = 56; // Integer | 
        Integer filterPeriodwarehouseID = 56; // Integer | 
        String filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; // String | 
        array[String] filterPerioddatTypes = ; // array[String] | 
        Integer filterPeriodmaxExpiresInDays = 56; // Integer | 
        Integer filterPeriodrepUserID = 56; // Integer | 
        Boolean filterPeriodisCreatedByOtherPartyOnly = true; // Boolean | 
        Integer filterPeriodcreatedByUserId = 56; // Integer | 
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | 
        Integer filterPeriodparentID = 56; // Integer | 
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | 
        Integer filterPeriodcategoryID = 56; // Integer | 
        Integer filterPeriodadaptorID = 56; // Integer | 
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | 
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | 
        Integer filterPeriodmaxResults = 56; // Integer | 
        Integer filterPeriodtenantID = 56; // Integer | 
        Integer filterPeriodwebsiteID = 56; // Integer | 
        Integer filterPerioduserID = 56; // Integer | 

        try {
            PagedActionResults_BusTransSearchResultsT_ result = apiInstance.purchaseInvoiceGet(filterPeriodbusinessID, filterPeriodcustomerID, filterPeriodsupplierID, filterPeriodwarehouseID, filterPerioddeliveryMethods, filterPerioddatTypes, filterPeriodmaxExpiresInDays, filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer filterPeriodbusinessID = new Integer(); // Integer | 
final Integer filterPeriodcustomerID = new Integer(); // Integer | 
final Integer filterPeriodsupplierID = new Integer(); // Integer | 
final Integer filterPeriodwarehouseID = new Integer(); // Integer | 
final String filterPerioddeliveryMethods = new String(); // String | 
final array[String] filterPerioddatTypes = new array[String](); // array[String] | 
final Integer filterPeriodmaxExpiresInDays = new Integer(); // Integer | 
final Integer filterPeriodrepUserID = new Integer(); // Integer | 
final Boolean filterPeriodisCreatedByOtherPartyOnly = new Boolean(); // Boolean | 
final Integer filterPeriodcreatedByUserId = new Integer(); // Integer | 
final array[Integer] filterPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] filterPeriodstatus = new array[String](); // array[String] | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String filterPeriodsearch = new String(); // String | 
final Date filterPeriodstartDate = new Date(); // Date | 
final Date filterPeriodendDate = new Date(); // Date | 
final String filterPerioddatePeriod = new String(); // String | 
final Boolean filterPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean filterPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer filterPeriodignoreID = new Integer(); // Integer | 
final Integer filterPeriodparentID = new Integer(); // Integer | 
final Boolean filterPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer filterPeriodtransactionTypeDatTypeID = new Integer(); // Integer | 
final Integer filterPeriodcategoryID = new Integer(); // Integer | 
final Integer filterPeriodadaptorID = new Integer(); // Integer | 
final array[Integer] filterPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodgUIDs = new array[String](); // array[String] | 
final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | 
final Boolean filterPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer filterPeriodiD = new Integer(); // Integer | 
final Boolean filterPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] filterPeriodtypes = new array[String](); // array[String] | 
final Boolean filterPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean filterPeriodisHidden = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean filterPeriodisSystem = new Boolean(); // Boolean | 
final String filterPeriodbatchStatus = new String(); // String | 
final String filterPeriodsortField = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final String filterPeriodgroupBy = new String(); // String | 
final Long filterPeriodlastRowNumber = new Long(); // Long | 
final Integer filterPeriodmaxResults = new Integer(); // Integer | 
final Integer filterPeriodtenantID = new Integer(); // Integer | 
final Integer filterPeriodwebsiteID = new Integer(); // Integer | 
final Integer filterPerioduserID = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceGet(filterPeriodbusinessID, filterPeriodcustomerID, filterPeriodsupplierID, filterPeriodwarehouseID, filterPerioddeliveryMethods, filterPerioddatTypes, filterPeriodmaxExpiresInDays, filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGet: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodbusinessID = 56; // Integer | 
        Integer filterPeriodcustomerID = 56; // Integer | 
        Integer filterPeriodsupplierID = 56; // Integer | 
        Integer filterPeriodwarehouseID = 56; // Integer | 
        String filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; // String | 
        array[String] filterPerioddatTypes = ; // array[String] | 
        Integer filterPeriodmaxExpiresInDays = 56; // Integer | 
        Integer filterPeriodrepUserID = 56; // Integer | 
        Boolean filterPeriodisCreatedByOtherPartyOnly = true; // Boolean | 
        Integer filterPeriodcreatedByUserId = 56; // Integer | 
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | 
        Integer filterPeriodparentID = 56; // Integer | 
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | 
        Integer filterPeriodcategoryID = 56; // Integer | 
        Integer filterPeriodadaptorID = 56; // Integer | 
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | 
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | 
        Integer filterPeriodmaxResults = 56; // Integer | 
        Integer filterPeriodtenantID = 56; // Integer | 
        Integer filterPeriodwebsiteID = 56; // Integer | 
        Integer filterPerioduserID = 56; // Integer | 

        try {
            PagedActionResults_BusTransSearchResultsT_ result = apiInstance.purchaseInvoiceGet(filterPeriodbusinessID, filterPeriodcustomerID, filterPeriodsupplierID, filterPeriodwarehouseID, filterPerioddeliveryMethods, filterPerioddatTypes, filterPeriodmaxExpiresInDays, filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodbusinessID = 56; //  (optional) (default to null)
Integer *filterPeriodcustomerID = 56; //  (optional) (default to null)
Integer *filterPeriodsupplierID = 56; //  (optional) (default to null)
Integer *filterPeriodwarehouseID = 56; //  (optional) (default to null)
String *filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; //  (optional) (default to null)
array[String] *filterPerioddatTypes = ; //  (optional) (default to null)
Integer *filterPeriodmaxExpiresInDays = 56; //  (optional) (default to null)
Integer *filterPeriodrepUserID = 56; //  (optional) (default to null)
Boolean *filterPeriodisCreatedByOtherPartyOnly = true; //  (optional) (default to null)
Integer *filterPeriodcreatedByUserId = 56; //  (optional) (default to null)
array[Integer] *filterPeriodstatuses = ; //  (optional) (default to null)
array[String] *filterPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *filterPeriodstatus = ; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsearchNameOnly = true; //  (optional) (default to null)
String *filterPeriodsearch = filterPeriodsearch_example; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
String *filterPerioddatePeriod = filterPerioddatePeriod_example; //  (optional) (default to null)
Boolean *filterPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *filterPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *filterPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *filterPeriodincludeLogs = true; //  (optional) (default to null)
Integer *filterPeriodignoreID = 56; //  (optional) (default to null)
Integer *filterPeriodparentID = 56; //  (optional) (default to null)
Boolean *filterPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *filterPeriodtransactionTypeDatTypeID = 56; //  (optional) (default to null)
Integer *filterPeriodcategoryID = 56; //  (optional) (default to null)
Integer *filterPeriodadaptorID = 56; //  (optional) (default to null)
array[Integer] *filterPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodiDs = ; //  (optional) (default to null)
array[String] *filterPeriodgUIDs = ; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierID = 56; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *filterPeriodiD = 56; //  (optional) (default to null)
Boolean *filterPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *filterPeriodtypes = ; //  (optional) (default to null)
Boolean *filterPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *filterPeriodisHidden = true; //  (optional) (default to null)
Boolean *filterPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *filterPeriodisSystem = true; //  (optional) (default to null)
String *filterPeriodbatchStatus = filterPeriodbatchStatus_example; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
String *filterPeriodgroupBy = filterPeriodgroupBy_example; //  (optional) (default to null)
Long *filterPeriodlastRowNumber = 789; //  (optional) (default to null)
Integer *filterPeriodmaxResults = 56; //  (optional) (default to null)
Integer *filterPeriodtenantID = 56; //  (optional) (default to null)
Integer *filterPeriodwebsiteID = 56; //  (optional) (default to null)
Integer *filterPerioduserID = 56; //  (optional) (default to null)

// PurchaseInvoice_Get
[apiInstance purchaseInvoiceGetWith:filterPeriodbusinessID
    filterPeriodcustomerID:filterPeriodcustomerID
    filterPeriodsupplierID:filterPeriodsupplierID
    filterPeriodwarehouseID:filterPeriodwarehouseID
    filterPerioddeliveryMethods:filterPerioddeliveryMethods
    filterPerioddatTypes:filterPerioddatTypes
    filterPeriodmaxExpiresInDays:filterPeriodmaxExpiresInDays
    filterPeriodrepUserID:filterPeriodrepUserID
    filterPeriodisCreatedByOtherPartyOnly:filterPeriodisCreatedByOtherPartyOnly
    filterPeriodcreatedByUserId:filterPeriodcreatedByUserId
    filterPeriodstatuses:filterPeriodstatuses
    filterPeriodstatusStrings:filterPeriodstatusStrings
    filterPeriodstatus:filterPeriodstatus
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsearchNameOnly:filterPeriodsearchNameOnly
    filterPeriodsearch:filterPeriodsearch
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPerioddatePeriod:filterPerioddatePeriod
    filterPeriodisExactMatch:filterPeriodisExactMatch
    filterPeriodisGetBasicInfo:filterPeriodisGetBasicInfo
    filterPeriodincludeDeleted:filterPeriodincludeDeleted
    filterPeriodincludeLogs:filterPeriodincludeLogs
    filterPeriodignoreID:filterPeriodignoreID
    filterPeriodparentID:filterPeriodparentID
    filterPeriodgetCountOnly:filterPeriodgetCountOnly
    filterPeriodtransactionTypeDatTypeID:filterPeriodtransactionTypeDatTypeID
    filterPeriodcategoryID:filterPeriodcategoryID
    filterPeriodadaptorID:filterPeriodadaptorID
    filterPeriodcategoryIDs:filterPeriodcategoryIDs
    filterPeriodbrandIDs:filterPeriodbrandIDs
    filterPeriodiDs:filterPeriodiDs
    filterPeriodgUIDs:filterPeriodgUIDs
    filterPeriodlinkedSupplierID:filterPeriodlinkedSupplierID
    filterPeriodisApprovedForPOS:filterPeriodisApprovedForPOS
    filterPeriodisApprovedForWeb:filterPeriodisApprovedForWeb
    filterPeriodisApprovedForService:filterPeriodisApprovedForService
    filterPeriodiD:filterPeriodiD
    filterPeriodisHierarchicalSort:filterPeriodisHierarchicalSort
    filterPeriodtypes:filterPeriodtypes
    filterPeriodisShowFavourites:filterPeriodisShowFavourites
    filterPeriodisHidden:filterPeriodisHidden
    filterPeriodincludeSystemTasks:filterPeriodincludeSystemTasks
    filterPeriodisSystem:filterPeriodisSystem
    filterPeriodbatchStatus:filterPeriodbatchStatus
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodgroupBy:filterPeriodgroupBy
    filterPeriodlastRowNumber:filterPeriodlastRowNumber
    filterPeriodmaxResults:filterPeriodmaxResults
    filterPeriodtenantID:filterPeriodtenantID
    filterPeriodwebsiteID:filterPeriodwebsiteID
    filterPerioduserID:filterPerioduserID
              completionHandler: ^(PagedActionResults_BusTransSearchResultsT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'filterPeriodbusinessID': 56, // {Integer} 
  'filterPeriodcustomerID': 56, // {Integer} 
  'filterPeriodsupplierID': 56, // {Integer} 
  'filterPeriodwarehouseID': 56, // {Integer} 
  'filterPerioddeliveryMethods': filterPerioddeliveryMethods_example, // {String} 
  'filterPerioddatTypes': , // {array[String]} 
  'filterPeriodmaxExpiresInDays': 56, // {Integer} 
  'filterPeriodrepUserID': 56, // {Integer} 
  'filterPeriodisCreatedByOtherPartyOnly': true, // {Boolean} 
  'filterPeriodcreatedByUserId': 56, // {Integer} 
  'filterPeriodstatuses': , // {array[Integer]} 
  'filterPeriodstatusStrings': , // {array[String]} 
  'filterPeriodstatus': , // {array[String]} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsearchNameOnly': true, // {Boolean} 
  'filterPeriodsearch': filterPeriodsearch_example, // {String} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPerioddatePeriod': filterPerioddatePeriod_example, // {String} 
  'filterPeriodisExactMatch': true, // {Boolean} 
  'filterPeriodisGetBasicInfo': true, // {Boolean} 
  'filterPeriodincludeDeleted': true, // {Boolean} 
  'filterPeriodincludeLogs': true, // {Boolean} 
  'filterPeriodignoreID': 56, // {Integer} 
  'filterPeriodparentID': 56, // {Integer} 
  'filterPeriodgetCountOnly': true, // {Boolean} 
  'filterPeriodtransactionTypeDatTypeID': 56, // {Integer} 
  'filterPeriodcategoryID': 56, // {Integer} 
  'filterPeriodadaptorID': 56, // {Integer} 
  'filterPeriodcategoryIDs': , // {array[Integer]} 
  'filterPeriodbrandIDs': , // {array[Integer]} 
  'filterPeriodiDs': , // {array[Integer]} 
  'filterPeriodgUIDs': , // {array[String]} 
  'filterPeriodlinkedSupplierID': 56, // {Integer} 
  'filterPeriodisApprovedForPOS': true, // {Boolean} 
  'filterPeriodisApprovedForWeb': true, // {Boolean} 
  'filterPeriodisApprovedForService': true, // {Boolean} 
  'filterPeriodiD': 56, // {Integer} 
  'filterPeriodisHierarchicalSort': true, // {Boolean} 
  'filterPeriodtypes': , // {array[String]} 
  'filterPeriodisShowFavourites': true, // {Boolean} 
  'filterPeriodisHidden': true, // {Boolean} 
  'filterPeriodincludeSystemTasks': true, // {Boolean} 
  'filterPeriodisSystem': true, // {Boolean} 
  'filterPeriodbatchStatus': filterPeriodbatchStatus_example, // {String} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodgroupBy': filterPeriodgroupBy_example, // {String} 
  'filterPeriodlastRowNumber': 789, // {Long} 
  'filterPeriodmaxResults': 56, // {Integer} 
  'filterPeriodtenantID': 56, // {Integer} 
  'filterPeriodwebsiteID': 56, // {Integer} 
  'filterPerioduserID': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodbusinessID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodcustomerID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodsupplierID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodwarehouseID = 56;  // Integer |  (optional)  (default to null)
            var filterPerioddeliveryMethods = filterPerioddeliveryMethods_example;  // String |  (optional)  (default to null)
            var filterPerioddatTypes = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodmaxExpiresInDays = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodrepUserID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodisCreatedByOtherPartyOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodcreatedByUserId = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsearch = filterPeriodsearch_example;  // String |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPerioddatePeriod = filterPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var filterPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodignoreID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodparentID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtransactionTypeDatTypeID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodcategoryID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodadaptorID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodlinkedSupplierID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodiD = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodbatchStatus = filterPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodgroupBy = filterPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var filterPeriodlastRowNumber = 789;  // Long |  (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodtenantID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodwebsiteID = 56;  // Integer |  (optional)  (default to null)
            var filterPerioduserID = 56;  // Integer |  (optional)  (default to null)

            try {
                // PurchaseInvoice_Get
                PagedActionResults_BusTransSearchResultsT_ result = apiInstance.purchaseInvoiceGet(filterPeriodbusinessID, filterPeriodcustomerID, filterPeriodsupplierID, filterPeriodwarehouseID, filterPerioddeliveryMethods, filterPerioddatTypes, filterPeriodmaxExpiresInDays, filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodbusinessID = 56; // Integer | 
$filterPeriodcustomerID = 56; // Integer | 
$filterPeriodsupplierID = 56; // Integer | 
$filterPeriodwarehouseID = 56; // Integer | 
$filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; // String | 
$filterPerioddatTypes = ; // array[String] | 
$filterPeriodmaxExpiresInDays = 56; // Integer | 
$filterPeriodrepUserID = 56; // Integer | 
$filterPeriodisCreatedByOtherPartyOnly = true; // Boolean | 
$filterPeriodcreatedByUserId = 56; // Integer | 
$filterPeriodstatuses = ; // array[Integer] | 
$filterPeriodstatusStrings = ; // array[String] | 
$filterPeriodstatus = ; // array[String] | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsearchNameOnly = true; // Boolean | 
$filterPeriodsearch = filterPeriodsearch_example; // String | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
$filterPeriodisExactMatch = true; // Boolean | 
$filterPeriodisGetBasicInfo = true; // Boolean | 
$filterPeriodincludeDeleted = true; // Boolean | 
$filterPeriodincludeLogs = true; // Boolean | 
$filterPeriodignoreID = 56; // Integer | 
$filterPeriodparentID = 56; // Integer | 
$filterPeriodgetCountOnly = true; // Boolean | 
$filterPeriodtransactionTypeDatTypeID = 56; // Integer | 
$filterPeriodcategoryID = 56; // Integer | 
$filterPeriodadaptorID = 56; // Integer | 
$filterPeriodcategoryIDs = ; // array[Integer] | 
$filterPeriodbrandIDs = ; // array[Integer] | 
$filterPeriodiDs = ; // array[Integer] | 
$filterPeriodgUIDs = ; // array[String] | 
$filterPeriodlinkedSupplierID = 56; // Integer | 
$filterPeriodisApprovedForPOS = true; // Boolean | 
$filterPeriodisApprovedForWeb = true; // Boolean | 
$filterPeriodisApprovedForService = true; // Boolean | 
$filterPeriodiD = 56; // Integer | 
$filterPeriodisHierarchicalSort = true; // Boolean | 
$filterPeriodtypes = ; // array[String] | 
$filterPeriodisShowFavourites = true; // Boolean | 
$filterPeriodisHidden = true; // Boolean | 
$filterPeriodincludeSystemTasks = true; // Boolean | 
$filterPeriodisSystem = true; // Boolean | 
$filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
$filterPeriodlastRowNumber = 789; // Long | 
$filterPeriodmaxResults = 56; // Integer | 
$filterPeriodtenantID = 56; // Integer | 
$filterPeriodwebsiteID = 56; // Integer | 
$filterPerioduserID = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceGet($filterPeriodbusinessID, $filterPeriodcustomerID, $filterPeriodsupplierID, $filterPeriodwarehouseID, $filterPerioddeliveryMethods, $filterPerioddatTypes, $filterPeriodmaxExpiresInDays, $filterPeriodrepUserID, $filterPeriodisCreatedByOtherPartyOnly, $filterPeriodcreatedByUserId, $filterPeriodstatuses, $filterPeriodstatusStrings, $filterPeriodstatus, $filterPeriodsearchString, $filterPeriodsearchNameOnly, $filterPeriodsearch, $filterPeriodstartDate, $filterPeriodendDate, $filterPerioddatePeriod, $filterPeriodisExactMatch, $filterPeriodisGetBasicInfo, $filterPeriodincludeDeleted, $filterPeriodincludeLogs, $filterPeriodignoreID, $filterPeriodparentID, $filterPeriodgetCountOnly, $filterPeriodtransactionTypeDatTypeID, $filterPeriodcategoryID, $filterPeriodadaptorID, $filterPeriodcategoryIDs, $filterPeriodbrandIDs, $filterPeriodiDs, $filterPeriodgUIDs, $filterPeriodlinkedSupplierID, $filterPeriodisApprovedForPOS, $filterPeriodisApprovedForWeb, $filterPeriodisApprovedForService, $filterPeriodiD, $filterPeriodisHierarchicalSort, $filterPeriodtypes, $filterPeriodisShowFavourites, $filterPeriodisHidden, $filterPeriodincludeSystemTasks, $filterPeriodisSystem, $filterPeriodbatchStatus, $filterPeriodsortField, $filterPeriodsortAsc, $filterPeriodgroupBy, $filterPeriodlastRowNumber, $filterPeriodmaxResults, $filterPeriodtenantID, $filterPeriodwebsiteID, $filterPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $filterPeriodbusinessID = 56; # Integer | 
my $filterPeriodcustomerID = 56; # Integer | 
my $filterPeriodsupplierID = 56; # Integer | 
my $filterPeriodwarehouseID = 56; # Integer | 
my $filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; # String | 
my $filterPerioddatTypes = []; # array[String] | 
my $filterPeriodmaxExpiresInDays = 56; # Integer | 
my $filterPeriodrepUserID = 56; # Integer | 
my $filterPeriodisCreatedByOtherPartyOnly = true; # Boolean | 
my $filterPeriodcreatedByUserId = 56; # Integer | 
my $filterPeriodstatuses = []; # array[Integer] | 
my $filterPeriodstatusStrings = []; # array[String] | 
my $filterPeriodstatus = []; # array[String] | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsearchNameOnly = true; # Boolean | 
my $filterPeriodsearch = filterPeriodsearch_example; # String | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPerioddatePeriod = filterPerioddatePeriod_example; # String | 
my $filterPeriodisExactMatch = true; # Boolean | 
my $filterPeriodisGetBasicInfo = true; # Boolean | 
my $filterPeriodincludeDeleted = true; # Boolean | 
my $filterPeriodincludeLogs = true; # Boolean | 
my $filterPeriodignoreID = 56; # Integer | 
my $filterPeriodparentID = 56; # Integer | 
my $filterPeriodgetCountOnly = true; # Boolean | 
my $filterPeriodtransactionTypeDatTypeID = 56; # Integer | 
my $filterPeriodcategoryID = 56; # Integer | 
my $filterPeriodadaptorID = 56; # Integer | 
my $filterPeriodcategoryIDs = []; # array[Integer] | 
my $filterPeriodbrandIDs = []; # array[Integer] | 
my $filterPeriodiDs = []; # array[Integer] | 
my $filterPeriodgUIDs = []; # array[String] | 
my $filterPeriodlinkedSupplierID = 56; # Integer | 
my $filterPeriodisApprovedForPOS = true; # Boolean | 
my $filterPeriodisApprovedForWeb = true; # Boolean | 
my $filterPeriodisApprovedForService = true; # Boolean | 
my $filterPeriodiD = 56; # Integer | 
my $filterPeriodisHierarchicalSort = true; # Boolean | 
my $filterPeriodtypes = []; # array[String] | 
my $filterPeriodisShowFavourites = true; # Boolean | 
my $filterPeriodisHidden = true; # Boolean | 
my $filterPeriodincludeSystemTasks = true; # Boolean | 
my $filterPeriodisSystem = true; # Boolean | 
my $filterPeriodbatchStatus = filterPeriodbatchStatus_example; # String | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodgroupBy = filterPeriodgroupBy_example; # String | 
my $filterPeriodlastRowNumber = 789; # Long | 
my $filterPeriodmaxResults = 56; # Integer | 
my $filterPeriodtenantID = 56; # Integer | 
my $filterPeriodwebsiteID = 56; # Integer | 
my $filterPerioduserID = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceGet(filterPeriodbusinessID => $filterPeriodbusinessID, filterPeriodcustomerID => $filterPeriodcustomerID, filterPeriodsupplierID => $filterPeriodsupplierID, filterPeriodwarehouseID => $filterPeriodwarehouseID, filterPerioddeliveryMethods => $filterPerioddeliveryMethods, filterPerioddatTypes => $filterPerioddatTypes, filterPeriodmaxExpiresInDays => $filterPeriodmaxExpiresInDays, filterPeriodrepUserID => $filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly => $filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId => $filterPeriodcreatedByUserId, filterPeriodstatuses => $filterPeriodstatuses, filterPeriodstatusStrings => $filterPeriodstatusStrings, filterPeriodstatus => $filterPeriodstatus, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsearchNameOnly => $filterPeriodsearchNameOnly, filterPeriodsearch => $filterPeriodsearch, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPerioddatePeriod => $filterPerioddatePeriod, filterPeriodisExactMatch => $filterPeriodisExactMatch, filterPeriodisGetBasicInfo => $filterPeriodisGetBasicInfo, filterPeriodincludeDeleted => $filterPeriodincludeDeleted, filterPeriodincludeLogs => $filterPeriodincludeLogs, filterPeriodignoreID => $filterPeriodignoreID, filterPeriodparentID => $filterPeriodparentID, filterPeriodgetCountOnly => $filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID => $filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID => $filterPeriodcategoryID, filterPeriodadaptorID => $filterPeriodadaptorID, filterPeriodcategoryIDs => $filterPeriodcategoryIDs, filterPeriodbrandIDs => $filterPeriodbrandIDs, filterPeriodiDs => $filterPeriodiDs, filterPeriodgUIDs => $filterPeriodgUIDs, filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS => $filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb => $filterPeriodisApprovedForWeb, filterPeriodisApprovedForService => $filterPeriodisApprovedForService, filterPeriodiD => $filterPeriodiD, filterPeriodisHierarchicalSort => $filterPeriodisHierarchicalSort, filterPeriodtypes => $filterPeriodtypes, filterPeriodisShowFavourites => $filterPeriodisShowFavourites, filterPeriodisHidden => $filterPeriodisHidden, filterPeriodincludeSystemTasks => $filterPeriodincludeSystemTasks, filterPeriodisSystem => $filterPeriodisSystem, filterPeriodbatchStatus => $filterPeriodbatchStatus, filterPeriodsortField => $filterPeriodsortField, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodgroupBy => $filterPeriodgroupBy, filterPeriodlastRowNumber => $filterPeriodlastRowNumber, filterPeriodmaxResults => $filterPeriodmaxResults, filterPeriodtenantID => $filterPeriodtenantID, filterPeriodwebsiteID => $filterPeriodwebsiteID, filterPerioduserID => $filterPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
filterPeriodbusinessID = 56 # Integer |  (optional) (default to null)
filterPeriodcustomerID = 56 # Integer |  (optional) (default to null)
filterPeriodsupplierID = 56 # Integer |  (optional) (default to null)
filterPeriodwarehouseID = 56 # Integer |  (optional) (default to null)
filterPerioddeliveryMethods = filterPerioddeliveryMethods_example # String |  (optional) (default to null)
filterPerioddatTypes =  # array[String] |  (optional) (default to null)
filterPeriodmaxExpiresInDays = 56 # Integer |  (optional) (default to null)
filterPeriodrepUserID = 56 # Integer |  (optional) (default to null)
filterPeriodisCreatedByOtherPartyOnly = true # Boolean |  (optional) (default to null)
filterPeriodcreatedByUserId = 56 # Integer |  (optional) (default to null)
filterPeriodstatuses =  # array[Integer] |  (optional) (default to null)
filterPeriodstatusStrings =  # array[String] |  (optional) (default to null)
filterPeriodstatus =  # array[String] |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
filterPeriodsearch = filterPeriodsearch_example # String |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPerioddatePeriod = filterPerioddatePeriod_example # String |  (optional) (default to null)
filterPeriodisExactMatch = true # Boolean |  (optional) (default to null)
filterPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
filterPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
filterPeriodincludeLogs = true # Boolean |  (optional) (default to null)
filterPeriodignoreID = 56 # Integer |  (optional) (default to null)
filterPeriodparentID = 56 # Integer |  (optional) (default to null)
filterPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
filterPeriodtransactionTypeDatTypeID = 56 # Integer |  (optional) (default to null)
filterPeriodcategoryID = 56 # Integer |  (optional) (default to null)
filterPeriodadaptorID = 56 # Integer |  (optional) (default to null)
filterPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodiDs =  # array[Integer] |  (optional) (default to null)
filterPeriodgUIDs =  # array[String] |  (optional) (default to null)
filterPeriodlinkedSupplierID = 56 # Integer |  (optional) (default to null)
filterPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
filterPeriodiD = 56 # Integer |  (optional) (default to null)
filterPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
filterPeriodtypes =  # array[String] |  (optional) (default to null)
filterPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
filterPeriodisHidden = true # Boolean |  (optional) (default to null)
filterPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
filterPeriodisSystem = true # Boolean |  (optional) (default to null)
filterPeriodbatchStatus = filterPeriodbatchStatus_example # String |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodgroupBy = filterPeriodgroupBy_example # String |  (optional) (default to null)
filterPeriodlastRowNumber = 789 # Long |  (optional) (default to null)
filterPeriodmaxResults = 56 # Integer |  (optional) (default to null)
filterPeriodtenantID = 56 # Integer |  (optional) (default to null)
filterPeriodwebsiteID = 56 # Integer |  (optional) (default to null)
filterPerioduserID = 56 # Integer |  (optional) (default to null)

try:
    # PurchaseInvoice_Get
    api_response = api_instance.purchase_invoice_get(filterPeriodbusinessID=filterPeriodbusinessID, filterPeriodcustomerID=filterPeriodcustomerID, filterPeriodsupplierID=filterPeriodsupplierID, filterPeriodwarehouseID=filterPeriodwarehouseID, filterPerioddeliveryMethods=filterPerioddeliveryMethods, filterPerioddatTypes=filterPerioddatTypes, filterPeriodmaxExpiresInDays=filterPeriodmaxExpiresInDays, filterPeriodrepUserID=filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly=filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId=filterPeriodcreatedByUserId, filterPeriodstatuses=filterPeriodstatuses, filterPeriodstatusStrings=filterPeriodstatusStrings, filterPeriodstatus=filterPeriodstatus, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsearchNameOnly=filterPeriodsearchNameOnly, filterPeriodsearch=filterPeriodsearch, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPerioddatePeriod=filterPerioddatePeriod, filterPeriodisExactMatch=filterPeriodisExactMatch, filterPeriodisGetBasicInfo=filterPeriodisGetBasicInfo, filterPeriodincludeDeleted=filterPeriodincludeDeleted, filterPeriodincludeLogs=filterPeriodincludeLogs, filterPeriodignoreID=filterPeriodignoreID, filterPeriodparentID=filterPeriodparentID, filterPeriodgetCountOnly=filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID=filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID=filterPeriodcategoryID, filterPeriodadaptorID=filterPeriodadaptorID, filterPeriodcategoryIDs=filterPeriodcategoryIDs, filterPeriodbrandIDs=filterPeriodbrandIDs, filterPeriodiDs=filterPeriodiDs, filterPeriodgUIDs=filterPeriodgUIDs, filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS=filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb=filterPeriodisApprovedForWeb, filterPeriodisApprovedForService=filterPeriodisApprovedForService, filterPeriodiD=filterPeriodiD, filterPeriodisHierarchicalSort=filterPeriodisHierarchicalSort, filterPeriodtypes=filterPeriodtypes, filterPeriodisShowFavourites=filterPeriodisShowFavourites, filterPeriodisHidden=filterPeriodisHidden, filterPeriodincludeSystemTasks=filterPeriodincludeSystemTasks, filterPeriodisSystem=filterPeriodisSystem, filterPeriodbatchStatus=filterPeriodbatchStatus, filterPeriodsortField=filterPeriodsortField, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodgroupBy=filterPeriodgroupBy, filterPeriodlastRowNumber=filterPeriodlastRowNumber, filterPeriodmaxResults=filterPeriodmaxResults, filterPeriodtenantID=filterPeriodtenantID, filterPeriodwebsiteID=filterPeriodwebsiteID, filterPerioduserID=filterPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let filterPeriodbusinessID = 56; // Integer
    let filterPeriodcustomerID = 56; // Integer
    let filterPeriodsupplierID = 56; // Integer
    let filterPeriodwarehouseID = 56; // Integer
    let filterPerioddeliveryMethods = filterPerioddeliveryMethods_example; // String
    let filterPerioddatTypes = ; // array[String]
    let filterPeriodmaxExpiresInDays = 56; // Integer
    let filterPeriodrepUserID = 56; // Integer
    let filterPeriodisCreatedByOtherPartyOnly = true; // Boolean
    let filterPeriodcreatedByUserId = 56; // Integer
    let filterPeriodstatuses = ; // array[Integer]
    let filterPeriodstatusStrings = ; // array[String]
    let filterPeriodstatus = ; // array[String]
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsearchNameOnly = true; // Boolean
    let filterPeriodsearch = filterPeriodsearch_example; // String
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPerioddatePeriod = filterPerioddatePeriod_example; // String
    let filterPeriodisExactMatch = true; // Boolean
    let filterPeriodisGetBasicInfo = true; // Boolean
    let filterPeriodincludeDeleted = true; // Boolean
    let filterPeriodincludeLogs = true; // Boolean
    let filterPeriodignoreID = 56; // Integer
    let filterPeriodparentID = 56; // Integer
    let filterPeriodgetCountOnly = true; // Boolean
    let filterPeriodtransactionTypeDatTypeID = 56; // Integer
    let filterPeriodcategoryID = 56; // Integer
    let filterPeriodadaptorID = 56; // Integer
    let filterPeriodcategoryIDs = ; // array[Integer]
    let filterPeriodbrandIDs = ; // array[Integer]
    let filterPeriodiDs = ; // array[Integer]
    let filterPeriodgUIDs = ; // array[String]
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodisApprovedForPOS = true; // Boolean
    let filterPeriodisApprovedForWeb = true; // Boolean
    let filterPeriodisApprovedForService = true; // Boolean
    let filterPeriodiD = 56; // Integer
    let filterPeriodisHierarchicalSort = true; // Boolean
    let filterPeriodtypes = ; // array[String]
    let filterPeriodisShowFavourites = true; // Boolean
    let filterPeriodisHidden = true; // Boolean
    let filterPeriodincludeSystemTasks = true; // Boolean
    let filterPeriodisSystem = true; // Boolean
    let filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodgroupBy = filterPeriodgroupBy_example; // String
    let filterPeriodlastRowNumber = 789; // Long
    let filterPeriodmaxResults = 56; // Integer
    let filterPeriodtenantID = 56; // Integer
    let filterPeriodwebsiteID = 56; // Integer
    let filterPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGet(filterPeriodbusinessID, filterPeriodcustomerID, filterPeriodsupplierID, filterPeriodwarehouseID, filterPerioddeliveryMethods, filterPerioddatTypes, filterPeriodmaxExpiresInDays, filterPeriodrepUserID, filterPeriodisCreatedByOtherPartyOnly, filterPeriodcreatedByUserId, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
filter.businessID
Integer (int32)
filter.customerID
Integer (int32)
filter.supplierID
Integer (int32)
filter.warehouseID
Integer (int32)
filter.deliveryMethods
String
filter.datTypes
array[String]
filter.maxExpiresInDays
Integer (int32)
filter.repUserID
Integer (int32)
filter.isCreatedByOtherPartyOnly
Boolean
filter.createdByUserId
Integer (int32)
filter.statuses
array[Integer] (int32)
filter.statusStrings
array[String]
filter.status
array[String]
filter.searchString
String
filter.searchNameOnly
Boolean
filter.search
String
filter.startDate
Date (date-time)
filter.endDate
Date (date-time)
filter.datePeriod
String
filter.isExactMatch
Boolean
filter.isGetBasicInfo
Boolean
filter.includeDeleted
Boolean
filter.includeLogs
Boolean
filter.ignoreID
Integer (int32)
filter.parentID
Integer (int32)
filter.getCountOnly
Boolean
filter.transactionTypeDatTypeID
Integer (int32)
filter.categoryID
Integer (int32)
filter.adaptorID
Integer (int32)
filter.categoryIDs
array[Integer] (int32)
filter.brandIDs
array[Integer] (int32)
filter.iDs
array[Integer] (int32)
filter.gUIDs
array[String]
filter.linkedSupplierID
Integer (int32)
filter.isApprovedForPOS
Boolean
filter.isApprovedForWeb
Boolean
filter.isApprovedForService
Boolean
filter.iD
Integer (int32)
filter.isHierarchicalSort
Boolean
filter.types
array[String]
filter.isShowFavourites
Boolean
filter.isHidden
Boolean
filter.includeSystemTasks
Boolean
filter.isSystem
Boolean
filter.batchStatus
String
filter.sortField
String
filter.sortAsc
Boolean
filter.groupBy
String
filter.lastRowNumber
Long (int64)
filter.maxResults
Integer (int32)
filter.tenantID
Integer (int32)
filter.websiteID
Integer (int32)
filter.userID
Integer (int32)

Responses


purchaseInvoiceGetByID

PurchaseInvoice_GetByID


/PurchaseInvoice/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}?req.lineSort=reqPeriodlineSort_example&req.isLineSortDesc=true&req.isGetMessages=true&req.customerID=56&req.supplierID=56&req.isPriceRefresh=true&req.lineSearchFilter.statuses=&req.lineSearchFilter.statusStrings=&req.lineSearchFilter.status=&req.lineSearchFilter.searchString=reqPeriodlineSearchFilterPeriodsearchString_example&req.lineSearchFilter.searchNameOnly=true&req.lineSearchFilter.search=reqPeriodlineSearchFilterPeriodsearch_example&req.lineSearchFilter.startDate=2013-10-20T19:20:30+01:00&req.lineSearchFilter.endDate=2013-10-20T19:20:30+01:00&req.lineSearchFilter.datePeriod=reqPeriodlineSearchFilterPerioddatePeriod_example&req.lineSearchFilter.isExactMatch=true&req.lineSearchFilter.isGetBasicInfo=true&req.lineSearchFilter.includeDeleted=true&req.lineSearchFilter.includeLogs=true&req.lineSearchFilter.ignoreID=56&req.lineSearchFilter.parentID=56&req.lineSearchFilter.getCountOnly=true&req.lineSearchFilter.transactionTypeDatTypeID=56&req.lineSearchFilter.categoryID=56&req.lineSearchFilter.adaptorID=56&req.lineSearchFilter.categoryIDs=&req.lineSearchFilter.brandIDs=&req.lineSearchFilter.iDs=&req.lineSearchFilter.gUIDs=&req.lineSearchFilter.linkedSupplierID=56&req.lineSearchFilter.isApprovedForPOS=true&req.lineSearchFilter.isApprovedForWeb=true&req.lineSearchFilter.isApprovedForService=true&req.lineSearchFilter.iD=56&req.lineSearchFilter.isHierarchicalSort=true&req.lineSearchFilter.types=&req.lineSearchFilter.isShowFavourites=true&req.lineSearchFilter.isHidden=true&req.lineSearchFilter.includeSystemTasks=true&req.lineSearchFilter.isSystem=true&req.lineSearchFilter.batchStatus=reqPeriodlineSearchFilterPeriodbatchStatus_example&req.lineSearchFilter.sortField=reqPeriodlineSearchFilterPeriodsortField_example&req.lineSearchFilter.sortAsc=true&req.lineSearchFilter.groupBy=reqPeriodlineSearchFilterPeriodgroupBy_example&req.lineSearchFilter.lastRowNumber=789&req.lineSearchFilter.maxResults=56&req.lineSearchFilter.tenantID=56&req.lineSearchFilter.websiteID=56&req.lineSearchFilter.userID=56&req.isExcludeFailedPayments=true&req.isShowSummaryLines=true&req.iD=56&req.gUID=38400000-8cf0-11bd-b23e-10b96e4ef00d&req.isGetExtraInfo=true&req.tenantID=56&req.websiteID=56&req.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        String reqPeriodlineSort = reqPeriodlineSort_example; // String | 
        Boolean reqPeriodisLineSortDesc = true; // Boolean | 
        Boolean reqPeriodisGetMessages = true; // Boolean | 
        Integer reqPeriodcustomerID = 56; // Integer | 
        Integer reqPeriodsupplierID = 56; // Integer | 
        Boolean reqPeriodisPriceRefresh = true; // Boolean | 
        array[Integer] reqPeriodlineSearchFilterPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodlineSearchFilterPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodlineSearchFilterPeriodstatus = ; // array[String] | 
        String reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; // String | 
        Date reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        String reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodignoreID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodparentID = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodcategoryID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodadaptorID = 56; // Integer | 
        array[Integer] reqPeriodlineSearchFilterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodlineSearchFilterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodlineSearchFilterPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodlineSearchFilterPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodiD = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodlineSearchFilterPeriodtypes = ; // array[String] | 
        Boolean reqPeriodlineSearchFilterPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisSystem = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; // String | 
        String reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodsortAsc = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; // String | 
        Long reqPeriodlineSearchFilterPeriodlastRowNumber = 789; // Long | 
        Integer reqPeriodlineSearchFilterPeriodmaxResults = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodtenantID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodwebsiteID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPerioduserID = 56; // Integer | 
        Boolean reqPeriodisExcludeFailedPayments = true; // Boolean | 
        Boolean reqPeriodisShowSummaryLines = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | 
        UUID reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean reqPeriodisGetExtraInfo = true; // Boolean | 
        Integer reqPeriodtenantID = 56; // Integer | 
        Integer reqPeriodwebsiteID = 56; // Integer | 
        Integer reqPerioduserID = 56; // Integer | 

        try {
            TransactionEditResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceGetByID(id, reqPeriodlineSort, reqPeriodisLineSortDesc, reqPeriodisGetMessages, reqPeriodcustomerID, reqPeriodsupplierID, reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines, reqPeriodiD, reqPeriodgUID, reqPeriodisGetExtraInfo, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetByID");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final String reqPeriodlineSort = new String(); // String | 
final Boolean reqPeriodisLineSortDesc = new Boolean(); // Boolean | 
final Boolean reqPeriodisGetMessages = new Boolean(); // Boolean | 
final Integer reqPeriodcustomerID = new Integer(); // Integer | 
final Integer reqPeriodsupplierID = new Integer(); // Integer | 
final Boolean reqPeriodisPriceRefresh = new Boolean(); // Boolean | 
final array[Integer] reqPeriodlineSearchFilterPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodlineSearchFilterPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] reqPeriodlineSearchFilterPeriodstatus = new array[String](); // array[String] | 
final String reqPeriodlineSearchFilterPeriodsearchString = new String(); // String | 
final Boolean reqPeriodlineSearchFilterPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String reqPeriodlineSearchFilterPeriodsearch = new String(); // String | 
final Date reqPeriodlineSearchFilterPeriodstartDate = new Date(); // Date | 
final Date reqPeriodlineSearchFilterPeriodendDate = new Date(); // Date | 
final String reqPeriodlineSearchFilterPerioddatePeriod = new String(); // String | 
final Boolean reqPeriodlineSearchFilterPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer reqPeriodlineSearchFilterPeriodignoreID = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPeriodparentID = new Integer(); // Integer | 
final Boolean reqPeriodlineSearchFilterPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPeriodcategoryID = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPeriodadaptorID = new Integer(); // Integer | 
final array[Integer] reqPeriodlineSearchFilterPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodlineSearchFilterPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodlineSearchFilterPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodlineSearchFilterPeriodgUIDs = new array[String](); // array[String] | 
final Integer reqPeriodlineSearchFilterPeriodlinkedSupplierID = new Integer(); // Integer | 
final Boolean reqPeriodlineSearchFilterPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer reqPeriodlineSearchFilterPeriodiD = new Integer(); // Integer | 
final Boolean reqPeriodlineSearchFilterPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] reqPeriodlineSearchFilterPeriodtypes = new array[String](); // array[String] | 
final Boolean reqPeriodlineSearchFilterPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodisHidden = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean reqPeriodlineSearchFilterPeriodisSystem = new Boolean(); // Boolean | 
final String reqPeriodlineSearchFilterPeriodbatchStatus = new String(); // String | 
final String reqPeriodlineSearchFilterPeriodsortField = new String(); // String | 
final Boolean reqPeriodlineSearchFilterPeriodsortAsc = new Boolean(); // Boolean | 
final String reqPeriodlineSearchFilterPeriodgroupBy = new String(); // String | 
final Long reqPeriodlineSearchFilterPeriodlastRowNumber = new Long(); // Long | 
final Integer reqPeriodlineSearchFilterPeriodmaxResults = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPeriodtenantID = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPeriodwebsiteID = new Integer(); // Integer | 
final Integer reqPeriodlineSearchFilterPerioduserID = new Integer(); // Integer | 
final Boolean reqPeriodisExcludeFailedPayments = new Boolean(); // Boolean | 
final Boolean reqPeriodisShowSummaryLines = new Boolean(); // Boolean | 
final Integer reqPeriodiD = new Integer(); // Integer | 
final UUID reqPeriodgUID = new UUID(); // UUID | 
final Boolean reqPeriodisGetExtraInfo = new Boolean(); // Boolean | 
final Integer reqPeriodtenantID = new Integer(); // Integer | 
final Integer reqPeriodwebsiteID = new Integer(); // Integer | 
final Integer reqPerioduserID = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceGetByID(id, reqPeriodlineSort, reqPeriodisLineSortDesc, reqPeriodisGetMessages, reqPeriodcustomerID, reqPeriodsupplierID, reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines, reqPeriodiD, reqPeriodgUID, reqPeriodisGetExtraInfo, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetByID: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        String reqPeriodlineSort = reqPeriodlineSort_example; // String | 
        Boolean reqPeriodisLineSortDesc = true; // Boolean | 
        Boolean reqPeriodisGetMessages = true; // Boolean | 
        Integer reqPeriodcustomerID = 56; // Integer | 
        Integer reqPeriodsupplierID = 56; // Integer | 
        Boolean reqPeriodisPriceRefresh = true; // Boolean | 
        array[Integer] reqPeriodlineSearchFilterPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodlineSearchFilterPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodlineSearchFilterPeriodstatus = ; // array[String] | 
        String reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; // String | 
        Date reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        String reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodignoreID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodparentID = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodcategoryID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodadaptorID = 56; // Integer | 
        array[Integer] reqPeriodlineSearchFilterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodlineSearchFilterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodlineSearchFilterPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodlineSearchFilterPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodlineSearchFilterPeriodiD = 56; // Integer | 
        Boolean reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodlineSearchFilterPeriodtypes = ; // array[String] | 
        Boolean reqPeriodlineSearchFilterPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodlineSearchFilterPeriodisSystem = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; // String | 
        String reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; // String | 
        Boolean reqPeriodlineSearchFilterPeriodsortAsc = true; // Boolean | 
        String reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; // String | 
        Long reqPeriodlineSearchFilterPeriodlastRowNumber = 789; // Long | 
        Integer reqPeriodlineSearchFilterPeriodmaxResults = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodtenantID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPeriodwebsiteID = 56; // Integer | 
        Integer reqPeriodlineSearchFilterPerioduserID = 56; // Integer | 
        Boolean reqPeriodisExcludeFailedPayments = true; // Boolean | 
        Boolean reqPeriodisShowSummaryLines = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | 
        UUID reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean reqPeriodisGetExtraInfo = true; // Boolean | 
        Integer reqPeriodtenantID = 56; // Integer | 
        Integer reqPeriodwebsiteID = 56; // Integer | 
        Integer reqPerioduserID = 56; // Integer | 

        try {
            TransactionEditResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceGetByID(id, reqPeriodlineSort, reqPeriodisLineSortDesc, reqPeriodisGetMessages, reqPeriodcustomerID, reqPeriodsupplierID, reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines, reqPeriodiD, reqPeriodgUID, reqPeriodisGetExtraInfo, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetByID");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
String *reqPeriodlineSort = reqPeriodlineSort_example; //  (optional) (default to null)
Boolean *reqPeriodisLineSortDesc = true; //  (optional) (default to null)
Boolean *reqPeriodisGetMessages = true; //  (optional) (default to null)
Integer *reqPeriodcustomerID = 56; //  (optional) (default to null)
Integer *reqPeriodsupplierID = 56; //  (optional) (default to null)
Boolean *reqPeriodisPriceRefresh = true; //  (optional) (default to null)
array[Integer] *reqPeriodlineSearchFilterPeriodstatuses = ; //  (optional) (default to null)
array[String] *reqPeriodlineSearchFilterPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *reqPeriodlineSearchFilterPeriodstatus = ; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodsearchNameOnly = true; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; //  (optional) (default to null)
Date *reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodincludeLogs = true; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodignoreID = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodparentID = 56; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodcategoryID = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodadaptorID = 56; //  (optional) (default to null)
array[Integer] *reqPeriodlineSearchFilterPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodlineSearchFilterPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodlineSearchFilterPeriodiDs = ; //  (optional) (default to null)
array[String] *reqPeriodlineSearchFilterPeriodgUIDs = ; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodiD = 56; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *reqPeriodlineSearchFilterPeriodtypes = ; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisHidden = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodisSystem = true; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; //  (optional) (default to null)
Boolean *reqPeriodlineSearchFilterPeriodsortAsc = true; //  (optional) (default to null)
String *reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; //  (optional) (default to null)
Long *reqPeriodlineSearchFilterPeriodlastRowNumber = 789; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodmaxResults = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodtenantID = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPeriodwebsiteID = 56; //  (optional) (default to null)
Integer *reqPeriodlineSearchFilterPerioduserID = 56; //  (optional) (default to null)
Boolean *reqPeriodisExcludeFailedPayments = true; //  (optional) (default to null)
Boolean *reqPeriodisShowSummaryLines = true; //  (optional) (default to null)
Integer *reqPeriodiD = 56; //  (optional) (default to null)
UUID *reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional) (default to null)
Boolean *reqPeriodisGetExtraInfo = true; //  (optional) (default to null)
Integer *reqPeriodtenantID = 56; //  (optional) (default to null)
Integer *reqPeriodwebsiteID = 56; //  (optional) (default to null)
Integer *reqPerioduserID = 56; //  (optional) (default to null)

// PurchaseInvoice_GetByID
[apiInstance purchaseInvoiceGetByIDWith:id
    reqPeriodlineSort:reqPeriodlineSort
    reqPeriodisLineSortDesc:reqPeriodisLineSortDesc
    reqPeriodisGetMessages:reqPeriodisGetMessages
    reqPeriodcustomerID:reqPeriodcustomerID
    reqPeriodsupplierID:reqPeriodsupplierID
    reqPeriodisPriceRefresh:reqPeriodisPriceRefresh
    reqPeriodlineSearchFilterPeriodstatuses:reqPeriodlineSearchFilterPeriodstatuses
    reqPeriodlineSearchFilterPeriodstatusStrings:reqPeriodlineSearchFilterPeriodstatusStrings
    reqPeriodlineSearchFilterPeriodstatus:reqPeriodlineSearchFilterPeriodstatus
    reqPeriodlineSearchFilterPeriodsearchString:reqPeriodlineSearchFilterPeriodsearchString
    reqPeriodlineSearchFilterPeriodsearchNameOnly:reqPeriodlineSearchFilterPeriodsearchNameOnly
    reqPeriodlineSearchFilterPeriodsearch:reqPeriodlineSearchFilterPeriodsearch
    reqPeriodlineSearchFilterPeriodstartDate:reqPeriodlineSearchFilterPeriodstartDate
    reqPeriodlineSearchFilterPeriodendDate:reqPeriodlineSearchFilterPeriodendDate
    reqPeriodlineSearchFilterPerioddatePeriod:reqPeriodlineSearchFilterPerioddatePeriod
    reqPeriodlineSearchFilterPeriodisExactMatch:reqPeriodlineSearchFilterPeriodisExactMatch
    reqPeriodlineSearchFilterPeriodisGetBasicInfo:reqPeriodlineSearchFilterPeriodisGetBasicInfo
    reqPeriodlineSearchFilterPeriodincludeDeleted:reqPeriodlineSearchFilterPeriodincludeDeleted
    reqPeriodlineSearchFilterPeriodincludeLogs:reqPeriodlineSearchFilterPeriodincludeLogs
    reqPeriodlineSearchFilterPeriodignoreID:reqPeriodlineSearchFilterPeriodignoreID
    reqPeriodlineSearchFilterPeriodparentID:reqPeriodlineSearchFilterPeriodparentID
    reqPeriodlineSearchFilterPeriodgetCountOnly:reqPeriodlineSearchFilterPeriodgetCountOnly
    reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID:reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID
    reqPeriodlineSearchFilterPeriodcategoryID:reqPeriodlineSearchFilterPeriodcategoryID
    reqPeriodlineSearchFilterPeriodadaptorID:reqPeriodlineSearchFilterPeriodadaptorID
    reqPeriodlineSearchFilterPeriodcategoryIDs:reqPeriodlineSearchFilterPeriodcategoryIDs
    reqPeriodlineSearchFilterPeriodbrandIDs:reqPeriodlineSearchFilterPeriodbrandIDs
    reqPeriodlineSearchFilterPeriodiDs:reqPeriodlineSearchFilterPeriodiDs
    reqPeriodlineSearchFilterPeriodgUIDs:reqPeriodlineSearchFilterPeriodgUIDs
    reqPeriodlineSearchFilterPeriodlinkedSupplierID:reqPeriodlineSearchFilterPeriodlinkedSupplierID
    reqPeriodlineSearchFilterPeriodisApprovedForPOS:reqPeriodlineSearchFilterPeriodisApprovedForPOS
    reqPeriodlineSearchFilterPeriodisApprovedForWeb:reqPeriodlineSearchFilterPeriodisApprovedForWeb
    reqPeriodlineSearchFilterPeriodisApprovedForService:reqPeriodlineSearchFilterPeriodisApprovedForService
    reqPeriodlineSearchFilterPeriodiD:reqPeriodlineSearchFilterPeriodiD
    reqPeriodlineSearchFilterPeriodisHierarchicalSort:reqPeriodlineSearchFilterPeriodisHierarchicalSort
    reqPeriodlineSearchFilterPeriodtypes:reqPeriodlineSearchFilterPeriodtypes
    reqPeriodlineSearchFilterPeriodisShowFavourites:reqPeriodlineSearchFilterPeriodisShowFavourites
    reqPeriodlineSearchFilterPeriodisHidden:reqPeriodlineSearchFilterPeriodisHidden
    reqPeriodlineSearchFilterPeriodincludeSystemTasks:reqPeriodlineSearchFilterPeriodincludeSystemTasks
    reqPeriodlineSearchFilterPeriodisSystem:reqPeriodlineSearchFilterPeriodisSystem
    reqPeriodlineSearchFilterPeriodbatchStatus:reqPeriodlineSearchFilterPeriodbatchStatus
    reqPeriodlineSearchFilterPeriodsortField:reqPeriodlineSearchFilterPeriodsortField
    reqPeriodlineSearchFilterPeriodsortAsc:reqPeriodlineSearchFilterPeriodsortAsc
    reqPeriodlineSearchFilterPeriodgroupBy:reqPeriodlineSearchFilterPeriodgroupBy
    reqPeriodlineSearchFilterPeriodlastRowNumber:reqPeriodlineSearchFilterPeriodlastRowNumber
    reqPeriodlineSearchFilterPeriodmaxResults:reqPeriodlineSearchFilterPeriodmaxResults
    reqPeriodlineSearchFilterPeriodtenantID:reqPeriodlineSearchFilterPeriodtenantID
    reqPeriodlineSearchFilterPeriodwebsiteID:reqPeriodlineSearchFilterPeriodwebsiteID
    reqPeriodlineSearchFilterPerioduserID:reqPeriodlineSearchFilterPerioduserID
    reqPeriodisExcludeFailedPayments:reqPeriodisExcludeFailedPayments
    reqPeriodisShowSummaryLines:reqPeriodisShowSummaryLines
    reqPeriodiD:reqPeriodiD
    reqPeriodgUID:reqPeriodgUID
    reqPeriodisGetExtraInfo:reqPeriodisGetExtraInfo
    reqPeriodtenantID:reqPeriodtenantID
    reqPeriodwebsiteID:reqPeriodwebsiteID
    reqPerioduserID:reqPerioduserID
              completionHandler: ^(TransactionEditResponse_PurchaseInvoiceT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'reqPeriodlineSort': reqPeriodlineSort_example, // {String} 
  'reqPeriodisLineSortDesc': true, // {Boolean} 
  'reqPeriodisGetMessages': true, // {Boolean} 
  'reqPeriodcustomerID': 56, // {Integer} 
  'reqPeriodsupplierID': 56, // {Integer} 
  'reqPeriodisPriceRefresh': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodstatuses': , // {array[Integer]} 
  'reqPeriodlineSearchFilterPeriodstatusStrings': , // {array[String]} 
  'reqPeriodlineSearchFilterPeriodstatus': , // {array[String]} 
  'reqPeriodlineSearchFilterPeriodsearchString': reqPeriodlineSearchFilterPeriodsearchString_example, // {String} 
  'reqPeriodlineSearchFilterPeriodsearchNameOnly': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodsearch': reqPeriodlineSearchFilterPeriodsearch_example, // {String} 
  'reqPeriodlineSearchFilterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'reqPeriodlineSearchFilterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'reqPeriodlineSearchFilterPerioddatePeriod': reqPeriodlineSearchFilterPerioddatePeriod_example, // {String} 
  'reqPeriodlineSearchFilterPeriodisExactMatch': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodisGetBasicInfo': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodincludeDeleted': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodincludeLogs': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodignoreID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodparentID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodgetCountOnly': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodcategoryID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodadaptorID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodcategoryIDs': , // {array[Integer]} 
  'reqPeriodlineSearchFilterPeriodbrandIDs': , // {array[Integer]} 
  'reqPeriodlineSearchFilterPeriodiDs': , // {array[Integer]} 
  'reqPeriodlineSearchFilterPeriodgUIDs': , // {array[String]} 
  'reqPeriodlineSearchFilterPeriodlinkedSupplierID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodisApprovedForPOS': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodisApprovedForWeb': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodisApprovedForService': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodiD': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodisHierarchicalSort': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodtypes': , // {array[String]} 
  'reqPeriodlineSearchFilterPeriodisShowFavourites': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodisHidden': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodincludeSystemTasks': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodisSystem': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodbatchStatus': reqPeriodlineSearchFilterPeriodbatchStatus_example, // {String} 
  'reqPeriodlineSearchFilterPeriodsortField': reqPeriodlineSearchFilterPeriodsortField_example, // {String} 
  'reqPeriodlineSearchFilterPeriodsortAsc': true, // {Boolean} 
  'reqPeriodlineSearchFilterPeriodgroupBy': reqPeriodlineSearchFilterPeriodgroupBy_example, // {String} 
  'reqPeriodlineSearchFilterPeriodlastRowNumber': 789, // {Long} 
  'reqPeriodlineSearchFilterPeriodmaxResults': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodtenantID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPeriodwebsiteID': 56, // {Integer} 
  'reqPeriodlineSearchFilterPerioduserID': 56, // {Integer} 
  'reqPeriodisExcludeFailedPayments': true, // {Boolean} 
  'reqPeriodisShowSummaryLines': true, // {Boolean} 
  'reqPeriodiD': 56, // {Integer} 
  'reqPeriodgUID': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} 
  'reqPeriodisGetExtraInfo': true, // {Boolean} 
  'reqPeriodtenantID': 56, // {Integer} 
  'reqPeriodwebsiteID': 56, // {Integer} 
  'reqPerioduserID': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetByID(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetByIDExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var reqPeriodlineSort = reqPeriodlineSort_example;  // String |  (optional)  (default to null)
            var reqPeriodisLineSortDesc = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisGetMessages = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodcustomerID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodsupplierID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodisPriceRefresh = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodignoreID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodparentID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodcategoryID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodadaptorID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodiD = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodlastRowNumber = 789;  // Long |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodmaxResults = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodtenantID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPeriodwebsiteID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodlineSearchFilterPerioduserID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodisExcludeFailedPayments = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisShowSummaryLines = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodiD = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID |  (optional)  (default to null)
            var reqPeriodisGetExtraInfo = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodtenantID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodwebsiteID = 56;  // Integer |  (optional)  (default to null)
            var reqPerioduserID = 56;  // Integer |  (optional)  (default to null)

            try {
                // PurchaseInvoice_GetByID
                TransactionEditResponse_PurchaseInvoiceT_ result = apiInstance.purchaseInvoiceGetByID(id, reqPeriodlineSort, reqPeriodisLineSortDesc, reqPeriodisGetMessages, reqPeriodcustomerID, reqPeriodsupplierID, reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines, reqPeriodiD, reqPeriodgUID, reqPeriodisGetExtraInfo, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetByID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$reqPeriodlineSort = reqPeriodlineSort_example; // String | 
$reqPeriodisLineSortDesc = true; // Boolean | 
$reqPeriodisGetMessages = true; // Boolean | 
$reqPeriodcustomerID = 56; // Integer | 
$reqPeriodsupplierID = 56; // Integer | 
$reqPeriodisPriceRefresh = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodstatuses = ; // array[Integer] | 
$reqPeriodlineSearchFilterPeriodstatusStrings = ; // array[String] | 
$reqPeriodlineSearchFilterPeriodstatus = ; // array[String] | 
$reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; // String | 
$reqPeriodlineSearchFilterPeriodsearchNameOnly = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; // String | 
$reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
$reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
$reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; // String | 
$reqPeriodlineSearchFilterPeriodisExactMatch = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodincludeDeleted = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodincludeLogs = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodignoreID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodparentID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodgetCountOnly = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodcategoryID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodadaptorID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodcategoryIDs = ; // array[Integer] | 
$reqPeriodlineSearchFilterPeriodbrandIDs = ; // array[Integer] | 
$reqPeriodlineSearchFilterPeriodiDs = ; // array[Integer] | 
$reqPeriodlineSearchFilterPeriodgUIDs = ; // array[String] | 
$reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodisApprovedForService = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodiD = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodtypes = ; // array[String] | 
$reqPeriodlineSearchFilterPeriodisShowFavourites = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodisHidden = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodisSystem = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; // String | 
$reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; // String | 
$reqPeriodlineSearchFilterPeriodsortAsc = true; // Boolean | 
$reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; // String | 
$reqPeriodlineSearchFilterPeriodlastRowNumber = 789; // Long | 
$reqPeriodlineSearchFilterPeriodmaxResults = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodtenantID = 56; // Integer | 
$reqPeriodlineSearchFilterPeriodwebsiteID = 56; // Integer | 
$reqPeriodlineSearchFilterPerioduserID = 56; // Integer | 
$reqPeriodisExcludeFailedPayments = true; // Boolean | 
$reqPeriodisShowSummaryLines = true; // Boolean | 
$reqPeriodiD = 56; // Integer | 
$reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$reqPeriodisGetExtraInfo = true; // Boolean | 
$reqPeriodtenantID = 56; // Integer | 
$reqPeriodwebsiteID = 56; // Integer | 
$reqPerioduserID = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceGetByID($id, $reqPeriodlineSort, $reqPeriodisLineSortDesc, $reqPeriodisGetMessages, $reqPeriodcustomerID, $reqPeriodsupplierID, $reqPeriodisPriceRefresh, $reqPeriodlineSearchFilterPeriodstatuses, $reqPeriodlineSearchFilterPeriodstatusStrings, $reqPeriodlineSearchFilterPeriodstatus, $reqPeriodlineSearchFilterPeriodsearchString, $reqPeriodlineSearchFilterPeriodsearchNameOnly, $reqPeriodlineSearchFilterPeriodsearch, $reqPeriodlineSearchFilterPeriodstartDate, $reqPeriodlineSearchFilterPeriodendDate, $reqPeriodlineSearchFilterPerioddatePeriod, $reqPeriodlineSearchFilterPeriodisExactMatch, $reqPeriodlineSearchFilterPeriodisGetBasicInfo, $reqPeriodlineSearchFilterPeriodincludeDeleted, $reqPeriodlineSearchFilterPeriodincludeLogs, $reqPeriodlineSearchFilterPeriodignoreID, $reqPeriodlineSearchFilterPeriodparentID, $reqPeriodlineSearchFilterPeriodgetCountOnly, $reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, $reqPeriodlineSearchFilterPeriodcategoryID, $reqPeriodlineSearchFilterPeriodadaptorID, $reqPeriodlineSearchFilterPeriodcategoryIDs, $reqPeriodlineSearchFilterPeriodbrandIDs, $reqPeriodlineSearchFilterPeriodiDs, $reqPeriodlineSearchFilterPeriodgUIDs, $reqPeriodlineSearchFilterPeriodlinkedSupplierID, $reqPeriodlineSearchFilterPeriodisApprovedForPOS, $reqPeriodlineSearchFilterPeriodisApprovedForWeb, $reqPeriodlineSearchFilterPeriodisApprovedForService, $reqPeriodlineSearchFilterPeriodiD, $reqPeriodlineSearchFilterPeriodisHierarchicalSort, $reqPeriodlineSearchFilterPeriodtypes, $reqPeriodlineSearchFilterPeriodisShowFavourites, $reqPeriodlineSearchFilterPeriodisHidden, $reqPeriodlineSearchFilterPeriodincludeSystemTasks, $reqPeriodlineSearchFilterPeriodisSystem, $reqPeriodlineSearchFilterPeriodbatchStatus, $reqPeriodlineSearchFilterPeriodsortField, $reqPeriodlineSearchFilterPeriodsortAsc, $reqPeriodlineSearchFilterPeriodgroupBy, $reqPeriodlineSearchFilterPeriodlastRowNumber, $reqPeriodlineSearchFilterPeriodmaxResults, $reqPeriodlineSearchFilterPeriodtenantID, $reqPeriodlineSearchFilterPeriodwebsiteID, $reqPeriodlineSearchFilterPerioduserID, $reqPeriodisExcludeFailedPayments, $reqPeriodisShowSummaryLines, $reqPeriodiD, $reqPeriodgUID, $reqPeriodisGetExtraInfo, $reqPeriodtenantID, $reqPeriodwebsiteID, $reqPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetByID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $reqPeriodlineSort = reqPeriodlineSort_example; # String | 
my $reqPeriodisLineSortDesc = true; # Boolean | 
my $reqPeriodisGetMessages = true; # Boolean | 
my $reqPeriodcustomerID = 56; # Integer | 
my $reqPeriodsupplierID = 56; # Integer | 
my $reqPeriodisPriceRefresh = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodstatuses = []; # array[Integer] | 
my $reqPeriodlineSearchFilterPeriodstatusStrings = []; # array[String] | 
my $reqPeriodlineSearchFilterPeriodstatus = []; # array[String] | 
my $reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; # String | 
my $reqPeriodlineSearchFilterPeriodsearchNameOnly = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; # String | 
my $reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | 
my $reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | 
my $reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; # String | 
my $reqPeriodlineSearchFilterPeriodisExactMatch = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodincludeDeleted = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodincludeLogs = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodignoreID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodparentID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodgetCountOnly = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodcategoryID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodadaptorID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodcategoryIDs = []; # array[Integer] | 
my $reqPeriodlineSearchFilterPeriodbrandIDs = []; # array[Integer] | 
my $reqPeriodlineSearchFilterPeriodiDs = []; # array[Integer] | 
my $reqPeriodlineSearchFilterPeriodgUIDs = []; # array[String] | 
my $reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodisApprovedForService = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodiD = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodtypes = []; # array[String] | 
my $reqPeriodlineSearchFilterPeriodisShowFavourites = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodisHidden = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodisSystem = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; # String | 
my $reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; # String | 
my $reqPeriodlineSearchFilterPeriodsortAsc = true; # Boolean | 
my $reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; # String | 
my $reqPeriodlineSearchFilterPeriodlastRowNumber = 789; # Long | 
my $reqPeriodlineSearchFilterPeriodmaxResults = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodtenantID = 56; # Integer | 
my $reqPeriodlineSearchFilterPeriodwebsiteID = 56; # Integer | 
my $reqPeriodlineSearchFilterPerioduserID = 56; # Integer | 
my $reqPeriodisExcludeFailedPayments = true; # Boolean | 
my $reqPeriodisShowSummaryLines = true; # Boolean | 
my $reqPeriodiD = 56; # Integer | 
my $reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $reqPeriodisGetExtraInfo = true; # Boolean | 
my $reqPeriodtenantID = 56; # Integer | 
my $reqPeriodwebsiteID = 56; # Integer | 
my $reqPerioduserID = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceGetByID(id => $id, reqPeriodlineSort => $reqPeriodlineSort, reqPeriodisLineSortDesc => $reqPeriodisLineSortDesc, reqPeriodisGetMessages => $reqPeriodisGetMessages, reqPeriodcustomerID => $reqPeriodcustomerID, reqPeriodsupplierID => $reqPeriodsupplierID, reqPeriodisPriceRefresh => $reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses => $reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings => $reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus => $reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString => $reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly => $reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch => $reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate => $reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate => $reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod => $reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch => $reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo => $reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted => $reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs => $reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID => $reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID => $reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly => $reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID => $reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID => $reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID => $reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs => $reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs => $reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs => $reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs => $reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID => $reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS => $reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb => $reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService => $reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD => $reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort => $reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes => $reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites => $reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden => $reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks => $reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem => $reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus => $reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField => $reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc => $reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy => $reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber => $reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults => $reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID => $reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID => $reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID => $reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments => $reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines => $reqPeriodisShowSummaryLines, reqPeriodiD => $reqPeriodiD, reqPeriodgUID => $reqPeriodgUID, reqPeriodisGetExtraInfo => $reqPeriodisGetExtraInfo, reqPeriodtenantID => $reqPeriodtenantID, reqPeriodwebsiteID => $reqPeriodwebsiteID, reqPerioduserID => $reqPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetByID: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
reqPeriodlineSort = reqPeriodlineSort_example # String |  (optional) (default to null)
reqPeriodisLineSortDesc = true # Boolean |  (optional) (default to null)
reqPeriodisGetMessages = true # Boolean |  (optional) (default to null)
reqPeriodcustomerID = 56 # Integer |  (optional) (default to null)
reqPeriodsupplierID = 56 # Integer |  (optional) (default to null)
reqPeriodisPriceRefresh = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodstatuses =  # array[Integer] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodstatusStrings =  # array[String] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodstatus =  # array[String] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisExactMatch = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodincludeLogs = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodignoreID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodparentID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodcategoryID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodadaptorID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodiDs =  # array[Integer] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodgUIDs =  # array[String] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodiD = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodtypes =  # array[String] |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisHidden = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodisSystem = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodsortAsc = true # Boolean |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example # String |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodlastRowNumber = 789 # Long |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodmaxResults = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodtenantID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPeriodwebsiteID = 56 # Integer |  (optional) (default to null)
reqPeriodlineSearchFilterPerioduserID = 56 # Integer |  (optional) (default to null)
reqPeriodisExcludeFailedPayments = true # Boolean |  (optional) (default to null)
reqPeriodisShowSummaryLines = true # Boolean |  (optional) (default to null)
reqPeriodiD = 56 # Integer |  (optional) (default to null)
reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional) (default to null)
reqPeriodisGetExtraInfo = true # Boolean |  (optional) (default to null)
reqPeriodtenantID = 56 # Integer |  (optional) (default to null)
reqPeriodwebsiteID = 56 # Integer |  (optional) (default to null)
reqPerioduserID = 56 # Integer |  (optional) (default to null)

try:
    # PurchaseInvoice_GetByID
    api_response = api_instance.purchase_invoice_get_by_id(id, reqPeriodlineSort=reqPeriodlineSort, reqPeriodisLineSortDesc=reqPeriodisLineSortDesc, reqPeriodisGetMessages=reqPeriodisGetMessages, reqPeriodcustomerID=reqPeriodcustomerID, reqPeriodsupplierID=reqPeriodsupplierID, reqPeriodisPriceRefresh=reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses=reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings=reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus=reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString=reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly=reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch=reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate=reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate=reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod=reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch=reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo=reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted=reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs=reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID=reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID=reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly=reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID=reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID=reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID=reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs=reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs=reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs=reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs=reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID=reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS=reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb=reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService=reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD=reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort=reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes=reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites=reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden=reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks=reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem=reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus=reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField=reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc=reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy=reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber=reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults=reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID=reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID=reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID=reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments=reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines=reqPeriodisShowSummaryLines, reqPeriodiD=reqPeriodiD, reqPeriodgUID=reqPeriodgUID, reqPeriodisGetExtraInfo=reqPeriodisGetExtraInfo, reqPeriodtenantID=reqPeriodtenantID, reqPeriodwebsiteID=reqPeriodwebsiteID, reqPerioduserID=reqPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetByID: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let reqPeriodlineSort = reqPeriodlineSort_example; // String
    let reqPeriodisLineSortDesc = true; // Boolean
    let reqPeriodisGetMessages = true; // Boolean
    let reqPeriodcustomerID = 56; // Integer
    let reqPeriodsupplierID = 56; // Integer
    let reqPeriodisPriceRefresh = true; // Boolean
    let reqPeriodlineSearchFilterPeriodstatuses = ; // array[Integer]
    let reqPeriodlineSearchFilterPeriodstatusStrings = ; // array[String]
    let reqPeriodlineSearchFilterPeriodstatus = ; // array[String]
    let reqPeriodlineSearchFilterPeriodsearchString = reqPeriodlineSearchFilterPeriodsearchString_example; // String
    let reqPeriodlineSearchFilterPeriodsearchNameOnly = true; // Boolean
    let reqPeriodlineSearchFilterPeriodsearch = reqPeriodlineSearchFilterPeriodsearch_example; // String
    let reqPeriodlineSearchFilterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPeriodlineSearchFilterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPeriodlineSearchFilterPerioddatePeriod = reqPeriodlineSearchFilterPerioddatePeriod_example; // String
    let reqPeriodlineSearchFilterPeriodisExactMatch = true; // Boolean
    let reqPeriodlineSearchFilterPeriodisGetBasicInfo = true; // Boolean
    let reqPeriodlineSearchFilterPeriodincludeDeleted = true; // Boolean
    let reqPeriodlineSearchFilterPeriodincludeLogs = true; // Boolean
    let reqPeriodlineSearchFilterPeriodignoreID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodparentID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodgetCountOnly = true; // Boolean
    let reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodcategoryID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodadaptorID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodcategoryIDs = ; // array[Integer]
    let reqPeriodlineSearchFilterPeriodbrandIDs = ; // array[Integer]
    let reqPeriodlineSearchFilterPeriodiDs = ; // array[Integer]
    let reqPeriodlineSearchFilterPeriodgUIDs = ; // array[String]
    let reqPeriodlineSearchFilterPeriodlinkedSupplierID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodisApprovedForPOS = true; // Boolean
    let reqPeriodlineSearchFilterPeriodisApprovedForWeb = true; // Boolean
    let reqPeriodlineSearchFilterPeriodisApprovedForService = true; // Boolean
    let reqPeriodlineSearchFilterPeriodiD = 56; // Integer
    let reqPeriodlineSearchFilterPeriodisHierarchicalSort = true; // Boolean
    let reqPeriodlineSearchFilterPeriodtypes = ; // array[String]
    let reqPeriodlineSearchFilterPeriodisShowFavourites = true; // Boolean
    let reqPeriodlineSearchFilterPeriodisHidden = true; // Boolean
    let reqPeriodlineSearchFilterPeriodincludeSystemTasks = true; // Boolean
    let reqPeriodlineSearchFilterPeriodisSystem = true; // Boolean
    let reqPeriodlineSearchFilterPeriodbatchStatus = reqPeriodlineSearchFilterPeriodbatchStatus_example; // String
    let reqPeriodlineSearchFilterPeriodsortField = reqPeriodlineSearchFilterPeriodsortField_example; // String
    let reqPeriodlineSearchFilterPeriodsortAsc = true; // Boolean
    let reqPeriodlineSearchFilterPeriodgroupBy = reqPeriodlineSearchFilterPeriodgroupBy_example; // String
    let reqPeriodlineSearchFilterPeriodlastRowNumber = 789; // Long
    let reqPeriodlineSearchFilterPeriodmaxResults = 56; // Integer
    let reqPeriodlineSearchFilterPeriodtenantID = 56; // Integer
    let reqPeriodlineSearchFilterPeriodwebsiteID = 56; // Integer
    let reqPeriodlineSearchFilterPerioduserID = 56; // Integer
    let reqPeriodisExcludeFailedPayments = true; // Boolean
    let reqPeriodisShowSummaryLines = true; // Boolean
    let reqPeriodiD = 56; // Integer
    let reqPeriodgUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let reqPeriodisGetExtraInfo = true; // Boolean
    let reqPeriodtenantID = 56; // Integer
    let reqPeriodwebsiteID = 56; // Integer
    let reqPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetByID(id, reqPeriodlineSort, reqPeriodisLineSortDesc, reqPeriodisGetMessages, reqPeriodcustomerID, reqPeriodsupplierID, reqPeriodisPriceRefresh, reqPeriodlineSearchFilterPeriodstatuses, reqPeriodlineSearchFilterPeriodstatusStrings, reqPeriodlineSearchFilterPeriodstatus, reqPeriodlineSearchFilterPeriodsearchString, reqPeriodlineSearchFilterPeriodsearchNameOnly, reqPeriodlineSearchFilterPeriodsearch, reqPeriodlineSearchFilterPeriodstartDate, reqPeriodlineSearchFilterPeriodendDate, reqPeriodlineSearchFilterPerioddatePeriod, reqPeriodlineSearchFilterPeriodisExactMatch, reqPeriodlineSearchFilterPeriodisGetBasicInfo, reqPeriodlineSearchFilterPeriodincludeDeleted, reqPeriodlineSearchFilterPeriodincludeLogs, reqPeriodlineSearchFilterPeriodignoreID, reqPeriodlineSearchFilterPeriodparentID, reqPeriodlineSearchFilterPeriodgetCountOnly, reqPeriodlineSearchFilterPeriodtransactionTypeDatTypeID, reqPeriodlineSearchFilterPeriodcategoryID, reqPeriodlineSearchFilterPeriodadaptorID, reqPeriodlineSearchFilterPeriodcategoryIDs, reqPeriodlineSearchFilterPeriodbrandIDs, reqPeriodlineSearchFilterPeriodiDs, reqPeriodlineSearchFilterPeriodgUIDs, reqPeriodlineSearchFilterPeriodlinkedSupplierID, reqPeriodlineSearchFilterPeriodisApprovedForPOS, reqPeriodlineSearchFilterPeriodisApprovedForWeb, reqPeriodlineSearchFilterPeriodisApprovedForService, reqPeriodlineSearchFilterPeriodiD, reqPeriodlineSearchFilterPeriodisHierarchicalSort, reqPeriodlineSearchFilterPeriodtypes, reqPeriodlineSearchFilterPeriodisShowFavourites, reqPeriodlineSearchFilterPeriodisHidden, reqPeriodlineSearchFilterPeriodincludeSystemTasks, reqPeriodlineSearchFilterPeriodisSystem, reqPeriodlineSearchFilterPeriodbatchStatus, reqPeriodlineSearchFilterPeriodsortField, reqPeriodlineSearchFilterPeriodsortAsc, reqPeriodlineSearchFilterPeriodgroupBy, reqPeriodlineSearchFilterPeriodlastRowNumber, reqPeriodlineSearchFilterPeriodmaxResults, reqPeriodlineSearchFilterPeriodtenantID, reqPeriodlineSearchFilterPeriodwebsiteID, reqPeriodlineSearchFilterPerioduserID, reqPeriodisExcludeFailedPayments, reqPeriodisShowSummaryLines, reqPeriodiD, reqPeriodgUID, reqPeriodisGetExtraInfo, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
req.lineSort
String
req.isLineSortDesc
Boolean
req.isGetMessages
Boolean
req.customerID
Integer (int32)
req.supplierID
Integer (int32)
req.isPriceRefresh
Boolean
req.lineSearchFilter.statuses
array[Integer] (int32)
req.lineSearchFilter.statusStrings
array[String]
req.lineSearchFilter.status
array[String]
req.lineSearchFilter.searchString
String
req.lineSearchFilter.searchNameOnly
Boolean
req.lineSearchFilter.search
String
req.lineSearchFilter.startDate
Date (date-time)
req.lineSearchFilter.endDate
Date (date-time)
req.lineSearchFilter.datePeriod
String
req.lineSearchFilter.isExactMatch
Boolean
req.lineSearchFilter.isGetBasicInfo
Boolean
req.lineSearchFilter.includeDeleted
Boolean
req.lineSearchFilter.includeLogs
Boolean
req.lineSearchFilter.ignoreID
Integer (int32)
req.lineSearchFilter.parentID
Integer (int32)
req.lineSearchFilter.getCountOnly
Boolean
req.lineSearchFilter.transactionTypeDatTypeID
Integer (int32)
req.lineSearchFilter.categoryID
Integer (int32)
req.lineSearchFilter.adaptorID
Integer (int32)
req.lineSearchFilter.categoryIDs
array[Integer] (int32)
req.lineSearchFilter.brandIDs
array[Integer] (int32)
req.lineSearchFilter.iDs
array[Integer] (int32)
req.lineSearchFilter.gUIDs
array[String]
req.lineSearchFilter.linkedSupplierID
Integer (int32)
req.lineSearchFilter.isApprovedForPOS
Boolean
req.lineSearchFilter.isApprovedForWeb
Boolean
req.lineSearchFilter.isApprovedForService
Boolean
req.lineSearchFilter.iD
Integer (int32)
req.lineSearchFilter.isHierarchicalSort
Boolean
req.lineSearchFilter.types
array[String]
req.lineSearchFilter.isShowFavourites
Boolean
req.lineSearchFilter.isHidden
Boolean
req.lineSearchFilter.includeSystemTasks
Boolean
req.lineSearchFilter.isSystem
Boolean
req.lineSearchFilter.batchStatus
String
req.lineSearchFilter.sortField
String
req.lineSearchFilter.sortAsc
Boolean
req.lineSearchFilter.groupBy
String
req.lineSearchFilter.lastRowNumber
Long (int64)
req.lineSearchFilter.maxResults
Integer (int32)
req.lineSearchFilter.tenantID
Integer (int32)
req.lineSearchFilter.websiteID
Integer (int32)
req.lineSearchFilter.userID
Integer (int32)
req.isExcludeFailedPayments
Boolean
req.isShowSummaryLines
Boolean
req.iD
Integer (int32)
req.gUID
UUID (uuid)
req.isGetExtraInfo
Boolean
req.tenantID
Integer (int32)
req.websiteID
Integer (int32)
req.userID
Integer (int32)

Responses


purchaseInvoiceGetMessages

PurchaseInvoice_GetMessages


/PurchaseInvoice/{id}/messages

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}/messages"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 

        try {
            ActionResults_BusTransMessages_ result = apiInstance.purchaseInvoiceGetMessages(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetMessages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceGetMessages(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetMessages: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 

        try {
            ActionResults_BusTransMessages_ result = apiInstance.purchaseInvoiceGetMessages(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetMessages");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)

// PurchaseInvoice_GetMessages
[apiInstance purchaseInvoiceGetMessagesWith:id
              completionHandler: ^(ActionResults_BusTransMessages_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetMessages(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetMessagesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // PurchaseInvoice_GetMessages
                ActionResults_BusTransMessages_ result = apiInstance.purchaseInvoiceGetMessages(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetMessages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceGetMessages($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetMessages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceGetMessages(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetMessages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)

try:
    # PurchaseInvoice_GetMessages
    api_response = api_instance.purchase_invoice_get_messages(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetMessages: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetMessages(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


purchaseInvoiceGetPurchaseInvoiceAlert

PurchaseInvoice_GetPurchaseInvoiceAlert


/PurchaseInvoice/alert

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/alert?req.transID=56&req.transactionGuid=38400000-8cf0-11bd-b23e-10b96e4ef00d&req.merchantCustomerID=56&req.isShowSummaryLines=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer reqPeriodtransID = 56; // Integer | 
        UUID reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Integer reqPeriodmerchantCustomerID = 56; // Integer | 
        Boolean reqPeriodisShowSummaryLines = true; // Boolean | 

        try {
            ActionResults_AlertInfo_ result = apiInstance.purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID, reqPeriodtransactionGuid, reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetPurchaseInvoiceAlert");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer reqPeriodtransID = new Integer(); // Integer | 
final UUID reqPeriodtransactionGuid = new UUID(); // UUID | 
final Integer reqPeriodmerchantCustomerID = new Integer(); // Integer | 
final Boolean reqPeriodisShowSummaryLines = new Boolean(); // Boolean | 

try {
    final result = await api_instance.purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID, reqPeriodtransactionGuid, reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetPurchaseInvoiceAlert: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer reqPeriodtransID = 56; // Integer | 
        UUID reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Integer reqPeriodmerchantCustomerID = 56; // Integer | 
        Boolean reqPeriodisShowSummaryLines = true; // Boolean | 

        try {
            ActionResults_AlertInfo_ result = apiInstance.purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID, reqPeriodtransactionGuid, reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetPurchaseInvoiceAlert");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *reqPeriodtransID = 56; //  (optional) (default to null)
UUID *reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional) (default to null)
Integer *reqPeriodmerchantCustomerID = 56; //  (optional) (default to null)
Boolean *reqPeriodisShowSummaryLines = true; //  (optional) (default to null)

// PurchaseInvoice_GetPurchaseInvoiceAlert
[apiInstance purchaseInvoiceGetPurchaseInvoiceAlertWith:reqPeriodtransID
    reqPeriodtransactionGuid:reqPeriodtransactionGuid
    reqPeriodmerchantCustomerID:reqPeriodmerchantCustomerID
    reqPeriodisShowSummaryLines:reqPeriodisShowSummaryLines
              completionHandler: ^(ActionResults_AlertInfo_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'reqPeriodtransID': 56, // {Integer} 
  'reqPeriodtransactionGuid': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} 
  'reqPeriodmerchantCustomerID': 56, // {Integer} 
  'reqPeriodisShowSummaryLines': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetPurchaseInvoiceAlert(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetPurchaseInvoiceAlertExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var reqPeriodtransID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID |  (optional)  (default to null)
            var reqPeriodmerchantCustomerID = 56;  // Integer |  (optional)  (default to null)
            var reqPeriodisShowSummaryLines = true;  // Boolean |  (optional)  (default to null)

            try {
                // PurchaseInvoice_GetPurchaseInvoiceAlert
                ActionResults_AlertInfo_ result = apiInstance.purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID, reqPeriodtransactionGuid, reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetPurchaseInvoiceAlert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$reqPeriodtransID = 56; // Integer | 
$reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$reqPeriodmerchantCustomerID = 56; // Integer | 
$reqPeriodisShowSummaryLines = true; // Boolean | 

try {
    $result = $api_instance->purchaseInvoiceGetPurchaseInvoiceAlert($reqPeriodtransID, $reqPeriodtransactionGuid, $reqPeriodmerchantCustomerID, $reqPeriodisShowSummaryLines);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetPurchaseInvoiceAlert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $reqPeriodtransID = 56; # Integer | 
my $reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $reqPeriodmerchantCustomerID = 56; # Integer | 
my $reqPeriodisShowSummaryLines = true; # Boolean | 

eval {
    my $result = $api_instance->purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID => $reqPeriodtransID, reqPeriodtransactionGuid => $reqPeriodtransactionGuid, reqPeriodmerchantCustomerID => $reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines => $reqPeriodisShowSummaryLines);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetPurchaseInvoiceAlert: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
reqPeriodtransID = 56 # Integer |  (optional) (default to null)
reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional) (default to null)
reqPeriodmerchantCustomerID = 56 # Integer |  (optional) (default to null)
reqPeriodisShowSummaryLines = true # Boolean |  (optional) (default to null)

try:
    # PurchaseInvoice_GetPurchaseInvoiceAlert
    api_response = api_instance.purchase_invoice_get_purchase_invoice_alert(reqPeriodtransID=reqPeriodtransID, reqPeriodtransactionGuid=reqPeriodtransactionGuid, reqPeriodmerchantCustomerID=reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines=reqPeriodisShowSummaryLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetPurchaseInvoiceAlert: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let reqPeriodtransID = 56; // Integer
    let reqPeriodtransactionGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let reqPeriodmerchantCustomerID = 56; // Integer
    let reqPeriodisShowSummaryLines = true; // Boolean

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetPurchaseInvoiceAlert(reqPeriodtransID, reqPeriodtransactionGuid, reqPeriodmerchantCustomerID, reqPeriodisShowSummaryLines, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
req.transID
Integer (int32)
req.transactionGuid
UUID (uuid)
req.merchantCustomerID
Integer (int32)
req.isShowSummaryLines
Boolean

Responses


purchaseInvoiceGetStatementsPaymentSummary

PurchaseInvoice_GetStatementsPaymentSummary


/PurchaseInvoice/supplier/getstatementspaymentsummary

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/supplier/getstatementspaymentsummary" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListPurchaseInvoicesSummaryRequest actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListPurchaseInvoicesSummaryRequest | 

        try {
            PagedActionResults_PurchaseInvoicesPaymentSummaryResponse_ result = apiInstance.purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetStatementsPaymentSummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ActionRequestListPurchaseInvoicesSummaryRequest actionRequestListPurchaseInvoicesSummaryRequest = new ActionRequestListPurchaseInvoicesSummaryRequest(); // ActionRequestListPurchaseInvoicesSummaryRequest | 

try {
    final result = await api_instance.purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetStatementsPaymentSummary: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListPurchaseInvoicesSummaryRequest actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListPurchaseInvoicesSummaryRequest | 

        try {
            PagedActionResults_PurchaseInvoicesPaymentSummaryResponse_ result = apiInstance.purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetStatementsPaymentSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestListPurchaseInvoicesSummaryRequest *actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// PurchaseInvoice_GetStatementsPaymentSummary
[apiInstance purchaseInvoiceGetStatementsPaymentSummaryWith:actionRequestListPurchaseInvoicesSummaryRequest
              completionHandler: ^(PagedActionResults_PurchaseInvoicesPaymentSummaryResponse_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'actionRequestListPurchaseInvoicesSummaryRequest': {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestListPurchaseInvoicesSummaryRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetStatementsPaymentSummary(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetStatementsPaymentSummaryExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var actionRequestListPurchaseInvoicesSummaryRequest = new ActionRequestListPurchaseInvoicesSummaryRequest(); // ActionRequestListPurchaseInvoicesSummaryRequest |  (optional) 

            try {
                // PurchaseInvoice_GetStatementsPaymentSummary
                PagedActionResults_PurchaseInvoicesPaymentSummaryResponse_ result = apiInstance.purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetStatementsPaymentSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListPurchaseInvoicesSummaryRequest | 

try {
    $result = $api_instance->purchaseInvoiceGetStatementsPaymentSummary($actionRequestListPurchaseInvoicesSummaryRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetStatementsPaymentSummary: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $actionRequestListPurchaseInvoicesSummaryRequest = WWW::OPenAPIClient::Object::ActionRequestListPurchaseInvoicesSummaryRequest->new(); # ActionRequestListPurchaseInvoicesSummaryRequest | 

eval {
    my $result = $api_instance->purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest => $actionRequestListPurchaseInvoicesSummaryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetStatementsPaymentSummary: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestListPurchaseInvoicesSummaryRequest |  (optional)

try:
    # PurchaseInvoice_GetStatementsPaymentSummary
    api_response = api_instance.purchase_invoice_get_statements_payment_summary(actionRequestListPurchaseInvoicesSummaryRequest=actionRequestListPurchaseInvoicesSummaryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetStatementsPaymentSummary: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let actionRequestListPurchaseInvoicesSummaryRequest = {"Value":[{"SupplierID":0,"Allselected":true,"FilterID":[0],"PurchaseInvoicesID":[0]}],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListPurchaseInvoicesSummaryRequest

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetStatementsPaymentSummary(actionRequestListPurchaseInvoicesSummaryRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
actionRequestListPurchaseInvoicesSummaryRequest

Responses


purchaseInvoiceGetSupplierStatements

PurchaseInvoice_GetSupplierStatements


/PurchaseInvoice/supplier/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/supplier/{id}?filter.linkedSupplierID=56&filter.linkedSupplierIDs=&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.requestedList=56&filter.linkedSupplierUtcOffset=56&filter.persistRquestedList=true&filter.timelineGroup=56&filter.showLinkedDocument=true&filter.sortField=filterPeriodsortField_example&filter.searchString=filterPeriodsearchString_example&filter.sortAsc=true&filter.startRow=56&filter.maxResults=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetSupplierStatements(id, filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetSupplierStatements");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | 
final array[Integer] filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] | 
final Date filterPeriodstartDate = new Date(); // Date | 
final Date filterPeriodendDate = new Date(); // Date | 
final Integer filterPeriodrequestedList = new Integer(); // Integer | 
final Integer filterPeriodlinkedSupplierUtcOffset = new Integer(); // Integer | 
final Boolean filterPeriodpersistRquestedList = new Boolean(); // Boolean | 
final Integer filterPeriodtimelineGroup = new Integer(); // Integer | 
final Boolean filterPeriodshowLinkedDocument = new Boolean(); // Boolean | 
final String filterPeriodsortField = new String(); // String | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final Integer filterPeriodstartRow = new Integer(); // Integer | 
final Integer filterPeriodmaxResults = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceGetSupplierStatements(id, filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetSupplierStatements: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetSupplierStatements(id, filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetSupplierStatements");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
Integer *filterPeriodlinkedSupplierID = 56; //  (optional) (default to null)
array[Integer] *filterPeriodlinkedSupplierIDs = ; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Integer *filterPeriodrequestedList = 56; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierUtcOffset = 56; //  (optional) (default to null)
Boolean *filterPeriodpersistRquestedList = true; //  (optional) (default to null)
Integer *filterPeriodtimelineGroup = 56; //  (optional) (default to null)
Boolean *filterPeriodshowLinkedDocument = true; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
Integer *filterPeriodstartRow = 56; //  (optional) (default to null)
Integer *filterPeriodmaxResults = 56; //  (optional) (default to null)

// PurchaseInvoice_GetSupplierStatements
[apiInstance purchaseInvoiceGetSupplierStatementsWith:id
    filterPeriodlinkedSupplierID:filterPeriodlinkedSupplierID
    filterPeriodlinkedSupplierIDs:filterPeriodlinkedSupplierIDs
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPeriodrequestedList:filterPeriodrequestedList
    filterPeriodlinkedSupplierUtcOffset:filterPeriodlinkedSupplierUtcOffset
    filterPeriodpersistRquestedList:filterPeriodpersistRquestedList
    filterPeriodtimelineGroup:filterPeriodtimelineGroup
    filterPeriodshowLinkedDocument:filterPeriodshowLinkedDocument
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodstartRow:filterPeriodstartRow
    filterPeriodmaxResults:filterPeriodmaxResults
              completionHandler: ^(PagedActionResults_SupplierStatements_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'filterPeriodlinkedSupplierID': 56, // {Integer} 
  'filterPeriodlinkedSupplierIDs': , // {array[Integer]} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodrequestedList': 56, // {Integer} 
  'filterPeriodlinkedSupplierUtcOffset': 56, // {Integer} 
  'filterPeriodpersistRquestedList': true, // {Boolean} 
  'filterPeriodtimelineGroup': 56, // {Integer} 
  'filterPeriodshowLinkedDocument': true, // {Boolean} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodstartRow': 56, // {Integer} 
  'filterPeriodmaxResults': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetSupplierStatements(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetSupplierStatementsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var filterPeriodlinkedSupplierID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodrequestedList = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierUtcOffset = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodpersistRquestedList = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtimelineGroup = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodshowLinkedDocument = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodstartRow = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer |  (optional)  (default to null)

            try {
                // PurchaseInvoice_GetSupplierStatements
                PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetSupplierStatements(id, filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetSupplierStatements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$filterPeriodlinkedSupplierID = 56; // Integer | 
$filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodrequestedList = 56; // Integer | 
$filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
$filterPeriodpersistRquestedList = true; // Boolean | 
$filterPeriodtimelineGroup = 56; // Integer | 
$filterPeriodshowLinkedDocument = true; // Boolean | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodstartRow = 56; // Integer | 
$filterPeriodmaxResults = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceGetSupplierStatements($id, $filterPeriodlinkedSupplierID, $filterPeriodlinkedSupplierIDs, $filterPeriodstartDate, $filterPeriodendDate, $filterPeriodrequestedList, $filterPeriodlinkedSupplierUtcOffset, $filterPeriodpersistRquestedList, $filterPeriodtimelineGroup, $filterPeriodshowLinkedDocument, $filterPeriodsortField, $filterPeriodsearchString, $filterPeriodsortAsc, $filterPeriodstartRow, $filterPeriodmaxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetSupplierStatements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $filterPeriodlinkedSupplierID = 56; # Integer | 
my $filterPeriodlinkedSupplierIDs = []; # array[Integer] | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodrequestedList = 56; # Integer | 
my $filterPeriodlinkedSupplierUtcOffset = 56; # Integer | 
my $filterPeriodpersistRquestedList = true; # Boolean | 
my $filterPeriodtimelineGroup = 56; # Integer | 
my $filterPeriodshowLinkedDocument = true; # Boolean | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodstartRow = 56; # Integer | 
my $filterPeriodmaxResults = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceGetSupplierStatements(id => $id, filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs => $filterPeriodlinkedSupplierIDs, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPeriodrequestedList => $filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset => $filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList => $filterPeriodpersistRquestedList, filterPeriodtimelineGroup => $filterPeriodtimelineGroup, filterPeriodshowLinkedDocument => $filterPeriodshowLinkedDocument, filterPeriodsortField => $filterPeriodsortField, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodstartRow => $filterPeriodstartRow, filterPeriodmaxResults => $filterPeriodmaxResults);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetSupplierStatements: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
filterPeriodlinkedSupplierID = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodrequestedList = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierUtcOffset = 56 # Integer |  (optional) (default to null)
filterPeriodpersistRquestedList = true # Boolean |  (optional) (default to null)
filterPeriodtimelineGroup = 56 # Integer |  (optional) (default to null)
filterPeriodshowLinkedDocument = true # Boolean |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodstartRow = 56 # Integer |  (optional) (default to null)
filterPeriodmaxResults = 56 # Integer |  (optional) (default to null)

try:
    # PurchaseInvoice_GetSupplierStatements
    api_response = api_instance.purchase_invoice_get_supplier_statements(id, filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs=filterPeriodlinkedSupplierIDs, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPeriodrequestedList=filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset=filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList=filterPeriodpersistRquestedList, filterPeriodtimelineGroup=filterPeriodtimelineGroup, filterPeriodshowLinkedDocument=filterPeriodshowLinkedDocument, filterPeriodsortField=filterPeriodsortField, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodstartRow=filterPeriodstartRow, filterPeriodmaxResults=filterPeriodmaxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetSupplierStatements: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodlinkedSupplierIDs = ; // array[Integer]
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodrequestedList = 56; // Integer
    let filterPeriodlinkedSupplierUtcOffset = 56; // Integer
    let filterPeriodpersistRquestedList = true; // Boolean
    let filterPeriodtimelineGroup = 56; // Integer
    let filterPeriodshowLinkedDocument = true; // Boolean
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodstartRow = 56; // Integer
    let filterPeriodmaxResults = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetSupplierStatements(id, filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
filter.linkedSupplierID
Integer (int32)
filter.linkedSupplierIDs
array[Integer] (int32)
filter.startDate
Date (date-time)
filter.endDate
Date (date-time)
filter.requestedList
Integer (int32)
filter.linkedSupplierUtcOffset
Integer (int32)
filter.persistRquestedList
Boolean
filter.timelineGroup
Integer (int32)
filter.showLinkedDocument
Boolean
filter.sortField
String
filter.searchString
String
filter.sortAsc
Boolean
filter.startRow
Integer (int32)
filter.maxResults
Integer (int32)

Responses


purchaseInvoiceGetallSupplierStatements

PurchaseInvoice_GetallSupplierStatements


/PurchaseInvoice/supplier

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/supplier?filter.linkedSupplierID=56&filter.linkedSupplierIDs=&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.requestedList=56&filter.linkedSupplierUtcOffset=56&filter.persistRquestedList=true&filter.timelineGroup=56&filter.showLinkedDocument=true&filter.sortField=filterPeriodsortField_example&filter.searchString=filterPeriodsearchString_example&filter.sortAsc=true&filter.startRow=56&filter.maxResults=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetallSupplierStatements");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | 
final array[Integer] filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] | 
final Date filterPeriodstartDate = new Date(); // Date | 
final Date filterPeriodendDate = new Date(); // Date | 
final Integer filterPeriodrequestedList = new Integer(); // Integer | 
final Integer filterPeriodlinkedSupplierUtcOffset = new Integer(); // Integer | 
final Boolean filterPeriodpersistRquestedList = new Boolean(); // Boolean | 
final Integer filterPeriodtimelineGroup = new Integer(); // Integer | 
final Boolean filterPeriodshowLinkedDocument = new Boolean(); // Boolean | 
final String filterPeriodsortField = new String(); // String | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final Integer filterPeriodstartRow = new Integer(); // Integer | 
final Integer filterPeriodmaxResults = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceGetallSupplierStatements: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceGetallSupplierStatements");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodlinkedSupplierID = 56; //  (optional) (default to null)
array[Integer] *filterPeriodlinkedSupplierIDs = ; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Integer *filterPeriodrequestedList = 56; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierUtcOffset = 56; //  (optional) (default to null)
Boolean *filterPeriodpersistRquestedList = true; //  (optional) (default to null)
Integer *filterPeriodtimelineGroup = 56; //  (optional) (default to null)
Boolean *filterPeriodshowLinkedDocument = true; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
Integer *filterPeriodstartRow = 56; //  (optional) (default to null)
Integer *filterPeriodmaxResults = 56; //  (optional) (default to null)

// PurchaseInvoice_GetallSupplierStatements
[apiInstance purchaseInvoiceGetallSupplierStatementsWith:filterPeriodlinkedSupplierID
    filterPeriodlinkedSupplierIDs:filterPeriodlinkedSupplierIDs
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPeriodrequestedList:filterPeriodrequestedList
    filterPeriodlinkedSupplierUtcOffset:filterPeriodlinkedSupplierUtcOffset
    filterPeriodpersistRquestedList:filterPeriodpersistRquestedList
    filterPeriodtimelineGroup:filterPeriodtimelineGroup
    filterPeriodshowLinkedDocument:filterPeriodshowLinkedDocument
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodstartRow:filterPeriodstartRow
    filterPeriodmaxResults:filterPeriodmaxResults
              completionHandler: ^(PagedActionResults_SupplierStatements_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'filterPeriodlinkedSupplierID': 56, // {Integer} 
  'filterPeriodlinkedSupplierIDs': , // {array[Integer]} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodrequestedList': 56, // {Integer} 
  'filterPeriodlinkedSupplierUtcOffset': 56, // {Integer} 
  'filterPeriodpersistRquestedList': true, // {Boolean} 
  'filterPeriodtimelineGroup': 56, // {Integer} 
  'filterPeriodshowLinkedDocument': true, // {Boolean} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodstartRow': 56, // {Integer} 
  'filterPeriodmaxResults': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceGetallSupplierStatements(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceGetallSupplierStatementsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodlinkedSupplierID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodrequestedList = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierUtcOffset = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodpersistRquestedList = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtimelineGroup = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodshowLinkedDocument = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodstartRow = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer |  (optional)  (default to null)

            try {
                // PurchaseInvoice_GetallSupplierStatements
                PagedActionResults_SupplierStatements_ result = apiInstance.purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceGetallSupplierStatements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodlinkedSupplierID = 56; // Integer | 
$filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodrequestedList = 56; // Integer | 
$filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
$filterPeriodpersistRquestedList = true; // Boolean | 
$filterPeriodtimelineGroup = 56; // Integer | 
$filterPeriodshowLinkedDocument = true; // Boolean | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodstartRow = 56; // Integer | 
$filterPeriodmaxResults = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoiceGetallSupplierStatements($filterPeriodlinkedSupplierID, $filterPeriodlinkedSupplierIDs, $filterPeriodstartDate, $filterPeriodendDate, $filterPeriodrequestedList, $filterPeriodlinkedSupplierUtcOffset, $filterPeriodpersistRquestedList, $filterPeriodtimelineGroup, $filterPeriodshowLinkedDocument, $filterPeriodsortField, $filterPeriodsearchString, $filterPeriodsortAsc, $filterPeriodstartRow, $filterPeriodmaxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceGetallSupplierStatements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $filterPeriodlinkedSupplierID = 56; # Integer | 
my $filterPeriodlinkedSupplierIDs = []; # array[Integer] | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodrequestedList = 56; # Integer | 
my $filterPeriodlinkedSupplierUtcOffset = 56; # Integer | 
my $filterPeriodpersistRquestedList = true; # Boolean | 
my $filterPeriodtimelineGroup = 56; # Integer | 
my $filterPeriodshowLinkedDocument = true; # Boolean | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodstartRow = 56; # Integer | 
my $filterPeriodmaxResults = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs => $filterPeriodlinkedSupplierIDs, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPeriodrequestedList => $filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset => $filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList => $filterPeriodpersistRquestedList, filterPeriodtimelineGroup => $filterPeriodtimelineGroup, filterPeriodshowLinkedDocument => $filterPeriodshowLinkedDocument, filterPeriodsortField => $filterPeriodsortField, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodstartRow => $filterPeriodstartRow, filterPeriodmaxResults => $filterPeriodmaxResults);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceGetallSupplierStatements: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
filterPeriodlinkedSupplierID = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodrequestedList = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierUtcOffset = 56 # Integer |  (optional) (default to null)
filterPeriodpersistRquestedList = true # Boolean |  (optional) (default to null)
filterPeriodtimelineGroup = 56 # Integer |  (optional) (default to null)
filterPeriodshowLinkedDocument = true # Boolean |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodstartRow = 56 # Integer |  (optional) (default to null)
filterPeriodmaxResults = 56 # Integer |  (optional) (default to null)

try:
    # PurchaseInvoice_GetallSupplierStatements
    api_response = api_instance.purchase_invoice_getall_supplier_statements(filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs=filterPeriodlinkedSupplierIDs, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPeriodrequestedList=filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset=filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList=filterPeriodpersistRquestedList, filterPeriodtimelineGroup=filterPeriodtimelineGroup, filterPeriodshowLinkedDocument=filterPeriodshowLinkedDocument, filterPeriodsortField=filterPeriodsortField, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodstartRow=filterPeriodstartRow, filterPeriodmaxResults=filterPeriodmaxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceGetallSupplierStatements: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodlinkedSupplierIDs = ; // array[Integer]
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodrequestedList = 56; // Integer
    let filterPeriodlinkedSupplierUtcOffset = 56; // Integer
    let filterPeriodpersistRquestedList = true; // Boolean
    let filterPeriodtimelineGroup = 56; // Integer
    let filterPeriodshowLinkedDocument = true; // Boolean
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodstartRow = 56; // Integer
    let filterPeriodmaxResults = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceGetallSupplierStatements(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
filter.linkedSupplierID
Integer (int32)
filter.linkedSupplierIDs
array[Integer] (int32)
filter.startDate
Date (date-time)
filter.endDate
Date (date-time)
filter.requestedList
Integer (int32)
filter.linkedSupplierUtcOffset
Integer (int32)
filter.persistRquestedList
Boolean
filter.timelineGroup
Integer (int32)
filter.showLinkedDocument
Boolean
filter.sortField
String
filter.searchString
String
filter.sortAsc
Boolean
filter.startRow
Integer (int32)
filter.maxResults
Integer (int32)

Responses


purchaseInvoicePartialUpdate

PurchaseInvoice_PartialUpdate


/PurchaseInvoice/{id}

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        ActionRequestPurchaseInvoiceT actionRequestPurchaseInvoiceT = ; // ActionRequestPurchaseInvoiceT | 

        try {
            ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoicePartialUpdate(id, actionRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePartialUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ActionRequestPurchaseInvoiceT actionRequestPurchaseInvoiceT = new ActionRequestPurchaseInvoiceT(); // ActionRequestPurchaseInvoiceT | 

try {
    final result = await api_instance.purchaseInvoicePartialUpdate(id, actionRequestPurchaseInvoiceT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoicePartialUpdate: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        ActionRequestPurchaseInvoiceT actionRequestPurchaseInvoiceT = ; // ActionRequestPurchaseInvoiceT | 

        try {
            ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoicePartialUpdate(id, actionRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePartialUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
ActionRequestPurchaseInvoiceT *actionRequestPurchaseInvoiceT = ; //  (optional)

// PurchaseInvoice_PartialUpdate
[apiInstance purchaseInvoicePartialUpdateWith:id
    actionRequestPurchaseInvoiceT:actionRequestPurchaseInvoiceT
              completionHandler: ^(ActionResults_PurchaseInvoiceT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'actionRequestPurchaseInvoiceT':  // {ActionRequestPurchaseInvoiceT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoicePartialUpdate(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoicePartialUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var actionRequestPurchaseInvoiceT = new ActionRequestPurchaseInvoiceT(); // ActionRequestPurchaseInvoiceT |  (optional) 

            try {
                // PurchaseInvoice_PartialUpdate
                ActionResults_PurchaseInvoiceT_ result = apiInstance.purchaseInvoicePartialUpdate(id, actionRequestPurchaseInvoiceT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoicePartialUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$actionRequestPurchaseInvoiceT = ; // ActionRequestPurchaseInvoiceT | 

try {
    $result = $api_instance->purchaseInvoicePartialUpdate($id, $actionRequestPurchaseInvoiceT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoicePartialUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $actionRequestPurchaseInvoiceT = WWW::OPenAPIClient::Object::ActionRequestPurchaseInvoiceT->new(); # ActionRequestPurchaseInvoiceT | 

eval {
    my $result = $api_instance->purchaseInvoicePartialUpdate(id => $id, actionRequestPurchaseInvoiceT => $actionRequestPurchaseInvoiceT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoicePartialUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
actionRequestPurchaseInvoiceT =  # ActionRequestPurchaseInvoiceT |  (optional)

try:
    # PurchaseInvoice_PartialUpdate
    api_response = api_instance.purchase_invoice_partial_update(id, actionRequestPurchaseInvoiceT=actionRequestPurchaseInvoiceT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoicePartialUpdate: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let actionRequestPurchaseInvoiceT = ; // ActionRequestPurchaseInvoiceT

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoicePartialUpdate(id, actionRequestPurchaseInvoiceT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
actionRequestPurchaseInvoiceT

Responses


purchaseInvoicePayment

PurchaseInvoice_Payment


/PurchaseInvoice/supplier/payment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/supplier/payment" \
 -d '{
  "SupplierResponses" : [ {
    "SupplierID" : 9,
    "SupplierRefNumber" : "SupplierRefNumber",
    "SupplierName" : "SupplierName",
    "TotalTax" : 7.386281948385884,
    "TotalRecords" : 3,
    "SupplierStatements" : [ {
      "StatementStartDate" : "2000-01-23T04:56:07.000+00:00",
      "TransType" : "TransType",
      "IsLinked" : true,
      "SupplierID" : 0,
      "TotalTax" : 9.132027271330688,
      "DueDate" : "2000-01-23T04:56:07.000+00:00",
      "OverDueByNoOfDays" : 1,
      "Status" : "Status",
      "DueInNoOfDays" : 4,
      "RefNumber" : "RefNumber",
      "DatTypeID" : 3,
      "SourceSupplierID" : 6,
      "TotalInc" : 4.678947989005849,
      "Date" : "2000-01-23T04:56:07.000+00:00",
      "NoLines" : 9,
      "RowNumber" : 0,
      "TransGUID" : "TransGUID",
      "SupplierName" : "SupplierName",
      "MarketPlacePath" : "MarketPlacePath",
      "IsPaymentPending" : true,
      "TransID" : 4,
      "TotalExc" : 7.260521264802104,
      "Balance" : 0.8774076871421566,
      "SourceSupplierName" : "SourceSupplierName",
      "StatementEndDate" : "2000-01-23T04:56:07.000+00:00",
      "LinkedDocumentGUID" : "LinkedDocumentGUID"
    }, {
      "StatementStartDate" : "2000-01-23T04:56:07.000+00:00",
      "TransType" : "TransType",
      "IsLinked" : true,
      "SupplierID" : 0,
      "TotalTax" : 9.132027271330688,
      "DueDate" : "2000-01-23T04:56:07.000+00:00",
      "OverDueByNoOfDays" : 1,
      "Status" : "Status",
      "DueInNoOfDays" : 4,
      "RefNumber" : "RefNumber",
      "DatTypeID" : 3,
      "SourceSupplierID" : 6,
      "TotalInc" : 4.678947989005849,
      "Date" : "2000-01-23T04:56:07.000+00:00",
      "NoLines" : 9,
      "RowNumber" : 0,
      "TransGUID" : "TransGUID",
      "SupplierName" : "SupplierName",
      "MarketPlacePath" : "MarketPlacePath",
      "IsPaymentPending" : true,
      "TransID" : 4,
      "TotalExc" : 7.260521264802104,
      "Balance" : 0.8774076871421566,
      "SourceSupplierName" : "SourceSupplierName",
      "StatementEndDate" : "2000-01-23T04:56:07.000+00:00",
      "LinkedDocumentGUID" : "LinkedDocumentGUID"
    } ],
    "TotalInc" : 2.027123023002322,
    "TotalExc" : 4.145608029883936,
    "Balance" : 1.2315135367772556
  }, {
    "SupplierID" : 9,
    "SupplierRefNumber" : "SupplierRefNumber",
    "SupplierName" : "SupplierName",
    "TotalTax" : 7.386281948385884,
    "TotalRecords" : 3,
    "SupplierStatements" : [ {
      "StatementStartDate" : "2000-01-23T04:56:07.000+00:00",
      "TransType" : "TransType",
      "IsLinked" : true,
      "SupplierID" : 0,
      "TotalTax" : 9.132027271330688,
      "DueDate" : "2000-01-23T04:56:07.000+00:00",
      "OverDueByNoOfDays" : 1,
      "Status" : "Status",
      "DueInNoOfDays" : 4,
      "RefNumber" : "RefNumber",
      "DatTypeID" : 3,
      "SourceSupplierID" : 6,
      "TotalInc" : 4.678947989005849,
      "Date" : "2000-01-23T04:56:07.000+00:00",
      "NoLines" : 9,
      "RowNumber" : 0,
      "TransGUID" : "TransGUID",
      "SupplierName" : "SupplierName",
      "MarketPlacePath" : "MarketPlacePath",
      "IsPaymentPending" : true,
      "TransID" : 4,
      "TotalExc" : 7.260521264802104,
      "Balance" : 0.8774076871421566,
      "SourceSupplierName" : "SourceSupplierName",
      "StatementEndDate" : "2000-01-23T04:56:07.000+00:00",
      "LinkedDocumentGUID" : "LinkedDocumentGUID"
    }, {
      "StatementStartDate" : "2000-01-23T04:56:07.000+00:00",
      "TransType" : "TransType",
      "IsLinked" : true,
      "SupplierID" : 0,
      "TotalTax" : 9.132027271330688,
      "DueDate" : "2000-01-23T04:56:07.000+00:00",
      "OverDueByNoOfDays" : 1,
      "Status" : "Status",
      "DueInNoOfDays" : 4,
      "RefNumber" : "RefNumber",
      "DatTypeID" : 3,
      "SourceSupplierID" : 6,
      "TotalInc" : 4.678947989005849,
      "Date" : "2000-01-23T04:56:07.000+00:00",
      "NoLines" : 9,
      "RowNumber" : 0,
      "TransGUID" : "TransGUID",
      "SupplierName" : "SupplierName",
      "MarketPlacePath" : "MarketPlacePath",
      "IsPaymentPending" : true,
      "TransID" : 4,
      "TotalExc" : 7.260521264802104,
      "Balance" : 0.8774076871421566,
      "SourceSupplierName" : "SourceSupplierName",
      "StatementEndDate" : "2000-01-23T04:56:07.000+00:00",
      "LinkedDocumentGUID" : "LinkedDocumentGUID"
    } ],
    "TotalInc" : 2.027123023002322,
    "TotalExc" : 4.145608029883936,
    "Balance" : 1.2315135367772556
  } ],
  "TotalGSTAmount" : 2.3021358869347655,
  "TotalRecords" : 7,
  "PaymentMethod" : "PaymentMethod",
  "TotalAmount" : 5.962133916683182,
  "SubTotalAmount" : 5.637376656633329,
  "CreditCard" : {
    "CardNumber" : "CardNumber",
    "CardToken" : "CardToken",
    "ExpiryMMYY" : "ExpiryMMYY",
    "FriendlyName" : "FriendlyName",
    "CardType" : "CardType",
    "CardHolderName" : "CardHolderName",
    "CardVerificationNumber" : "CardVerificationNumber"
  }
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<PurchaseInvoicesPaymentSummaryResponse>
  <TotalAmount>3.149</TotalAmount>
  <SubTotalAmount>3.149</SubTotalAmount>
  <TotalGSTAmount>3.149</TotalGSTAmount>
  <TotalRecords>123</TotalRecords>
  <PaymentMethod>aeiou</PaymentMethod>
  <null>
    <SupplierID>123</SupplierID>
    <SupplierRefNumber>aeiou</SupplierRefNumber>
    <SupplierName>aeiou</SupplierName>
    <TotalRecords>123</TotalRecords>
    <TotalInc>3.149</TotalInc>
    <TotalExc>3.149</TotalExc>
    <TotalTax>3.149</TotalTax>
    <Balance>3.149</Balance>
  </null>
  <null>
    <CardType>aeiou</CardType>
    <CardNumber>aeiou</CardNumber>
    <CardHolderName>aeiou</CardHolderName>
    <ExpiryMMYY>aeiou</ExpiryMMYY>
    <CardVerificationNumber>aeiou</CardVerificationNumber>
    <FriendlyName>aeiou</FriendlyName>
    <CardToken>aeiou</CardToken>
  </null>
</PurchaseInvoicesPaymentSummaryResponse>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        PurchaseInvoicesPaymentSummaryResponse purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}}; // PurchaseInvoicesPaymentSummaryResponse | 

        try {
            PurchaseInvoicesPaymentsResponse result = apiInstance.purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePayment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PurchaseInvoicesPaymentSummaryResponse purchaseInvoicesPaymentSummaryResponse = new PurchaseInvoicesPaymentSummaryResponse(); // PurchaseInvoicesPaymentSummaryResponse | 

try {
    final result = await api_instance.purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoicePayment: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        PurchaseInvoicesPaymentSummaryResponse purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}}; // PurchaseInvoicesPaymentSummaryResponse | 

        try {
            PurchaseInvoicesPaymentsResponse result = apiInstance.purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePayment");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
PurchaseInvoicesPaymentSummaryResponse *purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}}; //  (optional)

// PurchaseInvoice_Payment
[apiInstance purchaseInvoicePaymentWith:purchaseInvoicesPaymentSummaryResponse
              completionHandler: ^(PurchaseInvoicesPaymentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'purchaseInvoicesPaymentSummaryResponse': {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}} // {PurchaseInvoicesPaymentSummaryResponse} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoicePayment(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoicePaymentExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var purchaseInvoicesPaymentSummaryResponse = new PurchaseInvoicesPaymentSummaryResponse(); // PurchaseInvoicesPaymentSummaryResponse |  (optional) 

            try {
                // PurchaseInvoice_Payment
                PurchaseInvoicesPaymentsResponse result = apiInstance.purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoicePayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}}; // PurchaseInvoicesPaymentSummaryResponse | 

try {
    $result = $api_instance->purchaseInvoicePayment($purchaseInvoicesPaymentSummaryResponse);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoicePayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $purchaseInvoicesPaymentSummaryResponse = WWW::OPenAPIClient::Object::PurchaseInvoicesPaymentSummaryResponse->new(); # PurchaseInvoicesPaymentSummaryResponse | 

eval {
    my $result = $api_instance->purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse => $purchaseInvoicesPaymentSummaryResponse);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoicePayment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}} # PurchaseInvoicesPaymentSummaryResponse |  (optional)

try:
    # PurchaseInvoice_Payment
    api_response = api_instance.purchase_invoice_payment(purchaseInvoicesPaymentSummaryResponse=purchaseInvoicesPaymentSummaryResponse)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoicePayment: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let purchaseInvoicesPaymentSummaryResponse = {"TotalAmount":0,"SubTotalAmount":0,"TotalGSTAmount":0,"TotalRecords":0,"PaymentMethod":"string","SupplierResponses":[{"SupplierID":0,"SupplierRefNumber":"string","SupplierName":"string","TotalRecords":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"SupplierStatements":[{"DatTypeID":0,"TransType":"string","TransID":0,"TransGUID":"string","RefNumber":"string","SupplierID":0,"SupplierName":"string","SourceSupplierID":0,"SourceSupplierName":"string","Status":"string","Date":"string","DueDate":"string","DueInNoOfDays":0,"OverDueByNoOfDays":0,"TotalInc":0,"TotalExc":0,"TotalTax":0,"Balance":0,"NoLines":0,"IsPaymentPending":true,"IsLinked":true,"MarketPlacePath":"string","LinkedDocumentGUID":"string","RowNumber":0,"StatementStartDate":"string","StatementEndDate":"string"}]}],"CreditCard":{"CardType":"string","CardNumber":"string","CardHolderName":"string","ExpiryMMYY":"string","CardVerificationNumber":"string","FriendlyName":"string","CardToken":"string"}}; // PurchaseInvoicesPaymentSummaryResponse

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoicePayment(purchaseInvoicesPaymentSummaryResponse, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
purchaseInvoicesPaymentSummaryResponse

Responses


purchaseInvoicePost

PurchaseInvoice_Post


/PurchaseInvoice/

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

        try {
            SynkSaveQueueResponse result = apiInstance.purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = new TransactionSaveRequestPurchaseInvoiceT(); // TransactionSaveRequestPurchaseInvoiceT | 

try {
    final result = await api_instance.purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoicePost: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

        try {
            SynkSaveQueueResponse result = apiInstance.purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TransactionSaveRequestPurchaseInvoiceT *transactionSaveRequestPurchaseInvoiceT = ; //  (optional)

// PurchaseInvoice_Post
[apiInstance purchaseInvoicePostWith:transactionSaveRequestPurchaseInvoiceT
              completionHandler: ^(SynkSaveQueueResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'transactionSaveRequestPurchaseInvoiceT':  // {TransactionSaveRequestPurchaseInvoiceT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoicePost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoicePostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var transactionSaveRequestPurchaseInvoiceT = new TransactionSaveRequestPurchaseInvoiceT(); // TransactionSaveRequestPurchaseInvoiceT |  (optional) 

            try {
                // PurchaseInvoice_Post
                SynkSaveQueueResponse result = apiInstance.purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoicePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

try {
    $result = $api_instance->purchaseInvoicePost($transactionSaveRequestPurchaseInvoiceT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoicePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $transactionSaveRequestPurchaseInvoiceT = WWW::OPenAPIClient::Object::TransactionSaveRequestPurchaseInvoiceT->new(); # TransactionSaveRequestPurchaseInvoiceT | 

eval {
    my $result = $api_instance->purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT => $transactionSaveRequestPurchaseInvoiceT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoicePost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
transactionSaveRequestPurchaseInvoiceT =  # TransactionSaveRequestPurchaseInvoiceT |  (optional)

try:
    # PurchaseInvoice_Post
    api_response = api_instance.purchase_invoice_post(transactionSaveRequestPurchaseInvoiceT=transactionSaveRequestPurchaseInvoiceT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoicePost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoicePost(transactionSaveRequestPurchaseInvoiceT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
transactionSaveRequestPurchaseInvoiceT

Responses


purchaseInvoicePurchaseInvoiceSummary

PurchaseInvoice_PurchaseInvoiceSummary


/PurchaseInvoice/supplier/summary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/supplier/summary?filter.linkedSupplierID=56&filter.linkedSupplierIDs=&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.requestedList=56&filter.linkedSupplierUtcOffset=56&filter.persistRquestedList=true&filter.timelineGroup=56&filter.showLinkedDocument=true&filter.sortField=filterPeriodsortField_example&filter.searchString=filterPeriodsearchString_example&filter.sortAsc=true&filter.startRow=56&filter.maxResults=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatementSummaries_ result = apiInstance.purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePurchaseInvoiceSummary");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | 
final array[Integer] filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] | 
final Date filterPeriodstartDate = new Date(); // Date | 
final Date filterPeriodendDate = new Date(); // Date | 
final Integer filterPeriodrequestedList = new Integer(); // Integer | 
final Integer filterPeriodlinkedSupplierUtcOffset = new Integer(); // Integer | 
final Boolean filterPeriodpersistRquestedList = new Boolean(); // Boolean | 
final Integer filterPeriodtimelineGroup = new Integer(); // Integer | 
final Boolean filterPeriodshowLinkedDocument = new Boolean(); // Boolean | 
final String filterPeriodsortField = new String(); // String | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final Integer filterPeriodstartRow = new Integer(); // Integer | 
final Integer filterPeriodmaxResults = new Integer(); // Integer | 

try {
    final result = await api_instance.purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoicePurchaseInvoiceSummary: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodlinkedSupplierID = 56; // Integer | 
        array[Integer] filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer filterPeriodrequestedList = 56; // Integer | 
        Integer filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
        Boolean filterPeriodpersistRquestedList = true; // Boolean | 
        Integer filterPeriodtimelineGroup = 56; // Integer | 
        Boolean filterPeriodshowLinkedDocument = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodstartRow = 56; // Integer | 
        Integer filterPeriodmaxResults = 56; // Integer | 

        try {
            PagedActionResults_SupplierStatementSummaries_ result = apiInstance.purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePurchaseInvoiceSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodlinkedSupplierID = 56; //  (optional) (default to null)
array[Integer] *filterPeriodlinkedSupplierIDs = ; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Integer *filterPeriodrequestedList = 56; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierUtcOffset = 56; //  (optional) (default to null)
Boolean *filterPeriodpersistRquestedList = true; //  (optional) (default to null)
Integer *filterPeriodtimelineGroup = 56; //  (optional) (default to null)
Boolean *filterPeriodshowLinkedDocument = true; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
Integer *filterPeriodstartRow = 56; //  (optional) (default to null)
Integer *filterPeriodmaxResults = 56; //  (optional) (default to null)

// PurchaseInvoice_PurchaseInvoiceSummary
[apiInstance purchaseInvoicePurchaseInvoiceSummaryWith:filterPeriodlinkedSupplierID
    filterPeriodlinkedSupplierIDs:filterPeriodlinkedSupplierIDs
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPeriodrequestedList:filterPeriodrequestedList
    filterPeriodlinkedSupplierUtcOffset:filterPeriodlinkedSupplierUtcOffset
    filterPeriodpersistRquestedList:filterPeriodpersistRquestedList
    filterPeriodtimelineGroup:filterPeriodtimelineGroup
    filterPeriodshowLinkedDocument:filterPeriodshowLinkedDocument
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodstartRow:filterPeriodstartRow
    filterPeriodmaxResults:filterPeriodmaxResults
              completionHandler: ^(PagedActionResults_SupplierStatementSummaries_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var opts = {
  'filterPeriodlinkedSupplierID': 56, // {Integer} 
  'filterPeriodlinkedSupplierIDs': , // {array[Integer]} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'filterPeriodrequestedList': 56, // {Integer} 
  'filterPeriodlinkedSupplierUtcOffset': 56, // {Integer} 
  'filterPeriodpersistRquestedList': true, // {Boolean} 
  'filterPeriodtimelineGroup': 56, // {Integer} 
  'filterPeriodshowLinkedDocument': true, // {Boolean} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodstartRow': 56, // {Integer} 
  'filterPeriodmaxResults': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoicePurchaseInvoiceSummary(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoicePurchaseInvoiceSummaryExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodlinkedSupplierID = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var filterPeriodrequestedList = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodlinkedSupplierUtcOffset = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodpersistRquestedList = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtimelineGroup = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodshowLinkedDocument = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodstartRow = 56;  // Integer |  (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer |  (optional)  (default to null)

            try {
                // PurchaseInvoice_PurchaseInvoiceSummary
                PagedActionResults_SupplierStatementSummaries_ result = apiInstance.purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoicePurchaseInvoiceSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodlinkedSupplierID = 56; // Integer | 
$filterPeriodlinkedSupplierIDs = ; // array[Integer] | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | 
$filterPeriodrequestedList = 56; // Integer | 
$filterPeriodlinkedSupplierUtcOffset = 56; // Integer | 
$filterPeriodpersistRquestedList = true; // Boolean | 
$filterPeriodtimelineGroup = 56; // Integer | 
$filterPeriodshowLinkedDocument = true; // Boolean | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodstartRow = 56; // Integer | 
$filterPeriodmaxResults = 56; // Integer | 

try {
    $result = $api_instance->purchaseInvoicePurchaseInvoiceSummary($filterPeriodlinkedSupplierID, $filterPeriodlinkedSupplierIDs, $filterPeriodstartDate, $filterPeriodendDate, $filterPeriodrequestedList, $filterPeriodlinkedSupplierUtcOffset, $filterPeriodpersistRquestedList, $filterPeriodtimelineGroup, $filterPeriodshowLinkedDocument, $filterPeriodsortField, $filterPeriodsearchString, $filterPeriodsortAsc, $filterPeriodstartRow, $filterPeriodmaxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoicePurchaseInvoiceSummary: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $filterPeriodlinkedSupplierID = 56; # Integer | 
my $filterPeriodlinkedSupplierIDs = []; # array[Integer] | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | 
my $filterPeriodrequestedList = 56; # Integer | 
my $filterPeriodlinkedSupplierUtcOffset = 56; # Integer | 
my $filterPeriodpersistRquestedList = true; # Boolean | 
my $filterPeriodtimelineGroup = 56; # Integer | 
my $filterPeriodshowLinkedDocument = true; # Boolean | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodstartRow = 56; # Integer | 
my $filterPeriodmaxResults = 56; # Integer | 

eval {
    my $result = $api_instance->purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs => $filterPeriodlinkedSupplierIDs, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPeriodrequestedList => $filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset => $filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList => $filterPeriodpersistRquestedList, filterPeriodtimelineGroup => $filterPeriodtimelineGroup, filterPeriodshowLinkedDocument => $filterPeriodshowLinkedDocument, filterPeriodsortField => $filterPeriodsortField, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodstartRow => $filterPeriodstartRow, filterPeriodmaxResults => $filterPeriodmaxResults);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoicePurchaseInvoiceSummary: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
filterPeriodlinkedSupplierID = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
filterPeriodrequestedList = 56 # Integer |  (optional) (default to null)
filterPeriodlinkedSupplierUtcOffset = 56 # Integer |  (optional) (default to null)
filterPeriodpersistRquestedList = true # Boolean |  (optional) (default to null)
filterPeriodtimelineGroup = 56 # Integer |  (optional) (default to null)
filterPeriodshowLinkedDocument = true # Boolean |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodstartRow = 56 # Integer |  (optional) (default to null)
filterPeriodmaxResults = 56 # Integer |  (optional) (default to null)

try:
    # PurchaseInvoice_PurchaseInvoiceSummary
    api_response = api_instance.purchase_invoice_purchase_invoice_summary(filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs=filterPeriodlinkedSupplierIDs, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPeriodrequestedList=filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset=filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList=filterPeriodpersistRquestedList, filterPeriodtimelineGroup=filterPeriodtimelineGroup, filterPeriodshowLinkedDocument=filterPeriodshowLinkedDocument, filterPeriodsortField=filterPeriodsortField, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodstartRow=filterPeriodstartRow, filterPeriodmaxResults=filterPeriodmaxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoicePurchaseInvoiceSummary: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodlinkedSupplierIDs = ; // array[Integer]
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodrequestedList = 56; // Integer
    let filterPeriodlinkedSupplierUtcOffset = 56; // Integer
    let filterPeriodpersistRquestedList = true; // Boolean
    let filterPeriodtimelineGroup = 56; // Integer
    let filterPeriodshowLinkedDocument = true; // Boolean
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodstartRow = 56; // Integer
    let filterPeriodmaxResults = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoicePurchaseInvoiceSummary(filterPeriodlinkedSupplierID, filterPeriodlinkedSupplierIDs, filterPeriodstartDate, filterPeriodendDate, filterPeriodrequestedList, filterPeriodlinkedSupplierUtcOffset, filterPeriodpersistRquestedList, filterPeriodtimelineGroup, filterPeriodshowLinkedDocument, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodstartRow, filterPeriodmaxResults, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
filter.linkedSupplierID
Integer (int32)
filter.linkedSupplierIDs
array[Integer] (int32)
filter.startDate
Date (date-time)
filter.endDate
Date (date-time)
filter.requestedList
Integer (int32)
filter.linkedSupplierUtcOffset
Integer (int32)
filter.persistRquestedList
Boolean
filter.timelineGroup
Integer (int32)
filter.showLinkedDocument
Boolean
filter.sortField
String
filter.searchString
String
filter.sortAsc
Boolean
filter.startRow
Integer (int32)
filter.maxResults
Integer (int32)

Responses


purchaseInvoicePut

PurchaseInvoice_Put


/PurchaseInvoice/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

        try {
            SynkSaveQueueResponse result = apiInstance.purchaseInvoicePut(id, transactionSaveRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = new TransactionSaveRequestPurchaseInvoiceT(); // TransactionSaveRequestPurchaseInvoiceT | 

try {
    final result = await api_instance.purchaseInvoicePut(id, transactionSaveRequestPurchaseInvoiceT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoicePut: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        TransactionSaveRequestPurchaseInvoiceT transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

        try {
            SynkSaveQueueResponse result = apiInstance.purchaseInvoicePut(id, transactionSaveRequestPurchaseInvoiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoicePut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
TransactionSaveRequestPurchaseInvoiceT *transactionSaveRequestPurchaseInvoiceT = ; //  (optional)

// PurchaseInvoice_Put
[apiInstance purchaseInvoicePutWith:id
    transactionSaveRequestPurchaseInvoiceT:transactionSaveRequestPurchaseInvoiceT
              completionHandler: ^(SynkSaveQueueResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'transactionSaveRequestPurchaseInvoiceT':  // {TransactionSaveRequestPurchaseInvoiceT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoicePut(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoicePutExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var transactionSaveRequestPurchaseInvoiceT = new TransactionSaveRequestPurchaseInvoiceT(); // TransactionSaveRequestPurchaseInvoiceT |  (optional) 

            try {
                // PurchaseInvoice_Put
                SynkSaveQueueResponse result = apiInstance.purchaseInvoicePut(id, transactionSaveRequestPurchaseInvoiceT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoicePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT | 

try {
    $result = $api_instance->purchaseInvoicePut($id, $transactionSaveRequestPurchaseInvoiceT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoicePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $transactionSaveRequestPurchaseInvoiceT = WWW::OPenAPIClient::Object::TransactionSaveRequestPurchaseInvoiceT->new(); # TransactionSaveRequestPurchaseInvoiceT | 

eval {
    my $result = $api_instance->purchaseInvoicePut(id => $id, transactionSaveRequestPurchaseInvoiceT => $transactionSaveRequestPurchaseInvoiceT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoicePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
transactionSaveRequestPurchaseInvoiceT =  # TransactionSaveRequestPurchaseInvoiceT |  (optional)

try:
    # PurchaseInvoice_Put
    api_response = api_instance.purchase_invoice_put(id, transactionSaveRequestPurchaseInvoiceT=transactionSaveRequestPurchaseInvoiceT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoicePut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let transactionSaveRequestPurchaseInvoiceT = ; // TransactionSaveRequestPurchaseInvoiceT

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoicePut(id, transactionSaveRequestPurchaseInvoiceT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
transactionSaveRequestPurchaseInvoiceT

Responses


purchaseInvoiceSaveAttachments

PurchaseInvoice_SaveAttachments


/PurchaseInvoice/attachments

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/attachments"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            array[FileDetails] result = apiInstance.purchaseInvoiceSaveAttachments();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceSaveAttachments");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.purchaseInvoiceSaveAttachments();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceSaveAttachments: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            array[FileDetails] result = apiInstance.purchaseInvoiceSaveAttachments();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceSaveAttachments");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// PurchaseInvoice_SaveAttachments
[apiInstance purchaseInvoiceSaveAttachmentsWithCompletionHandler: 
              ^(array[FileDetails] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceSaveAttachments(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceSaveAttachmentsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // PurchaseInvoice_SaveAttachments
                array[FileDetails] result = apiInstance.purchaseInvoiceSaveAttachments();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceSaveAttachments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->purchaseInvoiceSaveAttachments();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceSaveAttachments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->purchaseInvoiceSaveAttachments();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceSaveAttachments: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # PurchaseInvoice_SaveAttachments
    api_response = api_instance.purchase_invoice_save_attachments()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceSaveAttachments: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceSaveAttachments(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


purchaseInvoiceSendMessage

PurchaseInvoice_SendMessage


/PurchaseInvoice/{id}/messages

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}/messages" \
 -d '{
  "IsSystemMessage" : true,
  "Message" : "Message",
  "IsActive" : true,
  "ToUserID" : 1,
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "SentDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "Attachments" : [ {
    "AttachmentType" : "AttachmentType",
    "LineID" : 9,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 3,
    "AttachedByUserID" : 3,
    "MessageID" : 1
  }, {
    "AttachmentType" : "AttachmentType",
    "LineID" : 9,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 3,
    "AttachedByUserID" : 3,
    "MessageID" : 1
  } ],
  "IsInbound" : true,
  "GUIDstring" : "GUIDstring",
  "ReceivedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "IsFromParent" : true,
  "FromUserID" : 3,
  "ReadDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "ID" : 2,
  "TransID" : 6
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<BusTransMessageT>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <ID>123</ID>
  <GUIDstring>aeiou</GUIDstring>
  <TransID>123</TransID>
  <Message>aeiou</Message>
  <IsInbound>true</IsInbound>
  <ToUserID>123</ToUserID>
  <FromUserID>123</FromUserID>
  <SentDateTime_utc>2000-01-23T04:56:07.000Z</SentDateTime_utc>
  <ReceivedDateTime_utc>2000-01-23T04:56:07.000Z</ReceivedDateTime_utc>
  <ReadDateTime_utc>2000-01-23T04:56:07.000Z</ReadDateTime_utc>
  <IsActive>true</IsActive>
  <IsSystemMessage>true</IsSystemMessage>
  <IsFromParent>true</IsFromParent>
  <BusTransAttachmentT>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Title>aeiou</Title>
    <IsImage>true</IsImage>
    <IsPDF>true</IsPDF>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <MessageID>123</MessageID>
    <URI>aeiou</URI>
    <AttachedByUserID>123</AttachedByUserID>
    <AttachedDateTime_utc>2000-01-23T04:56:07.000Z</AttachedDateTime_utc>
    <IsActive>true</IsActive>
    <Caption>aeiou</Caption>
    <ThumbnailURI>aeiou</ThumbnailURI>
    <AttachmentType>aeiou</AttachmentType>
    <IsFromParent>true</IsFromParent>
    <LineID>123</LineID>
  </BusTransAttachmentT>
</BusTransMessageT>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        BusTransMessageT busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}; // BusTransMessageT | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceSendMessage(id, busTransMessageT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceSendMessage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final BusTransMessageT busTransMessageT = new BusTransMessageT(); // BusTransMessageT | 

try {
    final result = await api_instance.purchaseInvoiceSendMessage(id, busTransMessageT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceSendMessage: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        BusTransMessageT busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}; // BusTransMessageT | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceSendMessage(id, busTransMessageT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceSendMessage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
BusTransMessageT *busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}; //  (optional)

// PurchaseInvoice_SendMessage
[apiInstance purchaseInvoiceSendMessageWith:id
    busTransMessageT:busTransMessageT
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'busTransMessageT': {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]} // {BusTransMessageT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceSendMessage(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceSendMessageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var busTransMessageT = new BusTransMessageT(); // BusTransMessageT |  (optional) 

            try {
                // PurchaseInvoice_SendMessage
                ActionResults result = apiInstance.purchaseInvoiceSendMessage(id, busTransMessageT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceSendMessage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}; // BusTransMessageT | 

try {
    $result = $api_instance->purchaseInvoiceSendMessage($id, $busTransMessageT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceSendMessage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $busTransMessageT = WWW::OPenAPIClient::Object::BusTransMessageT->new(); # BusTransMessageT | 

eval {
    my $result = $api_instance->purchaseInvoiceSendMessage(id => $id, busTransMessageT => $busTransMessageT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceSendMessage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]} # BusTransMessageT |  (optional)

try:
    # PurchaseInvoice_SendMessage
    api_response = api_instance.purchase_invoice_send_message(id, busTransMessageT=busTransMessageT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceSendMessage: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let busTransMessageT = {"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"GUIDstring":"string","TransID":0,"Message":"string","IsInbound":true,"ToUserID":0,"FromUserID":0,"SentDateTime_utc":"string","ReceivedDateTime_utc":"string","ReadDateTime_utc":"string","IsActive":true,"IsSystemMessage":true,"IsFromParent":true,"Attachments":[{"GUID":"00000000-0000-0000-0000-000000000000","Title":"string","IsImage":true,"IsPDF":true,"ID":0,"GUIDstring":"string","MessageID":0,"URI":"string","AttachedByUserID":0,"AttachedDateTime_utc":"string","IsActive":true,"Caption":"string","ThumbnailURI":"string","AttachmentType":"string","IsFromParent":true,"LineID":0}]}; // BusTransMessageT

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceSendMessage(id, busTransMessageT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
busTransMessageT

Responses


purchaseInvoiceUpdateStatus

PurchaseInvoice_UpdateStatus


/PurchaseInvoice/{id}/status

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/PurchaseInvoice/{id}/status" \
 -d '{
  "Status" : "Status",
  "StatusUpdateReason" : "StatusUpdateReason",
  "IsQueue" : true,
  "ID" : 0,
  "IsSaveAutoQueue" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<UpdateTransStatusRequest>
  <ID>123</ID>
  <Status>aeiou</Status>
  <StatusUpdateReason>aeiou</StatusUpdateReason>
  <IsQueue>true</IsQueue>
  <IsSaveAutoQueue>true</IsSaveAutoQueue>
</UpdateTransStatusRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        UpdateTransStatusRequest updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true}; // UpdateTransStatusRequest | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceUpdateStatus(id, updateTransStatusRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceUpdateStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final UpdateTransStatusRequest updateTransStatusRequest = new UpdateTransStatusRequest(); // UpdateTransStatusRequest | 

try {
    final result = await api_instance.purchaseInvoiceUpdateStatus(id, updateTransStatusRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->purchaseInvoiceUpdateStatus: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | 
        UpdateTransStatusRequest updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true}; // UpdateTransStatusRequest | 

        try {
            ActionResults result = apiInstance.purchaseInvoiceUpdateStatus(id, updateTransStatusRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#purchaseInvoiceUpdateStatus");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; //  (default to null)
UpdateTransStatusRequest *updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true}; //  (optional)

// PurchaseInvoice_UpdateStatus
[apiInstance purchaseInvoiceUpdateStatusWith:id
    updateTransStatusRequest:updateTransStatusRequest
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiPurchaseInvoice = require('as_server_api_purchase_invoice');

// Create an instance of the API class
var api = new AsServerApiPurchaseInvoice.DefaultApi()
var id = 56; // {Integer} 
var opts = {
  'updateTransStatusRequest': {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true} // {UpdateTransStatusRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.purchaseInvoiceUpdateStatus(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class purchaseInvoiceUpdateStatusExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer |  (default to null)
            var updateTransStatusRequest = new UpdateTransStatusRequest(); // UpdateTransStatusRequest |  (optional) 

            try {
                // PurchaseInvoice_UpdateStatus
                ActionResults result = apiInstance.purchaseInvoiceUpdateStatus(id, updateTransStatusRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.purchaseInvoiceUpdateStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | 
$updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true}; // UpdateTransStatusRequest | 

try {
    $result = $api_instance->purchaseInvoiceUpdateStatus($id, $updateTransStatusRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->purchaseInvoiceUpdateStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | 
my $updateTransStatusRequest = WWW::OPenAPIClient::Object::UpdateTransStatusRequest->new(); # UpdateTransStatusRequest | 

eval {
    my $result = $api_instance->purchaseInvoiceUpdateStatus(id => $id, updateTransStatusRequest => $updateTransStatusRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->purchaseInvoiceUpdateStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer |  (default to null)
updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true} # UpdateTransStatusRequest |  (optional)

try:
    # PurchaseInvoice_UpdateStatus
    api_response = api_instance.purchase_invoice_update_status(id, updateTransStatusRequest=updateTransStatusRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->purchaseInvoiceUpdateStatus: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let updateTransStatusRequest = {"ID":0,"Status":"string","StatusUpdateReason":"string","IsQueue":true,"IsSaveAutoQueue":true}; // UpdateTransStatusRequest

    let mut context = DefaultApi::Context::default();
    let result = client.purchaseInvoiceUpdateStatus(id, updateTransStatusRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
updateTransStatusRequest

Responses