Endpoints
Don't be that person
Fetch a stores Id {storeId}
Cupid exposes an active store id for a given myShopify domain.
GET /wishlist/storeid/{storeMyshopifyDomain} HTTP/1.1
Host: wishlist.plutocracy.io
Accept: */*
An active store Id
{
"id": "text"
}
Fetch a wishlist by a users Email
Returns a complete wishlist for a provided email.
POST /wishlist/email/{storeId} HTTP/1.1
Host: wishlist.plutocracy.io
Accept: */*
An active Wishlist for a given user Email
{
"wishlistId": "text",
"name": "text",
"customerId": "text",
"number": "text",
"events": [
{
"eventType": "wishlist/add",
"objectId": "text",
"metaBody": {
"variantId": "text",
"quantity": "text",
"price": "text"
},
"eventBody": {}
}
]
}
Fetch a wishlist by a wishlist Id
This is our default experience endpoint for non authenticated users, typically we recommend storing a wishlist Id in localstorage and fetching the wishlist at the beginning of the browsing session for SPA's
POST /wishlist/id/{storeId} HTTP/1.1
Host: wishlist.plutocracy.io
Accept: */*
An active Wishlist for a given Wishlist Id
{
"wishlistId": "text",
"name": "text",
"customerId": "text",
"number": "text",
"events": [
{
"eventType": "wishlist/add",
"objectId": "text",
"metaBody": {
"variantId": "text",
"quantity": "text",
"price": "text"
},
"eventBody": {}
}
]
}
Delete a wishlist by a wishlist Id
Delete a wishlist and all of its events, not to be confused with "tombstone"-ing a wishlist which will clear the public history of a given wishlist, but keep the id.
DELETE /wishlist/event/{storeId}/{wishlistId} HTTP/1.1
Host: wishlist.plutocracy.io
Accept: */*
Delete a Wishlist
No content
Create an event on a wishlist
This is the default experience, you can provide any eventType for your own purposes, but we have some protected events that provide certain functionality. Cupid stores wishlists as a timeseries of events, and accepts freeform event bodies, allowing developers to build highly flexible experiences.
Reserved events include:
wishlist/add
Will add a product to a rendered wishlist
wishlist/remove
Will remove a product from a rendered wishlist
email/add
Will add an email to a rendered withlist
tombstone
Will hide all events that took place before the tombstone event, perfect for a "clear wishlist" button.
POST /wishlist/event/{storeId} HTTP/1.1
Host: wishlist.plutocracy.io
Content-Type: application/json
Accept: */*
Content-Length: 166
{
"storeId": "text",
"event": {},
"eventType": "wishlist/add",
"meta": {
"variantId": "text",
"quantity": "text",
"price": "text"
},
"wishlistId": "text",
"email": "text",
"name": "text"
}
No content
Last updated