curl --request PATCH \
--url https://api.example.com/cabinet/subscription/autopay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"days_before": 15
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Update autopay settings.
curl --request PATCH \
--url https://api.example.com/cabinet/subscription/autopay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"days_before": 15
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response