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

# Export stores to a file

> Starts a CSV export of every store that matches the filters, in store ID order. The person who created the API key or approved the OAuth connection owns the export. The export reserves credits for the estimated rows, charges one credit per row written with a minimum of 10, and refunds the rest. Poll GET /v1/exports/{id} until it completes. The same Idempotency-Key and body return the same export across team API keys and OAuth connections, with one charge.



## OpenAPI

````yaml /openapi/v1.json post /v1/exports
openapi: 3.1.0
info:
  title: Shoplist API
  version: 1.0.0
servers:
  - url: https://api.shoplist.co
security: []
tags:
  - name: Account
  - name: Vocabulary
  - name: Stores
  - name: Apps
  - name: Contacts
  - name: Exports
  - name: Events
  - name: Webhooks
paths:
  /v1/exports:
    post:
      tags:
        - Exports
      summary: Export stores to a file
      description: >-
        Starts a CSV export of every store that matches the filters, in store ID
        order. The person who created the API key or approved the OAuth
        connection owns the export. The export reserves credits for the
        estimated rows, charges one credit per row written with a minimum of 10,
        and refunds the rest. Poll GET /v1/exports/{id} until it completes. The
        same Idempotency-Key and body return the same export across team API
        keys and OAuth connections, with one charge.
      operationId: createExport
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[!-~]{1,255}$
            description: A caller-supplied key of 1 to 255 visible ASCII characters.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filters:
                  type: object
                  properties:
                    apps_any:
                      default: []
                      description: >-
                        Match stores with at least one of these Shoplist app
                        IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    apps_all:
                      default: []
                      description: Match stores with every one of these Shoplist app IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    apps_none:
                      default: []
                      description: Exclude stores with any of these Shoplist app IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    countries:
                      default: []
                      description: Match stores based in one of these country codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{2}$
                    categories:
                      default: []
                      description: Match stores in one of these category IDs.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    traffic_tiers:
                      default: []
                      description: Match stores in one of these traffic tier labels.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 40
                    themes:
                      default: []
                      description: Match stores using one of these theme IDs.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    currencies:
                      default: []
                      description: Match stores using one of these currency codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{3}$
                    ships_to:
                      default: []
                      description: Match stores that ship to any of these country codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{2}$
                    accepted_cards:
                      default: []
                      description: Match stores that accept any of these card brands.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[a-z_]{2,40}$
                    shop_pay_installments:
                      description: >-
                        Filter stores by whether they offer Shop Pay
                        Installments.
                      type:
                        - boolean
                        - 'null'
                    shopify_plus_only:
                      default: false
                      description: Only match Shopify Plus stores.
                      type: boolean
                    product_ranges:
                      default: []
                      description: Match stores in one of these product count ranges.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 40
                    require_email:
                      default: false
                      description: Require a public business email address.
                      type: boolean
                    require_phone:
                      default: false
                      description: Require a public business phone number.
                      type: boolean
                    include_closed:
                      default: false
                      description: Include stores marked as closed.
                      type: boolean
                    include_password_protected:
                      default: false
                      description: Include stores marked as password-protected.
                      type: boolean
                  additionalProperties: false
                  description: >-
                    The filters that stores must match, as in store search. Send
                    {} to export every open store.
                include:
                  default:
                    - location
                    - company
                    - traffic
                    - apps
                  description: >-
                    The store groups whose columns the file includes, with the
                    default groups used when omitted.
                  type: array
                  items:
                    type: string
                    enum:
                      - location
                      - company
                      - traffic
                      - apps
                      - contact_channels
                      - social
                      - storefront
                max_rows:
                  description: >-
                    The most rows to write. The plan limit applies when it is
                    lower or omitted.
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                max_credits:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                  description: The most credits this export may spend.
              required:
                - filters
                - max_credits
              additionalProperties: false
            example:
              filters:
                countries:
                  - US
                apps_any:
                  - c7d45447-7446-4eb8-9af6-b62c0bfdc3ed
              include:
                - location
                - apps
              max_rows: 1000
              max_credits: 1000
      responses:
        '202':
          description: Accepted
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      object:
                        type: string
                        const: export
                        description: The resource type.
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        description: >-
                          The export identifier. Shoplist derives it from your
                          team and the Idempotency-Key that created the export.
                      status:
                        type: string
                        enum:
                          - queued
                          - running
                          - completed
                          - failed
                        description: >-
                          The export state: queued, running, completed, or
                          failed.
                      format:
                        type: string
                        const: csv_zip
                        description: >-
                          The file format: a ZIP archive that holds one CSV file
                          of stores.
                      estimated_rows:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                        description: >-
                          The number of stores that matched the filters when the
                          export was created.
                      row_limit:
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 9007199254740991
                        description: >-
                          The most rows this export writes: max_rows or the plan
                          limit, whichever is lower.
                      rows_written:
                        anyOf:
                          - type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          - type: 'null'
                        description: >-
                          The number of store rows in the file, or null until
                          the export completes.
                      credits:
                        type: object
                        properties:
                          reserved:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                            description: The credits reserved when the export was created.
                          charged:
                            anyOf:
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                              - type: 'null'
                            description: >-
                              The credits charged for the rows written, or null
                              until the export completes or fails.
                          refunded:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                            description: The reserved credits returned to the team.
                        required:
                          - reserved
                          - charged
                          - refunded
                        additionalProperties: false
                        description: >-
                          The credits this export reserved, charged, and
                          refunded.
                      created_at:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        description: The UTC time when the export was created.
                      finished_at:
                        anyOf:
                          - type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                          - type: 'null'
                        description: >-
                          The UTC time when the export completed or failed, or
                          null until then.
                      download:
                        anyOf:
                          - type: object
                            properties:
                              url:
                                type: string
                                format: uri
                                description: The signed HTTPS link to the ZIP file.
                              expires_at:
                                type: string
                                format: date-time
                                pattern: >-
                                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                                description: The UTC time when the link stops working.
                            required:
                              - url
                              - expires_at
                            additionalProperties: false
                          - type: 'null'
                        description: >-
                          The download link of a completed export, or null
                          otherwise. Each request returns a fresh link. On a
                          completed export it can be null for a moment or while
                          the file is unavailable; request the export again.
                      failure:
                        anyOf:
                          - type: object
                            properties:
                              code:
                                type: string
                                pattern: ^[a-z][a-z0-9_]*$
                                description: The machine-readable reason the export failed.
                            required:
                              - code
                            additionalProperties: false
                          - type: 'null'
                        description: Why a failed export failed, or null otherwise.
                      delayed:
                        description: >-
                          Present and true when the export is taking longer than
                          usual to finish.
                        type: boolean
                        const: true
                    required:
                      - object
                      - id
                      - status
                      - format
                      - estimated_rows
                      - row_limit
                      - rows_written
                      - credits
                      - created_at
                      - finished_at
                      - download
                      - failure
                    additionalProperties: false
                    description: The requested resource.
                required:
                  - data
                additionalProperties: false
              example:
                data:
                  object: export
                  id: 5f0c6a8e-3b7d-5c41-9a2e-6d1b8f4c2a90
                  status: queued
                  format: csv_zip
                  estimated_rows: 1240
                  row_limit: 1000
                  rows_written: null
                  credits:
                    reserved: 1000
                    charged: null
                    refunded: 0
                  created_at: '2026-12-01T12:00:00.000Z'
                  finished_at: null
                  download: null
                  failure: null
        '400':
          description: Invalid request
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: invalid_request
                      type:
                        const: https://shoplist.co/docs/errors#invalid_request
                      title:
                        const: Invalid request
                      status:
                        const: 400
        '401':
          description: Unauthenticated
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: unauthenticated
                      type:
                        const: https://shoplist.co/docs/errors#unauthenticated
                      title:
                        const: Unauthenticated
                      status:
                        const: 401
        '402':
          description: Plan required / Insufficient credits / Spending cap exceeded
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                oneOf:
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: plan_required
                          type:
                            const: https://shoplist.co/docs/errors#plan_required
                          title:
                            const: Plan required
                          status:
                            const: 402
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: insufficient_credits
                          type:
                            const: >-
                              https://shoplist.co/docs/errors#insufficient_credits
                          title:
                            const: Insufficient credits
                          status:
                            const: 402
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: spending_cap_exceeded
                          type:
                            const: >-
                              https://shoplist.co/docs/errors#spending_cap_exceeded
                          title:
                            const: Spending cap exceeded
                          status:
                            const: 402
        '403':
          description: API access suspended / Key owner unavailable / Insufficient scope
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                oneOf:
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: api_access_suspended
                          type:
                            const: >-
                              https://shoplist.co/docs/errors#api_access_suspended
                          title:
                            const: API access suspended
                          status:
                            const: 403
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: key_owner_unavailable
                          type:
                            const: >-
                              https://shoplist.co/docs/errors#key_owner_unavailable
                          title:
                            const: Key owner unavailable
                          status:
                            const: 403
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: insufficient_scope
                          type:
                            const: https://shoplist.co/docs/errors#insufficient_scope
                          title:
                            const: Insufficient scope
                          status:
                            const: 403
        '409':
          description: Request in progress
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: idempotency_in_progress
                      type:
                        const: >-
                          https://shoplist.co/docs/errors#idempotency_in_progress
                      title:
                        const: Request in progress
                      status:
                        const: 409
        '413':
          description: Payload too large
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: payload_too_large
                      type:
                        const: https://shoplist.co/docs/errors#payload_too_large
                      title:
                        const: Payload too large
                      status:
                        const: 413
        '422':
          description: Empty selection / Idempotency key reused
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                oneOf:
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: empty_selection
                          type:
                            const: https://shoplist.co/docs/errors#empty_selection
                          title:
                            const: Empty selection
                          status:
                            const: 422
                  - allOf:
                      - $ref: '#/components/schemas/Problem'
                      - properties:
                          code:
                            const: idempotency_key_reused
                          type:
                            const: >-
                              https://shoplist.co/docs/errors#idempotency_key_reused
                          title:
                            const: Idempotency key reused
                          status:
                            const: 422
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: rate_limited
                      type:
                        const: https://shoplist.co/docs/errors#rate_limited
                      title:
                        const: Rate limit exceeded
                      status:
                        const: 429
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: internal_error
                      type:
                        const: https://shoplist.co/docs/errors#internal_error
                      title:
                        const: Internal error
                      status:
                        const: 500
        '503':
          description: Service unavailable
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: service_unavailable
                      type:
                        const: https://shoplist.co/docs/errors#service_unavailable
                      title:
                        const: Service unavailable
                      status:
                        const: 503
      security:
        - bearerAuth: []
        - partnerOAuth:
            - exports:write
