For the complete documentation index, see llms.txt. This page is also available as Markdown.

The sale object

Sales represent purchases from referrals. Commissions distributed to affiliates are calculated upon sales generated from their referrals.

Example

{
  "id": "74e37d3b-03c5-4bfc-841c-a79d5799551a",
  "currency": "USD",
  "charged_at": "2020-08-19T16:28:25.000Z",
  "stripe_account_id": "acct_ABC123",
  "stripe_charge_id": "ch_ABC123",
  "external_id": "MY-ID",
  "invoiced_at": "2020-08-19T16:28:25.000Z",
  "description": "My super sale!",
  "created_at": "2020-08-19T16:28:31.102Z",
  "updated_at": "2020-08-19T16:28:31.102Z",
  "charge_amount_cents": 10000,
  "refund_amount_cents": 0,
  "tax_amount_cents": 0,
  "sale_amount_cents": 10000,
  "referral": {
    "id": "d154e622-278a-4103-b191-5cbebae4047a",
    "stripe_account_id": "acct_ABC123",
    "stripe_customer_id": "cus_ABC123",
    "conversion_state": "conversion",
    "deactivated_at": null,
    "expires_at": "2020-10-18T16:13:12.109Z",
    "created_at": "2020-08-19T16:13:12.109Z",
    "updated_at": "2020-08-19T16:28:31.166Z",
    "customer": {
      "platform": "stripe",
      "id": "cus_ABC123",
      "name": "Freddie Mercury",
      "email": "freddie@example.com"
    },
    "visits": 2,
    "link": {
      "id": "b759a9ed-ed63-499f-b621-0221f2712086",
      "url": "http://www.demo.com:8080/?via=james",
      "token": "james",
      "visitors": 197,
      "leads": 196,
      "conversions": 156
    }
  }
}

Attributes

Name
Data type
Description

id

string

Unique identifier for the sale (UUID)

created_at

string

Time at which the sale was created

updated_at

string

Time at which the sale was last updated

currency

string

ISO currency code in which the sale is denominated

charged_at

string

Time at which the sale was charged

stripe_account_id

string

The Stripe account associated with the sale

stripe_charge_id

string

The technical ID of the sale in Stripe

external_id

string

The technical ID of the sale in your dedicated system

invoiced_at

string

Time at which the sale was invoiced

description

string

Descriptive label of the sale

charge_amount_cents

integer

The charged amount of the sale, in cents

refund_amount_cents

integer

The refunded amount of the sale, in cents

tax_amount_cents

integer

The tax amount of the sale, in cents

sale_amount_cents

integer

The amount of the sale, excluding tax and refunds, in cents

referral

object

The referral, the actual customer who made the purchase

Last updated

Was this helpful?