Skip to main content
For the dashboard view of domains, see domains.

Purchase flow

Search for a domain

string
required
Full domain or search term.
string
Optional TLD category filter.
Only Node.js and Python accept the type filter.

Search and catalog operations

Create a customer

string
required
Registrant first name.
string
required
Registrant last name.
string
required
Registrant email address.
string
required
Registrant phone number.
string
required
Primary street address.
string
required
City.
string
required
State or region.
string
required
Postal code.
string
required
Country code.

Customer operations

Purchase domains

array
required
Domains to purchase.
string
required
Full domain name.
number
Registration length in years.
array
Add-ons in the form { id }.
string[]
Optional custom nameservers.
string | number
Saved customer used as the registrant. The SDK sends it as contactId.
object
Inline registrant contact when no customer ID is used.
object
Inline registrant address.
NGN | USD
Checkout currency. It is also used for the payment link.
string
Team that owns the purchase.
The checkout call creates the invoice, then asks for its payment link, and returns both as purchase and payment. To store the invoice before you fetch a link, call domains.purchase() and then invoices.paymentUrl() yourself. In Go, Python, and Rust, purchase is the raw API response, so the invoice ID is under data. Treat the hosted payment URL as a redirect destination, not proof of payment. Read the invoice again from your backend and require a paid state before provisioning the domain or any plan-gated service. Purchase response
Payment URL response

Domain orders and add-ons

An order collects domains before you create an invoice for them. Orders are in Node.js only. Turn an order into an invoice with billing.create({ domainOrderId }), then get a link with billing.paymentLink(id).

Connect a domain

string
required
Hostname to connect.
string
required
Project that receives traffic.
string
Service target for a multi-service project.
number
Service port when the route needs an explicit target.
boolean
default:"false"
Marks this hostname as an alias route.

Connected domain operations

Bulk connect keeps partial success visible:

DNS records and nameservers

See DNS for the records Pxxl manages.
string
required
A, AAAA, CNAME, TXT, MX, or another supported record type.
string
required
Record name. Use @ for the apex.
string
required
Record value.
number
Time to live in seconds.
number
Priority for records such as MX.
boolean
Sends traffic for the record through the Pxxl proxy.

Invoices and payments

Invoice objects include totals for their currency, status, payment URL, expiry, and payment timestamps.

Resell domains to your users

On Pro and up, pxxl.reseller (Go client.Reseller(), Python client.reseller, Rust client.reseller()) buys, renews and manages domains for your own customers with a reseller key, charged to your wallet. See Domain reseller.

Other languages

Go, Python, and Rust cover search, customers, checkout, invoices, and connected domains. DNS lookups, add-ons, orders, nameservers, DNS change logs, and the billing resource are in Node.js only.