components:
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
          description: The URL that identifies and documents this error type.
        title:
          type: string
          minLength: 1
          description: The fixed title of the error type.
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: The HTTP status code of the response.
        detail:
          type: string
          minLength: 1
          description: An explanation of the error for this request.
        code:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - plan_required
            - allowance_exceeded
            - insufficient_credits
            - spending_cap_exceeded
            - insufficient_scope
            - api_access_suspended
            - key_owner_unavailable
            - not_found
            - method_not_allowed
            - idempotency_in_progress
            - cursor_expired
            - payload_too_large
            - idempotency_key_reused
            - empty_selection
            - rate_limited
            - internal_error
            - service_unavailable
          description: The stable machine-readable error code.
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
          description: The server-generated identifier for this request.
        errors:
          description: Details for up to 20 invalid inputs.
          maxItems: 20
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: The dotted path to the invalid input.
              message:
                type: string
                minLength: 1
                description: The validation message for that input.
            required:
              - path
              - message
            additionalProperties: false
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    partnerOAuth:
      type: oauth2
      description: >-
        Confidential partner clients use PKCE S256 and send
        resource=https://api.shoplist.co/v1.
      flows:
        authorizationCode:
          authorizationUrl: https://app.shoplist.co/api/auth/oauth2/authorize
          tokenUrl: https://app.shoplist.co/api/auth/oauth2/token
          refreshUrl: https://app.shoplist.co/api/auth/oauth2/token
          scopes:
            stores:read: stores:read
            apps:read: apps:read
            contacts:search: contacts:search
            contacts:reveal: contacts:reveal
            usage:read: usage:read
            offline_access: Refresh access after the user signs out.

````

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