OxaPay icon

OxaPay

OxaPay Crypto Payment gateway

Swap → Custom Swap API Call

AI-generated

Summary

Execute a custom authorized API call to the OxaPay Swap API by specifying the HTTP method, the endpoint path appended after '/general/swap', and optional query parameters (for GET) or a JSON body (for POST).

Inputs

  • HTTP Method (required) — Select the HTTP method for the API call, either 'GET' or 'POST'.
  • Endpoint (Path Only) (required) — Specify the endpoint path appended to '/general/swap', for example '/pairs' to call '/general/swap/pairs'.
  • Query Parameters — Provide query parameters as a JSON object for GET requests to customize the API call.
  • Body (JSON) — Provide the request body as a JSON object for POST requests to customize the API call.

Output shape

a single JSON object containing the response from the OxaPay Swap API for the custom request.

The API call requires a valid General API Key credential associated with the 'swap' resource for authorization. Input parameters 'Query Parameters' and 'Body' must be valid JSON strings; invalid JSON will throw an error. The operation dynamically constructs the URL path by adding the user-specified endpoint after '/general/swap'. Response errors are handled and surfaced as node execution errors unless 'Continue On Fail' is enabled, in which case error details are included in the output data.

Links

Discussion