ABCDEFGHIJKLMNOPQRSTUVWX
1
NoDesMethodHeaderPayloadRespondError codeValidationNote
2
1Get multiwishlist id when query wishlistURL: {{base_url}}/graphql
3
POSTContent-Type : application/json{
wishlist {
items_count
name
sharing_code
updated_at
items {
id
multi_wishlist_id
}
}
}
{
"data": {
"wishlist": {
"items_count": 4,
"name": "Wish List",
"sharing_code": "13j8kWyGoqL2Q3SDLCMjehgYIWApJaYj",
"updated_at": "2021-04-02 01:38:30",
"items": [
{
"id": 101,
"multi_wishlist_id": 0
},
{
"id": 102,
"multi_wishlist_id": 50
},
{
"id": 103,
"multi_wishlist_id": 51
},
{
"id": 104,
"multi_wishlist_id": 0
}
]
}
}
}
require token customer
Help identify item wishlist was added by bss multi wishlist or core wishlist
4
2Add product to wishlist URL: {{base_url}}/graphql
5
POSTContent-Type : application/json
Authorization: bearer token (customer)
mutation {
addProductsToBssWishlist(
wishlistId: 20
wishlistItems: [
{
sku: "24-MB01"
quantity: 55
multi_wishlist_id: 0
}
{
sku: "24-WG085_Group"
quantity: 1
multi_wishlist_id: 35
selected_options: [
"Z3JvdXBlZC8zMy8xMA=="
"Z3JvdXBlZC8zNC8xMA=="
"Z3JvdXBlZC8zNS8w"
]
}
]
) {
wishlist {
id
items_count
}
user_errors {
code
message
}
}
}
{
"data": {
"addProductsToBssWishlist": {
"wishlist": {
"id": "11",
"items_count": 2
},
"user_errors": []
}
}
}
400Bad Request
401Unauthorized
require: token
6
3Update product in wishlist URL: {{base_url}}/graphql
7
POSTContent-Type : application/json
Authorization: bearer token (customer)
mutation {
updateProductsInBssWishlist(
wishlistId: 20
wishlistItems: [
{
wishlist_item_id: 100
quantity: 10
}
]
) {
wishlist {
id
items_count
}
user_errors {
code
message
}
}
}
{
"data": {
"updateProductsInBssWishlist": {
"wishlist": {
"id": "20",
"items_count": 4
},
"user_errors": []
}
}
}
400Bad Request
401Unauthorized
require: token
8
4Remove product from wishlist URL: {{base_url}}/graphql
9
POSTContent-Type : application/json
Authorization: bearer token (customer)
mutation {
removeProductsFromWishlist(
wishlistId: 4
wishlistItemsIds: [
26
]){
wishlist {
id
items_count
items_v2 {
items {
id
quantity
product {
uid
name
sku
price_range {
minimum_price {
regular_price {
currency
value
}
}
maximum_price {
regular_price {
currency
value
}
}
}
}
}
}
}
user_errors {
code
message
}
}
}
{
"data": {
"updateProductsInBssWishlist": {
"wishlist": {
"id": "20",
"items_count": 4
},
"user_errors": []
}
}
}
400Bad Request
401Unauthorized
require: token
10
5Create bss multiwishlit URL: {{base_url}}/graphql
11
POSTContent-Type : application/json
Authorization: bearer token (customer)
mutation {
createBssMultiWishlist(
multi_wishlist_id : 53
wishlist_name: "Rename Main 3"
) {
status
message
bssMultiWishlist {
multi_wishlist_id
wishlist_name
customer_id
}
}
}
{
"data": {
"createBssMultiWishlist": {
"status": "true",
"message": "You create bss multi wishlit success",
"bssMultiWishlist": {
"multi_wishlist_id": 51,
"wishlist_name": "Main 2",
"customer_id": 26
}
}
}
}
400Bad Request
401Unauthorized
require: token, wishlist_name, unique wishlist_name
12
6Get bss mulitwishlitURL: {{base_url}}/graphql
13
POSTContent-Type : application/json
Authorization: bearer token (customer)
query {
customer {
firstname
lastname
bssMultiWishlist {
multi_wishlist_id
wishlist_name
customer_id
}
}
}
{
"data": {
"customer": {
"firstname": "Betsy",
"lastname": "Broadwater",
"bssMultiWishlist": [
{
"multi_wishlist_id": 51,
"wishlist_name": "Main 2",
"customer_id": 26
},
{
"multi_wishlist_id": 52,
"wishlist_name": "Main 3",
"customer_id": 26
}
]
}
}
}
require: token
14
7Update wishlist_name of bss mulitwishlitURL: {{base_url}}/graphql
15
POSTContent-Type : application/json
Authorization: bearer token (customer)
query {
customer {
firstname
lastname
bssMultiWishlist {
multi_wishlist_id
wishlist_name
customer_id
}
}
}
{
"data": {
"updateBssMultiWishlist": {
"status": "true",
"message": "You update bss multi wishlist success",
"bssMultiWishlist": {
"multi_wishlist_id": 53,
"wishlist_name": "Rename Main 3",
"customer_id": 26
}
}
}
}
require: token, multi_wishlist_id , wishlist_name, unique wishlist_name
16
8Remove bss multi wishlistURL: {{base_url}}/graphql
17
POSTContent-Type : application/json
Authorization: bearer token (customer)
mutation {
removeBssMultiWishlist(
multi_wishlist_id : 52
) {
success
message
}
}
{
"data": {
"removeBssMultiWishlist": {
"success": "true",
"message": "You deleted."
}
}
}
require: token, multi_wishlist_id
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100