Skip to content

TrackSaleInput

Defined in: src/core.ts:188

Input for LinksCore.trackSale.

Property Type Description Defined in
amount number Minor units (cents). src/core.ts:192
at? string - src/core.ts:202
clickId? string Attribute to this click when the customer has none yet. src/core.ts:200
currency? string ISO 4217. Default "USD". src/core.ts:194
customerId string - src/core.ts:190
invoiceId? string Idempotency: a second sale with the same invoice id is ignored. src/core.ts:196
metadata? JsonObject - src/core.ts:201
name? string Event name. Default "Purchase". src/core.ts:198
tenant? string - src/core.ts:189