@codeforge-main/safepay-sdk-preview
v2.0.0
Published
> **Unofficial SDK** — generated from Safepay SDK Preview's public OpenAPI specification by the [CodeForge platform](https://www.code-forge.net). Not affiliated with or endorsed by Safepay SDK Preview.
Readme
Unofficial SDK — generated from Safepay SDK Preview's public OpenAPI specification by the CodeForge platform. Not affiliated with or endorsed by Safepay SDK Preview.
@codeforge-main/safepay-sdk-preview
Version 2.0.0
Install
npm install @codeforge-main/safepay-sdk-previewyarn add @codeforge-main/safepay-sdk-previewpnpm add @codeforge-main/safepay-sdk-previewUsage
This SDK is exposed as a single, fully typed client class. Construct it once with your shared configuration and call any API operation as a method — each returns the deserialized response alongside HTTP metadata.
import { SafepayApiV2Client } from '@codeforge-main/safepay-sdk-preview'
const client = new SafepayApiV2Client({
baseUrl: 'http://localhost:3000',
auth: { type: 'bearer', token: 'YOUR_API_TOKEN' },
})
const response = await client.getV2Documents()
console.log(response.status) // HTTP status code
console.log(response.data) // typed as GetV2DocumentsResponse_200The client holds the shared configuration (baseUrl, auth, retry, hooks).
Each method accepts a per-call context extending HttpClientContext — supply the
operation-specific payload / parameters, and override any shared field per call.
Available operations
postV2ConnectgetV2ConnectReferenceIdpostV2ConnectReferenceIdGuestpostV2ConnectReferenceIdDeletegetV2DocumentspostV2DocumentsgetV2DocumentsDocumentIdpostV2DocumentsDocumentIdSigngetV2DocumentsDocumentIdDownloadpostV2DocumentsDocumentIdDeletegetV2UsersgetV2UsersSafepayAccountIdgetV2UsersSafepayAccountIdBanksgetV2UsersSafepayAccountIdBankAccountsgetV2UsersSafepayAccountIdBankAccountsInitializepostV2UsersSafepayAccountIdBankAccountsInitializepostV2UsersSafepayAccountIdBankAccountsAddpostV2UsersSafepayAccountIdBankAccountsSetDefaultpostV2UsersSafepayAccountIdBankAccountsDeletegetV2TransactionspostV2TransactionsMarketplacepostV2TransactionsAutogetV2TransactionsTransactionIdpostV2TransactionsTransactionIdDeletepostV2TransactionsTransactionIdCancelpostV2TransactionsTransactionIdPayoutpostV2TransactionsTransactionIdUpdatepostV2TransactionsTransactionIdReimbursePayerpostV2TransactionsTransactionIdDebtInformationgetV2TransactionsTransactionIdDebtInformationDownloadpostV2TransactionsTransactionIdBillOfSalepostV2TransactionsTransactionIdChangeAmountpostV2TransactionsTransactionIdAddPayeepostV2TransactionsTransactionIdAddPayerpostV2PaymentspostV2PaymentsPaymentIdInitializegetV2WebhooksExamples
Validation
Every model is plain data — the shape it has on the wire. This SDK carries no schemas and
no runtime dependency, so nothing is validated for you: response.data is the parsed body
typed as the operation declares it.
Regenerate the SDK with validation schemas turned on to get a zod schema exported beside every model type.
Generated by CodeForge v0.86.0.
