Skip to Content

VendorTerminalsApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
cancelTerminalPaymentPOST /vendors/{vendor_id}/terminals/payments/{payment_id}/cancelCancel a pending payment
createTerminalPaymentPOST /vendors/{vendor_id}/terminals/{terminal_id}/paymentsCreate a payment on a terminal
deactivateVendorTerminalDELETE /vendors/{vendor_id}/terminals/{terminal_id}Deactivate a terminal
discoverVendorTerminalsPOST /vendors/{vendor_id}/terminals/discoverDiscover available terminals from a provider
getTerminalPaymentGET /vendors/{vendor_id}/terminals/payments/{payment_id}Get payment status
getVendorTerminalGET /vendors/{vendor_id}/terminals/{terminal_id}Get a specific terminal
listTerminalPaymentsGET /vendors/{vendor_id}/terminals/paymentsList payment history
listVendorTerminalsGET /vendors/{vendor_id}/terminalsList all terminals for a vendor
refundTerminalPaymentPOST /vendors/{vendor_id}/terminals/payments/{payment_id}/refundRefund a completed payment
registerVendorTerminalPOST /vendors/{vendor_id}/terminalsRegister a new terminal
updateVendorTerminalPUT /vendors/{vendor_id}/terminals/{terminal_id}Update a terminal

cancelTerminalPayment

TerminalPaymentResponse cancelTerminalPayment(vendor_id, payment_id)

Cancel a pending payment

Cancels a payment that has been sent to the terminal but not yet completed. Cannot cancel payments that have already succeeded or failed.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
payment_idLong[default to null]

Return type

TerminalPaymentResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

createTerminalPayment

TerminalPaymentResponse createTerminalPayment(vendor_id, terminal_id, CreateTerminalPaymentRequest)

Create a payment on a terminal

Initiates a payment request on the specified terminal. The terminal will prompt the customer to present their card. Poll the payment status endpoint to track the payment progress.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
terminal_idLong[default to null]
CreateTerminalPaymentRequestCreateTerminalPaymentRequest

Return type

TerminalPaymentResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

deactivateVendorTerminal

MessageResponse deactivateVendorTerminal(vendor_id, terminal_id)

Deactivate a terminal

Deactivates a terminal, preventing it from accepting payments. The terminal can be reactivated later by updating its status.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
terminal_idLong[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

discoverVendorTerminals

List discoverVendorTerminals(vendor_id, DiscoverTerminalsRequest)

Discover available terminals from a provider

Queries the terminal provider API to find available terminals that can be registered to the vendor. Returns a list of discovered terminals with their registration status.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
DiscoverTerminalsRequestDiscoverTerminalsRequest

Return type

List

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

getTerminalPayment

TerminalPaymentResponse getTerminalPayment(vendor_id, payment_id)

Get payment status

Retrieves the current status and details of a terminal payment. Use this to poll for payment completion after creating a payment.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
payment_idLong[default to null]

Return type

TerminalPaymentResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getVendorTerminal

TerminalResponse getVendorTerminal(vendor_id, terminal_id)

Get a specific terminal

Retrieves detailed information about a specific terminal by its ID.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
terminal_idLong[default to null]

Return type

TerminalResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listTerminalPayments

PaginatedResponse_TerminalPaymentResponse listTerminalPayments(vendor_id, terminal_id, status, from_date, to_date, limit, cursor)

List payment history

Retrieves a paginated list of terminal payments for the vendor. Can be filtered by terminal, status, and date range.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
terminal_idLongFilter by terminal ID[optional] [default to null]
statusStringFilter by payment status[optional] [default to null]
from_dateLongFilter by start date (Unix timestamp)[optional] [default to null]
to_dateLongFilter by end date (Unix timestamp)[optional] [default to null]
limitIntegerMaximum number of results (default: 20)[optional] [default to null]
cursorStringPagination cursor[optional] [default to null]

Return type

PaginatedResponse_TerminalPaymentResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listVendorTerminals

List listVendorTerminals(vendor_id, location_id, payment_method_id, status)

List all terminals for a vendor

Retrieves a list of all payment terminals registered to the vendor. Can be filtered by location, payment method/provider, and status.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLongFilter by location ID[optional] [default to null]
payment_method_idLongFilter by payment method ID (e.g., Stripe Terminal, Adyen Terminal)[optional] [default to null]
statusTerminalStatusEnumFilter by terminal status[optional] [default to null] [enum: pending_registration, active, offline, busy, maintenance, deactivated]

Return type

List

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

refundTerminalPayment

TerminalRefundResponse refundTerminalPayment(vendor_id, payment_id, RefundTerminalPaymentRequest)

Refund a completed payment

Initiates a refund for a payment that has been completed successfully. Supports partial refunds if an amount is specified. Full refund is processed if no amount is provided.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
payment_idLong[default to null]
RefundTerminalPaymentRequestRefundTerminalPaymentRequest

Return type

TerminalRefundResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

registerVendorTerminal

TerminalResponse registerVendorTerminal(vendor_id, RegisterTerminalRequest)

Register a new terminal

Registers/pairs a physical payment terminal device to a vendor location. The terminal must first be discovered using the discover endpoint.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
RegisterTerminalRequestRegisterTerminalRequest

Return type

TerminalResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

updateVendorTerminal

TerminalResponse updateVendorTerminal(vendor_id, terminal_id, UpdateTerminalRequest)

Update a terminal

Updates a terminal’s configuration including name, location, and status.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
terminal_idLong[default to null]
UpdateTerminalRequestUpdateTerminalRequest

Return type

TerminalResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8