Update interest enrollment
curl --request PATCH \
--url https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"interestEnrolled": true
}
'import requests
url = "https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment"
payload = { "interestEnrolled": True }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({interestEnrolled: true})
};
fetch('https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"interestEnrolled": true
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Update interest enrollment
Permissions required: Manage Accounts
Sets the account’s enrollment in the fiat cash interest program. Only the account’s fiat wallets are affected — interest applies to cash balances only.
PATCH
/
accounts
/
{accountId}
/
interest-enrollment
Update interest enrollment
curl --request PATCH \
--url https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"interestEnrolled": true
}
'import requests
url = "https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment"
payload = { "interestEnrolled": True }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({interestEnrolled: true})
};
fetch('https://api.anchorage-staging.com/v4/accounts/{accountId}/interest-enrollment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"interestEnrolled": true
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Headers
Path Parameters
Body
application/json
Was this page helpful?