Delete a price code

View as Markdown
Removes a price code from a product and returns `204` with an empty body. Orders and subscriptions that resolve to the removed price code fall back to the product's base `price`. The product's other price codes, and the same price code on other products, are left in place. Returns `404` when the product has no such price code, so deleting the same price code twice returns `204` and then `404`. Deleting a price code requires Application API Scope. A Storefront API Scope request returns `403`.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

product_idstringRequired
Merchant product ID
price_codestringRequired

Price code to address. Surrounding whitespace is trimmed and matching is case-insensitive. URL-encode any character that is not safe in a path segment; + is read as a literal +, not as a space. A price code containing / cannot be addressed, which is why it cannot be created.

Response

204

Errors

403
Forbidden Error
404
Not Found Error