In this example, we will review how to change the payout details for an active deposit contract.
We will use the deposit contract that was previously created.
Use case data
API parameters
The contract header is ID-1696407222. See the find deposit contract for more details.
api/v1/contracts/ID-1696407222...
The active contract version is ID-1696407267. See the find deposit contract for more details.
...versions/ID-1696407267/payout-details
The new payout details.
Note: the payoutDetails parameter is not mandatory. This parameter can be only defined for an active deposit contract. See more information about the payoutDetails parameter below.
payoutDetails Parameter
The payoutDetails parameter is optional and can only be defined for an active deposit contract.
Supported Account Types
Payout details support the following account number types:
If financialInstitutionId is provided, type can be one of the following values:
BIC,
SORT_CODE,
BANK_CODE,
ABA_CODE.
If accountNumber.type is BBAN and financialInstitutionId is ABA_CODE, countryCode can be one of the following:
US (United States of America),
PR (Puerto Rico),
AS (American Samoa),
GU (Guam),
VI (Virgin Islands).
If accountNumber.type is BBAN and financialInstitutionId is SORT_CODE, countryCode is GB (Great Britain)
Default Behavior
If payout details are not specified for a contract version, the payout will automatically be directed to the servicing account. It is not necessary to define the servicing account as the payout account in this case.
Modifying Payout Details
Payout details can be modified or removed. To remove payout details from an active contract version, include the following in the request:
Sample API call
To change the deposit contract payout details, make the following API call.
Sample response
Below you find an example response body to the API call above.
Response
Result
As a result, the deposit contract payout details were updated.