Reason codes

    What each answer rests on, in reasons, in the order the decision adds them.

    Built and tested, not yet deployed. Early access.

    On this page

    Restricted merchant

    restricted_merchant

    Reason codes for Restricted merchant
    CodeWhen
    mcc_<code>An MCC was sent, for example mcc_7995.
    rule_gambling_categoryThe MCC is a network gambling code (7995, 7800, 7801, 7802, 7948, 9754).
    rule_known_brandThe name matched our gambling brand list, without a gambling MCC.
    kind_sportsbookThe model’s answer to “what kind of business is this”, when it gave one.
    kind_online_casinoThe model’s answer to “what kind of business is this”, when it gave one.
    kind_sweepstakes_casinoThe model’s answer to “what kind of business is this”, when it gave one.
    kind_lotteryThe model’s answer to “what kind of business is this”, when it gave one.
    kind_fantasy_or_prediction_marketThe model’s answer to “what kind of business is this”, when it gave one.
    kind_race_wageringThe model’s answer to “what kind of business is this”, when it gave one.
    kind_skin_gamblingThe model’s answer to “what kind of business is this”, when it gave one.
    kind_not_gamblingThe model’s answer to “what kind of business is this”, when it gave one.

    Spend type

    spend_type

    Reason codes for Spend type
    CodeWhen
    mcc_<code>Always.
    mcc_unlistedThe code isn’t in our table of 981 descriptions, so the model saw “unknown”.

    Receipt to charge

    receipt_match

    Reason codes for Receipt to charge
    CodeWhen
    amount_exactThe chosen charge equals the receipt total (within half a cent).
    amount_within_3pctWithin 3% of the total.
    amount_differsMore than 3% away.
    name_matchName similarity of 0.7 or more.
    name_differsName similarity under 0.7.
    within_a_dayCharged within 24 hours of the receipt.
    within_3_daysWithin 72 hours.
    over_3_daysMore than 72 hours apart.
    no_single_chargeThe answer is "none".
    rule_agreesThe model’s pick equals our engine’s own pick (or both say none).
    rule_differsIt doesn’t. Review these cases first.
    rule_no_purchasesSettled without the model: no positive, non-declined transaction.

    Refund to purchase

    refund_pairing

    Reason codes for Refund to purchase
    CodeWhen
    full_refundThe share returned is within 0.5% of the purchase.
    partial_refundLess than the purchase.
    refund_exceeds_purchaseMore than the purchase.
    name_matchName similarity of 0.7 or more.
    name_differsName similarity under 0.7.
    within_45_daysRefunded within 45 days of the purchase.
    over_45_daysMore than 45 days after.
    no_refundThe answer is "none".
    rule_agreesThe model’s pick equals our engine’s own pick (or both say none).
    rule_differsIt doesn’t. Review these cases first.
    rule_no_refunds_after_purchaseSettled without the model: no refund after the purchase.

    Any decision

    Reason codes for any decision
    CodeWhen
    model_declinedThe model declined the question. answer and probability are null; abstain is true.

    Your own question

    reasons is empty, [], unless the model declined; then it is ["model_declined"].

    Review first

    Note. Use rule_differs to pick which cases to review first. Today it comes back only from receipt to charge and refund to purchase.