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

postDisable a Product

Disabled products cannot be sold.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

identifier:
required
string
The identifier of the product you want to disable.
internal_id:
integer
The Tophatter internal ID of the product you want to disable. Only required if you aren't already using the `identifier`.

Examples


Result Format