The consent text is not approved

Description

The SDK named a consent text that is not approved. It comes back only while the subaccount's consent policy is enforce, and the card is not enrolled.

POST /card-subscriptions answers 400:

{
  "detail": "The consent names a consent text that is not approved.",
  "title": "Consent record invalid",
  "type": "https://docs.astrada.co/reference/errors-consent_text_not_approved",
  "errorCode": "card_subscription.consent_text_not_approved"
}

For a customer terms text (customerTermsVersionId), detail is "consent.customerTermsVersionId names a customer terms text that is not approved."

How to solve

This code comes only from Astrada's SDKs (the Unified Enrollment SDK and the Card Enrollment SDK), which send the consent record for you. It points to a setup problem on Astrada's side, and nothing in your integration fixes it. Contact Astrada with the errorCode and the time of the request.