Accessed via /api/wishlist
.
Each wishlist has the following properties Complete details in OrderProperties and OrderItemProperties.
The unique id for this wishlist. It will never change.
wishlist
A label to identify an wishlist. This is useful if you're going to allow multiple wishlists open at the same time, or if you want to name wishlists.
If specified,
the unique id of the user that controls this wishlist.
Once a user has been attached to an wishlist,
it cannot be viewed or manipulated except by passing a working session id for that user.
See Wishlist Options below for details.
Defaults to Wishlist
.
The unique id of an address. See Wishlist Options below for details.
A hash of address properties associated with the shipping_address_id
.
See Wishlist Related Objects below for details.
The shipping mechanism that will be used to transport the wishlist to the purchaser.
Defaults to USPS Priority
.
See Wishlist Options below for details.
The amount added to the wishlist to account for the cost of shipping. This will be added to the wishlist once both a shipping address and a shipping method are known.
The cost of all the items attached to the wishlist before taxes, shop credit, and shipping are applied.
The amount of taxes to be paid to purchase this wishlist. Will always be zero until a shipping address has been specified.
The total cost of the wishlist including taxes and shipping. If this is a Receipt it will also include the discount as a result of shop credit used.
The method used to pay for the wishlist.
Defaults to Credit Card
.
See Wishlist Options below for details.
If an attempt has been made to pay for this wishlist then the id returned from the payment gateway will be logged here. This is a holdover in case the wishlist was once a cart.
If an attempt has been made to pay for this wishlist then the status code returned from the payment gateway will be logged here. This is a holdover in case the wishlist was once a cart.
If an attempt has been made to pay for this wishlist then the message returned from the payment gateway will be logged here. This is a holdover in case the wishlist was once a cart.
The IP address of the user at the time of wishlist creation.
A date when the wishlist was created.
A date when the wishlist's account was last updated.
See "Related Objects" in Intro for details.
The user attached to this wishlist, if any. Will return:
{ "shop_credit" : "0.00", "username" : "andy", "id" : "xxx", ... }
The address attached to the wishlist that the wishlist should be shipped to. Will return:
{ "id" : "xxx", "name" : "Andy Dufresne", "company" : "Shawshank Prison", "address1" : "123 Prison Lane", "address2" : "Shawshank Prison Library", "city" : "Portland", "state" : "Maine", "postal_code" : "04101", "country" : "US", "phone_number" : "207-874-8300" } =back
The methods used to fetch and manipulate wishlists.
Provides a list of the options that can be used to fill out various fields when creating or updating a wishlist.
GET /api/wishlist/_options
Returns:
{ "identity" : [...], "shipping_method" : [...], "_shipping_method" : {...}, "shipping_address" : [...], "_shipping_address" : {...}, }
NOTE: You can also get this data by adding _include_options=1
to the parameter list when fetching a wishlist.
POST /api/wishlist
See APIKey. Required.
Optional.
Optional.
Returns:
{ "id" : "xxx", "wishlistname" : "andy", ... }
PUT /api/wishlist/xxx
See Create Wishlist for details. Can only be done by an admin or the wishlist itself.
DELETE /api/wishlist/xxx
Required. The unique session id provided by a Session method.
Can only be done by an admin or the wishlist owner itself.
Returns:
{ "success" : 1 }
GET /api/wishlist/xxx
Optional. The unique session id provided by a Session method.
Can by done by anybody.
Returns:
{ "id" : "xxx", "wishlistname" : "andy", ... }
POST /api/wishlist/xxx/sku/xxx
Allows you to add a Sku to the wishlist.
Optional. Defaults to 1. Add or subtract items to or from the wishlist depending on whether this number is positive or negative.
PUT /api/wishlist/xxx/sku/xxx
Allows you to adjust the quantity of this Sku in the wishlist.
Optional. Defaults to 1. Sets the number of this item contained in the wishlist. Setting to 0 will remove it from the wishlist. If you set a quantity and the item isn't already in the wishlist it will be added.
POST /api/wishlist/xxx/user
Before checkout you need to attach a user to the wishlist. This can either be done by attaching an authenticated session, or by simply specifying an email address.
{ "order" : { ... }, "session_id" : "xxx" }
NOTE: The session_id returned here needs (or any session_id attached to the user_id attached to this wishlist) to be used on all subsequent interactions with the wishlist.
A session id as created by Session.
An email address of the user checking out. This only works if the user is not already in the system.
POST /api/wishlist/xxx/cart
Converts this cart to a Cart.
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'