Skip to content

Changing Consent for Recurrent Payments

Endpoint: POST /api/recurrent/clients/{client_id}

Endpoint: POST /api/recurrent/leads/{lead_id}

When using the API_GATEWAY domain, use the endpoint https://{customer_key}-api.brainysoft.ru/lanister/recurrent/{clients,leads}/{id}

Request:

FieldRequiredTypeDescription
valuebooleanConsent value

Response:

json
{
  "status": "ok",
  "timestamp": "1646914328000",
  "data": {
    "recurrentAvailable": true // Passed consent value for recurrent payments
  }
}