UnseenApiError for failure handling plus the exported TypeScript mirrors you see in tooling.
UnseenApiError
Thrown when the HTTP response is not successful.Exported types
The package re-exports types such asUnseenClientConfig, 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