Skip to main content

Contract

Representation of a contract

type Contract {
id: Int!
createdAt: DateTime
updatedAt: DateTime
consentText: String
internalLabel: String
revision: Int
name: String
removeConsentText: String
content: String
rules: ContractRules
}

Fields

id ● Int!

The internal id of the contract

createdAt ● DateTime

When the contract was created

updatedAt ● DateTime

When the contract was updated

consentText ● String

A html snippet containing the consent text

internalLabel ● String

The internal label of the contract

revision ● Int

The revision number of the contract

name ● String

The display name of the contract

removeConsentText ● String

A html snippet containing the consent text when removing consent

content ● String

The content of the Contract

rules ● ContractRules

The rule of the contract

Example

{
"id": 1,
"createdAt": "2024-05-03T11:52:33Z",
"consentText": "<h2>Terms of Purchase</h2><ul><li><strong>Pricing & Payment:</strong> All prices include applicable taxes. Payment is required at checkout.</li><li><strong>Shipping:</strong> Estimated delivery times are....",
"revision": 4,
"name": "Terms of Purchase",
"content": 4,
"rules": {}
}