HostFact API versie 3.1
Offertes
Offertes zijn te beheren via de controller 'pricequote'.
pricequoteline delete
Middels deze functie verwijdert u een offerteregel van een bestaande offerte.
Voorbeeldbestand: /voorbeelden/pricequote/pricequoteline.delete.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een offerte |
PriceQuoteCode | string | Het offertenummer |
PriceQuoteLines | array | Offerteregel: |
- Identifier | int | De unieke ID van een regel |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $priceQuoteLineParams = array( 'PriceQuoteCode' => 'OF0001', 'PriceQuoteLines' => array( array( 'Identifier' => 2 ) ) ); $response = $api->sendRequest('pricequoteline', 'delete', $priceQuoteLineParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => pricequoteline [action] => delete [status] => success [date] => 2022-11-24T12:00:00+02:00 [success] => Array ( [0] => Er zijn 1 offerteregels verwijderd ) [pricequote] => Array ( [Identifier] => 1 [PriceQuoteCode] => OF0001 [Debtor] => 1 [DebtorCode] => DB0001 [Status] => 0 [Date] => 2018-01-14 [Term] => 30 [ExpirationDate] => 2018-02-13 00:00:00 [AmountExcl] => 150.00 [AmountTax] => 31.50 [AmountIncl] => 181.50 [TaxRate] => 0 [Compound] => no [Discount] => 0 [VatCalcMethod] => excl [IgnoreDiscount] => no [Coupon] => [ReferenceNumber] => [CompanyName] => Company X [Sex] => m [Initials] => John [SurName] => Jackson [Address] => Keizersgracht 100 [ZipCode] => 1015 AA [City] => Amsterdam [Country] => NL [EmailAddress] => info@company.com [PriceQuoteMethod] => 0 [Template] => 2 [SentDate] => [Sent] => 0 [Description] => [Comment] => [PriceQuoteLines] => Array ( [0] => Array ( [Identifier] => 1 [Date] => 2018-01-14 [Number] => 1 [NumberSuffix] => [ProductCode] => [Description] => Setupfee [PriceExcl] => 150 [DiscountPercentage] => 0 [DiscountPercentageType] => line [TaxPercentage] => 21 [Periods] => 1 [Periodic] => [StartPeriod] => [EndPeriod] => [NoDiscountAmountIncl] => 181.5 [NoDiscountAmountExcl] => 150 [DiscountAmountIncl] => 0 [DiscountAmountExcl] => 0 ) ) [Created] => 2022-11-24 11:00:00 [Modified] => 2022-11-24 11:00:00 [AcceptURL] => [Attachments] => Array ( [0] => Array ( [Identifier] => 5 [Filename] => sample.pdf ) ) [Translations] => Array ( [Status] => Concept [Country] => Nederland [PriceQuoteMethod] => Per e-mail [Template] => Offerte ) [AmountDiscount] => 0 [AmountDiscountIncl] => 0 [UsedTaxrates] => Array ( [0.21] => Array ( [AmountExcl] => 150 [AmountTax] => 31.5 [AmountIncl] => 181.5 ) ) ) )