Better Payment 0.11.1 API
    Preparing search index...

    Interface SubscriptionRetrieveResponse

    Subscription details response

    interface SubscriptionRetrieveResponse {
        code?: PaymentErrorCode;
        data?: {
            createdDate: number;
            customerReferenceCode: string;
            endDate?: number;
            parentReferenceCode?: string;
            pricingPlanName: string;
            pricingPlanReferenceCode: string;
            referenceCode: string;
            startDate: number;
            subscriptionStatus: SubscriptionStatus;
            trialDays?: number;
            trialEndDate?: number;
            trialStartDate?: number;
        };
        errorCode?: string;
        errorMessage?: string;
        providerMessage?: string;
        status: PaymentStatus;
        systemTime?: number;
    }
    Index

    Normalized error code, set on failures

    data?: {
        createdDate: number;
        customerReferenceCode: string;
        endDate?: number;
        parentReferenceCode?: string;
        pricingPlanName: string;
        pricingPlanReferenceCode: string;
        referenceCode: string;
        startDate: number;
        subscriptionStatus: SubscriptionStatus;
        trialDays?: number;
        trialEndDate?: number;
        trialStartDate?: number;
    }
    errorCode?: string

    The provider's raw error code

    errorMessage?: string
    providerMessage?: string

    The original message when a plugin replaced errorMessage (e.g. localizedErrors)

    systemTime?: number