---
agentTools:
  projectIndex: https://ordatic.readme.io/llms.txt
---

# Suspend Products

Manage the availability of the products (`items` and `modifiers`) associated to the `storeId`.

[block:html]
{
  "html": "<style>\n.simulate-readme-title {\n  color: var(--graphite);\n  font-family: var(--font-family);\n  font-size: 12px;\n  font-weight: var(--font-weight-bold);\n  text-transform: uppercase;\n}\n</style>\n<strong class=\"simulate-readme-title\">App Scope</strong>"
}
[/block]

[block:parameters]
{
  "data": {
    "h-0": "Channel",
    "h-1": "Pos",
    "h-2": "Rider",
    "h-3": "Loyalty",
    "0-1": "✔️",
    "0-0": "✖️",
    "0-2": "✖️",
    "0-3": "✖️"
  },
  "cols": 4,
  "rows": 1
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Public API",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://public-api.qa.ordatic.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/stores/{storeId}/products/suspended": {
      "patch": {
        "summary": "Suspend Products",
        "description": "",
        "operationId": "suspend-products",
        "parameters": [
          {
            "name": "storeId",
            "in": "path",
            "description": "The id of the store whose product availability you want to change",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "suspendedProducts"
                ],
                "properties": {
                  "suspendedProducts": {
                    "type": "array",
                    "description": "The list of Product which availability you want to manage",
                    "items": {
                      "properties": {
                        "innerId": {
                          "type": "string",
                          "description": "A unique id that identifies the Product"
                        },
                        "posRef": {
                          "type": "string",
                          "description": "The id of the Product inside the Pos"
                        },
                        "type": {
                          "type": "string",
                          "description": "The type of the Product",
                          "enum": [
                            "item",
                            "modifier"
                          ]
                        },
                        "channels": {
                          "type": "array",
                          "description": "The list of Channels slugs where you want to update the availability of the Product",
                          "default": [],
                          "items": {
                            "type": "string"
                          }
                        },
                        "suspended": {
                          "type": "boolean",
                          "description": "Use `true` to suspend the Product, use `false` otherwise"
                        }
                      },
                      "required": [
                        "innerId",
                        "posRef",
                        "type",
                        "channels",
                        "suspended"
                      ],
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "suspendedProducts": [
                      {
                        "innerId": "item-id-coke",
                        "posRef": "123",
                        "type": "item",
                        "channels": [
                          "example-app"
                        ],
                        "suspended": true
                      },
                      {
                        "innerId": "modifier-id-ice",
                        "posRef": "456",
                        "type": "modifier",
                        "channels": [
                          "example-app"
                        ],
                        "suspended": false
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": true,\n  \"details\": [\n    {\n      \"storeId\": \"3fab63d7-662b-43df-bdd4-ad0160de77b3\",\n      \"message\": \"A message representing the error\",\n      \"payload\": {\n        \"suspendedProducts\": [\n          {\n          \t\"innerId\": \"item-id-coke\",\n        \t\t\"posRef\": \"123\",\n        \t\t\"type\": \"item\",\n        \t\t\"channels\": [\n          \t\t\"example-app\"\n        \t\t],\n        \t\t\"suspended\": true\n          }\n        ]\n      }\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "storeId": {
                            "type": "string",
                            "example": "3fab63d7-662b-43df-bdd4-ad0160de77b3"
                          },
                          "message": {
                            "type": "string",
                            "example": "A message representing the error"
                          },
                          "payload": {
                            "type": "object",
                            "properties": {
                              "suspendedProducts": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "innerId": {
                                      "type": "string",
                                      "example": "item-id-coke"
                                    },
                                    "posRef": {
                                      "type": "string",
                                      "example": "123"
                                    },
                                    "type": {
                                      "type": "string",
                                      "example": "item"
                                    },
                                    "channels": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "example": "example-app"
                                      }
                                    },
                                    "suspended": {
                                      "type": "boolean",
                                      "example": true,
                                      "default": true
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": 401,\n\t\"body\": {\n    \"error\": true,\n    \"message\": \"A message representing the error\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "body": {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "message": {
                          "type": "string",
                          "example": "A message representing the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": 403,\n\t\"body\": {\n    \"error\": true,\n    \"message\": \"A message representing the error\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "example": 403,
                      "default": 0
                    },
                    "body": {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "message": {
                          "type": "string",
                          "example": "A message representing the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": 404,\n\t\"body\": {\n    \"error\": true,\n    \"message\": \"A message representing the error\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "example": 404,
                      "default": 0
                    },
                    "body": {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "message": {
                          "type": "string",
                          "example": "A message representing the error"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "623c58397d65e5077a346cab:62e9475835b6660363b6c606"
}
```