Contract
@TODO DESCRIBE ME




POST as x-www-form-urlencoded:

https://joy.classapp.co/graphql?access_token=YOUR_TOKEN_HERE&client_id=YOUR_CLIENT_ID


Contract

ParamsDescription
idThe ID of an object
dbIdIdentifies the primary key from the database.
namecontract name
messageSubjectsubject of message that will be sent to the entity
messageContentcontent of message that will be sent to the entity
chargeExpirationDay@TODO DESCRIBE ME
sendMessageDay@TODO DESCRIBE ME
anticipationDiscountUntil@TODO DESCRIBE ME
anticipationDiscountType@TODO DESCRIBE ME
anticipationDiscountValue@TODO DESCRIBE ME
paymentMethods@TODO DESCRIBE ME
absorbedFee@TODO DESCRIBE ME
statusContract status
cancelInvoicesTells if should cancel all scheduled invoices
settingsPlan and products data when entity created the contract
contractedPlan
contractedProducts
discounts
planIdplan
entityIdentity who signed contract
organizationAccountIdorganization account that receives the money
logsLogs
plancontracted plan
entityentity who signed the contract
invoicesinvoices created for the contract
accountorganization account that receives the money
createdAn ISO-8601 encoded UTC date string of when record was created
modifiedAn ISO-8601 encoded UTC date string of when record was updated
deletedAn ISO-8601 encoded UTC date string of when record was deleted
keyRandom ID to differentiate from others
selectedHelper field for clients
highlightedHelper field for clients
expandedHelper field for clients
loadedHelper field for clients
loadingHelper field for clients

CreateContractInput

ArgumentsTypeDescription
planId
Not Null
plan
organizationAccountId
Not Null
organization account
name
String
SCALAR
contract name
messageSubject
String
SCALAR
subject of message that will be sent to the entity
messageContent
String
SCALAR
content of message that will be sent to the entity
chargeExpirationDay
Int
SCALAR
@TODO DESCRIBE ME
sendMessageDay
Int
SCALAR
@TODO DESCRIBE ME
anticipationDiscountUntil
Int
SCALAR
@TODO DESCRIBE ME
anticipationDiscountType
DiscountType
ENUM
@TODO DESCRIBE ME
anticipationDiscountValue
Float
SCALAR
@TODO DESCRIBE ME
paymentMethods
LIST
PaymentMethod
@TODO DESCRIBE ME
absorbedFee
LIST
PaymentMethod
@TODO DESCRIBE ME
status
Not Null
Contract status
cancelInvoices
Boolean
SCALAR
Tells if should cancel all scheduled invoices
invoices
LIST
ContractInvoiceInput
discounts
LIST
ContractInvoiceProductDiscountInput
products
LIST
ContractInvoiceProductInput
Products to insert in the contract
entityId
Not Null
entity who signed contract
clientMutationId
String
SCALAR

UpdateContractInput

ArgumentsTypeDescription
id
Not Null
contract id
name
String
SCALAR
contract name
messageSubject
String
SCALAR
subject of message that will be sent to the entity
messageContent
String
SCALAR
content of message that will be sent to the entity
chargeExpirationDay
Int
SCALAR
@TODO DESCRIBE ME
sendMessageDay
Int
SCALAR
@TODO DESCRIBE ME
anticipationDiscountUntil
Int
SCALAR
@TODO DESCRIBE ME
anticipationDiscountType
DiscountType
ENUM
@TODO DESCRIBE ME
anticipationDiscountValue
Float
SCALAR
@TODO DESCRIBE ME
paymentMethods
LIST
PaymentMethod
@TODO DESCRIBE ME
absorbedFee
LIST
PaymentMethod
@TODO DESCRIBE ME
status
Not Null
Contract status
cancelInvoices
Boolean
SCALAR
Tells if should cancel all scheduled invoices
invoices
LIST
ContractInvoiceInput
discounts
LIST
ContractInvoiceProductDiscountInput
products
LIST
ContractInvoiceProductInput
Products to insert in the contract
clientMutationId
String
SCALAR