Skip to main content
PATCH
/
cabinet
/
subscription
/
autopay
Update Autopay
curl --request PATCH \
  --url http://localhost:8080/cabinet/subscription/autopay \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "days_before": 15
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Body

application/json

Request to update autopay settings.

enabled
boolean
required
days_before
integer | null

Days before expiration to charge

Required range: 1 <= x <= 30

Response

Successful Response