Skip to main content

Overview

The Contract object represents an automation that your enterprise requests from a creator. For a typical integration, you’ll create an Account Connection for a creator in your system, then create a Contract referencing that account connection, before directing them opt in via a Connect Link.

Methods

POST  /contract
Create a new contract for an account connection under your enterprise.

Body Parameters

string
required
ID of Account Connection to request contract from.
string
required
Type of contract to create. See below for a list of available contract types.
string
required
Source of funds deposited into the creator’s account that will trigger this contract. Required if type is deposit_split. See below for list of available deposit sources.
number
Minimum deposit amount that will trigger this contract. Must be a non-negative integer.
number
Maximum deposit amount that will trigger this contract. Must be a non-negative integer.
number
required
Percentage of eligible deposit to transfer to your enterprise’s operating account. Either this or split_fixed_amount_in_cents is required if type is deposit_split. Must be a number between 0 and 100.
number
required
Fixed amount of eligible deposit to transfer to your enterprise’s operating account. Either this or split_percent_amount is required if type is deposit_split. Must be a non-negative integer.
number
Maximum amount of transfer to your enterprise’s operating account per eligible deposit. Must be a non-negative integer. If not provided, there is no maximum.
object
User defined data that can be attached to the object. See the User Data page for details.

Example


Properties

string
Identifier for this contract.
string
Type of smart contract. Must be deposit_split.
string
Status of account connection. One of created, active, declined, terminated, or expired. Only users can activate a contract (through the Connect flow).
string
Source of funds for deposit split contracts. One of google, snap, or only_fans.
number
Minimum deposit amount that will trigger this contract.
number
Maximum deposit amount that will trigger this contract.
number
Percentage of eligible deposit to transfer to your enterprise’s operating account.
number
Fixed amount of eligible deposit to transfer to your enterprise’s operating account.
number
Maximum amount of transfer to your enterprise’s operating account per eligible deposit.
object[]
An activity log that tracks the status changes, internal transfers, and any errors associated with a given contract.
object
User defined data that can be attached to the object. See the User Data page for details.