Description
The subaccount's consent policy is enforce and the request has no consent object, so the card is not enrolled. New accounts start in enforce, in sandbox and production.
POST /card-subscriptions answers 400:
{
"detail": "This subaccount requires a consent object: the SDKs send it for you, and a direct API call sends consent.channel \"api\" with consent.text set to the exact consent text shown to the cardholder.",
"title": "Consent record required",
"type": "https://docs.astrada.co/reference/errors-consent_required",
"errorCode": "card_subscription.consent_required"
}How to solve
Direct API: send consent with channel: "api" and text, the consent text your screen showed the cardholder, on every POST /card-subscriptions. See Send the consent record.
SDK integration: the SDK sends consent for you, so contact Astrada with the errorCode and the time of the request.
