Skip to content

Latest commit

 

History

History
79 lines (71 loc) · 2.1 KB

cancel-terminal-checkout-response.md

File metadata and controls

79 lines (71 loc) · 2.1 KB

Cancel Terminal Checkout Response

Structure

CancelTerminalCheckoutResponse

Fields

Name Type Tags Description Getter Setter
errors ?(Error[]) Optional Information about errors encountered during the request. getErrors(): ?array setErrors(?array errors): void
checkout ?TerminalCheckout Optional Represents a checkout processed by the Square Terminal. getCheckout(): ?TerminalCheckout setCheckout(?TerminalCheckout checkout): void

Example (as JSON)

{
  "checkout": {
    "amount_money": {
      "amount": 123,
      "currency": "USD"
    },
    "app_id": "APP_ID",
    "cancel_reason": "SELLER_CANCELED",
    "created_at": "2020-03-16T15:31:19.934Z",
    "deadline_duration": "PT5M",
    "device_options": {
      "device_id": "dbb5d83a-7838-11ea-bc55-0242ac130003",
      "skip_receipt_screen": true,
      "tip_settings": {
        "allow_tipping": true,
        "separate_tip_screen": false,
        "custom_tip_field": false,
        "tip_percentages": [
          48
        ],
        "smart_tipping": false
      },
      "collect_signature": false,
      "show_itemized_cart": false
    },
    "id": "S1yDlPQx7slqO",
    "location_id": "LOCATION_ID",
    "reference_id": "id36815",
    "status": "CANCELED",
    "updated_at": "2020-03-16T15:31:45.787Z",
    "note": "note8",
    "order_id": "order_id6",
    "payment_options": {
      "autocomplete": false,
      "delay_duration": "delay_duration2",
      "accept_partial_authorization": false,
      "delay_action": "CANCEL"
    }
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}