Documentation Index
Fetch the complete documentation index at: https://virtualsms.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/customer/swap/{orderId}
Replace the phone number on an active order with a different one for the same service / country combination. The original number is released and a new one is allocated. The original price stands — no double-charge.
When to swap
- Original number isn’t receiving SMS within a reasonable window
- Service flagged the original number as already-used (rare for our physical SIMs but possible)
- You need a different country code mid-flow (no — country can’t change. Cancel and place a new order instead)
2-minute hold
Swaps are blocked for the first 2 minutes after purchase to prevent abuse. Inside that window the response is:Response
Notes
order_idstays the same — only the number changesexpires_atis reset to the original duration from the swap moment- If no replacement is available, you’ll get a 404 with
{"error":"No replacement available"}. In that case use/customer/cancel/{orderId}for a refund.