WeFact Standard API versie 3.0



Offertes

Offertes zijn te beheren via de controller 'pricequote'.



decline

Middels deze functie kunt u een offerte op geweigerd zetten. De offerte verandert naar status 'Geweigerd' (= 8).
Voorbeeldbestand: /voorbeelden/pricequote/pricequote.decline.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een offerte
PriceQuoteCode string Het offertenummer
Verplichte velden: Identifier of PriceQuoteCode


Voorbeeld invoer:
$api->sendRequest('pricequote', 'decline', array(
	'PriceQuoteCode'	=> 'OF0001'
));

Voorbeeld uitvoer:
Array
(
    [controller] => pricequote
    [action] => decline
    [status] => success
    [date] => 2014-05-16T15:23:50+00:00
    [success] => Array
        (
            [0] => Offerte OF0001 is geweigerd
        )

    [pricequote] => Array
        (
            [Identifier] => 1
            [PriceQuoteCode] => OF0001
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Status] => 8
            [Date] => 2014-05-16
            [Term] => 30
            [AmountExcl] => 750.00
            [AmountTax] => 157.50
            [AmountIncl] => 907.50
            [Discount] => 0
            [VatCalcMethod] => excl
            [IgnoreDiscount] => no
            [ReferenceNumber] => 
            [CompanyName] => Company X
            [Initials] => John
            [SurName] => Jackson
            [Sex] => m
            [Address] => Keizersgracht 100
            [ZipCode] => 1015 AA
            [City] => Amsterdam
            [Country] => NL
            [EmailAddress] => info@company.com
            [PriceQuoteMethod] => 0
            [SentDate] => 2014-05-16
            [Sent] => 1
            [LanguageCode] => nl_nl
            [Description] => 
            [Comment] => 
            [PriceQuoteLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 1
                            [Date] => 2014-05-16
                            [Number] => 3
                            [NumberSuffix] => 
                            [ProductCode] => P0001
                            [Description] => Consultancy
                            [PriceExcl] => 100
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
						 	[TaxPercentage] => 21
                            [Periods] => 1
                            [Periodic] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                    [1] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2014-05-16
                            [Number] => 1
                            [NumberSuffix] => 
                            [ProductCode] => 
                            [Description] => Service contract
                            [PriceExcl] => 150
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
						 	[TaxPercentage] => 21
                            [Periods] => 3
                            [Periodic] => m
                            [StartPeriod] => 2014-05-16
                            [EndPeriod] => 2014-08-16
                        )

                )

            [Translations] => Array
                (
                    [Status] => Niet geaccepteerd
                    [Country] => Nederland
                    [PriceQuoteMethod] => Per e-mail
                    [LanguageLabel] => Nederlands
                )

        )

)