Skip to content

API · attribution ​

Trang sinh tự động

Parse từ schema.graphql (SDL backend export) bằng parser graphql. Mô tả và quyền lấy nguyên văn từ description trong SDL.

5 query · 6 mutation.

Query ​

The caller's Affiliate links in this app, newest first. referral_link.read (own).

query · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
statusAttributionLinkStatus
pageInt
pageSizeInt

Trả về AffiliateLinkPage!

FieldKiểuMô tả
items[AffiliateLink!]!
pageInt!
pageSizeInt!
totalInt!

attribution ​

Orders attributed to the caller's links (masked buyer). attribution.read (own).

query · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
pageInt
pageSizeInt

Trả về AttributionPage!

FieldKiểuMô tả
items[Attribution!]!
pageInt!
pageSizeInt!
totalInt!

publicSaleCompanion ​

G1S: the Sale đồng hành of a link code; null when the code is unknown, disabled or expired, or the Sale is not ACTIVE. Requires deal.read_public.

query · quyền: deal.read_public

Tham sốKiểuMặc địnhMô tả
codeString!

Trả về PublicSaleCompanion

FieldKiểuMô tả
displayNameString!
rankNameStringHạng of the Sale; null without one.
successfulOrdersInt!Số đơn thành công: closed-successful orders the Sale referred.
phoneStringGọi điện; null when the Sale shows no phone.
zaloPhoneStringZalo number; null when none.
referralCodeString!The Sale's referral code (Mã).
avatarUrlStringPublic avatar URL; null without one.

The caller's personal Referral link in this app, or null. referral_link.read (own).

query · SDL không ghi quyền

Không có tham số.

Trả về ReferralLink

FieldKiểuMô tả
idID!
ownerAppString!App the link belongs to (APP_USER or APP_SALE).
statusAttributionLinkStatus!
shareLinkShare!
createdAtDateTime!
disabledAtDateTime
versionInt!

referralMilestones ​

People the caller referred in this app (masked). attribution.read (own).

query · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
reachedReferralMilestoneFilter
pendingReferralMilestoneFilter
pageInt
pageSizeInt

Trả về ReferralProgressPage!

FieldKiểuMô tả
items[ReferralProgress!]!
pageInt!
pageSizeInt!
totalInt!

Mutation ​

claimAffiliateTouches ​

Bind the caller's anonymous Affiliate clicks (72 h, SPEC-02) to itself. referral.claim.

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputClaimAffiliateTouchesInput!

Trả về AffiliateTouchBindResult!

FieldKiểuMô tả
aggregateIdID!
versionInt!
statusCommandStatus!
requestIdID!
correlationIdID!
nextActionNextAction
outcomeAffiliateTouchBindOutcome!
boundCountInt!

claimReferralSignup ​

Bind the caller's new account to its sign-up Referral. referral.claim.

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputClaimReferralSignupInput!

Trả về ReferralClaimResult!

FieldKiểuMô tả
aggregateIdID!
versionInt!
statusCommandStatus!
requestIdID!
correlationIdID!
nextActionNextAction
outcomeReferralClaimOutcome!
recorded[ReferralMilestoneKind!]!Milestones written by this call.

Get-or-create an Affiliate link to an open Campaign. referral_link.create (own).

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputCreateAffiliateLinkInput!

Trả về AffiliateLinkResult!

FieldKiểuMô tả
aggregateIdID!
versionInt!
statusCommandStatus!
requestIdID!
correlationIdID!
nextActionNextAction
createdBoolean!False when the same destination already had an ACTIVE link.
linkAffiliateLink!

Get-or-create the caller's personal Referral link. referral_link.create (own).

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputCreateReferralLinkInput!

Trả về ReferralLinkResult!

FieldKiểuMô tả
aggregateIdID!
versionInt!
statusCommandStatus!
requestIdID!
correlationIdID!
nextActionNextAction
createdBoolean!False when the caller's existing ACTIVE link was returned.
linkReferralLink!

Stop an Affiliate link (AD-ATTR-01). No role may call it yet (GAP-58).

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputDisableAffiliateLinkInput!

Trả về DisableAffiliateLinkResult!

FieldKiểuMô tả
aggregateIdID!
versionInt!
statusCommandStatus!
requestIdID!
correlationIdID!
nextActionNextAction
linkStatusAttributionLinkStatus!

Open a shared link: records the open, returns a safe target. Public.

mutation · SDL không ghi quyền

Tham sốKiểuMặc địnhMô tả
inputOpenAttributionLinkInput!

Trả về LinkOpenResult!

FieldKiểuMô tả
requestIdID!
correlationIdID!
linkKindAttributionLinkKind!
outcomeLinkOpenOutcome!
targetLinkTarget!
trackedBoolean!

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17