Menu

Delete Vault Records

Through the SDK, any old or unwanted Vault Records may be Deleted.

Deleting a BankAccount

Field Type Notes
Token String This should be the token of an existing BankAccount that was added by the Merchant or Partner attempting the deletion.

BaseCommerceClient o_client = new BaseCommerceClient( XS_USERNAME, XS_PASSWORD, XS_KEY );
BankAccount o_bank_account = o_client.deleteBankAccount( "e604b169820e45b79bc87a357be848b7ebb25229a7c741386595d155209acc63" );
if ( o_bank_account.isStatus( BankAccount.XS_BA_STATUS_DELETED ) ) {
	// BankAccount deleted successfully
} else {
	// BankAccount FAILED to delete, check messages to see why
	System.out.println( o_bank_account.getMessages() );
}

Deleting a BankCard

Field Type Notes
Token String This should be the token of an existing BankCard that was added by the Merchant or Partner attempting the deletion.

BaseCommerceClient o_client = new BaseCommerceClient( XS_USERNAME, XS_PASSWORD, XS_KEY );
BankCard o_bank_card = o_client.deleteBankCard( "7388430d262469efac9563027bb239edbf3c167a4a958ab128a53f9af3b185f7" );
if ( o_bank_card.isStatus( BankCard.XS_BC_STATUS_DELETED ) ) {
	// BankCard deleted successfully

} else {
	// BankCard FAILED to delete, check messages to see why
	System.out.println( o_bank_card.getMessages() );
}