For Google premium swaps, Peeker buys the replacement domain at your domain price
and creates a new tenant. The one-time charge is $2 per replacement Google
license, plus the domain price. The existing subscription slot renews on its
normal schedule, and the old domain is scheduled to end at its paid-through date.
The overlap can be shorter than two weeks when the renewal is close. You can
replace the new domain again after the previous swap completes, even within the
same billing cycle.
For Microsoft premium swaps, the replacement domain must already have been
bought through Peeker. Each Microsoft premium swap charges its fee, with no
limit on how many you start, and each seat has a 30-day cooldown. Standard swaps require a replacement domain already
in your Peeker inventory with an active Peeker-managed Cloudflare zone.
Submit a swap
Idempotency-Key is required for Google premium swaps and recommended on
other /swaps and /swaps/user_names requests. After a
timeout or server error, retry with the same key and unchanged body to recover
the original creation result. Poll its swap ID for current progress.
Reusing a key with different parameters returns 409 idempotency_conflict.
If the original request is still running, retry 409 idempotency_in_progress
with backoff. Keys are unique across your Partner account.
For other swaps the header remains optional for existing integrations. Without it, the API cannot
replay the original creation response; check GET /swaps before submitting
again. A distinct second swap on a seat that already has one in flight
returns 400 invalid_request.
For a Google premium swap, you may include mailboxes and forwarding_url.
If mailboxes is supplied, provide one entry per existing inbox, with a unique
username, first_name, and last_name. If omitted, the original usernames
and names are reused. If forwarding_url is omitted, the original order’s
forwarding is reused. forwarding_url must be an http(s) URL whose host has a
dot. A host with no dot, such as https://localhost, returns
400 invalid_request with field set to forwarding_url.
google_premium object on the swap shows the domain-purchase
status, order ID when available, and any reported error. Poll the swap ID for
progress.
If the original domain is cancelled before the new tenant is ready, the swap
ends as failed, google_premium.error says why, and Peeker refunds the
replacement license charge to your credits.
Track the swap
PollGET /swaps/{id} or subscribe to swap events.