Skip to Content

DefaultApi

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

MethodHTTP requestDescription
deleteVendorDocumentDELETE /vendors/{vendor_id}/document-requests/documents/{document_id}Delete a vendor document
getVendorDocumentDownloadUrlGET /vendors/{vendor_id}/document-requests/documents/{document_id}/downloadGet document download URL
getVendorDocumentRequestWithFilesGET /vendors/{vendor_id}/document-requests/{request_id}Get vendor document request with files
getVendorPendingDocumentRequestGET /vendors/{vendor_id}/document-requests/pendingGet pending vendor document request
listVendorDocumentRequestsGET /vendors/{vendor_id}/document-requestsList vendor document requests
terminalWebhookAdyenPOST /webhooks/terminals/adyenReceive Adyen Terminal webhook events (notifications)
terminalWebhookGenericPOST /webhooks/terminals/{provider}Generic webhook endpoint - returns 200 OK to stop provider retries
terminalWebhookRevolutPOST /webhooks/terminals/revolutReceive Revolut Terminal webhook events
terminalWebhookStripePOST /webhooks/terminals/stripeReceive Stripe Terminal webhook events
terminalWebhookSumupPOST /webhooks/terminals/sumupReceive SumUp Terminal webhook events
terminalWebhookWorldlinePOST /webhooks/terminals/worldlineReceive Worldline Terminal webhook events
terminalWebhookZettlePOST /webhooks/terminals/zettleReceive Zettle Terminal webhook events
uploadDriverDocumentPOST /vendors/{vendor_id}/drivers/{driver_id}/document-requestsUpload driver documents
uploadVendorDocumentPOST /vendors/{vendor_id}/document-requests/{request_id}/uploadUpload vendor documents

deleteVendorDocument

MessageResponse deleteVendorDocument(vendor_id, document_id)

Delete a vendor document

Deletes a specific document from a document request.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor[default to null]
document_idLongThe ID of the document to delete[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

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

getVendorDocumentDownloadUrl

DocumentDownloadUrlResponse getVendorDocumentDownloadUrl(vendor_id, document_id)

Get document download URL

Generates a download URL for a specific document file.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor[default to null]
document_idLongThe ID of the document to download[default to null]

Return type

DocumentDownloadUrlResponse

Authorization

JwtAuthScheme

HTTP request headers

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

getVendorDocumentRequestWithFiles

DocumentRequestWithFiles getVendorDocumentRequestWithFiles(vendor_id, request_id)

Get vendor document request with files

Retrieves a specific document request with all associated uploaded files.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor[default to null]
request_idLongThe ID of the document request[default to null]

Return type

DocumentRequestWithFiles

Authorization

JwtAuthScheme

HTTP request headers

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

getVendorPendingDocumentRequest

DocumentRequestData getVendorPendingDocumentRequest(vendor_id)

Get pending vendor document request

Retrieves the current pending document request for the specified vendor. Returns the document request details if one exists.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor[default to null]

Return type

DocumentRequestData

Authorization

JwtAuthScheme

HTTP request headers

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

listVendorDocumentRequests

PaginatedResponse_DocumentRequestWithFiles listVendorDocumentRequests(vendor_id, status, page, per_page)

List vendor document requests

Retrieves all document requests for the specified vendor with optional status filtering. Supports pagination.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor[default to null]
statusStatusFilter by status (pending, review, successful, failed)[optional] [default to null] [enum: Active, Pending, Failed, Successful, Review]
pageIntegerPage number (1-indexed)[optional] [default to null]
per_pageIntegerItems per page[optional] [default to null]

Return type

PaginatedResponse_DocumentRequestWithFiles

Authorization

JwtAuthScheme

HTTP request headers

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

terminalWebhookAdyen

TerminalWebhookAck terminalWebhookAdyen(AdyenTerminalWebhookPayload)

Receive Adyen Terminal webhook events (notifications)

Handles AUTHORISATION, CAPTURE, REFUND, and other notification types.

Parameters

NameTypeDescriptionNotes
AdyenTerminalWebhookPayloadAdyenTerminalWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookGeneric

TerminalWebhookAck terminalWebhookGeneric(provider, body)

Generic webhook endpoint - returns 200 OK to stop provider retries

This endpoint catches webhooks for unknown providers and returns success to prevent infinite retry loops.

Parameters

NameTypeDescriptionNotes
providerString[default to null]
bodyoas_any_type_not_mapped

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookRevolut

TerminalWebhookAck terminalWebhookRevolut(RevolutWebhookPayload)

Receive Revolut Terminal webhook events

Parameters

NameTypeDescriptionNotes
RevolutWebhookPayloadRevolutWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookStripe

TerminalWebhookAck terminalWebhookStripe(StripeTerminalWebhookPayload)

Receive Stripe Terminal webhook events

Handles payment_intent.succeeded, payment_intent.payment_failed, charge.refunded, and other terminal-related events. Requires valid Stripe-Signature header for verification.

Parameters

NameTypeDescriptionNotes
StripeTerminalWebhookPayloadStripeTerminalWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookSumup

TerminalWebhookAck terminalWebhookSumup(SumUpWebhookPayload)

Receive SumUp Terminal webhook events

Parameters

NameTypeDescriptionNotes
SumUpWebhookPayloadSumUpWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookWorldline

TerminalWebhookAck terminalWebhookWorldline(WorldlineWebhookPayload)

Receive Worldline Terminal webhook events

Parameters

NameTypeDescriptionNotes
WorldlineWebhookPayloadWorldlineWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

terminalWebhookZettle

TerminalWebhookAck terminalWebhookZettle(ZettleWebhookPayload)

Receive Zettle Terminal webhook events

Parameters

NameTypeDescriptionNotes
ZettleWebhookPayloadZettleWebhookPayload

Return type

TerminalWebhookAck

Authorization

No authorization required

HTTP request headers

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

uploadDriverDocument

MessageResponse uploadDriverDocument(vendor_id, driver_id, documents)

Upload driver documents

Allows drivers to upload required documents for account verification and compliance. Documents are validated and processed for approval by the vendor.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor organization[default to null]
driver_idLongThe ID of the driver uploading documents[default to null]
documentsList[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

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

uploadVendorDocument

MessageResponse uploadVendorDocument(vendor_id, request_id, documents)

Upload vendor documents

Allows vendors to upload required documents for account verification and compliance.

Parameters

NameTypeDescriptionNotes
vendor_idLongThe ID of the vendor uploading documents[default to null]
request_idLongThe ID of the document request[default to null]
documentsList[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

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