v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-262621423.8 MB

Void a credit card charge

Voids a credit card charge by setting its amount to zero while keeping a record of it in QuickBooks. The void will fail if the credit card charge is currently in use or has any linked transactions that are in use.

post/quickbooks-desktop/credit-card-charges/{id}/void

Path parameters

idstring required

The QuickBooks-assigned unique identifier of the credit card charge to void.

Example:123ABC-1234567890

The QuickBooks-assigned unique identifier of the credit card charge to void.

Headers

Conductor-End-User-Idstring required

The ID of the End-User to receive this request.

Example:end_usr_1234567abcdefg

The ID of the End-User to receive this request.

Response

Returns a confirmation of the void with the ID of the voided credit card charge.

idstring required

The QuickBooks-assigned unique identifier of the voided credit card charge.

objectType'qbd_credit_card_charge' required

The type of object. This value is always "qbd_credit_card_charge".

createdAtstring nullable required

The date and time when this credit card charge was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.

updatedAtstring nullable required

The date and time when this credit card charge was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.

refNumberstring nullable required

The case-sensitive user-defined reference number of the voided credit card charge.

voidedboolean required

Indicates whether the credit card charge was voided.

Example response

{
  "id": "123ABC-1234567890",
  "objectType": "qbd_credit_card_charge",
  "createdAt": "2025-01-01T12:34:56+00:00",
  "updatedAt": "2025-02-01T12:34:56+00:00",
  "refNumber": "CARD-1234",
  "voided": true
}