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

# Order lines

> One row per order line (one SKU of one order), newest first: order and SKU ids, status, product, brand, content type and id, quantity, price, GMV, commission (estimated and settled, organic and Shop Ads), refunds and timestamps. Page with `cursor`: pass `next_cursor` until it is `null`.

Works with organization keys and creator keys. See [Creator TikTok Shop analytics](https://docs.growi.io/essentials/creator-tiktok-shop-analytics.md) for which accounts each key reads.

```bash theme={"dark"}
curl "https://api.growi.io/api/public/v1/tiktok_shop/creator_analytics/orders?user_id=900000001&from=2025-01-01&to=2026-11-24&limit=100" \
  -H "Authorization: Bearer growi-sk-YOUR-API-KEY"
```

The next page:

```bash theme={"dark"}
curl "https://api.growi.io/api/public/v1/tiktok_shop/creator_analytics/orders?user_id=900000001&from=2025-01-01&to=2026-11-24&limit=100&cursor=NEXT_CURSOR" \
  -H "Authorization: Bearer growi-sk-YOUR-API-KEY"
```


## OpenAPI

````yaml GET /tiktok_shop/creator_analytics/orders
openapi: 3.0.1
info:
  title: Growi API
  description: >-
    API documentation for Growi platform, showcasing the public tracking event
    endpoint
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.growi.io/api/public/v1
security:
  - bearerAuth: []
paths:
  /tiktok_shop/creator_analytics/orders:
    get:
      summary: Order lines
      description: >-
        One row per order line (one SKU of one order), newest first: order and
        SKU ids, status, product, brand, content type and id, quantity, price,
        GMV, commission (estimated and settled, organic and Shop Ads), refunds
        and timestamps. Page with `cursor`: pass `next_cursor` until it is
        `null`.
      parameters:
        - name: limit
          in: query
          required: false
          description: Lines per page, 1-100. Default 50.
          schema:
            type: integer
        - name: cursor
          in: query
          required: false
          description: next_cursor of the previous page.
          schema:
            type: string
        - name: status
          in: query
          required: false
          description: Only these order statuses, comma separated.
          schema:
            type: string
        - name: content_type
          in: query
          required: false
          description: 'Only this content type: VIDEO, LIVE, SHOP or LINKSHARE.'
          schema:
            type: string
        - name: product_id
          in: query
          required: false
          description: Only this product.
          schema:
            type: string
        - name: content_id
          in: query
          required: false
          description: Only this post.
          schema:
            type: string
        - name: user_id
          in: query
          required: false
          description: >-
            One creator. With an organization key: that creator's accounts that
            are shared with you; a creator with none answers 404. With a creator
            key: optional, and only your own user id. Leave it out for every
            account the key can read
          schema:
            type: integer
        - name: account_ids
          in: query
          required: false
          description: >-
            Comma-separated account ids from `GET
            /tiktok_shop/creator_analytics/accounts`, at most 1,000. Narrows the
            selection; any id the key can't read answers 404
          schema:
            type: string
        - name: q
          in: query
          required: false
          description: >-
            Organization keys only, without `user_id`: keep the creators whose
            name, email or @handle contains this. A creator key gets 422
          schema:
            type: string
        - name: exclude_account_ids
          in: query
          required: false
          description: >-
            Organization keys only, without `user_id`: every selected account
            except these. A creator key gets 422
          schema:
            type: string
        - name: organization_id
          in: query
          required: false
          description: >-
            Leave it out. Creators share with your main organization, so a child
            brand answers 403. A creator key gets 422
          schema:
            type: integer
        - name: from
          in: query
          required: false
          description: 'First day, YYYY-MM-DD. Default: the first day of the month.'
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: false
          description: >-
            Last day, YYYY-MM-DD, inclusive. Default: today. At most 3,660 days
            in all.
          schema:
            type: string
            format: date
        - name: tz
          in: query
          required: false
          description: IANA time zone the days are counted in. Default UTC.
          schema:
            type: string
        - name: include_pending
          in: query
          required: false
          description: Count orders that have not settled yet. Default true.
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                ok:
                  value:
                    orders:
                      - order_id: '577312345678901234'
                        sku_id: '1731234567890123999'
                        account_id: 900001
                        created_at: '2026-11-02T21:14:00Z'
                        status: TO_SETTLE
                        pending: true
                        product_id: '1731234567890123456'
                        product_name: Hydrating Lip Oil
                        brand: Glow Lab
                        content_type: VIDEO
                        content_id: '7590000000000000001'
                        quantity: 1
                        price_minor: 2999
                        currency: USD
                        gmv_minor: 2999
                        commission_minor: 450
                        estimated_commission_minor: 450
                        actual_commission_minor: 0
                        organic_commission_minor: 450
                        shop_ads_commission_minor: 0
                        commission_rate_bps: 1500
                        shop_ads_commission_rate_bps: 0
                        refunded_quantity: 0
                        returned_quantity: 0
                        shop_ads: false
                    next_cursor: >-
                      WzE3OTM2NTQwNDAsIjU3NzMxMjM0NTY3ODkwMTIzNCIsIjE3MzEyMzQ1Njc4OTAxMjM5OTkiXQ
                  summary: Example
              schema:
                type: object
                properties:
                  orders:
                    type: array
                    items:
                      type: object
                      properties:
                        order_id:
                          type: string
                          description: TikTok order id
                        sku_id:
                          type: string
                          description: TikTok SKU id
                        account_id:
                          type: integer
                          description: >-
                            Growi id of the TikTok Shop account (use it in
                            account_ids)
                          nullable: true
                        created_at:
                          type: string
                          description: When the order was placed
                        status:
                          type: string
                          description: Status
                        pending:
                          type: boolean
                          description: Not settled yet
                        product_id:
                          type: string
                          description: TikTok Shop product id
                        product_name:
                          type: string
                          description: Product name
                          nullable: true
                        brand:
                          type: string
                          description: The shop that sells it
                          nullable: true
                        content_type:
                          type: string
                          description: >-
                            VIDEO, LIVE, PRE_LIVE (before a LIVE starts), SHOP
                            (showcase or shop page), PROMOTION_PAGE, LINKSHARE
                            or UNSPECIFIED (TikTok did not say)
                        content_id:
                          type: string
                          description: TikTok video or LIVE id
                          nullable: true
                        quantity:
                          type: integer
                          description: Units on the line
                        price_minor:
                          type: integer
                          description: >-
                            Unit price, in minor units: cents for USD and other
                            2-decimal currencies, whole units for IDR, VND, JPY
                            and KRW
                          nullable: true
                        currency:
                          type: string
                          description: >-
                            ISO currency of the money fields (null when there
                            are no sales in the range)
                          nullable: true
                        gmv_minor:
                          type: integer
                          description: >-
                            GMV, in minor units: cents for USD and other
                            2-decimal currencies, whole units for IDR, VND, JPY
                            and KRW
                        commission_minor:
                          type: integer
                          description: >-
                            Commission (estimated until settled), in minor
                            units: cents for USD and other 2-decimal currencies,
                            whole units for IDR, VND, JPY and KRW
                        estimated_commission_minor:
                          type: integer
                          description: >-
                            TikTok's commission estimate, in minor units: cents
                            for USD and other 2-decimal currencies, whole units
                            for IDR, VND, JPY and KRW
                        actual_commission_minor:
                          type: integer
                          description: >-
                            Commission paid once settled (0 before), in minor
                            units: cents for USD and other 2-decimal currencies,
                            whole units for IDR, VND, JPY and KRW
                        organic_commission_minor:
                          type: integer
                          description: >-
                            Commission from organic sales, in minor units: cents
                            for USD and other 2-decimal currencies, whole units
                            for IDR, VND, JPY and KRW
                        shop_ads_commission_minor:
                          type: integer
                          description: >-
                            Commission from Shop Ads sales, in minor units:
                            cents for USD and other 2-decimal currencies, whole
                            units for IDR, VND, JPY and KRW
                        commission_rate_bps:
                          type: integer
                          description: Commission rate, in basis points
                        shop_ads_commission_rate_bps:
                          type: integer
                          description: Shop Ads commission rate, in basis points
                        refunded_quantity:
                          type: integer
                          description: Units refunded
                        returned_quantity:
                          type: integer
                          description: Units returned
                        shop_ads:
                          type: boolean
                          description: Sold through Shop Ads
                      description: Orders
                    description: Orders
                  next_cursor:
                    type: string
                    description: Pass as cursor for the next page; null on the last page
                    nullable: true
        '401':
          description: >-
            Missing, invalid or revoked API key: `{"error": "Not
            Authenticated"}`
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                missing_key:
                  value:
                    error: Not Authenticated
                  summary: Missing, invalid or revoked key
        '403':
          description: >-
            `organization_id` names a child brand. Creators share with your main
            organization
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                child_brand:
                  value:
                    error:
                      code: forbidden
                      message: >-
                        Creator TikTok Shop data is read with the main
                        organization, not a child brand. Leave out
                        organization_id.
                  summary: organization_id names a child brand
        '404':
          description: A creator, account, post or product this key can't read
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Not found.
                  summary: Not readable with this key
        '422':
          description: >-
            Invalid params. `error.code` is `invalid_params` and `error.message`
            says which
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                invalid_params:
                  value:
                    error:
                      code: invalid_params
                      message: user_id must be a user id
                  summary: A param that cannot be used
        '429':
          description: >-
            Rate limited: 2 seconds between calls and 1,000 creator analytics
            calls per key per hour. See `Retry-After` and the `X-RateLimit-*`
            headers
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                interval:
                  value:
                    error: >-
                      Rate limit exceeded. Please wait 2 seconds between
                      requests.
                    retry_after: 2
                  summary: Less than 2 seconds since the last call
                hourly:
                  value:
                    error: Hourly rate limit of 1000 requests exceeded.
                    retry_after: 107
                    reset_time: '2026-11-03T23:00:00Z'
                  summary: Hourly limit reached
        '503':
          description: TikTok Shop data is unavailable right now; try again shortly
          content:
            application/json:
              examples:
                data_unavailable:
                  value:
                    error:
                      code: data_unavailable
                      message: >-
                        TikTok Shop data is unavailable right now. Try again
                        shortly.
                  summary: TikTok Shop data unavailable for a moment
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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