{
  "info": {
    "name": "Wonderweb Registrar 1.1",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Production reads and isolated sandbox actions. Never set real secrets in shared collection values."
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.wonderweb.co.zw/v1/"
    },
    {
      "key": "api_key",
      "value": ""
    },
    {
      "key": "sandbox_key",
      "value": ""
    },
    {
      "key": "sandbox_domain",
      "value": "wwr-fixture.com"
    },
    {
      "key": "order_reference",
      "value": "postman-sandbox-order-001"
    },
    {
      "key": "transfer_reference",
      "value": "postman-sandbox-transfer-001"
    }
  ],
  "item": [
    {
      "name": "Production reads & sandbox access",
      "item": [
        {
          "name": "Capabilities",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=capabilities"
          }
        },
        {
          "name": "Wholesale catalogue",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=catalogue"
          }
        },
        {
          "name": "Wallet",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=wallet"
          }
        },
        {
          "name": "Issue sandbox key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "sandbox_create",
                  "type": "text"
                },
                {
                  "key": "confirm",
                  "value": "1",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Revoke own sandbox",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "sandbox_revoke",
                  "type": "text"
                },
                {
                  "key": "confirm",
                  "value": "1",
                  "type": "text"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Isolated sandbox",
      "item": [
        {
          "name": "Sandbox capabilities",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=capabilities"
          }
        },
        {
          "name": "Sandbox wallet",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=wallet"
          }
        },
        {
          "name": "Availability",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=availability&domain={{sandbox_domain}}"
          }
        },
        {
          "name": "Register synthetic domain",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "submit",
                  "type": "text"
                },
                {
                  "key": "domain",
                  "value": "{{sandbox_domain}}",
                  "type": "text"
                },
                {
                  "key": "operation",
                  "value": "register",
                  "type": "text"
                },
                {
                  "key": "reference",
                  "value": "{{order_reference}}",
                  "type": "text"
                },
                {
                  "key": "years",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "max_price_cents",
                  "value": "3000",
                  "type": "text"
                },
                {
                  "key": "confirm",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "contact",
                  "value": "{\"firstname\": \"Synthetic\", \"lastname\": \"Registrant\", \"address1\": \"Test Street\", \"city\": \"Test City\", \"state\": \"Test State\", \"country\": \"ZW\", \"email\": \"fixture@example.invalid\", \"phonenumber\": \"+263700000000\"}",
                  "type": "text"
                },
                {
                  "key": "nameservers",
                  "value": "[\"ns1.example.invalid\", \"ns2.example.invalid\"]",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Order status",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=order&reference={{order_reference}}"
          }
        },
        {
          "name": "Domain information",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/?action=domain&domain={{sandbox_domain}}"
          }
        },
        {
          "name": "Synthetic funding",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "fund",
                  "type": "text"
                },
                {
                  "key": "amount_cents",
                  "value": "5000",
                  "type": "text"
                },
                {
                  "key": "reference",
                  "value": "postman-fund-00001",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Submit synthetic transfer",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "submit",
                  "type": "text"
                },
                {
                  "key": "domain",
                  "value": "wwr-transfer-fixture.net",
                  "type": "text"
                },
                {
                  "key": "operation",
                  "value": "transfer",
                  "type": "text"
                },
                {
                  "key": "reference",
                  "value": "{{transfer_reference}}",
                  "type": "text"
                },
                {
                  "key": "years",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "max_price_cents",
                  "value": "3000",
                  "type": "text"
                },
                {
                  "key": "confirm",
                  "value": "1",
                  "type": "text"
                },
                {
                  "key": "contact",
                  "value": "{\"firstname\": \"Synthetic\", \"lastname\": \"Registrant\", \"address1\": \"Test Street\", \"city\": \"Test City\", \"state\": \"Test State\", \"country\": \"ZW\", \"email\": \"fixture@example.invalid\", \"phonenumber\": \"+263700000000\"}",
                  "type": "text"
                },
                {
                  "key": "nameservers",
                  "value": "[\"ns1.example.invalid\", \"ns2.example.invalid\"]",
                  "type": "text"
                },
                {
                  "key": "epp",
                  "value": "TEST-TRANSFER",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Complete transfer",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "complete_transfer",
                  "type": "text"
                },
                {
                  "key": "reference",
                  "value": "{{transfer_reference}}",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Fail transfer (alternative to completion)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "fail_transfer",
                  "type": "text"
                },
                {
                  "key": "reference",
                  "value": "{{transfer_reference}}",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Unlock synthetic domain",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "set_lock",
                  "type": "text"
                },
                {
                  "key": "domain",
                  "value": "{{sandbox_domain}}",
                  "type": "text"
                },
                {
                  "key": "locked",
                  "value": "0",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Synthetic EPP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{sandbox_key}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}integration/",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "action",
                  "value": "epp",
                  "type": "text"
                },
                {
                  "key": "domain",
                  "value": "{{sandbox_domain}}",
                  "type": "text"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "portfolio",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=portfolio"
      }
    },
    {
      "name": "registry_contacts",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=registry_contacts&domain={{domain}}"
      }
    },
    {
      "name": "job",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=job&id={{job_id}}"
      }
    },
    {
      "name": "renewal_preferences",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=renewal_preferences"
      }
    },
    {
      "name": "events",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=events"
      }
    },
    {
      "name": "cases",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=cases"
      }
    },
    {
      "name": "webhooks",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/?action=webhooks"
      }
    },
    {
      "name": "authorize_application",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "authorize_application",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "reference",
              "value": "{{reference}}",
              "type": "text"
            },
            {
              "key": "quote_id",
              "value": "{{quote_id}}",
              "type": "text"
            },
            {
              "key": "price_cents",
              "value": "{{price_cents}}",
              "type": "text"
            },
            {
              "key": "application_sha256",
              "value": "{{application_sha256}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "bulk_submit",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "bulk_submit",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "items",
              "value": "{{items}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "auto_renew",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "auto_renew",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "domain",
              "value": "{{domain}}",
              "type": "text"
            },
            {
              "key": "enabled",
              "value": "{{enabled}}",
              "type": "text"
            },
            {
              "key": "max_price_cents",
              "value": "{{max_price_cents}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "payment_case",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "payment_case",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "deposit_id",
              "value": "{{deposit_id}}",
              "type": "text"
            },
            {
              "key": "kind",
              "value": "{{kind}}",
              "type": "text"
            },
            {
              "key": "reason",
              "value": "{{reason}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "webhook_create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "webhook_create",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "endpoint",
              "value": "{{endpoint}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "webhook_revoke",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "webhook_revoke",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "id",
              "value": "{{id}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "set_nameservers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "set_nameservers",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "domain",
              "value": "{{domain}}",
              "type": "text"
            },
            {
              "key": "reference",
              "value": "{{reference}}",
              "type": "text"
            },
            {
              "key": "nameservers",
              "value": "{{nameservers}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "set_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "set_contact",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "domain",
              "value": "{{domain}}",
              "type": "text"
            },
            {
              "key": "reference",
              "value": "{{reference}}",
              "type": "text"
            },
            {
              "key": "contact",
              "value": "{{contact}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "set_lock",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "set_lock",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "domain",
              "value": "{{domain}}",
              "type": "text"
            },
            {
              "key": "reference",
              "value": "{{reference}}",
              "type": "text"
            },
            {
              "key": "locked",
              "value": "{{locked}}",
              "type": "text"
            }
          ]
        }
      }
    },
    {
      "name": "epp",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{api_key}}"
          }
        ],
        "url": "https://api.wonderweb.co.zw/v1/integration/",
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "action",
              "value": "epp",
              "type": "text"
            },
            {
              "key": "confirm",
              "value": "1",
              "type": "text"
            },
            {
              "key": "domain",
              "value": "{{domain}}",
              "type": "text"
            }
          ]
        }
      }
    }
  ]
}
