Preview

ConsentStatusResult is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

ConsentStatusResult

Status of a consenter's acceptance for a scope, plus the optional current terms. Mirrors com.appdirect.payment.consent.ConsentStatusResult.

This page contains

    Fields

    status: ConsentStatus! PREVIEW

    Acceptance status.

    currentTerms: ConsentTerms PREVIEW

    Current published terms in the requested locale when known; null when no version is published for that locale (including AppTerms cascade fallback to another locale).

    lastAcceptedVersionId: String

    Provider version id of the consenter's most recent acceptance, if any.

    lastAcceptedVersionLabel: String

    Version label of the consenter's most recent acceptance, if any.

    lastAcceptedAt: DateTime

    Timestamp of the consenter's most recent acceptance, if any.

    lastAcceptedLocale: String

    Locale of the consenter's most recent acceptance, if any.

    Queries for ConsentStatusResult

    paymentMethodConsentStatus PREVIEW

    Returns the consent status for the owner of a payment method. The consenter identity is resolved from the payment method record, not the caller. A blank locale value returns a bad request.

    Terms for the requested locale follow the same strict locale contract as paymentMethodConsentTerms: cascade fallback to another locale yields NO_PUBLISHED_VERSION with null currentTerms.