Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Terminal

  • Create terminal action

  • Search terminal actions

  • Get terminal action

  • Cancel terminal action

  • Dismiss terminal action

  • Create terminal checkout

  • Search terminal checkouts

  • Get terminal checkout

  • Cancel terminal checkout

  • Dismiss terminal checkout

  • Create terminal refund

  • Search terminal refunds

  • Get terminal refund

  • Cancel terminal refund

  • Dismiss terminal refund

  • Webhooks

  • terminal.action.created

  • terminal.action.updated

  • terminal.checkout.created

  • terminal.checkout.updated

  • terminal.refund.created

  • terminal.refund.updated

<- Terminal API

Terminal API

All versions ->

Create terminal actionBeta

POST

 /v2/terminals/actions

Creates a Terminal action request and sends it to the specified device.

Permissions:PAYMENTS_WRITE

Guide

Request a Square Terminal Action

Try in API Explorer
Link to section

Request body

Example code

Link to section

idempotency_key

string

Required

A unique string that identifies this CreateAction request. Keys can be any valid string but must be unique for every CreateAction request.

See Idempotency keys for more information.

Min Length
1
Max Length
64
Link to section

action

Required

The Action to create.

Link to section

Response fields

Link to section

errors

Information on errors encountered during the request.

Link to section

action

The created TerminalAction

Link to section

Examples

All versions ->

POST /v2/terminals/actions
curl https://connect.squareup.com/v2/terminals/actions \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "idempotency_key": "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e", "action": { "device_id": "{{DEVICE_ID}}", "type": "SAVE_CARD", "deadline_duration": "PT5M", "save_card_options": { "customer_id": "{{CUSTOMER_ID}}", "reference_id": "user-id-1" } } }'

Response JSON

{ "action": { "id": "termapia:jveJIAkkAjILHkdCE", "device_id": "DEVICE_ID", "deadline_duration": "PT5M", "status": "PENDING", "created_at": "2021-07-28T23:22:07.476Z", "updated_at": "2021-07-28T23:22:07.476Z", "location_id": "LOCATION_ID", "type": "SAVE_CARD", "app_id": "APP_ID", "save_card_options": { "customer_id": "CUSTOMER_ID", "reference_id": "user-id-1" } } }

Error descriptions

400 Bad request

{ "errors": [ { "code": "INVALID_LOCATION", "category": "PAYMENT_METHOD_ERROR" } ] }