ApixClient::call() is the PHP SDK’s Universal Function. Use it only when a
released provider route is not yet available through a typed service method.
For a service that already has a typed method, such as Currency, Security,
Location, SMS, or Utilities, use that typed 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
ApiResponse|BinaryResponse. JSON responses expose their
operation result through $response->data; image or binary-media responses
use BinaryResponse, just as typed Utility methods do.
Use a typed service whenever it exists
The following two calls reach the same released Currency route. The typed method is clearer, validates its own inputs, 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$avraapi->security()->checkVpn() for the same operation.
POST through the Universal Function
Path formats
The client normalises all of these forms before sending the request. Choose one consistent form for your application; a short relative route is usually the clearest.Equivalent route paths
APIX_BASE_URL. This is useful when moving a
verified route from the API Reference into your backend code.
Response handling
Use the returned type before consuming the output. Most provider routes return anApiResponse; media routes can return BinaryResponse.
Handle a JSON or media result
Boundaries and safety
call() sends the normal Project Client ID, Client Secret, and environment
headers. It does not expose fluent withProvider() or withPrivacyMode()
controls, so use the typed provider service when you need either of those
one-request options.
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.
