<- Object

Object

TerminalActionBeta

Represents an action processed by the Square Terminal.

Link to section

Properties

Link to section

id

string

Read only A unique ID for this TerminalAction.

Link to section

device_id

string

The unique Id of the device intended for this TerminalAction. The Id can be retrieved from /v2/devices api.

Link to section

deadline_duration

string

The duration as an RFC 3339 duration, after which the action will be automatically canceled. TerminalActions that are PENDING will be automatically CANCELED and have a cancellation reason of TIMED_OUT

Default: 5 minutes from creation

Maximum: 5 minutes

Example for 2 days, 12 hours, 30 minutes, and 15 seconds: P2DT12H30M15S

Link to section

status

string

Read only The status of the TerminalAction. Options: PENDING, IN_PROGRESS, CANCEL_REQUESTED, CANCELED, COMPLETED

Link to section

cancel_reason

string

Read only The reason why TerminalAction is canceled. Present if the status is CANCELED.

Show values
Link to section

created_at

string

Read only The time when the TerminalAction was created as an RFC 3339 timestamp.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

updated_at

string

Read only The time when the TerminalAction was last updated as an RFC 3339 timestamp.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

app_id

string

Read only The ID of the application that created the action.

Link to section

type

string

Represents the type of the action.

Show values
Link to section

save_card_options

Describes configuration for the save-card action. Requires SAVE_CARD type.

Show attributes
Link to section

receipt_options

Describes configuration for the receipt action. Requires RECEIPT type.

Show attributes
Link to section

device_metadata

Read only Details about the Terminal that received the action request (such as battery level, operating system version, and network connection settings).

Only available for PING action type.

Show attributes