Skip to content

Latest commit

 

History

History
247 lines (152 loc) · 9 KB

TerminalApi.md

File metadata and controls

247 lines (152 loc) · 9 KB

{{classname}}

All URIs are relative to https://connect.squareup.com/

Method HTTP request Description
CancelTerminalCheckout Post /v2/terminals/checkouts/{checkout_id}/cancel CancelTerminalCheckout
CancelTerminalRefund Post /v2/terminals/refunds/{terminal_refund_id}/cancel CancelTerminalRefund
CreateTerminalCheckout Post /v2/terminals/checkouts CreateTerminalCheckout
CreateTerminalRefund Post /v2/terminals/refunds CreateTerminalRefund
GetTerminalCheckout Get /v2/terminals/checkouts/{checkout_id} GetTerminalCheckout
GetTerminalRefund Get /v2/terminals/refunds/{terminal_refund_id} GetTerminalRefund
SearchTerminalCheckouts Post /v2/terminals/checkouts/search SearchTerminalCheckouts
SearchTerminalRefunds Post /v2/terminals/refunds/search SearchTerminalRefunds

CancelTerminalCheckout

CancelTerminalCheckoutResponse CancelTerminalCheckout(ctx, checkoutId) CancelTerminalCheckout

Cancels a Terminal checkout request if the status of the request permits it.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
checkoutId string Unique ID for the desired `TerminalCheckout`

Return type

CancelTerminalCheckoutResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CancelTerminalRefund

CancelTerminalRefundResponse CancelTerminalRefund(ctx, terminalRefundId) CancelTerminalRefund

Cancels an Interac terminal refund request by refund request ID if the status of the request permits it.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
terminalRefundId string Unique ID for the desired `TerminalRefund`

Return type

CancelTerminalRefundResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateTerminalCheckout

CreateTerminalCheckoutResponse CreateTerminalCheckout(ctx, body) CreateTerminalCheckout

Creates a new Terminal checkout request and sends it to the specified device to take a payment for the requested amount.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body CreateTerminalCheckoutRequest An object containing the fields to POST for the request.

See the corresponding object definition for field details. |

Return type

CreateTerminalCheckoutResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateTerminalRefund

CreateTerminalRefundResponse CreateTerminalRefund(ctx, body) CreateTerminalRefund

Creates a request to refund an Interac payment completed on a Square Terminal.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body CreateTerminalRefundRequest An object containing the fields to POST for the request.

See the corresponding object definition for field details. |

Return type

CreateTerminalRefundResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTerminalCheckout

GetTerminalCheckoutResponse GetTerminalCheckout(ctx, checkoutId) GetTerminalCheckout

Retrieves a Terminal checkout request by checkout_id.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
checkoutId string Unique ID for the desired `TerminalCheckout`

Return type

GetTerminalCheckoutResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTerminalRefund

GetTerminalRefundResponse GetTerminalRefund(ctx, terminalRefundId) GetTerminalRefund

Retrieves an Interac terminal refund object by ID.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
terminalRefundId string Unique ID for the desired `TerminalRefund`

Return type

GetTerminalRefundResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SearchTerminalCheckouts

SearchTerminalCheckoutsResponse SearchTerminalCheckouts(ctx, body) SearchTerminalCheckouts

Retrieves a filtered list of Terminal checkout requests created by the account making the request.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body SearchTerminalCheckoutsRequest An object containing the fields to POST for the request.

See the corresponding object definition for field details. |

Return type

SearchTerminalCheckoutsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SearchTerminalRefunds

SearchTerminalRefundsResponse SearchTerminalRefunds(ctx, body) SearchTerminalRefunds

Retrieves a filtered list of Terminal Interac refund requests created by the seller making the request.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body SearchTerminalRefundsRequest An object containing the fields to POST for the request.

See the corresponding object definition for field details. |

Return type

SearchTerminalRefundsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]