PayPal.Api.Invoice.Delete C# (CSharp) Method

Delete() public method

Deletes a draft invoice, by ID. Note that this call works for invoices in the draft state only. For invoices that have already been sent, you can [cancel the invoice](/docs/api/invoicing/#invoices_cancel). After you delete a draft invoice, you can no longer use it or show its details. However, you can reuse its invoice number.
public Delete ( APIContext apiContext ) : void
apiContext APIContext APIContext used for the API call.
return void
        public void Delete(APIContext apiContext)
        {
            Invoice.Delete(apiContext, this.id);
        }

Same methods

Invoice::Delete ( APIContext apiContext, string invoiceId ) : void

Usage Example

コード例 #1
0
 /// <summary>
 /// Deletes a draft invoice, by ID. Note that this call works for invoices in the draft state only. For invoices that have already been sent, you can [cancel the invoice](/docs/api/invoicing/#invoices_cancel). After you delete a draft invoice, you can no longer use it or show its details. However, you can reuse its invoice number.
 /// </summary>
 /// <param name="apiContext">APIContext used for the API call.</param>
 public void Delete(APIContext apiContext)
 {
     Invoice.Delete(apiContext, this.id);
 }