비용 센터 비활성화
엔드포인트
DELETE https://api.verifik.co/v2/cost-centers/{id}
비용 센터를 비활성화합니다. 기록은 삭제되지 않습니다. active가 false가 되고 사용 기록은 그대로 남습니다. 새 요청은 이 센터를 쓸 수 없습니다.
헤더
| 이름 | 값 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
경로 매개변수
id
타입: string
필수: 예
비활성화할 비용 센터 id입니다.
요청 예시
- cURL
- Node.js
- Python
curl -X DELETE "https://api.verifik.co/v2/cost-centers/6acfbdda92451bac5d0a7ebe" \
-H "Authorization: Bearer $VERIFIK_TOKEN"
const axios = require("axios");
const config = {
method: "delete",
url: "https://api.verifik.co/v2/cost-centers/6acfbdda92451bac5d0a7ebe",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import os
import requests
response = requests.delete(
"https://api.verifik.co/v2/cost-centers/6acfbdda92451bac5d0a7ebe",
headers={"Authorization": f"Bearer {os.environ['VERIFIK_TOKEN']}"},
)
print(response.json())
응답 예시
- 200 OK
{
"data": {
"_id": "6acfbdda92451bac5d0a7ebe",
"client": "69c2b824295cd7d276e478ad",
"name": "스페인 운영",
"code": "SPAIN-OPS",
"country": "ES",
"active": false,
"createdAt": "2026-10-14T17:37:30.469Z",
"updatedAt": "2026-10-14T18:05:44.010Z"
}
}
다시 켜려면 비용 센터 수정에 active: true를 보냅니다.
오류 응답
{
"message": "cost_center_not_found",
"code": "NotFound"
}