Delete a Product Price from a Price Book
DELETEhttps://euwest.api.elasticpath.com/pcm/pricebooks/:pricebookID/prices/:priceID
Deletes a product price from the specified price book.
Request
Path Parameters
pricebookID stringrequired
The unique identifier of a price book.
priceID stringrequired
A unique identifier of a price book price.
Responses
- 204
- default
A 204 response indicates that the product prices have been deleted
Unexpected error.
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"detail": "The price already exists",
"status": "409",
"title": "conflict"
}
]
}
Authorization: Authorization
name: Authorizationtype: httpin: headerscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X DELETE 'https://euwest.api.elasticpath.com/pcm/pricebooks/:pricebookID/prices/:priceID' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear