# Upload Purchase Order Document

> Perform Upload Purchase Order Document through ClaimSoft.

Source: [https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_upload_purchase_order_document](https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_upload_purchase_order_document)

Integration: [ClaimSoft](https://genhealth.ai/docs/workflows/integrations/claim-soft.md)

- Handler: `claimsoft_upload_purchase_order_document`

- Connection type: `claimsoft`

## Inputs

- `purchase_order_id` — Purchase Order Id (expression, required)
  Required literal value or workflow expression.
- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `filename` — Filename (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `purchase_order_id` — Purchase Order Id
- `filename` — Filename
- `size_bytes` — Size Bytes
- `verification_status` — Verification Status
- `documents_total` — Documents Total
- `documents` — Documents
- `inventory_url` — Inventory Url
- `message` — Message
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "purchase_order_id",
    "document_id"
  ],
  "properties": {
    "filename": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "purchase_order_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "filename": {},
    "documents": {},
    "size_bytes": {},
    "inventory_url": {},
    "documents_total": {},
    "purchase_order_id": {},
    "verification_status": {}
  },
  "additionalProperties": true
}
```
