WeFact Hosting API versie 2.6



Bestelling

Bestellingen zijn te beheren via de controller 'order'.



show

Middels deze functie kunt u meer informatie over een bestelling ophalen.
Voorbeeldbestand: /voorbeelden/order/order.show.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een bestelling
OrderCode string Het bestelnummer
Verplichte velden: Identifier of OrderCode

Voorbeeld invoer:
<?php

require_once("../wefact_api.php");

$api = new WeFactAPI();

$orderParams = array(
			'OrderCode' 	=> 'B0001'
);

$response = $api->sendRequest('order', 'show', $orderParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => order
    [action] => show
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [order] => Array
        (
            [Identifier] => 1
            [OrderCode] => B0001
            [Debtor] => 1
            [Date] => 2016-07-14 14:10:51
            [Term] => 14
            [AmountExcl] => 155.00
            [AmountTax] => 32.55
            [AmountIncl] => 187.55
            [Discount] => 0
            [VatCalcMethod] => excl
            [IgnoreDiscount] => no
            [Coupon] => 
            [CompanyName] => Company X
            [Sex] => m
            [Initials] => John
            [SurName] => Jackson
            [Address] => Keizersgracht 100
            [ZipCode] => 1015 AA
            [City] => Amsterdam
            [Country] => NL
            [EmailAddress] => info@company.com
            [InvoiceMethod] => 0
            [Template] => 1
            [Authorisation] => no
            [PaymentMethod] => 
            [Paid] => 0
            [TransactionID] => 
            [IPAddress] => 
            [Comment] => 
            [Status] => 0
            [OrderLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 1
                            [Date] => 2016-07-14
                            [Number] => 1
                            [ProductCode] => 
                            [Description] => Setupfee
                            [PriceExcl] => 150
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [Periods] => 1
                            [Periodic] => 
                            [ProductType] => 
                            [Reference] => 0
                            [NoDiscountAmountIncl] => 181.50
                            [NoDiscountAmountExcl] => 150.00
                            [DiscountAmountIncl] => 0.00
                            [DiscountAmountExcl] => 0.00
                        )

                    [1] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2016-07-14
                            [Number] => 1
                            [ProductCode] => 
                            [Description] => Second product
                            [PriceExcl] => 5
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [Periods] => 1
                            [Periodic] => 
                            [ProductType] => 
                            [Reference] => 0
                            [NoDiscountAmountIncl] => 6.05
                            [NoDiscountAmountExcl] => 5.00
                            [DiscountAmountIncl] => 0.00
                            [DiscountAmountExcl] => 0.00
                        )

                )

            [Created] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
            [Translations] => Array
                (
                    [Country] => Nederland
                    [InvoiceMethod] => Per e-mail
                    [Template] => Factuur
                    [PaymentMethod] => 
                    [Status] => Ontvangen
                )

            [AmountDiscount] => 0.00
            [AmountDiscountIncl] => 0.00
            [UsedTaxrates] => Array
                (
                    [0.21] => Array
                        (
                            [AmountExcl] => 155.00
                            [AmountTax] => 32.55
                            [AmountIncl] => 187.55
                        )

                )

        )

)