---
title: "Preview a purchase order's email message"
method: POST
path: "/payable_purchase_orders/{purchase_order_id}/preview"
tags: ["Purchase orders"]
---

# Preview a purchase order's email message

`POST /payable_purchase_orders/{purchase_order_id}/preview`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/payable_purchase_orders/{purchase_order_id}/preview`
- Auth: HTTP bearer

## Path parameters

- `purchase_order_id` string, required

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- object
  - `body_text` string, required
  - `subject_text` string, required

## Response `201`

Successful Response

- PurchaseOrderEmailPreviewResponse: A schema for returning a response for email preview
  - `body_preview` string, required
  - `subject_preview` string, required

## Other responses

- `400`: Bad Request
- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `403`: The specified access token does not have permissions to perform this operation.
- `404`: Not found
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
