We are trying to schedule a receipt cancellation for "temporary"/"preliminary" receipts, so that they do not accumulate on CCOM in large quantities for long periods.
However, we can't figure out the correct request. Here's our last try and the resulting error message ("missing organizational unit id"):
We have tried several additional properties, such as posGroupId and others, but can't figure out what we're missing. Can anyone help? sebastian.magin maybe?
Thanks and best regards,
I would suggest you to use a combination of the following two requests:
The GET request will give you the full receipt from the manager.
The PUT request allows you to update a receipt.
You need another request to find the list of parked receipts. The following endpoint is unofficial so be careful when you use it.
This endpoint returns a list of parked receipts. It requires the prefix of a posSystem as a query-parameter.
When you combine the above mentioned request you can achieve your task. First of all use the parked receipt endpoint to fetch the list of parked receipts and identify the receipts that you want to cancel. Then you use the IDs those receipts to fetch the full receipt from the manager. Finally, you adapt the receipt and update it using a PUT request.