Skip to main content
POST
/
invoice
/
attachment
/
{uuid}
Upload Attachment
curl --request POST \
  --url https://api.dev.uselevers.com/api-service/v1/invoice/attachment/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form file.items='@example-file'
{
  "attachment": [
    "<string>"
  ]
}

Authorization

All endpoints require Bearer token authentication.
HeaderTypeRequiredDescription
AuthorizationstringYesBearer authentication header of the form Bearer <token>

Getting Your API Key

See the Quickstart guide for instructions on obtaining your API credentials.

Path Parameters

ParameterTypeRequiredDescription
uuidstring (UUID)YesInvoice UUID

Request Body

Upload files using multipart/form-data:
ParameterTypeRequiredDescription
filearray of fileYesFiles to upload (PDF, images, etc.)

Supported File Types

  • PDF documents
  • Images (PNG, JPG, JPEG)
  • Other common document formats

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string<uuid>
required

Body

multipart/form-data
file
file[]
required

Response

Successful Response

attachment
string[]
required