---
updatedAt: 2026-05-22T12:53:05.000Z
agentTools:
  projectIndex: https://docs.falco-app.be/llms.txt
---

# Get a sale document

Required scope : `documents:sales:read`


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Documents",
    "version": "1.0.0",
    "description": "`X-Falco-App-Secret` + `X-Falco-Api-Key`.\n"
  },
  "servers": [
    {
      "url": "https://api.falco-app.be/v1",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.falco-app.be/v1",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Falco-App-Secret",
        "description": "`X-Falco-App-Secret`: Falco Application Secret associated to your application. Use together with the `X-Falco-Api-Key` header.",
        "x-scopes": [
          "articles:read",
          "articles:write",
          "customers:read",
          "customers:write",
          "invoices:read",
          "invoices:write",
          "invoices:attachments:read",
          "invoices:attachments:write",
          "invoices:send",
          "invoices:ingest:ubl",
          "invoices:ingest:pdf",
          "peppol:inbound:read",
          "peppol:participants:read",
          "documents:sales:read",
          "documents:purchases:read",
          "documents:sales:update-payment-status",
          "documents:purchases:update-payment-status"
        ]
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        }
      },
      "FalcoSaleDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "sale_invoice",
              "sale_credit_note"
            ]
          },
          "number": {
            "type": "string"
          },
          "invoice_date": {
            "type": "string",
            "format": "date"
          },
          "invoice_due_date": {
            "type": "string",
            "format": "date"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "not_paid",
              "partially_paid",
              "paid"
            ]
          },
          "peppol_send_status": {
            "type": "string",
            "enum": [
              "not_sent",
              "success",
              "failure",
              "rejected"
            ]
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FalcoDocumentEvent"
            }
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FalcoFile"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "FalcoDocumentEvent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "created",
              "updated",
              "deleted",
              "marked_as_paid",
              "marked_as_partially_paid",
              "marked_as_not_paid",
              "fiduciary_import_success",
              "fiduciary_import_failure",
              "peppol_send_success",
              "peppol_send_failure",
              "peppol_message_level_response",
              "peppol_invoice_response"
            ]
          },
          "date": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "FalcoFile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "unknown",
              "pdf",
              "image",
              "ubl"
            ]
          },
          "file_name": {
            "type": "string"
          },
          "size_bytes": {
            "type": "number"
          }
        }
      }
    }
  },
  "paths": {
    "/documents/sales/{document_id}": {
      "get": {
        "summary": "Get a sale document",
        "tags": [
          "Sales"
        ],
        "description": "Required scope : `documents:sales:read`\n",
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Falco-Api-Key",
            "in": "header",
            "required": true,
            "description": "Falco Api Key (provided by the client - required in addition to X-Falco-App-Secret).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FalcoSaleDocument"
                }
              }
            }
          },
          "default": {
            "description": "Error (RFC 9457)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  }
}
```