Noticias

REST API: follow a cancellation through to its outcome

How V2 tracking distinguishes a received request from the outcome reported by ImaCash, while keeping outstanding checks visible.

Public REST API guide: V2 cancellation tracking states

When a POS requests cancellation of an operation, it needs to know what happened next. That distinction between asking and knowing the outcome is at the heart of the REST API extension we published on 29 October. Today I want to take a closer look: it tracks the request and gives software integrators clearer information about what is pending, what ImaCash has reported and what needs review.

One reference to keep the conversation going

The process starts when the cancellation request is registered. The API returns an operation reference for checking its progress. Software connected to ImaCash can keep that reference and continue querying the same request, so a delayed response does not break the thread.

The same request can also be retrieved using the same idempotency key and reference. The practical benefit is a recognisable request even if a response is lost. This does not authorise repeating payments or refunds, or starting another cash operation to find out what happened.

Received, pending, reported: each word matters

We have separated three stages that the integrator should explain clearly on screen. First comes the registered request, then the status held by Cloud, and finally the ImaCash report. A sale marked as cancelled in Cloud, or a successful HTTP response, does not by itself establish that the device completed cancellation.

Tracking identifies when an authenticated final report arrives from ImaCash with completion, currency and complete, consistent incoming and outgoing amounts. That is what confirmation reported by the application means. The actual outcome still needs checking whenever there is doubt: this is not independent physical certification of the machine.

Public REST API guide: V2 cancellation tracking states
Public REST API documentation: V2 tracking states and their meaning. This is a guide, not an executed operation or hardware validation.

Keep outstanding checks visible

An incomplete report remains unconfirmed. Missing information is not treated as zero, and a contradiction or error keeps the review open. If ImaCash reports that the sale was already paid, tracking does not confirm cancellation either.

This helps software explain a pending situation or a required review with a meaningful reason. A disconnection or timeout still leaves the outcome unresolved. Before repeating a monetary action, the operation and the physical cash must be checked.

A guide for building the integration

The V2 extension is optional and preserves the V1 contract for existing integrations. Its use depends on available capabilities and the existing authentication, licence and maintenance conditions. The guide explains what to check before adding it to an installation.

We have brought ten operations together in a quick reference, with the outcome to check and examples that expand when needed. The documentation is available in all six website languages and links to an OpenAPI reference in English. Anyone preparing a connection can start with the overall process and then look up the details of each step.

Public REST API integration guide header with V1 and V2
Public integration guide: V1 is retained and V2 adds optional tracking. Documentation screenshot, with no examples executed.

We want an integration to explain where a request stands and keep uncertainty visible until it is resolved. The reference and its states provide continuity; the guide helps translate that clearly into the software people use.

See the API at a glance · Read about cancellation tracking