absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Convert crypto to fiat and pay out to a bank account (scopes: payouts:write to withdraw, payouts:read to read).

    Index

    Constructors

    Methods

    • List the workspace's registered bank accounts (use an id as OffRampWithdrawParams.bankAccountId).

      Returns Promise<Page<Record<string, unknown>>>

      The raw { items, nextCursor } (nextCursor always null) of bank-account records.

      On failure (e.g. 401/403 missing payouts:read).

    • List supported off-ramp destination countries.

      Returns Promise<Page<Record<string, unknown>>>

      The raw { items, nextCursor } (nextCursor always null) of country records.

      On failure (e.g. 401/403 missing payouts:read).

    • List off-ramp orders (scope: payouts:read). Keyset-paginated.

      Parameters

      Returns Promise<Page<Record<string, unknown>>>

      The raw { items, nextCursor } page of off-ramp order records.

      On failure (e.g. 401/403 missing payouts:read).

    • Register a fiat bank account as an off-ramp destination (scope: payouts:write). Subject to manual review.

      Parameters

      Returns Promise<Record<string, unknown>>

      The registered bank { bankAccountId, status, ... }.

      On failure (e.g. 422 invalid details, 401/403 missing payouts:write).

    • Delete a registered bank account (scope: payouts:write).

      Parameters

      • bankAccountId: string

        Id of the bank account to remove (from OffRamp.banks).

      Returns Promise<void>

      Nothing on success.

      On failure (e.g. 404 unknown bank, 401/403 missing payouts:write).

    • Upload verification materials for a registered bank account (scope: payouts:write).

      Parameters

      • bankAccountId: string

        Id of the bank account the documents belong to (from OffRamp.banks).

      • params: { certificate: DocFile[]; passport: DocFile[] }

        The verification documents (each a base64 DocFile).

        • certificate: DocFile[]

          One or more certificate documents.

        • passport: DocFile[]

          One or more passport/identity documents.

      Returns Promise<Record<string, unknown>>

      The updated bank verification payload.

      On failure (e.g. 404 unknown bank, 422 invalid document, 401/403 missing payouts:write).

    • Execute an off-ramp withdrawal against a quote, settling fiat to a bank account (scope: payouts:write).

      Parameters

      Returns Promise<Record<string, unknown>>

      The created off-ramp order payload.

      On failure (e.g. 409/422 expired quote, 422 insufficient balance, 401/403 auth).