Skip to content

List contract files of a customer

GET
/v1/customers/{id}/attachments
curl --request GET \
--url https://api.varman.io/v1/customers/cus_abc123/attachments \
--header 'X-API-Key: <X-API-Key>'

Returns the contract files (MSA, DPA, order forms) uploaded for one customer, each with a short-lived download URL. Use to review what a customer signed.

id
required
string

Example

cus_abc123

Customer ID

Media typeapplication/json
Array<object>
object
id
required

Unique identifier for the attachment

string
name
required

Original filename

string
type
required

File type/MIME type

string
size
required

File size in bytes

number
downloadUrl
required

Signed URL for downloading the file (temporary)

string
createdAt
required

Upload timestamp

string format: date-time

Example

[
{
"id": "att_abc123def456",
"name": "document.pdf",
"type": "application/pdf",
"size": 1024000,
"downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
"createdAt": "2024-01-15T10:30:00Z"
}
]