Programmatically Listing Assets with the SDK
list()
: Returns a list of all merchants in the system.create({ name })
: Creates a new merchant with the given name.update({ merchantId, name, status })
: Updates the data of a merchant identified bymerchantId
. The merchant's name and status can be updated.getMerchantData({ merchantId })
: Retrieves the data of a merchant identified bymerchantId
.getAssets({ merchantId })
: Retrieves the assets of a merchant identified bymerchantId
.addAsset({ merchantId, configId })
: Adds an asset to a merchant identified bymerchantId
. The asset is identified byconfigId
.deleteAsset({ merchantId, configId })
: Deletes an asset from a merchant identified bymerchantId
. The asset is identified byconfigId
.
Last updated