curl --request PATCH \
--url https://api.services.payward.com/v1/accounts/{account_id}/earn/auto \
--header 'API-Key: <api-key>' \
--header 'API-Nonce: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"staking": "enabled"
}
'{
"data": {}
}Earn
Set Auto Earn preferences
Sets Auto Earn preferences for the specified account.
All body fields are optional. Only fields that are present will be updated; omitted yield sources are left unchanged.
PATCH
/
v1
/
accounts
/
{account_id}
/
earn
/
auto
curl --request PATCH \
--url https://api.services.payward.com/v1/accounts/{account_id}/earn/auto \
--header 'API-Key: <api-key>' \
--header 'API-Nonce: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"staking": "enabled"
}
'{
"data": {}
}Authorizations
Your public API key. Identifies the partner making the request.
HMAC signature over the request, computed with your private key.
Monotonically increasing nonce included in the request signature.
Path Parameters
Globally unique public identifier for an account.
Required string length:
14 - 42Body
application/json
Request to set Auto Earn preferences for an account.
Staking Auto Earn preference. Omit to leave unchanged.
Available options:
enabled, disabled Base-rewards Auto Earn preference. Omit to leave unchanged.
Available options:
enabled, disabled Opt-in-rewards Auto Earn preference. Omit to leave unchanged.
Available options:
enabled, disabled Response
Successful response
Response data for updated Auto Earn preferences.