Create Invoice Attachment

Creates a new invoice attachment.

post
Path parameters
invoiceIdstringRequired

The ID of the invoice to which the attachment belongs.

Body
filestring · binaryOptional

The file of the attachment.

Responses
201

Created

application/json
post
POST /public/v1/billing/invoices/{invoiceId}/attachments HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: multipart/form-data
Accept: */*
Content-Length: 67

{
  "attachment": {
    "Name": "text",
    "Description": "text"
  },
  "file": "binary"
}
{
  "$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": "INA-1234-1234",
  "invoice": {
    "id": "INV-123-456-789"
  },
  "isExternal": true
}

Last updated

Was this helpful?