Skip to Content

DeliveryAddressesApi

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

MethodHTTP requestDescription
createDeliveryAddressesPOST /delivery-addressesCreate a new delivery address
deleteDeliveryAddressesDELETE /delivery-addresses/{id}Delete a delivery address
getDeliveryAddressesGET /delivery-addresses/{id}Get details of a specific delivery address
listDeliveryAddressesesGET /delivery-addressesList delivery addresses for the authenticated user
updateDeliveryAddressesPUT /delivery-addresses/{id}Update an existing delivery address

createDeliveryAddresses

DeliveryAddressResponse createDeliveryAddresses(DeliveryAddressInput)

Create a new delivery address

Creates a new delivery address for the authenticated user with validation for name, address text, and coordinates. If marked as default, automatically unsets all other addresses as non-default. Prevents duplicate addresses for the same user.

Parameters

NameTypeDescriptionNotes
DeliveryAddressInputDeliveryAddressInputDelivery address details including name, address, coordinates, and default status

Return type

DeliveryAddressResponse

Authorization

JwtAuthScheme

HTTP request headers

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

deleteDeliveryAddresses

MessageResponse deleteDeliveryAddresses(id)

Delete a delivery address

Permanently removes a delivery address from the authenticated user’s account. The address must belong to the user to be deleted. This operation cannot be undone and returns a success message upon completion.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the delivery address to delete[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

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

getDeliveryAddresses

DeliveryAddressResponse getDeliveryAddresses(id)

Get details of a specific delivery address

Retrieves complete information for a single delivery address by its ID. The address must belong to the authenticated user, otherwise a not found error will be returned for security purposes.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the delivery address to retrieve[default to null]

Return type

DeliveryAddressResponse

Authorization

JwtAuthScheme

HTTP request headers

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

listDeliveryAddresseses

PaginatedResponse_DeliveryAddressResponse listDeliveryAddresseses(vendor_id, action, page, per_page)

List delivery addresses for the authenticated user

Retrieves all delivery addresses belonging to the authenticated user with optional filtering by default status or vendor delivery availability. When vendor IDs are provided, each address includes a can_deliver flag indicating service availability.

Parameters

NameTypeDescriptionNotes
vendor_idLongOptional vendor ID to check delivery availability (uses PostGIS for efficient geo-check)[optional] [default to null]
actionStringOptional filter action: “default” returns only default address, otherwise returns all addresses ordered by latest[optional] [default to null]
pageInteger[optional] [default to null]
per_pageInteger[optional] [default to null]

Return type

PaginatedResponse_DeliveryAddressResponse

Authorization

JwtAuthScheme

HTTP request headers

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

updateDeliveryAddresses

DeliveryAddressResponse updateDeliveryAddresses(id, DeliveryAddressInput)

Update an existing delivery address

Updates an existing delivery address for the authenticated user. Validates all input fields and ensures the address belongs to the user. If the is_default flag is set, automatically unsets all other addresses as non-default.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the delivery address to update[default to null]
DeliveryAddressInputDeliveryAddressInputUpdated delivery address details including name, address, coordinates, and default status

Return type

DeliveryAddressResponse

Authorization

JwtAuthScheme

HTTP request headers

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