Change payout details
Use case
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.
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": {
"name": "Test Account",
"accountNumber": {
"value": "EE111236525217358748",
"type": "IBAN"
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:
Click on the tabs below to see the formatting for each account number types.
"payoutDetails": {
"name": "Test Account",
"accountNumber": {
"value": "EE111236525217358748",
"type": "IBAN"
Parameter validations:
If
accountNumber.type
is IBAN,financialInstitutionId
is not required.If
accountNumber.type
is IBAN andfinancialInstitutionId
is provided, thencountryCode
is required.
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:
"payoutDetails": null
Sample API call
To change the deposit contract payout details, make the following API call.
{
"payoutDetails": {
"name": "Test Account",
"accountNumber": {
"value": "EE111236525217358748",
"type": "IBAN"
}
}
}
Sample response
Below you find an example response body to the API call above.
Result
As a result, the deposit contract payout details were updated.
Last updated
Was this helpful?