> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# checkoutAbTestSegmentResults

> One checkout A/B test's results per checkout segment, as the merchant's test page shows them. Expensive: it runs warehouse queries. Null if the test doesn't exist. CHECKOUT_AB_TEST_SEGMENTS_UNAVAILABLE when the store lacks advanced checkout analytics, or the test hasn't started or started before they were collected; `checkoutAbTestResults` works for every test.

**Required scopes:** [`checkout_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-checkout_read)

## Arguments

**id** `ID!` *required*

The test's id.

## Returns

**checkoutAbTestSegmentResults** `[CheckoutAbTestSegmentResults](/docs/api-reference/v3/reference/checkout/checkout-ab-test-segment-results)`

An A/B test's results per checkout segment. This isn't a list of per-segment winners: confidence isn't adjusted for examining many segments at once, so about one segment in twenty clears a 95% bar on noise alone. Weigh any result against `comparisonsPerformed`.

**fields**

**comparisonsPerformed** `Int!` *required*

How many variant-to-control comparisons this holds.

**confidenceThreshold** `Float!` *required*

The confidence that counts as significant.

**minVisitsPerArm** `Int!` *required*

Visits per arm below which a read is directional only.

**segments** `[\[CheckoutAbTestSegment!\]!](/docs/api-reference/v3/reference/checkout/checkout-ab-test-segment)` *required*

Every segment, empty ones included, so the number of comparisons stays visible.

**fields**

**averageOrderValue** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Average order value.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The exact amount as a decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**category** `[CheckoutAbTestSegmentCategory!](/docs/api-reference/v3/reference/checkout/checkout-ab-test-segment-category)` *required*

The kind of segment.

**conversionRate** `Float!` *required*

Share of visits that completed.

**key** `String!` *required*

The segment's stable key.

**minArmVisits** `Float!` *required*

Checkout visits in the smallest arm.

**name** `String!` *required*

The segment's name.

**revenuePerCheckoutVisit** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Revenue per checkout visit.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The exact amount as a decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**sampleAdequacy** `[CheckoutAbTestSampleAdequacy!](/docs/api-reference/v3/reference/checkout/checkout-ab-test-sample-adequacy)` *required*

Whether there's enough traffic to read this segment.

**totalCheckoutCompletions** `Float!` *required*

Completed checkouts across all arms.

**totalCheckoutVisits** `Float!` *required*

Checkout visits across all arms.

**treatments** `[\[CheckoutAbTestSegmentTreatment!\]!](/docs/api-reference/v3/reference/checkout/checkout-ab-test-segment-treatment)` *required*

The result per arm.

**fields**

**averageOrderValue** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Average order value.

**checkoutCompletions** `Float!` *required*

Completed checkouts in this segment.

**checkoutVisits** `Float!` *required*

Checkout visits in this segment.

**confidence** `Float!` *required*

Uncorrected confidence that this arm differs from control in this segment, as a percentage.

**conversionRate** `Float!` *required*

Share of visits that completed.

**isControl** `Boolean!` *required*

True for the control.

**revenuePerCheckoutVisit** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Revenue per checkout visit.

**significant** `Boolean!` *required*

True when a variant's confidence reaches `confidenceThreshold`.

**treatmentId** `ID!` *required*

The treatment's id.

**treatmentName** `String!` *required*

The treatment's name.

**segmentsSignificant** `Int!` *required*

Segments with a significant variant.

## Example

```graphql theme={null}
query {
  checkoutAbTestSegmentResults(id: "...") {
    comparisonsPerformed
    confidenceThreshold
    minVisitsPerArm
    segmentsSignificant
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.