Get Domain Pricing

Retrieving Domain Pricing: This endpoint provides current market rates for various domain extensions (TLDs). It helps you understand the operational costs associated with registering, renewing, transferring, and restoring domains before initiating any financial transaction. Pricing is broken down from 1 to 6 years, reflecting the respective discount or markup logic stored internally in the DomainPricing tables.

Endpoint: GET /pricing

Parameters:

  • tld (optional, string): Specific TLD to query (e.g., 'com', 'net'). Omit to fetch an array containing pricing for all supported active TLDs.

Example Request:

curl -X GET "https://umva.net/api/domain/pricing?tld=com" 
  -H "X-API-Key: your_api_key_here"

Success Response Example (HTTP 200):

{
  "success": true,
  "data": {
    "tld": "com",
    "enabled": true,
    "register": {
      "1_year": 10.99,
      "2_year": 21.98,
      "3_year": 32.97,
      "4_year": 43.96,
      "5_year": 54.95,
      "6_year": 65.94
    },
    "renew": {
      "1_year": 10.99,
      "2_year": 21.98,
      "3_year": 32.97,
      "4_year": 43.96,
      "5_year": 54.95,
      "6_year": 65.94
    },
    "transfer": {
      "1_year": 10.99
    },
    "restore": 120.00,
    "grace_period": 30
  }
}

Error Response Example (HTTP 404):

{
  "success": false,
  "message": "TLD .unknown is not available."
}