Click and collect code examples

Click and collect orders are collected from a store, rather than delivered to a home address. Unlike standard and express orders, click and collect orders don’t move to the ready to ship page in the Shippit web UI. Instead, they remain on the new orders page until you either call the Book API, or click the label button.

{
    "order": {
        "courier_type": "click_and_collect",
        "delivery_address": "1 Test",
        "delivery_postcode": "2009",
        "delivery_state": "NSW",
        "delivery_suburb": "Pyrmont",
        "authority_to_leave": "Yes",
        "receiver_contact_number": "0411000444",
        "retailer_invoice": "SO-123",
        "parcel_attributes": [{
                "qty": 1,
                "weight": 4.1,
                "length": 0.2,
                "depth": 0.1,
                "width": 0.9
            }
        ],
        "product_attributes": [{
                "quantity": 2,
                "title": "Blue Hat",
                "price": 21.90
            }
        ],
        "user_attributes": {
            "email": "john.smith@shippit.com",
            "mobile": "0411000000",
            "first_name": "John",
            "last_name": "Smith"
        }
    }
}