This endpoint is used for cancelling orders on Shopiro. It can be accessed via both GET and POST requests.
GET / POST https://shopiro.ca/api/v1/orders/cancel?oid={orderid}&rs={reason}
oid
: The order ID to be cancelled. (Required)rs
: The reason for cancellation. (Required)The response will be a JSON object containing the result of the cancellation request.
success
: Indicates the order was successfully cancelled.failed
: Describes the reason for failure, such as 'unknown_orderid', 'orderid_wrong_format', 'unknown_reason', 'already_cancelled', 'access_prohibited', or 'unknown_error'.