Skip to main content
SDK methods return the parsed JSON body for successful calls. You do not need to check HTTP status codes. Failed calls throw or return an error.

Single resources

Create and get methods return a resource or a small named wrapper.
Some Node.js methods unwrap the resource for you. For example, customers.create() returns the customer and cdn.upload() returns the asset.

Lists

List methods return an array with a count or pagination details.
Go unwraps a few lists into slices. ListAssets, ListTLDs, ListDomains, ListCronJobs, and ListCronJobRuns return the array directly.

Actions

Start, stop, trigger, resync, and similar calls return the API’s action result.
Some delete methods return nothing. In Node.js these resolve to undefined. In Go they return only an error, in Python None, and in Rust ().

Files

Download methods return binary data instead of JSON.

Errors

A non-2xx response raises an SDK error. Plan and resource limits come back with structured fields.
The SDK reads these fields from the body or from a nested details object. It fills current from current or used. A call counts as a plan gate when the body sets upgradeRequired, the status is 402, or the code contains PLAN, LIMIT, or UPGRADE.
In Node.js, a network failure also throws PxxlAPIError, with status set to 0.
Response examples show the fields used most often. The API can add fields without breaking existing integrations.