/customer/{customerId}/item/{itemId}/delete v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Customers
postCustomerIdDelete
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/customer/{customerId}/item/{itemId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /customer/{customerId}/item/{itemId}/delete
Logically delete a customer item
Marks the most recent matching customer item as deleted. Only accessible to users with admin or regular roles. Blocked for users with the customer role.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| customerId | path | string | true | MongoDB ObjectId of the customer. |
| itemId | path | string | true | MongoDB ObjectId of the item. |
Example responses
200 Response
"deleted"
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Customer item marked as deleted. | string |
| 500 | Internal Server Error | Server error | string |
