GetInsurance (V2)

Currently all of our delivery services include free insurance up to the value of £50. This function returns the additional insurance cover options we have.

Input Fields

Field Name Required? Description Example
ShipAction YES This tells our system which function you require GetInsurance
Username YES You must specify your username testuser
APIKey YES This is available from your P4D account page HJ1E6DOTRDXAOLB
InsuranceCode   If you would like to get details for only one insurance option then specify the InsuranceCode here. IN_0

Example Output

stdClass Object
(
    [ShipAction] => GetInsurance
    [Status] => Success
    [RequestDate] => 2012-10-04 21:17:03
    [Username] => testuser
    [InsuranceInfo] => Array
        (
            [0] => stdClass Object
                (
                    [InsuranceCode] => IN_0
                    [LevelName] => Up to 50 GBP
                    [LevelAmount] => 50.00
                    [Price] => 0.00
                )

            [1] => stdClass Object
                (
                    [InsuranceCode] => IN_1
                    [LevelName] => Up to 100 GBP
                    [LevelAmount] => 100.00
                    [Price] => 2.00
                )

            [2] => stdClass Object
                (
                    [InsuranceCode] => IN_2
                    [LevelName] => Up to 250 GBP
                    [LevelAmount] => 250.00
                    [Price] => 5.00
                )

            [3] => stdClass Object
                (
                    [InsuranceCode] => IN_3
                    [LevelName] => Up to 500 GBP
                    [LevelAmount] => 500.00
                    [Price] => 10.00
                )

            [4] => stdClass Object
                (
                    [InsuranceCode] => IN_4
                    [LevelName] => Up to 750 GBP
                    [LevelAmount] => 750.00
                    [Price] => 15.00
                )

            [5] => stdClass Object
                (
                    [InsuranceCode] => IN_5
                    [LevelName] => Up to 1000 GBP
                    [LevelAmount] => 1000.00
                    [Price] => 20.00
                )

        )

)