Skip to main content
ApixClient.call() is the Node.js SDK Universal Function. Use it only when a released provider route is not yet available through a typed service method. For Currency, Security, Location, SMS, or Utilities operations that already have a typed method, use that method instead.
The Universal Function is for released provider routes. It is not a shortcut around the Universal Payment Gateway, payment completion, provider configuration, or browser-safety requirements.

SDK function

Copy the Universal Function signature
The method returns Promise<ApiResponse | BinaryResponse>. JSON responses contain their operation result in data; image and media responses use BinaryResponse, just as typed Utility methods do.

Use a typed service whenever it exists

These calls reach the same released Currency route. The typed method expresses intent more clearly and should be your default.
Preferred: typed SDK method
Universal Function: supported fallback

Send a released POST operation

Use an exact released route and its documented body fields. This example uses the public Security endpoint; normally prefer security().checkVpn() for the same operation.
POST through the Universal Function
Read the REST API Reference for request fields, response shape, billing rules, and errors before calling a new provider route.

Path formats

The client normalises each path before sending it. Choose one consistent form; a short relative route is usually clearest.
Equivalent route paths
The client removes a leading API version path and the host portion of a full URL, then uses the configured APIX_BASE_URL.

Response handling

Check the returned type before consuming output. Most provider routes return ApiResponse; media routes can return BinaryResponse.
Handle a JSON or media result

Boundaries and safety

Do not use call() for payment initiation, payment completion, callbacks, gateway credentials, or a route not released in the public API Reference. Payment work uses the dedicated server-side payment() service.
call() sends normal Project Client ID, Client Secret, and environment headers. It does not expose the fluent withProvider() or withPrivacyMode() controls, so use a typed provider service when you need either one-request option.

Next steps

Provider service guides

Start with typed provider methods before using the Universal Function.

REST API Reference

Verify a released route, its request fields, response, and error contract.
Last modified on October 1, 2026