A base class for all API DTO classes
| name | data type | description |
|---|---|---|
| templateCode | string | |
| parameters | array of MessageVariableValue | |
| campaign | Campaign | |
| contact | Contact | |
| media | MediaEnum | |
| subMedia | string | |
| priority | PriorityEnum | |
| status | MessageStatusEnum | |
| rejectionReason | string |
Example
{
"templateCode" : "...",
"parameters" : [ {
"appendGeneratedCode" : true,
"value" : "...",
"referenceCode" : "...",
"parentEntityType" : { },
"transient" : true,
"description" : "...",
"descriptionAndCode" : "...",
"notified" : true,
"id" : 12345,
"auditable" : {
"created" : 12345,
"creator" : "...",
"lastModified" : 12345,
"updater" : "...",
"updated" : 12345,
"lastUser" : "..."
},
"codeChanged" : true,
"historized" : true,
"referenceDescription" : "...",
"auditableFields" : [ {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "RENEWAL",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
}, {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "OTHER",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
} ],
"code" : "...",
"parentEntity" : {
"code" : "...",
"appendGeneratedCode" : true,
"auditableFields" : [ { }, { } ],
"notified" : true,
"parentEntity" : { },
"referenceDescription" : "...",
"id" : 12345,
"auditable" : { },
"codeChanged" : true,
"transient" : true,
"referenceCode" : "...",
"descriptionOrCode" : "...",
"historized" : true,
"version" : 12345,
"parentEntityType" : { },
"description" : "...",
"descriptionAndCode" : "..."
},
"descriptionOrCode" : "...",
"message" : {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "DATABASE",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "NORMAL",
"transient" : true,
"campaign" : { },
"status" : "REJECTED"
},
"version" : 12345
}, {
"appendGeneratedCode" : true,
"value" : "...",
"referenceCode" : "...",
"parentEntityType" : { },
"transient" : true,
"description" : "...",
"descriptionAndCode" : "...",
"notified" : true,
"id" : 12345,
"auditable" : {
"created" : 12345,
"creator" : "...",
"lastModified" : 12345,
"updater" : "...",
"updated" : 12345,
"lastUser" : "..."
},
"codeChanged" : true,
"historized" : true,
"referenceDescription" : "...",
"auditableFields" : [ {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "RENEWAL",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
}, {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "OTHER",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
} ],
"code" : "...",
"parentEntity" : {
"code" : "...",
"appendGeneratedCode" : true,
"auditableFields" : [ { }, { } ],
"notified" : true,
"parentEntity" : { },
"referenceDescription" : "...",
"id" : 12345,
"auditable" : { },
"codeChanged" : true,
"transient" : true,
"referenceCode" : "...",
"descriptionOrCode" : "...",
"historized" : true,
"version" : 12345,
"parentEntityType" : { },
"description" : "...",
"descriptionAndCode" : "..."
},
"descriptionOrCode" : "...",
"message" : {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "FAX",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "SLOW",
"transient" : true,
"campaign" : { },
"status" : "TREATED"
},
"version" : 12345
} ],
"campaign" : {
"referenceCode" : "...",
"processingThreadId" : 12345,
"description" : "...",
"useAnyMedia" : true,
"notified" : true,
"historized" : true,
"referenceDescription" : "...",
"codeChanged" : true,
"code" : "...",
"auditable" : {
"created" : 12345,
"creator" : "...",
"lastModified" : 12345,
"updater" : "...",
"updated" : 12345,
"lastUser" : "..."
},
"startDate" : 12345,
"parentEntityType" : { },
"media" : "SMS",
"version" : 12345,
"messages" : [ {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "POSTAL_MAIL",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "NORMAL",
"transient" : true,
"campaign" : { },
"status" : "WAITING"
}, {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "POSTAL_MAIL",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "NORMAL",
"transient" : true,
"campaign" : { },
"status" : "PROCESSING"
} ],
"parentEntity" : {
"code" : "...",
"appendGeneratedCode" : true,
"auditableFields" : [ { }, { } ],
"notified" : true,
"parentEntity" : { },
"referenceDescription" : "...",
"id" : 12345,
"auditable" : { },
"codeChanged" : true,
"transient" : true,
"referenceCode" : "...",
"descriptionOrCode" : "...",
"historized" : true,
"version" : 12345,
"parentEntityType" : { },
"description" : "...",
"descriptionAndCode" : "..."
},
"descriptionAndCode" : "...",
"subMedia" : "...",
"endDate" : 12345,
"id" : 12345,
"transient" : true,
"priority" : "URGENT",
"status" : "PAUSED",
"auditableFields" : [ {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "STATUS",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
}, {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "STATUS",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
} ],
"descriptionOrCode" : "...",
"scheduleDate" : 12345,
"appendGeneratedCode" : true
},
"contact" : {
"websiteUrl" : "...",
"appendGeneratedCode" : true,
"enterprise" : true,
"referenceCode" : "...",
"codeChanged" : true,
"legalEntityType" : {
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"referenceCode" : "...",
"appendGeneratedCode" : true,
"descriptionNotNull" : "...",
"auditableFields" : [ { }, { } ],
"notified" : true,
"version" : 12345,
"descriptionAndCode" : "...",
"descriptionI18nNullSafe" : {
"property1" : "...",
"property2" : "..."
},
"isCompany" : true,
"id" : 12345,
"transient" : true,
"code" : "...",
"parentEntityType" : { },
"codeChanged" : true,
"auditable" : { },
"referenceDescription" : "...",
"description" : "...",
"historized" : true,
"descriptionOrCode" : "...",
"parentEntity" : { }
},
"vip" : true,
"contactInformation" : {
"fax" : "...",
"email" : "...",
"phone" : "...",
"mobile" : "..."
},
"notified" : true,
"parentEntityType" : { },
"contactPolicy" : {
"nbMaxMessagePerWeek" : 12345,
"nbMaxMessagePerMonth" : 12345,
"delayMinBetween2messages" : 12345,
"nbMaxMessagePerDay" : 12345
},
"code" : "...",
"importedFrom" : "...",
"parentEntity" : {
"code" : "...",
"appendGeneratedCode" : true,
"auditableFields" : [ { }, { } ],
"notified" : true,
"parentEntity" : { },
"referenceDescription" : "...",
"id" : 12345,
"auditable" : { },
"codeChanged" : true,
"transient" : true,
"referenceCode" : "...",
"descriptionOrCode" : "...",
"historized" : true,
"version" : 12345,
"parentEntityType" : { },
"description" : "...",
"descriptionAndCode" : "..."
},
"registrationNo" : "...",
"auditableFields" : [ {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "RENEWAL",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
}, {
"fieldName" : "...",
"historable" : true,
"historized" : true,
"auditType" : "RENEWAL",
"notfiable" : true,
"currentState" : { },
"notified" : true,
"previousState" : { }
} ],
"address" : {
"state" : "...",
"address4" : "...",
"city" : "...",
"countryBundle" : "...",
"address5" : "...",
"address2" : "...",
"zipCode" : "...",
"address3" : "...",
"country" : { },
"address1" : "..."
},
"reference" : "...",
"assistantPhone" : "...",
"referenceDescription" : "...",
"messages" : [ {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "EMAIL",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "NORMAL",
"transient" : true,
"campaign" : { },
"status" : "TREATED"
}, {
"rejectionReason" : "...",
"contact" : { },
"subMedia" : "...",
"id" : 12345,
"media" : "IM",
"parameters" : [ { }, { } ],
"templateCode" : "...",
"version" : 12345,
"priority" : "URGENT",
"transient" : true,
"campaign" : { },
"status" : "TREATED"
} ],
"isCompany" : true,
"descriptionAndCode" : "...",
"contactInformationNullSafe" : {
"fax" : "...",
"email" : "...",
"phone" : "...",
"mobile" : "..."
},
"agreedToUA" : true,
"tags" : [ "...", "..." ],
"primaryContact" : {
"address" : { },
"mobile" : "...",
"appendGeneratedCode" : true,
"email" : "...",
"id" : 12345,
"description" : "...",
"lastName" : "...",
"descriptionOrCode" : "...",
"genericMail" : "...",
"firstName" : "...",
"notified" : true,
"auditable" : { },
"transient" : true,
"auditableFields" : [ { }, { } ],
"fax" : "...",
"version" : 12345,
"parentEntity" : { },
"parentEntityType" : { },
"descriptionAndCode" : "...",
"referenceCode" : "...",
"referenceDescription" : "...",
"codeChanged" : true,
"code" : "...",
"phone" : "...",
"historized" : true
},
"comment" : "...",
"historized" : true,
"jobTitle" : "...",
"company" : "...",
"uuid" : "...",
"descriptionOrCode" : "...",
"prospect" : true,
"vatNo" : "...",
"externalRef1" : "...",
"addressBookContacts" : [ {
"addressBook" : { },
"version" : 12345,
"position" : "...",
"id" : 12345,
"transient" : true,
"contact" : { },
"mainContact" : true
}, {
"addressBook" : { },
"version" : 12345,
"position" : "...",
"id" : 12345,
"transient" : true,
"contact" : { },
"mainContact" : true
} ],
"transient" : true,
"auditable" : {
"created" : 12345,
"creator" : "...",
"lastModified" : 12345,
"updater" : "...",
"updated" : 12345,
"lastUser" : "..."
},
"cfAccumulatedValues" : {
"valuesByCode" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"values" : {
"property1" : { },
"property2" : { }
},
"newVersionedCFValuePeriods" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"encrypted" : true
},
"addressBook" : {
"contacts" : [ { }, { } ],
"auditableFields" : [ { }, { } ],
"parentEntityType" : { },
"notified" : true,
"customer" : { },
"referenceDescription" : "...",
"version" : 12345,
"descriptionOrCode" : "...",
"description" : "...",
"referenceCode" : "...",
"transient" : true,
"parentEntity" : { },
"codeChanged" : true,
"historized" : true,
"auditable" : { },
"code" : "...",
"descriptionAndCode" : "...",
"appendGeneratedCode" : true,
"id" : 12345
},
"id" : 12345,
"name" : {
"title" : { },
"lastName" : "...",
"fullName" : "...",
"firstName" : "..."
},
"importedBy" : "...",
"description" : "...",
"externalRef2" : "...",
"assistantName" : "...",
"cfValues" : {
"valuesByCode" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"values" : {
"property1" : { },
"property2" : { }
},
"newVersionedCFValuePeriods" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"encrypted" : true
},
"socialIdentifier" : "...",
"version" : 12345,
"position" : "...",
"parentCFEntities" : [ {
"cfAccumulatedValuesNullSafe" : { },
"cfValues" : { },
"parentCFEntities" : [ { }, { } ],
"cfValuesAsValues" : {
"property1" : { },
"property2" : { }
},
"cfValuesNullSafe" : { },
"cfAccumulatedValues" : { },
"dirtyCF" : true,
"CFValuesCopy" : { },
"uuid" : "..."
}, {
"cfAccumulatedValuesNullSafe" : { },
"cfValues" : { },
"parentCFEntities" : [ { }, { } ],
"cfValuesAsValues" : {
"property1" : { },
"property2" : { }
},
"cfValuesNullSafe" : { },
"cfAccumulatedValues" : { },
"dirtyCF" : true,
"CFValuesCopy" : { },
"uuid" : "..."
} ]
},
"media" : "POSTAL_MAIL",
"subMedia" : "...",
"priority" : "SLOW",
"status" : "CANCELED",
"rejectionReason" : "..."
}