stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.DeleteProductsId

Description

Contains the different functions to run the operation deleteProductsId

Synopsis

Documentation

deleteProductsId Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

id | Constraints: Maximum length of 5000

-> ClientT m (Response DeleteProductsIdResponse)

Monadic computation which returns the result of the operation

DELETE /v1/products/{id}

<p>Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with <code>type=good</code> is only possible if it has no SKUs associated with it.</p>

data DeleteProductsIdResponse Source #

Represents a response of the operation deleteProductsId.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), DeleteProductsIdResponseError is used.

Constructors

DeleteProductsIdResponseError String

Means either no matching case available or a parse error

DeleteProductsIdResponse200 DeletedProduct

Successful response.

DeleteProductsIdResponseDefault Error

Error response.