NoahApi

class NoahApi(host: String, apiKey: String, requests: PortalRequests)

API class for the Noah on/off-ramp integration.

Wraps the api/v3/clients/me/integrations/noah endpoint family. Each suspend fun builds the URL, JSON-encodes the request body via Gson, calls the underlying PortalRequests transport, and decodes the response into the matching NoahXxxResponse data class. Transport failures surface in the returned Result as thrown by PortalRequests:

Parameters

host

The base URL of the API server (e.g. "https://api.portalhq.io").

apiKey

The API key used for authentication (sent as a bearer token).

requests

An instance of PortalRequests to handle HTTP requests.

Constructors

Link copied to clipboard
constructor(host: String, apiKey: String, requests: PortalRequests)

Functions

Link copied to clipboard
suspend fun getPaymentMethods(request: NoahGetPaymentMethodsRequest = NoahGetPaymentMethodsRequest()): Result<NoahGetPaymentMethodsResponse>

Retrieves the saved payment methods available to the current customer for payouts.

Link copied to clipboard

Retrieves the input form schema for a specific payout channel.

Link copied to clipboard

Retrieves the list of payout channels available given a country / currency / amount tuple.

Link copied to clipboard

Retrieves the list of supported payout countries (and supported fiat currencies per country).

Link copied to clipboard

Requests a payout quote (price + fees) for a given channel and amount.

Link copied to clipboard

Initiates a hosted KYC flow for the current customer.

Link copied to clipboard

Initiates a fiat -> crypto payin and returns the bank instructions the user should fund.

Link copied to clipboard

Initiates a payout and returns the on-chain trigger conditions the resulting transaction must satisfy.

Link copied to clipboard

Simulates a fiat deposit landing for a payin in sandbox / test environments.