Items
An Item in Swish belongs to a List and references a Shopify product/variant.
The page cursor
Number of lists/items to return
50Item search query
product:123,456 tag:saved-from-cart,saved-from-pageReturns all items as paginated response
Bad Request
Unauthorized
Forbidden
Not Found
GET /api/2025-04/items HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pageInfo": {
    "next": "YWZ0ZXI6NjdhNjFkNTU2MWU0ZjlkZTMwMmMwMmEx",
    "previous": "YmVmb3JlOjY3YTYxZDU1NjFlNGY5ZGUzMDJjMDJhMQ=="
  },
  "data": [
    {
      "id": "67a61d5561e4f9de302c02a1",
      "productId": 123,
      "variantId": 456,
      "quantity": 1,
      "createdAt": "2025-01-01T10:00:00.000Z",
      "updatedAt": "2025-01-01T10:00:00.000Z"
    }
  ]
}The Shopify ID of the product
123The Shopify ID of the variant
456The quantity of the item
1Example: 1Tags associated with the item (must contain only lowercase letters, numbers, hyphens or underscores)
["saved-from-cart"]The item has been successfully created.
Bad Request
Unauthorized
Forbidden
Not Found
POST /api/2025-04/items HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 73
{
  "productId": 123,
  "variantId": 456,
  "quantity": 1,
  "tags": [
    "saved-from-cart"
  ]
}{
  "data": {
    "id": "67a61d5561e4f9de302c02a1",
    "productId": 123,
    "variantId": 456,
    "quantity": 1,
    "createdAt": "2025-01-01T10:00:00.000Z",
    "updatedAt": "2025-01-01T10:00:00.000Z"
  }
}The list of item IDs to delete
["507f1f77bcf86cd799439011","507f1f77bcf86cd799439022"]The items have been successfully deleted.
No content
Bad Request
Unauthorized
Forbidden
Not Found
DELETE /api/2025-04/items HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 67
{
  "itemIds": [
    "507f1f77bcf86cd799439011",
    "507f1f77bcf86cd799439022"
  ]
}No content
The ID of the item
67a61d5561e4f9de302c02a1The Shopify ID of the product
123The Shopify ID of the variant
456The quantity of the item
1Example: 2The item has been successfully updated.
Bad Request
Unauthorized
Forbidden
Not Found
PATCH /api/2025-04/items/{itemId} HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 46
{
  "productId": 123,
  "variantId": 456,
  "quantity": 2
}{
  "data": {
    "id": "67a61d5561e4f9de302c02a1",
    "productId": 123,
    "variantId": 456,
    "quantity": 1,
    "createdAt": "2025-01-01T10:00:00.000Z",
    "updatedAt": "2025-01-01T10:00:00.000Z"
  }
}The ID of the item
67a61d5561e4f9de302c02a1The item has been successfully deleted.
No content
Bad Request
Unauthorized
Forbidden
Not Found
DELETE /api/2025-04/items/{itemId} HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The ID of the item
67a61d5561e4f9de302c02a1The item has been successfully found.
Bad Request
Unauthorized
Forbidden
Not Found
GET /api/2025-04/items/{itemId} HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "id": "67a61d5561e4f9de302c02a1",
    "productId": 123,
    "variantId": 456,
    "quantity": 1,
    "createdAt": "2025-01-01T10:00:00.000Z",
    "updatedAt": "2025-01-01T10:00:00.000Z",
    "listIds": [
      "text"
    ]
  }
}The ID of the item
67a61d5561e4f9de302c02a1The ID of the item to set the lists for
["67e2704d3c49af2fef03e054","67e2704d3c49af2fef03e054"]The item has been successfully been added to the lists.
Bad Request
Unauthorized
Forbidden
Not Found
PUT /api/2025-04/items/{itemId}/lists HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 67
{
  "listIds": [
    "67e2704d3c49af2fef03e054",
    "67e2704d3c49af2fef03e054"
  ]
}{
  "data": {
    "id": "67a61d5561e4f9de302c02a1",
    "productId": 123,
    "variantId": 456,
    "quantity": 1,
    "createdAt": "2025-01-01T10:00:00.000Z",
    "updatedAt": "2025-01-01T10:00:00.000Z",
    "listIds": [
      "text"
    ]
  }
}Last updated
