The Shutterfly Pricing API provides estimated prices for Shutterfly product and shipping options. The returned prices are not guaranteed and may be subject to revision at order placement time.
Description
Call Signature
Application ID and call signature are required. Please see Call Signature documentation for more details.
Resource Path
This API uses the following resource path element:
- /pricing
Methods
- POST - Creates estimated prices for a given set of Shutterfly product and shipping options, submitted as entries in an Atom <feed>.
Scheme
httpHost
ws.shutterfly.com| Method | Endpoint example |
|---|---|
| POST | http://ws.shutterfly.com/pricing |
In the following Method detail sections, click on Method name to expand or collapse the detail.
Method: POST
Creates estimated prices for a given set of Shutterfly product and shipping options, submitted as entries in an Atom <feed>.
User authorization
Sample Input
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:openfly="http://openfly.shutterfly.com/v1.0" xmlns:sflyecom="http://openfly.shutterfly.com/ecom/v1.0">
<category term="pricing" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<entry>
<category term="recipient" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<sflyecom:ref>1</sflyecom:ref>
<sflyecom:firstname>Kris</sflyecom:firstname>
<sflyecom:lastname>Kringle</sflyecom:lastname>
<sflyecom:address1>1 Santa Claus Lane</sflyecom:address1>
<sflyecom:address2/>
<sflyecom:city>North Pole</sflyecom:city>
<sflyecom:state>AK</sflyecom:state>
<sflyecom:postcode>99705</sflyecom:postcode>
<sflyecom:country>USA</sflyecom:country>
<sflyecom:shippingtype>1DAY</sflyecom:shippingtype>
</entry>
<entry>
<category term="item" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<sflyecom:ref>4</sflyecom:ref>
<sflyecom:productdetail>
<sflyecom:print>
<sflyecom:finish>G</sflyecom:finish>
</sflyecom:print>
</sflyecom:productdetail>
<sflyecom:sku>5x7</sflyecom:sku>
<sflyecom:qty>10</sflyecom:qty>
<sflyecom:recipient>1</sflyecom:recipient>
</entry>
<entry>
<category term="item" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<sflyecom:ref>5</sflyecom:ref>
<sflyecom:sku>MUG01</sflyecom:sku>
<sflyecom:qty>1</sflyecom:qty>
<sflyecom:recipient>1</sflyecom:recipient>
<sflyecom:productdetail>
<sflyecom:singleimageproduct/>
<sflyecom:image type="TO_BE_UPLOADED">i1</sflyecom:image>
</sflyecom:productdetail>
</entry>
</feed>
Submit the following as an Atom XML feed, as in the Sample Input.
feed
Submit the following as an Atom XML entry, as in the Sample Input.
recipient entry
A recipient - each address shipped to must contain separate recipient information. Note that at this time, only a single recipient per order is supported.
Submit the following as an Atom XML entry, as in the Sample Input.
item entry
An item to be ordered. Note: each unique combination is considered its own item and must have an entry defined. For example, 100 4x6 prints of the same image would be a single item, qty 100. In contrast, if each 4x6 was a different image, this is considered 100 different item entries. This same concept holds for any other variation - for example, print finish (Matte/Glossy), price, sku, etc.
Sample Output
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:sflyecom="http://openfly.shutterfly.com/ecom/v1.0" xmlns:catinfo="http:/
/catinfo.openfly.shutterfly.com/v1.0">
<category term="pricingrequest" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<id>http://jcarty-ws/pricing</id>
<rights>Copyright (C) Shutterfly 1999-2010. All rights reserved.</rights>
<sflyecom:ordertotal>67.87</sflyecom:ordertotal>
<catinfo:categoryInfo term="shipment" count="2"/>
<catinfo:categoryInfo term="item" count="2"/>
<catinfo:categoryInfo term="image" count="1"/>
<catinfo:categoryInfo term="recipient" count="1"/>
<entry>
<category term="recipient" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<author>
<name/>
</author>
<sflyecom:ref>0</sflyecom:ref>
<sflyecom:firstname>Kris</sflyecom:firstname>
<sflyecom:lastname>Kringle</sflyecom:lastname>
<sflyecom:address1>1 Santa Claus Lane</sflyecom:address1>
<sflyecom:city>North Pole</sflyecom:city>
<sflyecom:state>AK</sflyecom:state>
<sflyecom:postcode>99705</sflyecom:postcode>
<sflyecom:country>USA</sflyecom:country>
<sflyecom:shippingtype>1DAY</sflyecom:shippingtype>
<sflyecom:productcost>23.89</sflyecom:productcost>
<sflyecom:discount>0.0</sflyecom:discount>
<sflyecom:shippingcost>43.98</sflyecom:shippingcost>
<sflyecom:tax>0.0</sflyecom:tax>
<sflyecom:recipienttotal>67.87</sflyecom:recipienttotal>
<sflyecom:shippingoptions>
<sflyecom:shippingoption name="STANDARD" cost="7.78" usualminshipping="2" usualmaxshipping="5"/>
<sflyecom:shippingoption name="PRIORITY" cost="13.98" usualminshipping="2" usualmaxshipping="3"/>
<sflyecom:shippingoption name="2DAY" cost="26.98" usualminshipping="2" usualmaxshipping="2"/>
<sflyecom:shippingoption name="1DAY" cost="43.98" usualminshipping="1" usualmaxshipping="1"/>
</sflyecom:shippingoptions>
</entry>
<entry>
<category term="item" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<author>
<name/>
</author>
<sflyecom:ref>5</sflyecom:ref>
<sflyecom:sku>MUG01</sflyecom:sku>
<sflyecom:qty>1</sflyecom:qty>
<sflyecom:recipient>0</sflyecom:recipient>
<sflyecom:unitprice>0.0</sflyecom:unitprice>
<sflyecom:itemsubtotal>0.0</sflyecom:itemsubtotal>
<sflyecom:productdetail>
<sflyecom:singleimageproduct/>
<sflyecom:image/>
</sflyecom:productdetail>
</entry>
<entry>
<category term="item" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<author>
<name/>
</author>
<sflyecom:ref>1</sflyecom:ref>
<sflyecom:sku>5x7</sflyecom:sku>
<sflyecom:skudescription>5x7 Print</sflyecom:skudescription>
<sflyecom:qty>10</sflyecom:qty>
<sflyecom:recipient>0</sflyecom:recipient>
<sflyecom:unitprice>0.99</sflyecom:unitprice>
<sflyecom:itemsubtotal>9.9</sflyecom:itemsubtotal>
<sflyecom:productdetail>
<sflyecom:print>
<sflyecom:finish>G</sflyecom:finish>
</sflyecom:print>
</sflyecom:productdetail>
</entry>
<entry>
<category term="shipment" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<author>
<name/>
</author>
<sflyecom:mindelivery>2010-07-14</sflyecom:mindelivery>
<sflyecom:maxdelivery>2010-07-14</sflyecom:maxdelivery>
<sflyecom:shipdate>2010-07-13</sflyecom:shipdate>
<sflyecom:recipientname>Kris Kringle</sflyecom:recipientname>
<sflyecom:recipient>0</sflyecom:recipient>
<sflyecom:item>
<sflyecom:sku>MUG01</sflyecom:sku>
<sflyecom:qty>1</sflyecom:qty>
</sflyecom:item>
</entry>
<entry>
<category term="shipment" scheme="http://openfly.shutterfly.com/ecom/v1.0"/>
<author>
<name/>
</author>
<sflyecom:mindelivery>2010-07-15</sflyecom:mindelivery>
<sflyecom:maxdelivery>2010-07-15</sflyecom:maxdelivery>
<sflyecom:shipdate>2010-07-14</sflyecom:shipdate>
<sflyecom:recipientname>Kris Kringle</sflyecom:recipientname>
<sflyecom:recipient>0</sflyecom:recipient>
<sflyecom:item>
<sflyecom:sku>5x7</sflyecom:sku>
<sflyecom:qty>10</sflyecom:qty>
</sflyecom:item>
</entry>
</feed>
Output Feed
feed
recipient entry
item entry
Resulting item. Note that the pricing mechanism may change the order item as passed in due to a variety of circumstances. For example, say that a user has 15 free prints in their account. If that user orders quantity 20 of the same print, the item may likely be split into two items - one of qty 15, and one of qty 5.
shipment entry
Estimated shipment. Note that this is not a guarantee of quantity, content, or arrival time of shipments - this is our best estimate at the current time.
Error Codes
If there is no error, methods return HTTP status code 200 (or 201 for a create operation). See the documentation for Common Response Codes.