HostFact API versie 3.1



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("../hostfact_api.php");

$api = new HostFactAPI();

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

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

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => order
    [action] => show
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [order] => Array
        (
            [Identifier] => 1
            [OrderCode] => B0001
            [Debtor] => 1
            [Date] => 2018-01-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] => 2018-01-14
                            [Number] => 1
                            [ProductCode] => 
                            [Description] => Setupfee
                            [PriceExcl] => 150
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [Periods] => 1
                            [Periodic] => 
                            [ProductType] => 
                            [Reference] => 0
                            [NoDiscountAmountIncl] => 181.5
                            [NoDiscountAmountExcl] => 150
                            [DiscountAmountIncl] => 0
                            [DiscountAmountExcl] => 0
                        )

                    [1] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2018-01-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
                            [DiscountAmountIncl] => 0
                            [DiscountAmountExcl] => 0
                        )

                )

            [Created] => 2022-11-24 11:00:00
            [Modified] => 2022-11-24 11:00:00
            [Translations] => Array
                (
                    [Country] => Nederland
                    [InvoiceMethod] => Per e-mail
                    [Template] => Factuur
                    [PaymentMethod] => 
                    [Status] => Ontvangen
                )

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

                )

        )

)