Skip to main content
DELETE
/
api
/
rest
/
invoices
/
{invoiceId}
/
documents
/
{id}
Delete Invoice Document
curl --request DELETE \
  --url https://api.upwell.com/api/rest/invoices/{invoiceId}/documents/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "invoiceId": "<string>"
}
'
{
  "deleteFileAssociations": {
    "affectedRows": 123,
    "returning": [
      {
        "associationId": "<string>",
        "fileId": "<string>",
        "id": "<string>"
      }
    ]
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

id
string
required

"id" is required (enter it either in parameters or request body)

invoiceId
string
required

"invoiceId" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

id
string
invoiceId
string

Response

200 - application/json

Responses for DELETE /api/rest/invoices/{invoiceId}/documents/{id}

deleteFileAssociations
FileAssociationsMutationResponse Ā· object

response of any mutation on the table "file_associations"