Get Custom Ledger Attachment

Retrieves a specific customer ledger attachment by its ID. Depending on the Accept header, this endpoint can either download the attachment or return only its metadata.

get
Path parameters
idstringRequired

The ID of the custom ledger attachment to retrieve.

customLedgerIdstringRequired
Query parameters
selectstringOptional

Optional select statement to specify which fields to include in the response.

Responses
200
OK
application/json
get
GET /public/v1/billing/custom-ledgers/{customLedgerId}/attachments/{id} HTTP/1.1
Host: 
Accept: */*
{
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "audit": {
    "created": {
      "at": "2025-04-30T14:30:00.0000000+00:00",
      "by": {
        "id": "text",
        "name": "text",
        "icon": "text"
      }
    },
    "updated": {
      "at": "2025-04-30T14:30:00.0000000+00:00",
      "by": {
        "id": "text",
        "name": "text",
        "icon": "text"
      }
    }
  },
  "name": "raw records data",
  "type": "Input",
  "filename": "invoice.pdf",
  "size": 102400,
  "contentType": "application/pdf",
  "description": "Invoice for March 2025",
  "isDeleted": false,
  "id": "CLA-1234-1234",
  "customLedger": {
    "id": "text",
    "name": "Quarterly Revenue Ledger"
  }
}

Last updated

Was this helpful?