Uploads a file as multipart/form-data with optional properties (name, description).
The ID of the ledger to which the attachment belongs.
The name of the attachment.
The description of the attachment.
The file of the attachment.
Created
Represents an attachment associated with a ledger in the billing system.
Name of the attachment.
raw records dataRepresents the type of billing attachment.
Represents the name of the file associated with the attachment.
invoice.pdfIndicates the size of the file in bytes.
102400Represents the MIME type of the file content.
application/pdfProvides a description of the attachment.
Invoice for March 2025Indicates whether the attachment has been marked as deleted.
falseThe unique identifier of the attachment.
LEA-1234-1234The unique identifier of the ledger.
BLE-1234-1234-1234-1234Bad Request
POST /public/v1/billing/ledgers/{ledgerId}/attachments HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: multipart/form-data
Accept: */*
Content-Length: 83
{
"attachment": {
"name": "text",
"description": "text",
"file": "binary"
},
"file": "binary"
}{
"audit": {
"created": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"updated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"revision": 1,
"name": "raw records data",
"type": "Input",
"filename": "invoice.pdf",
"size": 102400,
"contentType": "application/pdf",
"description": "Invoice for March 2025",
"isDeleted": false,
"id": "LEA-1234-1234",
"ledger": {
"revision": 1,
"id": "BLE-1234-1234-1234-1234"
}
}