Receivables

Delete a document

Changed on
delete/receivables/{id}/documents/{document_id}

Request

Path parameters

idstring required

An object ID assigned and owned by the originator

Example:acct-123
document_idstring required

An object ID assigned and owned by the originator

Example:acct-123

Response

Successful operation

file_namestring required

File name of the document, used when the file is downloaded

content_type'application/pdf' | 'image/png' | 'image/jpeg' | 'image/webp' | 'application/xml' | 'text/xml' required

MIME type of the document file

size_bytesinteger required

Size of the file in bytes, at most 25 MB

type'invoice' | 'contract' | 'proof_of_delivery' | 'other'

Kind of document attached to the receivable

metadataobject

Additional custom data associated with this document

idstring required

The receivable document ID assigned by the originator

created_atstring date-time required

Creation date and time

created_bystring required

ID of the user that created this object

updated_atstring date-time required

Last update date and time

updated_bystring required

ID of the user that last updated this object

status'pending_upload' | 'uploaded' | 'quarantined' required

Lifecycle status of the document: pending_upload until the file upload is confirmed, quarantined when the file failed malware scanning (upload a replacement file to clear it)

etagstring

Entity tag of the stored file, set once the upload is confirmed

Example response

{
  "metadata": {
    "key": "value"
  },
  "id": "acct-123",
  "created_at": "2024-01-15T10:30:00Z",
  "created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
  "updated_at": "2024-01-15T10:30:00Z",
  "updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}

Changes