Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.unseen.finance/llms.txt

Use this file to discover all available pages before exploring further.

This reference closes the Node SDK section: UnseenApiError for failure handling plus the exported TypeScript mirrors you see in tooling.

UnseenApiError

Thrown when the HTTP response is not successful.
FieldMeaning
messageHuman-readable error string from the API.
statusHTTP status code (e.g. 401, 404, 422).
codeMachine-readable code (e.g. unauthorized).
detailsOptional structured validation or context.
import { UnseenApiError } from "@unseen_fi/sdk";

try {
  await unseen.payments.get("pay_bad");
} catch (e) {
  if (e instanceof UnseenApiError) {
    console.error(e.status, e.code, e.details);
  }
  throw e;
}

Exported types

The package re-exports types such as UnseenClientConfig, Network, CreatePaymentInput, Payment, PaymentStatus, PaymentList, ListPaymentsInput, VerifyResult, TxSignaturesResult, Pagination, Merchant, and ApiErrorBody from the main entry. Use your editor’s “Go to definition” on imports for the canonical fields. Next: Webhooks overview