Feature Pack 7

Create a wish list with or without items

The following examples show how to create a wish list with or without items.

Request 1


POST /wcs/resources/store/10101/wishlist/@default HTTPS/1.1
Host: testserver.mycompany.com
Content-Type: application/json

{
    "description" : "test wishlist with one item",
    "item": [
		{
			"productId" : "10260",
			"quantityRequested" : "1.0",
			"quantityBought" : "0.0",
		}
    ],
	"registry" : "false"    
}

Response 1


HTTPS/1.1 201 Created
Content-Type: application/json

{
	"item": [
		{
			"giftListItemID": "10006"
		}
	],
	"storeId": "10101",
	"uniqueID": "10006"
}

Request 2


POST /wcs/resources/store/10101/wishlist HTTPS/1.1
Host: testserver.mycompany.com
Content-Type: application/json

{
     "description" : "test wishlist",
     "registry" : "false"
}

Response 2


HTTPS/1.1 201 Created
Content-Type: application/json

{
	"storeId": "10101",
	"uniqueID": "10004"
}