Actions8
- Order Actions
- Service Actions
- Country Actions
- Account Actions
Order → Cancel
AI-generatedSummary
Cancels a VirtualSMS order by its UUID via a POST to /api/v1/customer/cancel/{orderId}, which triggers a refund. Per the node's description, the API returns HTTP 425 if called inside the 120-second cooldown.
Inputs
- orderId (required) — Order UUID returned by 'Buy Number' (e.g. 7e44ebb5-9a55-4bd8-a4e9-7f226f9d5ebd). URL-encoded into the request path.
Output shape
One output item per input item, containing the JSON response from the VirtualSMS cancel endpoint. If the API returns an array, each element becomes its own item.
The response fields aren't defined in the node source; they depend on the API. Requests use the virtualSmsApi credential. If the cancel call fails (e.g. HTTP 425 during the 120-second cooldown), the node throws, unless 'Continue On Fail' is enabled. In that case it outputs {error: message} for that item.
Examples
Example 1: Cancel an order after no SMS code arrives
Resource: Order, Operation: Cancel, Order ID: ={{ $json.id }} from a preceding Buy Number or Get Status node.
Example 2: Cancel without failing the workflow on cooldown errors
Resource: Order, Operation: Cancel, Order ID set by expression, with Continue On Fail enabled so an HTTP 425 returns an error item.