---
title: "Pay via Terminal"
method: POST
path: "/terminals/pay"
tags: ["Terminals"]
---

# Pay via Terminal

`POST /terminals/pay`

## Request

- Base URL: `https://api.justifi.ai/v1`
- URL: `https://api.justifi.ai/v1/terminals/pay`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/justifi/apis/justifi-api-documentation/docs/terminals/pay/post.ts> (a function with typed inputs; its response is checked against the schema)

Send a checkout to be processed via terminal, listen for checkout events (recommended) or poll checkout API for payment outcome

## Headers

- `Authorization` string, required

## Request body

- object
  - `payment_intent_id` string, uuid: (deprecated, use checkout id) id for the payment intent which you want to process via terminal
  - `checkout_id` string, uuid, required: id of the checkout which you want to process via terminal
  - `terminal_id` string, uuid, required: id of the terminal on which you want to process a transaction

## Response `201`

Checkout sent to terminal for processing

- object
  - `id` string, uuid: the object id, also found in the data object
  - `type` string: the object type, or array of objects
  - `data` object: the attributes for the object
    - `id` string, uuid
    - `session_type` string
    - `status` string
    - `payment_id` string, uuid
    - `payment_intent_id` string, uuid
    - `terminal_id` string, uuid
    - `account_id` string, uuid
    - `platform_account_id` string, uuid
    - `checkout_id` string, uuid
  - `page_info` unknown

---

[API](https://skmtc.dev/justifi/apis/justifi-api-documentation.md) - [All operations](https://skmtc.dev/justifi/apis/justifi-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/justifi/apis/justifi-api-documentation/revisions/dd9f3fed7e46?raw)
