Skip to content

QuickBooks: Delete an attachable

QuickBooks attachable.delete: arguments, response, policy and SDK examples.

← Attachable operations · Get started

Operation quickbooks.attachable.delete_an_attachable

Provider route: POST /v3/company/{realmID}/attachable. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/quickbooks with npm, or alter-sdk-quickbooks with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { QuickBooksIntegration } from "@alter-ai/quickbooks";
async function execute(input: Parameters<QuickBooksIntegration["attachable"]["delete"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new QuickBooksIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.attachable.delete(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_quickbooks import QuickBooksIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = QuickBooksIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.attachable.delete(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.minorversionintegerOptionalMust equal: 75
query.requestidstringOptionalMinimum length: 1
bodyModelRequired within parentExpand Delete an attachable — request body — body

Referenced models: Delete an attachable — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
timestringOptional
AttachableModelOptionalExpand Read an attachable — response body — Attachable

Referenced models: Read an attachable — response body — Attachable

3 more schemas are linked from the tables above, on the schema pages.

Read an attachable — response body — Attachable
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AttachableRefarrayOptionalSpecifies the transaction object to which this attachable file is to be linked.
AttachableRef[]ModelEach itemExpand Read an attachable — response body — Attachable Attachable Ref item
CategorystringOptionalCategory of the attachment. Valid values include (case sensitive): Contact Photo , Document , Image , Receipt , Signature , Sound , Other .
ContentTypestringOptionalContentType of the attachment. Returned for file attachments.
FileAccessUristringOptionalFullPath FileAccess URI of the attachment. Returned for file attachments.
Read only: true
FileNamestringOptionalFileName of the attachment. Required for file attachments.
Conditionally required
IdstringOptionalUnique Identifier for an Intuit entity (object). Required for the update operation.
Read only: true
LatstringOptionalLatitude from where the attachment was requested.
LongstringOptionalLongitude from where the attachment was requested.
MetaDataModelOptionalExpand Read a bill — response body — Bill Meta Data
Descriptive information about the entity. The MetaData values are set by Data Services and are read only for all applications.
NotestringOptionalThis note is either related to the attachment specified by FileName or is a standalone note. Required for standalone notes.
Conditionally required
PlaceNamestringOptionalPlaceName from where the attachment was requested.
SizeJSONOptionalSize of the attachment. Returned for file attachments.
Decimal string
Read only: true
Size (anyOf 1)JSONAlternative
Size (anyOf 1) (anyOf 1)numberAlternative
Size (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Size (anyOf 2)stringAlternative
SyncTokenstringOptionalVersion number of the object. It is used to lock an object for use by one app at a time. As soon as an application modifies an object, its SyncToken is incremented. Attempts to modify an object specifying an older SyncToken fails. Only the latest version of the object is maintained by QuickBooks Online.
Read only: true
TagstringOptionalTag name for the requested attachment.
TempDownloadUristringOptionalTempDownload URI which can be directly downloaded by clients. Returned for file attachments.
Read only: true
ThumbnailFileAccessUristringOptionalFullPath FileAccess URI of the attachment thumbnail if the attachment file is of a content type with thumbnail support. Returned for file attachments.
Read only: true
ThumbnailTempDownloadUristringOptionalThumbnail TempDownload URI which can be directly downloaded by clients. This is only available if the attachment file is of a content type with thumbnail support. Returned for file attachments.
Read only: true

Referenced models: Read an attachable — response body — Attachable Attachable Ref item, Read a bill — response body — Bill Meta Data

Delete an attachable — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
AttachableRefarrayOptionalSpecifies the transaction object to which this attachable file is to be linked.
AttachableRef[]ModelEach itemExpand Delete an attachable — request body — body Attachable Ref item
CategorystringOptionalCategory of the attachment. Valid values include (case sensitive): Contact Photo , Document , Image , Receipt , Signature , Sound , Other .
ContentTypestringOptionalContentType of the attachment. Returned for file attachments.
FileAccessUristringOptionalFullPath FileAccess URI of the attachment. Returned for file attachments.
Read only: true
FileNamestringOptionalFileName of the attachment. Required for file attachments.
Conditionally required
IdstringRequired within parent
LatstringOptionalLatitude from where the attachment was requested.
LongstringOptionalLongitude from where the attachment was requested.
MetaDataModelOptionalExpand Read a bill — response body — Bill Meta Data
Descriptive information about the entity. The MetaData values are set by Data Services and are read only for all applications.
NotestringOptionalThis note is either related to the attachment specified by FileName or is a standalone note. Required for standalone notes.
Conditionally required
PlaceNamestringOptionalPlaceName from where the attachment was requested.
SizeJSONOptionalSize of the attachment. Returned for file attachments.
Decimal string
Read only: true
Size (anyOf 1)numberAlternative
Size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$
SyncTokenstringRequired within parent
TagstringOptionalTag name for the requested attachment.
TempDownloadUristringOptionalTempDownload URI which can be directly downloaded by clients. Returned for file attachments.
Read only: true
ThumbnailFileAccessUristringOptionalFullPath FileAccess URI of the attachment thumbnail if the attachment file is of a content type with thumbnail support. Returned for file attachments.
Read only: true
ThumbnailTempDownloadUristringOptionalThumbnail TempDownload URI which can be directly downloaded by clients. This is only available if the attachment file is of a content type with thumbnail support. Returned for file attachments.
Read only: true
domainstringOptional
sparsebooleanOptional

Referenced models: Read a bill — response body — Bill Meta Data, Delete an attachable — request body — body Attachable Ref item

Read an attachable — response body — Attachable Attachable Ref item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
CustomFieldarrayOptionalIf the user tries to fetch a record without permission, the permission denied message is conveyed through this field.
CustomField[]ModelEach itemExpand Read an invoice — response body — Invoice Custom Field item
EntityRefModelOptionalExpand Read an item — response body — Item Class Ref
Object reference to which this attachment is linked. Set EntityRef.value with the Id of the target object as returned in its response body when queried. Set EntityRef.type with the specific type of the target object. For example, invoice , bill , item , etc.
InactiveJSONOptionalIndicates whether or not to include references to hidden entities when filtering. When set to true , hidden references are returned in the result set. For filtering results, it works with AttachableRef.EntityRef.Type , AttachableRef.EntityRef.Value and AttachableRef.NoRefOnly filters in combination.
Inactive (anyOf 1)booleanAlternative
Inactive (anyOf 2)stringAlternativeKnown values: true, false
IncludeOnSendJSONOptionalUsed when EntityRef.type references a transaction object. This field indicates whether or not the attachment is sent with the transaction when Save and Send button is clicked in the QuickBooks UI or when the Send endpoint (send email) is invoked for the object.
IncludeOnSend (anyOf 1)booleanAlternative
IncludeOnSend (anyOf 2)stringAlternativeKnown values: true, false
LineInfostringOptionalFor transaction objects, used to reference a transaction detail line.
NoRefOnlyJSONOptionalIndicates whether or not to find attachable records that have no references to any entity. Combine with AttachableRef.Inactive to return hidden references.
NoRefOnly (anyOf 1)booleanAlternative
NoRefOnly (anyOf 2)stringAlternativeKnown values: true, false

Referenced models: Read an invoice — response body — Invoice Custom Field item, Read an item — response body — Item Class Ref

Read a bill — response body — Bill Meta Data
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
CreateTimestringOptionalTime the entity was created in the source domain.
Read only: true
LastUpdatedTimestringOptionalTime the entity was last updated in the source domain.
Read only: true
Read an invoice — response body — Invoice Custom Field item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
DefinitionIdstringOptionalUnique identifier of the CustomFieldDefinition that corresponds to this CustomField.
Read only: true
NamestringOptionalName of the custom field.
Read only: true
StringValuestringOptionalThe value for the StringType custom field.
TypestringOptionalData type of custom field. Only one type is currently supported: StringType .
Read only: true
Read an item — response body — Item Class Ref
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
namestringOptionalAn identifying name for the object being referenced by value and is derived from the field that holds the common name of that object. This varies by context and specific type of object referenced. For example, references to a Customer object use Customer.DisplayName to populate this field. Optionally returned in responses, implementation dependent.
valueJSONOptional
value (anyOf 1)stringAlternative
value (anyOf 2)JSONAlternative
value (anyOf 2) (anyOf 1)integerAlternative
value (anyOf 2) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: quickbooks.attachable.delete_an_attachable. Catalog operation: attachable/delete. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned query parameters: {"operation": "delete"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.