Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 990 Bytes

create-terminal-action-request.md

File metadata and controls

31 lines (23 loc) · 990 Bytes

Create Terminal Action Request

Structure

CreateTerminalActionRequest

Fields

Name Type Tags Description
idempotencyKey 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.
Constraints: Minimum Length: 1, Maximum Length: 64
action TerminalAction Required Represents an action processed by the Square Terminal.

Example (as JSON)

{
  "action": {
    "deadline_duration": "PT5M",
    "device_id": "{{DEVICE_ID}}",
    "save_card_options": {
      "customer_id": "{{CUSTOMER_ID}}",
      "reference_id": "user-id-1"
    },
    "type": "SAVE_CARD"
  },
  "idempotency_key": "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e"
}