#!/usr/bin/env bash RESELLER_ID="reseller" # obtained from https://manage.synergywholesale.com/home/resellers/api API_KEY="api_key" # obtained from https://manage.synergywholesale.com/home/resellers/api DOMAIN_NAME="testing-domain-registration-001.com" YEARS="1" # 1 to 10, depending on TLD COMMAND="create" # create, renew or transfer are valid curl -X POST https://api.synergywholesale.com/server.php \ -H "Content-Type: text/xml" \ -H 'SOAPAction: "urn:WholesaleSystem#checkDomain"' \ -d ' ${RESELLER_ID} ${API_KEY} ${DOMAIN_NAME} ${YEARS:-1} ${COMMAND:-create} '