---
title: "Test JSONata expression"
method: POST
path: "/api/orders/expressions/jsonata"
tags: ["Feed v3"]
---

# Test JSONata expression

`POST /api/orders/expressions/jsonata`

This endpoint allows you to test a JSON document with a JSONata expression, returning `true` if the document meets the criteria posed in the expression, or `false` if it does not.

Since JSONata expressions can be used to filter order updates in the [Orders API feed and hook](https://developers.vtex.com/docs/guides/orders-feed), this endpoint can be used to test an expression's results before configuring the [feed or hook](https://developers.vtex.com/docs/guides/orders-feed).

Learn more about how to use JSONata expressions, in the [JSONata documentation](https://docs.jsonata.org/overview.html).

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `Expression` string, required — JSONata expression to be tested.
  - `Document` string, required — JSON document to be evaluated by the expression.

## Response `200`

OK

- boolean — Successful requests return the message `true`.

---

[API](https://skmtc.net/vtex/apis/orders-api.md) · [All operations](https://skmtc.net/vtex/apis/orders-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vtex/orders-api/revisions/619168717f2e/schema)
