Skip to content

External sales runtime integration

External Sales

Background

In the Ka-ching POS, when a customer can be added to a sale, the cashier can see a list of all purchases made by that customer.

If the External Sales integration is also enabled, POS can also show sales from an 'external' source - like a web shop.

This will allow for returning goods from online sales in the shop.

Options for the configuration

Like all of our 'runtime integrations', the actual endpoints and parameters for a http request can be configured in our system.

Similarly, the returned response can be transformed in Ka-ching before being passed to the client (Ka-ching POS).

This means that wether you prefer a GET request with query parameters or a POST request with a JSON body containing the parameters is less important.

But of course the integration becomes easier if the response already matches what our client expects, because then we can skip a transformation step.

Request parameters

customer_id
market
currency_code

The customer_id is the id that was previously returned through a customer lookup to Ka-ching and uniquely represents a customer.

The currency_code of the active shop in POS is passed along too - in case your system wishes to filter returned sales by currency.

Similarly, the market represents the market of the shop making the request.

Response

The response will in the end be transformed to a list of External Sale representations.

Please have a look at the External Sale entity model for more information.