---
title: Download Subscription Agreement
slug: download-subscription-agreement
icon: {"apiMethod":"GET"}
createdAt: 2026-09-14T11:33:02.708Z
---

:::ApiMethodV2
```json
{
  "name": "Download Subscription Agreement",
  "method": "GET",
  "url": " https://equidefi.io/api/v1/investments/{investmentId}/subscription-agreement",
  "description": "Downloads the signed subscription agreement PDF for an investment. The X-Agreement-Status response header carries the agreement's status.",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "bCrPpAvNsbRG4a8aPhqBQ",
        "language": "javascript",
        "code": "import { writeFile } from \"node:fs/promises\";\n\nconst response = await fetch(\n  \"https://equidefi.io/api/v1/investments/{investmentId}/subscription-agreement\",\n  {\n    method: \"GET\",\n    headers: {\n      Authorization: `Bearer ${process.env.EQUIDEFI_API_KEY}`,\n    },\n  }\n);\n\nconst status = response.headers.get(\"x-agreement-status\");\nconst buffer = Buffer.from(await response.arrayBuffer());\nawait writeFile(\"subscription-agreement.pdf\", buffer);",
        "customLabel": ""
      },
      {
        "id": "XrshGv0rdS8C2gsBBQxK1",
        "language": "python",
        "code": ""
      }
    ],
    "selectedLanguageId": "bCrPpAvNsbRG4a8aPhqBQ"
  },
  "results": {
    "languages": [
      {
        "id": "vSd90VFesQoCOOR9ZPFd_",
        "language": "200",
        "code": "",
        "customLabel": ""
      },
      {
        "id": "_ysLTtONtPFAcUurdFa1P",
        "language": "404",
        "code": "{ \"errors\": [\"Subscription agreement not found\"] }",
        "customLabel": ""
      },
      {
        "id": "HYd4qIgK8jsNinkAcsWgN",
        "language": "401",
        "code": "{ \"errors\": [\"Unauthorized\"] }"
      },
      {
        "id": "3lzBLWhb8U15C_dXwuNlk",
        "language": "403",
        "code": "{ \"errors\": [\"Forbidden\"] }"
      },
      {
        "id": "rJ1KaL9Xooogug2bx8pfB",
        "language": "409",
        "code": "{ \"errors\": [\"Subscription agreement has not been signed yet\"] }"
      }
    ],
    "selectedLanguageId": "vSd90VFesQoCOOR9ZPFd_"
  },
  "request": {
    "pathParameters": [
      {
        "name": "investmentId",
        "kind": "optional",
        "type": "string",
        "description": "UUID of the investment associated with the agreement.",
        "": "UUID of the investment associated with the agreement."
      }
    ],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "download-subscription-agreement",
  "legacyHash": "7be_G2BZJLn46yJghjF3h"
}
```
:::

