DELETE
/
quickbooks-desktop
/
credit-card-credits
/
{id}
import Conductor from 'conductor-node';

const conductor = new Conductor({
  apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});

const creditCardCredit = await conductor.qbd.creditCardCredits.delete('123ABC-1234567890', {
  conductorEndUserId: 'end_usr_1234567abcdefg',
});

console.log(creditCardCredit.id);
{
  "id": "123ABC-1234567890",
  "objectType": "qbd_credit_card_credit",
  "refNumber": "CREDIT-1234",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}").

Headers

Conductor-End-User-Id
string
required

The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}").

Example:

"end_usr_1234567abcdefg"

Path Parameters

id
string
required

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

Example:

"123ABC-1234567890"

Response

200 - application/json

Returns a confirmation of the deletion with the ID of the deleted credit card credit.

The response is of type object.