Skip to main content
POST
/
payable_purchase_orders
/
{purchase_order_id}
/
preview
Preview a purchase order's email message
curl --request POST \
  --url https://api.sandbox.monite.com/v1/payable_purchase_orders/{purchase_order_id}/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "body_text": "<string>",
  "subject_text": "<string>"
}
'
{
  "body_preview": "<string>",
  "subject_preview": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Path Parameters

purchase_order_id
string<uuid>
required

Body

application/json

A schema for request for preview of purchase order email

body_text
string
required
subject_text
string
required

Response

Successful Response

A schema for returning a response for email preview

body_preview
string
required
subject_preview
string
required