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

# Abandoned carts

> Returns the number of abandoned carts and their total value during the specified period.



## OpenAPI

````yaml /api/reports/v3.7/openapi.json post /reports/sales/abandoned_carts
openapi: 3.0.0
info:
  title: Reports API
  description: Access and extract all the Reports data available in Text.
  version: '3.7'
servers:
  - url: https://api.livechatinc.com/v3.7
    description: Production
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken: []
tags:
  - name: Chats
  - name: Agents
  - name: Customers
  - name: Tags
  - name: Stats
  - name: Sales
    description: Sales performance reports.
paths:
  /reports/sales/abandoned_carts:
    post:
      tags:
        - Sales
      summary: Abandoned carts
      description: >-
        Returns the number of abandoned carts and their total value during the
        specified period.
      operationId: abandonedCarts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                distribution:
                  type: string
                  description: >-
                    Specifies the time interval for grouping results. For
                    example, `day`, `week`, `month`.
                  example: day
                timezone:
                  type: string
                  description: IANA timezone name. Defaults to UTC.
                  example: UTC
                filters:
                  type: object
                  description: Date range filter.
                  properties:
                    from:
                      type: string
                      format: date-time
                    to:
                      type: string
                      format: date-time
      responses:
        '200':
          description: Abandoned carts report.
          content:
            application/json:
              schema:
                type: object
                properties:
                  records:
                    type: object
                    description: >-
                      Contains distribution objects (for example, `day`) with
                      `abandoned_cart_count` and `total_abandoned_value_usd`
                      fields.
                  summary:
                    type: object
                    description: Report summary.
                    properties:
                      total_abandoned_cart_count:
                        type: integer
                        description: Total number of abandoned carts in the date range.
                      total_abandoned_value_usd:
                        type: number
                        description: Total value (USD) of all abandoned carts.
components:
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: basic
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
    OAuth2BearerToken:
      type: http
      scheme: bearer
      description: Authenticate using an OAuth 2.0 Bearer token.
      x-example: us-south1:MQraNrGCsoJvtxD7KNJQB1kM3d5

````