Discussions
Unable to integrate nodejs API for virtual account creation.
I am getting an error while trying to create virtual account using sdk. My code is:
// eslint-disable-next-line @typescript-eslint/no-var-requires
const sdk = require("api")("@bank-open/v1#1fjj39ld4aaow1");
export async function createVirtualAccount(provider: ServiceProvider) {
await sdk.createACustomerAccount({
name: provider.name,
display_name: provider.name,
contact_type: "Vendor",
primary_contact: provider.bankAccountDetails?.accountHolderName,
email_id: provider.email,
mobile_number: provider.phone,
beneficiary_account_number: provider.bankAccountDetails?.accountNumber,
ifsc_code: provider.bankAccountDetails?.ifscCode,
bank_name: provider.bankAccountDetails?.bankName,
branch_name: provider.bankAccountDetails?.branchName,
});
}
Validation failed. /paths/vundefined/virtual_accounts/get has a path parameter named "version", but there is no corresponding {version} in the path string.
How do I pass the version in the url?