Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@datafire/adyen_accountservice
Advanced tools
DataFire integration for Adyen for Platforms: Account API
Client library for Adyen for Platforms: Account API
npm install --save @datafire/adyen_accountservice
let adyen_accountservice = require('@datafire/adyen_accountservice').create({
ApiKeyAuth: "",
username: "",
password: ""
});
.then(data => {
console.log(data);
});
The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.
For more information, refer to our documentation.
To connect to the Account API, you must use basic authentication credentials of your web service user. If you don't have one, please contact the Adyen Support Team. Then use its credentials to authenticate your request, for example:
curl
-U "ws@MarketPlace.YourMarketPlace":"YourWsPassword" \
-H "Content-Type: application/json" \
...
Note that when going live, you need to generate new web service user credentials to access the live endpoints.
The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: "vXX", where XX is the version number.
For example:
https://cal-test.adyen.com/cal/services/Account/v4/createAccountHolder
This endpoint is used to close an existing account under an account holder. If an account is closed, it may not process transactions or have its funds paid out,and it may not be reopened. Any payments made to a closed account will be directed to the merchant's liable account.
adyen_accountservice.closeAccount.post({}, context)
object
This endpoint is used to close an existing account holder and its accounts. If an account holder is closed, it may not process transactions or pay out funds, and it may not be reopened. Any payments made to a closed account will be directed to the merchant's liable account.
adyen_accountservice.closeAccountHolder.post({}, context)
object
This endpoint is used to create an account under an existing account holder. An account holder may have multiple accounts.
adyen_accountservice.createAccount.post({}, context)
object
This endpoint is used to create an account holder. Each account holder represents a single sub-merchant, and each sub-merchant must be represented by an account holder. Depending on the legal entity type, different details are required to be provided in the call to this endpoint.
adyen_accountservice.createAccountHolder.post({}, context)
object
This endpoint is used to delete existing bank accounts from an account holder. For this, pass the accountHolderCode
you got on the account holder creation, and one or more bankAccountUUIDs
specifying bank accounts to delete.
adyen_accountservice.deleteBankAccounts.post({}, context)
object
This endpoint is used to delete existing shareholders from an account holder.
adyen_accountservice.deleteShareholders.post({}, context)
object
This endpoint is used to retrieve the details of an account holder.
adyen_accountservice.getAccountHolder.post({}, context)
object
This endpoint is used to retrieve documents previously uploaded for use in the KYC Verification of an account holder.
For further information regarding KYC Verification, please refer to Verification checks.
adyen_accountservice.getUploadedDocuments.post({}, context)
object
This endpoint is used to suspend an existing account holder. If an account holder is suspended, it may not process transactions or pay out funds. Any payments made to a suspended account holder will be directed to the merchant's liable account.
adyen_accountservice.suspendAccountHolder.post({}, context)
object
This endpoint is used to reinstate an existing account holder, which has been suspended through the /suspendAccountHolder
endpoint. An account holder which has been suspended due to KYC verification issues cannot be reinstated through this endpoint.
adyen_accountservice.unSuspendAccountHolder.post({}, context)
object
This endpoint is used to update the description or payout schedule of an existing account.
adyen_accountservice.updateAccount.post({}, context)
object
This endpoint is used to update the accountHolderDetails
or processingTier
of an account holder.
If updating the accountHolderDetails
, only the details which have been provided will be updated. Other details will be left as-is with the exception of the following fields:
accountHolderDetails.address
accountHolderDetails.fullPhoneNumber
accountHolderDetails.bankAccountDetails.BankAccountDetail
accountHolderDetails.businessDetails.shareholders.ShareholderContact
, which requires all fields necessary for validation (i.e. in order to update only the accountHolderDetails.address.postalCode
, the fields accountHolderDetails.address.country
, .city
, .street
, .postalCode
, and possibly .stateOrProvince
must be provided as well, so that the address can be properly validated).Note that this endpoint can also be used to create new bank accounts. For this, provide details of a bank account without providing a bankAccountUUID
.
Similarly, it can also be used to create new shareholders by providing details of a shareholder without providing a shareholderCode
.
The updating of the
metadata
field will overwite all of the existing account holder metadata. In order to update an existing metadata key-value pair, all otherkey-value pairs should be provided in order to not delete them.
adyen_accountservice.updateAccountHolder.post({}, context)
object
This endpoint is used to disable or enable the processing or payout state of an account holder. It cannot be used to enable an account holder whose processing or payout state has not been disabled through this endpoint.
For more information about processing and payout states of an account holder, refer to our documentation.
adyen_accountservice.updateAccountHolderState.post({}, context)
object
This endpoint is used to upload a document for use in the KYC verification of an account holder.
For further information regarding KYC Verification, please refer to Verification checks.
adyen_accountservice.uploadDocument.post({}, context)
object
object
string
: The code of the account.string
: The beneficiary of the account.string
: The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user.string
: A description of the account.string
: The status of the account. Possible values: Active
, Inactive
, Suspended
, Closed
.object
string
(values: InactivateAccount, RefundNotPaidOutTransfers): The event.string
: The date on which the event will take place.string
: The reason why this event has been created.object
array
: Each of the bank accounts associated with the account holder.
string
: The email address of the account holder.string
: The phone number of the account holder provided as a single string. It will be handled as a landline phone.string
: The Merchant Category Code of the account holder.object
: A set of key and value pairs for general use by the account holder or merchant.string
: The URL of the website of the account holder.object
array
: A list of events scheduled for the account holder.
string
(values: Active, Closed, Inactive, Suspended): The status of the account holder.string
: The reason why the status was assigned to the account holder.object
boolean
: Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts.string
: The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the disabled
field is true, this field can be used to explain why.boolean
: Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, allowPayout
will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, allowPayout
may or may not be enabled, depending on other factors.integer
: The payout tier that the account holder occupies.object
object
string
: The three-character ISO currency code.integer
: The payable amount that can be charged for the transaction.object
string
: The bank account number (without separators).string
: The type of bank account.string
: The name of the bank account.string
: The unique identifier (UUID) of the Bank Account.string
: The bank identifier code.string
: The city in which the bank branch is located.string
: The bank code of the banking institution with which the bank account is registered.string
: The name of the banking institution with which the bank account is held.string
: The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account:string
: The check code of the bank account.string
: The two-letter country code in which the bank account is registered.string
: The currency in which the bank account deals.string
: The international bank account number.string
: The city of residence of the bank account owner.string
: The country code of the country of residence of the bank account owner.string
: The date of birth of the bank account owner.string
: The house name or number of the residence of the bank account owner.string
: The name of the bank account owner.string
: The country code of the country of nationality of the bank account owner.string
: The postal code of the residence of the bank account owner.string
: The state of residence of the bank account owner.string
: The street name of the residence of the bank account owner.boolean
: If set to true, the bank account is a primary account.string
: The tax ID number.string
: The URL to be used for bank account verification.object
string
: The registered name of the company (if it differs from the legal name of the company).string
: The legal name of the company.string
: The registration number of the company.array
: Each of the shareholders associated with the company.
string
: The tax ID of the company.object
string
: The code of the Account Holder to be closed.object
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of account to be closed.object
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.string
(values: Active, Closed, Inactive, Suspended): The new status of the account.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The desired code of the prospective account holder.boolean
: If set to true, an account with the default options is created for this account holder.string
: A description of the prospective account holder.string
(values: Business, Individual, NonProfit, Partnership, PublicCompany): The entity type.string
: The three-character ISO currency code, with which the prospective account holder primarily deals.integer
: The starting processing tier for the prospective account holder.object
string
: The code of a new account created for the account holder.string
: The code of the new account holder.string
: The description of the new account holder.array
: A list of fields that caused the /createAccountHolder
request to fail.
string
(values: Business, Individual, NonProfit, Partnership, PublicCompany): The type of legal entity of the new account holder.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of Account Holder under which to create the account.string
: A description of the account.string
(values: BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT, BIWEEKLY_ON_1ST_AND_15TH_AT_NOON, DAILY, DAILY_6PM, DAILY_AU, DAILY_EU, DAILY_US, DEFAULT, EVERY_6_HOURS_FROM_MIDNIGHT, HOLD, MONTHLY, WEEKLY, WEEKLY_ON_TUE_FRI_MIDNIGHT, YEARLY): The payout schedule of the prospective account.string
: The reason for the payout schedule choice.object
string
: The code of the new account.string
: The code of the account holder.string
: The description of the account.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.string
(values: Active, Closed, Inactive, Suspended): The status of the account.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the Account Holder from which to delete the Bank Account(s).array
: The code(s) of the Bank Accounts to be deleted.
string
object
string
: The code of the Account Holder from which to delete the Shareholders.array
: The code(s) of the Shareholders to be deleted.
string
object
string
: The code of account holder, to which the document applies.string
: The unique ID of the Bank Account to which the document applies.string
: Description of the document.string
(values: BANK_STATEMENT, BSN, COMPANY_REGISTRATION_SCREENING, DRIVING_LICENCE, DRIVING_LICENCE_BACK, DRIVING_LICENCE_FRONT, ID_CARD, ID_CARD_BACK, ID_CARD_FRONT, PASSPORT, SSN, SUPPORTING_DOCUMENTS): The type of a document. Permitted values:string
: Filename of the document.string
: The code of the shareholder, to which the document applies.object
integer
: The validation error code.string
: A description of the validation error.object
string
: The full name of the property.string
(values: accountCode, accountHolderCode, accountHolderDetails, accountNumber, accountStateType, accountStatus, accountType, address, bankAccount, bankAccountCode, bankAccountName, bankAccountUUID, bankBicSwift, bankCity, bankCode, bankName, bankStatement, branchCode, businessContact, cardToken, checkCode, city, companyRegistration, country, countryCode, currency, currencyCode, dateOfBirth, description, destinationAccountCode, document, documentExpirationDate, documentIssuerCountry, documentIssuerState, documentName, documentNumber, documentType, doingBusinessAs, drivingLicence, drivingLicenceBack, drivingLicense, email, firstName, fullPhoneNumber, gender, hopWebserviceUser, houseNumberOrName, iban, idCard, idCardBack, idCardFront, idNumber, identityDocument, individualDetails, lastName, legalBusinessName, legalEntity, legalEntityType, merchantAccount, merchantCategoryCode, merchantReference, microDeposit, name, nationality, originalReference, ownerCity, ownerCountryCode, ownerHouseNumberOrName, ownerName, ownerPostalCode, ownerState, ownerStreet, passport, passportNumber, payoutMethodCode, personalData, phoneCountryCode, phoneNumber, postalCode, primaryCurrency, reason, registrationNumber, returnUrl, schedule, shareholder, shareholderCode, socialSecurityNumber, sourceAccountCode, stateOrProvince, status, stockExchange, stockNumber, stockTicker, store, storeDetail, storeName, storeReference, street, taxId, tier, tierNumber, transferCode, unknown, value, virtualAccount, visaNumber, webAddress): The type of the field.string
: The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.object
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the account of which to retrieve the details.string
: The code of the account holder of which to retrieve the details.boolean
: True if the request should return the account holder detailsobject
string
: The code of the account holder.array
: A list of the accounts under the account holder.
string
: The description of the account holder.string
(values: Business, Individual, NonProfit, Partnership, PublicCompany): The legal entity of the account holder.string
: The three-character ISO currency code, with which the prospective account holder primarily deals.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the Account Holder.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the Account Holder for which to retrieve the documents.string
: The code of the Bank Account for which to retrieve the documents.string
: The code of the Shareholder for which to retrieve the documents.object
array
: A list of the documents and their details.
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
object
string
: The unique ID of the bank account to which the check applies.array
: A list of the checks and their statuses.
object
array
: A list of the checks and their statuses.
object
array
: A list of the fields required for execution of the check.
string
string
(values: AWAITING_DATA, DATA_PROVIDED, FAILED, INVALID_DATA, PASSED, PENDING, PENDING_REVIEW, RETRY_LIMIT_REACHED, UNCHECKED): The status of the check.string
(values: BANK_ACCOUNT_VERIFICATION, CARD_VERIFICATION, COMPANY_VERIFICATION, IDENTITY_VERIFICATION, NONPROFIT_VERIFICATION, PASSPORT_VERIFICATION, PAYOUT_METHOD_VERIFICATION): The type of check.object
integer
: The code of the check.string
: A description of the check.object
array
: A list of the checks and their statuses.
string
: The code of the shareholder to which the check applies.object
array
: The result(s) of the checks on the bank account(s).
array
: The result(s) of the checks on the shareholder(s).
object
string
: The date of the next scheduled payout.string
(values: BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT, BIWEEKLY_ON_1ST_AND_15TH_AT_NOON, DAILY, DAILY_6PM, DAILY_AU, DAILY_EU, DAILY_US, DEFAULT, EVERY_6_HOURS_FROM_MIDNIGHT, HOLD, MONTHLY, WEEKLY, WEEKLY_ON_TUE_FRI_MIDNIGHT, YEARLY): The payout schedule of the account.object
string
: The expiration date of the document.string
: The two-character country code of the issuer.string
: The state issued the document (if applicable)string
: The number of the document. Delete the given type if the value empty.string
(values: DRIVINGLICENSE, ID, PASSPORT, SOCIALSECURITY, VISA): The type of the document. More then one item pert type does not allowed.object
string
: The e-mail address of the contact.string
: The phone number of the contact provided as a single string. It will be handled as a landline phone.string
: The unique identifier (UUID) of the Shareholder.string
: The URL of the website of the contact.object
string
: The code of the account holder to be suspended.object
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the account holder to be reinstated.object
string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
: The code of the Account Holder to be updated.string
: The description to which the Account Holder should be updated.string
: The primary three-character ISO currency code, to which the account holder should be updated.integer
: The processing tier to which the Account Holder should be updated.object
string
: The code of the account holder.string
: The description of the account holder.array
: in case the account holder has not been updated, contains account holder fields, that did not pass the validation.
string
(values: Business, Individual, NonProfit, Partnership, PublicCompany): The legal entity of the account holder.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:array
: A list of the fields updated through the request.
object
string
: The code of the Account Holder on which to update the state.boolean
: If true, disable the requested state. If false, enable the requested state.string
: The reason that the state is being updated.string
(values: LimitedPayout, LimitedProcessing, LimitlessPayout, LimitlessProcessing, Payout, Processing): The state to be updated.object
string
: The code of the account to update.string
: A description of the account.object
string
: The code of the account.string
: The description of the account.string
: The reference of a request. Can be used to uniquely identify the request.string
: The result code.boolean
: Indicates whether the request is processed asynchronously. Depending on the request's platform settings, the following scenarios may be applied:object
string
(values: CLOSE, NOTHING, UPDATE): Direction on how to handle any payouts that have already been scheduled.string
: The reason for the payout schedule update.string
(values: BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT, BIWEEKLY_ON_1ST_AND_15TH_AT_NOON, DAILY, DAILY_6PM, DAILY_AU, DAILY_EU, DAILY_US, DEFAULT, EVERY_6_HOURS_FROM_MIDNIGHT, HOLD, MONTHLY, WEEKLY, WEEKLY_ON_TUE_FRI_MIDNIGHT, YEARLY): The payout schedule to which the account is to be updated.object
string
: The code of the account holder, for which the document is submitted.string
: The unique ID of the bank account, for which the document is submitted.string
: The content of the document as represented by a Base64-encoded string.string
: The code of the shareholder, for which the document is submitted.object
string
: The name of the city.string
: The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').string
: The number or name of the house.string
: The postal code.string
: The abbreviation of the state or province.string
: The name of the street.object
string
: The first name.string
(values: MALE, FEMALE, UNKNOWN): The gender.string
: The name's infix, if applicable.string
: The last name.object
string
: The date of birth of the person.array
: Key value pairs of document type and identify numbers
string
: An ID number of the person.string
: The nationality of the person represented by a two-character country code.object
string
: The two-character country code of the phone number.string
: The phone number.string
(values: Fax, Landline, Mobile, SIP): The type of the phone number.FAQs
DataFire integration for Adyen for Platforms: Account API
The npm package @datafire/adyen_accountservice receives a total of 2 weekly downloads. As such, @datafire/adyen_accountservice popularity was classified as not popular.
We found that @datafire/adyen_accountservice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.