migrateSubscription()

void migrateSubscription(string usn, string toAccountUsn)

This method migrates a subscription from one account to another nominated account. These two accounts must have the same currency.

Parameters

usn
Format: string
Purpose: Specifies the USN of the subscription to migrate.
toAccountUsn
Format: string
Purpose: Specifies the USN of the account that the subscription is migrating to.

Results

This method does not return any output.

There are no messages defined by this method.

Faults

InvalidRequestException
This fault is returned when:
  • an invalid USN is provided
  • the current account has a different currency from the account that the subscription is migrating to
  • the destination account has commissions that require a contract
NoSuchItemException

This fault is returned when either of the specified USNs do not exist.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.MigrateSubscription usn
 toAccountUsn
usn
Purpose: Specifies the USN of the subscription to migrate.
toAccountUsn
Purpose: Specifies the USN of the account that the subscription is migrating to.
Note: For more information about the Java client and the options it accepts, see Java client syntax.