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
- Create
- Get
- List
- List for Account Connection
- Delete
POST /contractCreate a new contract for an account connection under your enterprise.
Body Parameters
ID of Account Connection to request contract from.
Type of contract to create. See below for a list of available contract types.
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.Minimum deposit amount that will trigger this contract. Must be a non-negative integer.
Maximum deposit amount that will trigger this contract. Must be a non-negative integer.
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.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.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.
User defined data that can be attached to the object. See the User Data page for details.
Example
Properties
Identifier for this contract.
Type of smart contract. Must be
deposit_split.Status of account connection. One of
created, active, declined, terminated, or expired. Only users can activate a contract (through the Connect flow).Source of funds for deposit split contracts. One of
google, snap, or only_fans.Minimum deposit amount that will trigger this contract.
Maximum deposit amount that will trigger this contract.
Percentage of eligible deposit to transfer to your enterprise’s operating account.
Fixed amount of eligible deposit to transfer to your enterprise’s operating account.
Maximum amount of transfer to your enterprise’s operating account per eligible deposit.
An activity log that tracks the status changes, internal transfers, and any errors associated with a given contract.