POS API - Chimpy
v2.0
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Cancel a rental
Copy Markdown
Open in ChatGPT
Open in Claude
Flags a rental (pickup or return) as canceled, according to the specified parameters. Use cases include:
- a wrong manipulation at the terminal by the operator that needs to be canceled
- a justified request by a customer who is not satisfied by the offered service and wants his/her money back
Endpoint
PUThttps://{POS_API_URL}/api/v2/rentals/cancel/{:partner_transaction_id}Rentals can be canceled only if an unique partner_transaction_id was sent during the initial creation of the rental (pickup or return). Based on this identifier, the rental can be flagged as canceled (but will not be deleted).
Request parameters
Path variables
partner_transaction_id(required) The unique id of the original transaction that created the rental and is asked to be canceled, as given by the partner terminal software.
Query parameters
lang(optional) The language to be used for the response. Accepted values: see Localesslip_width(optional) The width of the sales slip in characters. Accepted values:32, 42
Response
Response body
If the cancel request fails, the error will be reported by the HTTP status.
For HTTP status 200 OK the response body contains a JSON object with the following structure:
JSON
{ "data": { "rental": { "status": "pickup_canceled", "error_type": null, "error_message": null, "rental_type": "pickup", "charge_currency": "CHF", "total_amounts": { "shop": 19, "user": 19, "shop_net": 18.71, "user_net": 0, "vat_shop": 0.29, "vat_user": 0 } } }, "locale": <locale>, "req": <request_object>}Response items
status(string) The request status. Can be one of pickup_canceled, return_canceled, error.error_type(string or null) The error type, expressed in a codified expression. It can be either null for a successful request or one of the following: original_rental_not_found, general_error.error_message(string or null) The verbose description of the error in the requested locale.rental_type(string) Either pickup or return.charge_currency(string) The currency used for the money transaction (ISO 4217 alphabetic currency code).total_amounts(object of numbers) The total amounts of the initial transaction that is being canceled, listed by category. See Total amounts for more.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
StationsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
