Your browser does not support Java Script or javascript is disabled. Please ensure that your browser supports it for full compatibility with our services.

Cancel order

Cancel Order

After creating an order the client can either accept or cancel it. After using this method, the order will no longer be available to use.

Request

Orders
URI
/orders/S2AO000001/
Method DELETE
Authorization
required

Example



Response


{
    "message": "OK",
    "code": 200,
    "result": {
        "order": {
            "status": "CAN",
            "shipments": [
                {
                    "status": "NEW",
                    "delivery": {
                        "phone": "+123123123",
                        "first_name": "foo",
                        "last_name": "Bar",
                        "postcode": "20001",
                        "city": "Washington",
                        "country": "US",
                        "company": "private individual",
                        "address_lines": [
                            "address line 1",
                            "address line 2",
                            "address line 3"
                        ],
                        "email": "andrzej.papa@gmail.com"
                    },
                    "tracking_number": "N/A",
                    "collection_type": "pickup",
                    "description": "Here some optional comments about s",
                    "service": {
                        "price": {
                            "currency": "AUD",
                            "amount": 219.51,
                            "total": 223.07,
                            "insurance": 3.56,
                            "gst": 0
                        },
                        "code": "1002",
                        "name": "DHL Asia"
                    },
                    "customs_information": {
                        "tax_status": "Company",
                        "reason": "Purchase",
                        "description": "",
                        "items": [
                            {
                                "currency": "AUD",
                                "madein": "US",
                                "description": "shoes",
                                "value": 20,
                                "quantity": 1
                            }
                        ]
                    },
                    "packages": [
                        {
                            "width": 20,
                            "length": 10,
                            "unit_weight": "CM",
                            "weight": 3,
                            "height": 30
                        }
                    ],
                    "id": "S2AS004414",
                    "collection": {
                        "phone": "+61123123123",
                        "first_name": "Fred",
                        "last_name": "Flintstone",
                        "postcode": "3000",
                        "city": "Melbourne",
                        "country": "AU",
                        "company": "private individual",
                        "address_lines": [
                            "address line 1",
                            "address line 2",
                            "address line 3"
                        ],
                        "pickup": {
                            "date": "2014-05-03T00:00:00",
                            "time_latest": "14:00",
                            "time_earliest": "09:00"
                        },
                        "email": "andrzej.papa@gmail.com"
                    }
                }
            ],
            "price": {
                "currency": "AUD",
                "amount": "219.51",
                "total": "223.07",
                "insurance": "3.56",
                "gst": "0.00"
            },
            "id": "S2AO001738"
        }
    }