All methods except for new() return a hash reference formatted by XML::Simple. Nested elements are converted by ForceArray, and probably use GroupTags as well to eliminate extraneous layers of indirection. use WebServices::Zazzle my $zaz = WebServices::Zazzle->new($id, $key) Initialize new object with VendorID, and Secret Key. $zaz->list_new_orders() Requests ListNewOrders method from Zazzle. All requests currently die if the returned data fails validation. $zaz->get_shipping_label($orderid, $weight, $format) Request a shipping label with specified orderid and weight. Format must be one of: PDF, ZPL or PNG. PDF is used as the default, but a warning will be produced if an invalid string is specified. $zaz->ack_order_new_accept($orderid) $zaz->ack_order_update_accept($orderid) $zaz->ack_order_message_accept($orderid) Acknowledge receipt of new orders, updates and messages from Zazzle. $zaz->ack_order_new_reject($orderid) $zaz->ack_order_update_reject($orderid) $zaz->ack_order_message_reject($orderid) Zazzle documentation states that the 'reject' methods will probably never be used, but if there is such a need, here they are. $zaz->list_updated_orders() Return updated order information from Zazzle customer support. This should be called regularly, and before labels are printed for shipment. Use ack_order_update_accept() or ack_order_update_reject() to answer these updates. $zaz->list_order_messages() Fetch outstanding messages. Zazzle says these messages are rarely used, but this is how their customer support delivers handling instructions. This should probably be checked whenever listupdateorders() is called. Use ack_order_messages_accept() or ack_order_messages_reject() to answer these updates. $zaz->add_order_activity($orderid, $activity) Submit a message to Zazzle concerning this order. This message will be available to their customer support staff when they lookup an order. $zaz=>get_order($orderid) Fetch order data for the specified orderID.
Module for integration with Zazzle.com REST API.
These methods allow for interfacing with the REST API provided by Zazzle.com for their customers. It is designed as the back-end piece to a web-based Order Management System. The construction of these methods as well as the suggested error handling followed came from the document provided by: 'Zazzle Vendor API Documentation v1.12.pdf'.