---
updatedAt: 2026-10-22T13:01:41.000Z
agentTools:
  projectIndex: https://developer.avinodegroup.com/llms.txt
---

# Read the binary content of a named document.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Paynode API",
    "version": "2026-11-12T06:11:40.521311568Z"
  },
  "externalDocs": {
    "description": "Avinode Group Devportal",
    "url": "https://developer.avinodegroup.com"
  },
  "servers": [
    {
      "url": "https://sandbox.avinode.com/payapi",
      "description": "Paynode (development)"
    },
    {
      "url": "https://sandbox.avinode.com/api",
      "description": "Avinode (development)"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "PaymentRequest",
      "description": "APIs supporting payment requests."
    }
  ],
  "paths": {
    "/paymentrequest/{paymentrequestid}/documents/{documentname}": {
      "get": {
        "tags": [
          "PaymentRequest"
        ],
        "summary": "Read the binary content of a named document.\n",
        "operationId": "getDocumentByName",
        "parameters": [
          {
            "name": "paymentrequestid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
            }
          },
          {
            "name": "documentname",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Avinode-SentTimestamp",
            "in": "header",
            "description": "ISO8601 Timestamp",
            "schema": {}
          },
          {
            "name": "X-Avinode-ApiToken",
            "in": "header",
            "description": "API Token",
            "required": false,
            "schema": {}
          },
          {
            "name": "X-Avinode-Product",
            "in": "header",
            "description": "Calling product / software (ex: AcmeApp-v10.2)",
            "schema": {}
          },
          {
            "name": "X-Avinode-ActAsAccount",
            "in": "header",
            "description": "Account id if action on behalf of",
            "schema": {}
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "servers": [
        {
          "url": "https://sandbox.avinode.com/payapi",
          "description": "Paynode (development)"
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}
```