Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 1.5 KB

cancel-terminal-action-response.md

File metadata and controls

57 lines (49 loc) · 1.5 KB

Cancel Terminal Action Response

Structure

CancelTerminalActionResponse

Fields

Name Type Tags Description Getter
Errors List<Error> Optional Information on errors encountered during the request. List getErrors()
Action TerminalAction Optional Represents an action processed by the Square Terminal. TerminalAction getAction()

Example (as JSON)

{
  "action": {
    "app_id": "APP_ID",
    "cancel_reason": "SELLER_CANCELED",
    "created_at": "2021-07-28T23:22:07.476Z",
    "deadline_duration": "PT5M",
    "device_id": "DEVICE_ID",
    "id": "termapia:jveJIAkkAjILHkdCE",
    "location_id": "LOCATION_ID",
    "save_card_options": {
      "customer_id": "CUSTOMER_ID",
      "reference_id": "user-id-1"
    },
    "status": "CANCELED",
    "type": "SAVE_CARD",
    "updated_at": "2021-07-28T23:22:29.511Z"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}