{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/products/disable.json","auth":"required","method":"post","params":[{"name":"identifier","type":"string","default":"","desc":"The identifier of the product you want to disable.","required":true,"in":"body","ref":"","_id":"56a99c30ca491e0d00eb8ac0"},{"name":"internal_id","type":"int","default":"","desc":"The Tophatter internal ID of the product you want to disable. Only required if you aren't already using the `identifier`.","required":false,"in":"body","ref":"","_id":"5c6524a5d2b26a0014806958"}],"results":{"codes":[{"name":"","code":"{\n  \"identifier\": \"6631A\",\n  \"internal_id\": 19301513,\n  ...\n  \"disabled_at\": \"2016-06-16T16:54:41-10:00\",\n  ...\n}\n","language":"json","status":200}]},"settings":"","examples":{"codes":[{"code":"# Using the identifier:\ncurl -X POST https://tophatter.com/merchant_api/v1/products/disable.json \\\n-d 'access_token=YOUR_ACCESS_TOKEN' \\\n-d 'identifier=6631A'\n\n# Using the internal_id:\ncurl -X POST https://tophatter.com/merchant_api/v1/products/disable.json \\\n-d 'access_token=YOUR_ACCESS_TOKEN' \\\n-d 'internal_id=19301513'","language":"curl"}]}},"next":{"description":"","pages":[]},"title":"Disable a Product","type":"endpoint","slug":"product-disable","excerpt":"Disabled products cannot be sold.","body":"","updates":[],"order":6,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56a99bfe1801ac0d00881ba1","category":{"sync":{"isSync":false,"url":""},"pages":["56a98f8fcc0f740d005bc176","56a98fa21801ac0d00881b88","56a98fad257fbc0d00d47630","56a98fb8318e6c1700a19d02","56a99061257fbc0d00d47637","56a990712d8fd90d0036eeeb","56a992361801ac0d00881b91","56a99bfe1801ac0d00881ba1","56a9a64d09cb9c0d00f0c7f0"],"title":"Products","slug":"products","order":1,"from_sync":false,"reference":false,"_id":"56a9783109cb9c0d00f0c7d3","__v":9,"project":"567f0c06143cc60d00c1fdbe","createdAt":"2016-01-28T02:08:49.783Z","version":"567f0c06143cc60d00c1fdc1"},"editedParams2":true,"user":"567f0baca74a1c0d003e1fba","__v":11,"parentDoc":null,"githubsync":"","project":"567f0c06143cc60d00c1fdbe","createdAt":"2016-01-28T04:41:34.248Z","editedParams":true,"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["567f0c07143cc60d00c1fdc2","56a9783109cb9c0d00f0c7d3","56a97837f834950d0037b363","56a9783b2d8fd90d0036eed6","56a979912d8fd90d0036eed8","5834b5691a80690f00d31faf","5834b5e4f775120f00c45f9d","5bf1a1473031e4005075ae14","5c64c200244bda003204b97f"],"_id":"567f0c06143cc60d00c1fdc1","__v":9,"createdAt":"2015-12-26T21:52:06.734Z","releaseDate":"2015-12-26T21:52:06.734Z","project":"567f0c06143cc60d00c1fdbe"}}