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.
Call through Alter
Section titled “Call through Alter”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 osfrom alter_sdk import Appfrom 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()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Optional | Additional keys: not allowed |
query.minorversion | integer | Optional | Must equal: 75 |
query.requestid | string | Optional | Minimum length: 1 |
body | Model | Required within parent | Expand Delete an attachable — request body — body |
Referenced models: Delete an attachable — request body — body
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
time | string | Optional | |
Attachable | Model | Optional | Expand Read an attachable — response body — Attachable |
Referenced models: Read an attachable — response body — Attachable
Schemas
Section titled “Schemas”3 more schemas are linked from the tables above, on the schema pages.
Read an attachable — response body — Attachable
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
AttachableRef | array | Optional | Specifies the transaction object to which this attachable file is to be linked. |
AttachableRef[] | Model | Each item | Expand Read an attachable — response body — Attachable Attachable Ref item |
Category | string | Optional | Category of the attachment. Valid values include (case sensitive): Contact Photo , Document , Image , Receipt , Signature , Sound , Other . |
ContentType | string | Optional | ContentType of the attachment. Returned for file attachments. |
FileAccessUri | string | Optional | FullPath FileAccess URI of the attachment. Returned for file attachments. Read only: true |
FileName | string | Optional | FileName of the attachment. Required for file attachments. Conditionally required |
Id | string | Optional | Unique Identifier for an Intuit entity (object). Required for the update operation. Read only: true |
Lat | string | Optional | Latitude from where the attachment was requested. |
Long | string | Optional | Longitude from where the attachment was requested. |
MetaData | Model | Optional | Expand 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. |
Note | string | Optional | This note is either related to the attachment specified by FileName or is a standalone note. Required for standalone notes. Conditionally required |
PlaceName | string | Optional | PlaceName from where the attachment was requested. |
Size | JSON | Optional | Size of the attachment. Returned for file attachments. Decimal string Read only: true |
Size (anyOf 1) | JSON | Alternative | |
Size (anyOf 1) (anyOf 1) | number | Alternative | |
Size (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Size (anyOf 2) | string | Alternative | |
SyncToken | string | Optional | Version 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 |
Tag | string | Optional | Tag name for the requested attachment. |
TempDownloadUri | string | Optional | TempDownload URI which can be directly downloaded by clients. Returned for file attachments. Read only: true |
ThumbnailFileAccessUri | string | Optional | FullPath 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 |
ThumbnailTempDownloadUri | string | Optional | Thumbnail 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
AttachableRef | array | Optional | Specifies the transaction object to which this attachable file is to be linked. |
AttachableRef[] | Model | Each item | Expand Delete an attachable — request body — body Attachable Ref item |
Category | string | Optional | Category of the attachment. Valid values include (case sensitive): Contact Photo , Document , Image , Receipt , Signature , Sound , Other . |
ContentType | string | Optional | ContentType of the attachment. Returned for file attachments. |
FileAccessUri | string | Optional | FullPath FileAccess URI of the attachment. Returned for file attachments. Read only: true |
FileName | string | Optional | FileName of the attachment. Required for file attachments. Conditionally required |
Id | string | Required within parent | |
Lat | string | Optional | Latitude from where the attachment was requested. |
Long | string | Optional | Longitude from where the attachment was requested. |
MetaData | Model | Optional | Expand 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. |
Note | string | Optional | This note is either related to the attachment specified by FileName or is a standalone note. Required for standalone notes. Conditionally required |
PlaceName | string | Optional | PlaceName from where the attachment was requested. |
Size | JSON | Optional | Size of the attachment. Returned for file attachments. Decimal string Read only: true |
Size (anyOf 1) | number | Alternative | |
Size (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
SyncToken | string | Required within parent | |
Tag | string | Optional | Tag name for the requested attachment. |
TempDownloadUri | string | Optional | TempDownload URI which can be directly downloaded by clients. Returned for file attachments. Read only: true |
ThumbnailFileAccessUri | string | Optional | FullPath 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 |
ThumbnailTempDownloadUri | string | Optional | Thumbnail 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 |
domain | string | Optional | |
sparse | boolean | Optional |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
CustomField | array | Optional | If the user tries to fetch a record without permission, the permission denied message is conveyed through this field. |
CustomField[] | Model | Each item | Expand Read an invoice — response body — Invoice Custom Field item |
EntityRef | Model | Optional | Expand 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. |
Inactive | JSON | Optional | Indicates 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) | boolean | Alternative | |
Inactive (anyOf 2) | string | Alternative | Known values: true, false |
IncludeOnSend | JSON | Optional | Used 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) | boolean | Alternative | |
IncludeOnSend (anyOf 2) | string | Alternative | Known values: true, false |
LineInfo | string | Optional | For transaction objects, used to reference a transaction detail line. |
NoRefOnly | JSON | Optional | Indicates 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) | boolean | Alternative | |
NoRefOnly (anyOf 2) | string | Alternative | Known 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
CreateTime | string | Optional | Time the entity was created in the source domain. Read only: true |
LastUpdatedTime | string | Optional | Time the entity was last updated in the source domain. Read only: true |
Read an invoice — response body — Invoice Custom Field item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
DefinitionId | string | Optional | Unique identifier of the CustomFieldDefinition that corresponds to this CustomField. Read only: true |
Name | string | Optional | Name of the custom field. Read only: true |
StringValue | string | Optional | The value for the StringType custom field. |
Type | string | Optional | Data type of custom field. Only one type is currently supported: StringType . Read only: true |
Read an item — response body — Item Class Ref
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
name | string | Optional | An 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. |
value | JSON | Optional | |
value (anyOf 1) | string | Alternative | |
value (anyOf 2) | JSON | Alternative | |
value (anyOf 2) (anyOf 1) | integer | Alternative | |
value (anyOf 2) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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"}