Fetch all lists

Fetch all created lists for a Shopper.

Endpoint

Endpointrequest typeAPI Type
https://{{Swym> API Endpoint }}/api/v3/lists/fetch-listsPOSTshopper

Query Params

ParameterTypeRequiredDescription
pidstring (Encoded)YesUnique identifier for the store available in Swym Admin
limitint64NoMaximum number of records to return
offsetint64NoNumber of records to skip

Form Data

FieldTypeRequiredDescription
regidstringYesUnique identifier for the shopper generated by generate-regid
sessionidstringYesSession id generated with generate-regId endpoint which does not expire without manual intervention
ltystringoptionalOptional list type

Example Curl

curl --location --request POST '{{Swym API Endpoint }}/api/v3/lists/fetch-lists?pid={{URL Encoded PID}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--data-urlencode 'regid={{regid}}' \
--data-urlencode 'sessionid={{sessionid}}'


🚧

Curl Placeholders

Assuming these values are provided above, the curl command should work correctly. However, if there are any issues with the API endpoint or the data being passed in the request, there could still be errors that need to be resolved before you can test these APIS.

PlaceholdersDescriptions
{{Swym API Endpoint}}This needs to be replaced with the actual Swym API endpoint URL.
{{URL Encoded PID}}This needs to be replaced with the actual PID value, URL-encoded.
{{regid}}This needs to be replaced with the actual regid value.
{{sessionid}}This needs to be replaced with the actual session ID value.

Success Response

