# Upsert Wallet Upsert Wallet Endpoint: PATCH /rest/2.0/WALLET Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.PaymentGatewayId` (integer) PaymentGatewayId - `brmObjects.PaymentGatewayProfileid` (integer) PaymentGatewayProfileid - `brmObjects.State` (string) State - `brmObjects.Country` (string) Country - `brmObjects.CreditCardType` (string) CreditCardType - `brmObjects.BillingProfileId` (integer, required) BillingProfileId - `brmObjects.Status` (string, required) Status - `brmObjects.CreditCardNumber` (string) CreditCardNumber - `brmObjects.CreditCardToken` (string) CreditCardToken - `brmObjects.CreditCardName` (string) CreditCardName - `brmObjects.CreditCardExpDate` (string) CreditCardExpDate - `brmObjects.AchBankAcctNum` (string) AchBankAcctNum - `brmObjects.AchUniqueRef` (string) AchUniqueRef - `brmObjects.AchEcheckType` (string) AchEcheckType - `brmObjects.AchBankName` (string) AchBankName - `brmObjects.AchBankAcctType` (string) AchBankAcctType - `brmObjects.AchBankAcctName` (string) AchBankAcctName - `brmObjects.AchBankAbaCode` (string) AchBankAbaCode - `brmObjects.AchMandateStatusModifyDate` (string) AchMandateStatusModifyDate: Mandate Status Modify Date - `brmObjects.AchScheme` (string) AchScheme: Direct Debit Scheme - `brmObjects.AchBranchCode` (string) AchBranchCode: Branch Code - `brmObjects.AchMandateCountry` (string) AchMandateCountry - `brmObjects.AchMandateState` (string) AchMandateState - `brmObjects.AchMandateReference` (string) AchMandateReference - `brmObjects.NationalIdentityNumber` (string) NationalIdentityNumber - `brmObjects.Attention` (string) Attention - `brmObjects.Address1` (string) Address1 - `brmObjects.Address2` (string) Address2 - `brmObjects.City` (string) City - `brmObjects.Zip` (string) Zip - `brmObjects.HostedPaymentPageExternalId` (string) HostedPaymentPageExternalId - `brmObjects.DefaultFlag` (integer) DefaultFlag: Default Payment Method - `brmObjects.AchMandateDate` (string) AchMandateDate - `brmObjects.Email` (string) Email - `brmObjects.AchMandateStatus` (string) AchMandateStatus: Mandate Status - `brmObjects.Id` (string, required) Id: Primary key - `externalIDFieldName` (string) Enum: "HostedPaymentPageExternalId" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)