stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.DeleteInvoicesInvoice

Description

Contains the different functions to run the operation deleteInvoicesInvoice

Synopsis

Documentation

deleteInvoicesInvoice Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

invoice | Constraints: Maximum length of 5000

-> ClientT m (Response DeleteInvoicesInvoiceResponse)

Monadic computation which returns the result of the operation

DELETE /v1/invoices/{invoice}

<p>Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be <a href="#void_invoice">voided</a>.</p>

data DeleteInvoicesInvoiceResponse Source #

Represents a response of the operation deleteInvoicesInvoice.

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), DeleteInvoicesInvoiceResponseError is used.

Constructors

DeleteInvoicesInvoiceResponseError String

Means either no matching case available or a parse error

DeleteInvoicesInvoiceResponse200 DeletedInvoice

Successful response.

DeleteInvoicesInvoiceResponseDefault Error

Error response.