[
   {
      "di":"f03daefc-d03e-438b-950c-86bdee5fcc6c",
      "listcontents":[
         {
            "dt":"Blue Silk Tuxedo",
            "empi":7168987889824,
            "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
            "du":"https://dashybee.myshopify.com/products/blue-silk-tuxedo?variant=41450466377888",
            "pid":"/uBEzdkDw3lbo=",
            "epi":41450466377888,
            "id":"e90a7375-c0e4-477e-8a73-75c0e4177e0d",
            "uts":1682523571207,
            "iu":"https://cdn.shopify.com/s/files/1/0590/0723/8304/products/man-adjusts-blue-tuxedo-bowtie_925x_e6ca7031-3707-4ca0-9b1a-cfe7df185ebc_620x620.jpg?v=1638894844",
            "_t":2,
            "pr":70.0
         },
         {
            "di":"f03daefc-d03e-438b-950c-86bdee5fcc6c",
            "uid":"Xjg/Jbh9Y/0OTIydKNmd5NZjoB7w6B++1/RFflqnPa8=",
            "dt":"Black Leather Bag",
            "cts":1682520365028,
            "empi":7168987529376,
            "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
            "du":"https://yourstore.myshopify.com/products/black-leather-bag?variant=41450466017440",
            "pid":"/uBEzdkDw3lbo=",
            "epi":41450466017440,
            "id":"64beebf5-ceb5-4b47-beeb-f5ceb55b47f3",
            "uts":1682520365028,
            "iu":"https://cdn.shopify.com/s/files/1/0590/0723/8304/products/black-bag-over-the-shoulder_925x_f7b24271-3c83-4bc4-8968-5d1f6b5c2584_620x620.jpg?v=1638894832",
            "_t":2,
            "pr":30.0
         }
      ],
      "userinfo":null,
      "lty":"wl",
      "uid":"Xjg/Jbh9Y/0OTIydKNmd5NZjoB7w6B++1/RFflqnPa8=",
      "cts":1682520364996,
      "cnt":2,
      "lnote":"I am newly updated.",
      "lname":"My Wishlist",
      "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
      "pid":"/uBEzdkDw3lbo=",
      "st":1,
      "id":"75c32443-ecd5-442f-8324-43ecd5f42f1e",
      "uts":1682520590149,
      "_t":1,
      "itemcmnts":0,
      "lhash":"bXktd2lzaGxpc3Q=",
   }
]
[
   {
      "di":"f03daefc-d03e-438b-950c-86bdee5fcc6c",
      "listcontents":[
         {
            "dt":"Blue Silk Tuxedo",
            "empi":7168987889824,
            "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
            "du":"https://dashybee.myshopify.com/products/blue-silk-tuxedo?variant=41450466377888",
            "pid":"/uBEzdkDw3lbo=",
            "epi":41450466377888,
            "id":"e90a7375-c0e4-477e-8a73-75c0e4177e0d",
            "uts":1682523571207,
            "_pkey":"Xjg/Jbh9",
            "iu":"https://cdn.shopify.com/s/files/1/0590/0723/8304/products/man-adjusts-blue-tuxedo-bowtie_925x_e6ca7031-3707-4ca0-9b1a-cfe7df185ebc_620x620.jpg?v=1638894844",
            "_t":2,
            "uby":"[email protected]",
            "pr":70.0
         },
         {
            "di":"f03daefc-d03e-438b-950c-86bdee5fcc6c",
            "uid":"Xjg/Jbh9Y/0OTIydKNmd5NZjoB7w6B++1/RFflqnPa8=",
            "dt":"Black Leather Bag",
            "cts":1682520365028,
            "empi":7168987529376,
            "cby":"[email protected]",
            "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
            "du":"https://yourstore.myshopify.com/products/black-leather-bag?variant=41450466017440",
            "pid":"/uBEzdkDw3lbo=",
            "epi":41450466017440,
            "id":"64beebf5-ceb5-4b47-beeb-f5ceb55b47f3",
            "uts":1682520365028,
            "_pkey":"Xjg/Jbh9",
            "iu":"https://cdn.shopify.com/s/files/1/0590/0723/8304/products/black-bag-over-the-shoulder_925x_f7b24271-3c83-4bc4-8968-5d1f6b5c2584_620x620.jpg?v=1638894832",
            "_t":2,
            "uby":"[email protected]",
            "pr":30.0
         }
      ],
      "userinfo":{
         "fname":"Support",
         "sw_mkt":null,
         "uid":"Xjg/Jbh9Y/0OTIydKNmd5NZjoB7w6B++1/RFflqnPa8=",
         "m":null,
         "em":"[email protected]",
         "cts":1643656974342,
         "lname":"Swymcorp",
         "pid":"/uBEzdkDw3lbo=",
         "uts":1682516274533,
         "acc_mkt":false,
         "ut":null,
         "prefs":{
            "Mediums":{
               "email":{
                  "signuptime":1643656974312,
                  "acceptmarketing":false,
                  "acceptsource":"shopify"
               }
            }
         }
      },
      "lty":"wl",
      "uid":"Xjg/Jbh9Y/0OTIydKNmd5NZjoB7w6B++1/RFflqnPa8=",
      "cts":1682520364996,
      "cnt":2,
      "lnote":"I am newly updated.",
      "lname":"My Wishlist",
      "cby":"[email protected]",
      "lid":"94dff98c-3eaa-48ee-ad87-98af2f87aeb5",
      "pid":"/uBEzdkDw3lbo=",
      "st":1,
      "id":"75c32443-ecd5-442f-8324-43ecd5f42f1e",
      "uts":1682520590149,
      "_pkey":"Xjg/Jbh9",
      "_t":1,
      "itemcmnts":0,
      "uby":"[email protected]",
      "lhash":"bXktd2lzaGxpc3Q=",
      "cfor":"[email protected]"
   }
]

Error Response:

If the request is unsuccessful, the API will return a JSON response with an error message and an HTTP status code indicating the type of error that occurred.

Status CodeTypeDescription
400Bad RequestYour request is invalid, change your request params and query and try again.
401UnauthorisedYou are performing an action on a resource that is not granted to the current logged-in user. Additionally, for REST APIs, this could mean your API key is wrong.
403ForbiddenYou are not allowed to request this data.
404Not FoundThe specified requested data could not be found.
429Too Many RequestsYou're raising too many requests! Slow down!
500Internal Server Error --We had a problem with our server. Try again later.
503Service UnavailableWe're temporarily offline for maintenance. Please try again later.