상품 삭제
상품을 지웁니다. 되돌릴 수 없습니다.
요청
DELETE
https://api.mallstory.kr/v1/shop/{shop_unique}/products/{product_unique}bash요청
curl -X DELETE 'https://api.mallstory.kr/v1/shop/{shop_unique}/products/6accaa68c2ca90eedea62100' \
-H 'Authorization: Bearer msat_8Hk2wQ7...'응답
json200 OK
{
"deleted": true,
"product_unique": "6accaa68c2ca90eedea62100"
}지운 상품을 다시 읽으면 404 입니다.
json삭제 뒤 상세 — 404
{
"code": "ProductNotExist",
"message": "상품이 없습니다."
}되돌릴 수 없습니다
손님 화면 · 관리자 목록에서 사라집니다(주문 이력은 남습니다). 판매만 멈추려면 수정으로
status_type 을 SUSPENSION(판매중지)으로 바꾸세요.오류
| 상태 | code | 언제 |
|---|---|---|
| 404 | ProductNotExist | 없는 키이거나 이미 지운 상품 |
| 401 | MissingLoginSession | Authorization 헤더에 Bearer 토큰이 없음 |
| 401 | InvalidAccessToken | 토큰이 틀리거나 만료 · 폐기됨 |
| 403 | InsufficientScope | 토큰에 products:read · products:write 가 없음 |