The consent text hash does not match

Description

A hash the SDK sent (textHash or customerTermsHash) does not match the registered text it names. It comes back only while the subaccount's consent policy is enforce, and the card is not enrolled.

POST /card-subscriptions answers 400:

{
  "detail": "consent.textHash does not match the registered consent text.",
  "title": "Consent record invalid",
  "type": "https://docs.astrada.co/reference/errors-consent_hash_mismatch",
  "errorCode": "card_subscription.consent_hash_mismatch"
}

For customerTermsHash, detail is "consent.customerTermsHash does not match the registered customer terms text."

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.