WriteOffInvoiceResponse Class

Contains properties to store the response details to the request to write off a posted invoice.

InvoiceWriteOff

Learn more about the constructors available with the WriteOffInvoiceResponse class.

The WriteOffInvoiceResponse class includes these constructors.

Initializes the WriteOffInvoiceResponse class that stores the response details to the request to write off a posted invoice.

public WriteOffInvoiceResponse(InvoiceWriteOff.WriteOffInvoiceResponseError errors, String invoiceId, String requestIdentifier, Boolean success)

errors

Type: InvoiceWriteOff.WriteOffInvoiceResponseError

If the request fails, this property contains a list of errors.

invoiceId

Type: String

ID of the invoice record that’s written off.

requestIdentifier

Type: String

If the request is successful, this property contains an asynchronous API request identifier for an invoice ID.

success

Type: Boolean

Indicates whether the invoice write-off request was successful (true) or not (false).

Learn more about the properties available with the WriteOffInvoiceResponse class.

The WriteOffInvoiceResponse class includes these properties.

  • errors

    Get the list of errors if the request to write off posted invoices fails.

  • invoiceId

    Get the ID of the invoice record that’s written off.

  • requestIdentifier

    Get the identifier of the asynchronous API request for an invoice ID if the request is successful.

  • success

    Get the request status of the invoice write-off request.

Get the list of errors if the request to write off posted invoices fails.

public InvoiceWriteOff.WriteOffInvoiceResponseError errors {get; set;}

Type: InvoiceWriteOff.WriteOffInvoiceResponseError

Get the ID of the invoice record that’s written off.

public String invoiceId {get; set;}

Type: String

Get the identifier of the asynchronous API request for an invoice ID if the request is successful.

public String requestIdentifier {get; set;}

Type: String

Get the request status of the invoice write-off request.

public Boolean success {get; set;}

Type: Boolean