Cancellation positions
This service takes a ticket (type 1) and returns the original sale position as a cancellation and also a cancellation fee position
Documentation getCancellationPositions.php
GET /getCancellationPositions.php
Url with params
/getCancellationPositions.php?user=user&password=password&ticket=6122310356388&langid=1
- body: none
- query:
- user: string
- password: string
- ticket: string
- langid: string
- response:
Cancellation positions
{
"success": true,
"status": 0,
"data":
{
"positions":
{
"orig_pos":
{
"positionid": null,
"branchnr": null,
"hostnr": null,
"billnr": null,
"pos": "1",
"quantity": "1",
"title": "Auto-3.5t MBU",
"option1": "2024-01-17 16:02:00",
"option2": "2024-04-17 16:02:00",
"posprice": -27,
"posdiscount": "0",
"posreduction": 0,
"posamount": -27,
"vatamount": -2.023127,
"itemnr": "35508",
"vatratenr": "2",
"barcode": "6122310356388",
"usernr": "0",
"status": "-1",
"accountbooked": -1,
"salesbooked": 0,
"stockbooked": -1,
"discountable": "-1",
"discountnr": "0",
"LastUpdate": "2024-01-18 08:33:53",
"IsDeleted": "0",
"SortOrder": "0",
"Option3": "{\"platenumber\":\"ZH861840\",\"countrycode\":\"CH\"}",
"BasicPrice": null,
"BasketGrossAmount": null,
"BasketGrossDiscountPercentage": null,
"BasketGrossDiscountedAmount": null,
"ItemPriceLevel": null,
"PromotionData": null
},
"cancellationfee_pos":
{
"positionid": null,
"branchnr": null,
"hostnr": null,
"billnr": null,
"pos": "",
"quantity": 1,
"title": "Stornierungsgebühr 6 Tage vor Reise",
"option1": "",
"option2": "",
"posprice": 24.3,
"posdiscount": 0,
"posreduction": 0,
"posamount": 24.3,
"vatamount": 1.8208140610545793,
"itemnr": "35666",
"vatratenr": "2",
"barcode": "",
"usernr": 0,
"status": -1,
"accountbooked": -1,
"salesbooked": 0,
"stockbooked": -1,
"discountable": 0,
"discountnr": 0,
"IsDeleted": 0,
"SortOrder": 0,
"Option3": "",
"BasicPrice": null,
"BasketGrossAmount": null,
"BasketGrossDiscountPercentage": null,
"BasketGrossDiscountedAmount": null,
"ItemPriceLevel": null,
"PromotionData": null
}
}
}
}