Skip to main content
GET
Affiliate order lines

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_date
string
required

Window start, YYYY-MM-DD INCLUSIVE, UTC day of the order create time.

end_date
string
required

Window end, YYYY-MM-DD INCLUSIVE. At most 365 days after start_date, same cap as the other affiliate reads.

creator_username
string

Only lines attributed to this creator username (exact match, as TikTok sent it on the order).

target_collaboration_id
string

Only lines on this target collaboration.

refunds
enum<string>
default:include

include = every line; only = refund lines (fully_return or INELIGIBLE); exclude = everything else. Note the aggregate affiliate reads drop INELIGIBLE lines, this one keeps them by default. refunds=only has no index behind it: on a shop with few refunds it walks the window to fill a page (the last page always walks to the window start), so it can be slow on a wide window and may need a narrower one.

Available options:
include,
only,
exclude
limit
integer
default:100

Lines per page (default 100, max 500).

Required range: 1 <= x <= 500
cursor
string

nextCursor from the previous page, passed back verbatim with the same filters.

organization_id
integer

Use the TikTok Shop of this child brand (organization id) of your API key's organization

Response

{ window, sweptThrough, lines: [...], nextCursor (null on the last page), counts: { lines, refundLines, fullyReturned, ineligible } | null, countsStatus, settlementNote }.