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

# Get an export

> Returns the export with its status and credits. A completed export usually includes a download link that lasts 15 minutes; each request returns a fresh link. When the link is null on a completed export, request the export again.



## OpenAPI

````yaml /openapi/v1.json get /v1/exports/{id}
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/{id}:
    get:
      tags:
        - Exports
      summary: Get an export
      description: >-
        Returns the export with its status and credits. A completed export
        usually includes a download link that lasts 15 minutes; each request
        returns a fresh link. When the link is null on a completed export,
        request the export again.
      operationId: getExport
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            description: The export ID returned by POST /v1/exports.
            examples:
              - 5f0c6a8e-3b7d-5c41-9a2e-6d1b8f4c2a90
      responses:
        '200':
          description: Successful response
          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: completed
                  format: csv_zip
                  estimated_rows: 1240
                  row_limit: 1000
                  rows_written: 1000
                  credits:
                    reserved: 1000
                    charged: 1000
                    refunded: 0
                  created_at: '2026-12-01T12:00:00.000Z'
                  finished_at: '2026-12-01T12:01:30.000Z'
                  download:
                    url: >-
                      https://downloads.shoplist.example/exports/export.zip?signature=example
                    expires_at: '2026-12-01T12:20:00.000Z'
                  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
        '403':
          description: API access suspended / 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: insufficient_scope
                          type:
                            const: https://shoplist.co/docs/errors#insufficient_scope
                          title:
                            const: Insufficient scope
                          status:
                            const: 403
        '404':
          description: Not found
          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: not_found
                      type:
                        const: https://shoplist.co/docs/errors#not_found
                      title:
                        const: Not found
                      status:
                        const: 404
        '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.