Send and receive communications like email and text messages with borrowers and their contacts.
OK
Unexpected error
[- {
- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
]
The new template descriptor
OK
Bad request
{- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
{- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
OK
Unexpected error
{- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
The updated template descriptor
OK
Bad request
{- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
{- "id": "string",
- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "language": "en",
- "productId": "string",
- "companyId": "string",
- "activeVersionId": "string",
- "sensitive": true,
- "enabled": true
}
OK
[- {
- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
]
OK
[- {
- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
]
OK
Bad request
{- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
{- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
{- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
The fields to template
OK
Bad request
{- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
{- "id": "string",
- "descriptorId": "string",
- "status": "draft",
- "subjectLineTemplate": "string",
- "contentTextTemplate": "string",
- "contentHtmlTemplate": "string"
}
Send a message and save it as a new interaction
OK
User has DoNotInteract
{- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "theme": "agentNotification",
- "personId": "string",
- "contactId": "string",
- "loanId": "string",
- "loanIds": [
- "string"
], - "caseId": "string",
- "context": { },
- "attachments": [
- "string"
], - "supercaseBulkOperationId": "string",
- "previousInteractionId": "string",
- "isTransactional": true,
- "useTemplate": true
}
Receive a message—performing associated automated actions and saving a new interaction.
channel required | string The channel by which an interaction occurs. |
content | object or null The content and attributes of the message sent. Normally in JSON format. |
contactId | string An identifier of an existing contact. |
loanId | string or null An identifier of a loan to track interactions for. This can either be Peach's or a lender's external identifier. |
loanIds | Array of strings A list of identifiers of loans to track interactions for. This can either be Peach's or a lender's external identifiers. |
subject | string The subject of the interaction. This is relevant only if the interaction was rendered from a Peach template. |
theme required | string The reason why an interaction occurred. For example:
|
sensitive | boolean or null Default: false Set this flag if this interaction has sensitive information. The flag is used for proper authorization of access to the information. |
externalId | string or null [ 1 .. 255 ] characters The lender's identifier for the interaction. After the object is successfully created, a lender can use ID or externalId identifiers to fetch the object. To fetch the object using externalId you need to add Note: Don't add ext- to the identifier value. For example: if the external identifier is |
previousInteractionId | string or null If a previous interaction identifier is provided, the current and previous interactions will be linked. This can either be Peach's or a lender's external identifier. |
status required | string The status of an interaction.
Interaction In-Progress interactionsSome interactions—like an email—take place at a single point in time, others might be ongoing for many minutes—like a phone call. Ongoing interactions like voice and chat may have their status set to Scheduled interactionsSome interactions might be scheduled for the future. These interactions
have a status of NullNote that |
metaData | object or null Store any type of key/value pairs in the form of a JSON dictionary. |
isTransactional | boolean or null
Note: Can be |
direction | string Enum: "outbound" "inbound" |
contactExternalId | string or null The lender's identifier of the contact information. This should not include any |
agentOutcome | string or null Provides details on the outcome of the interaction according to an agent. Note this captures the "human" outcome of an interaction: e.g., Did you talk the person you intended to? Did the other chat recipient become unresponsive? For the "technical" status of an interaction, see
|
statusDetails | string or null Provides more details about the status of an interaction. Note that For the "human" outcome of an interaction see StatusCertain status details must have a particular SucceededThe following status details are considered
AttemptedThe following status details are considered
FailedThe following status details are considered Generally an interaction is
Channels
DirectionCertain status details are only valid with certain
NullNote that |
startedAt | string <date-time> Start time of the interaction. If not provided we'll assume it's a timestamp of the API call. If time of day is not required provide only date. For CRM-managed |
endedAt | string or null <date-time> End time of the interaction. This attribute is optional and is used for logging only. For CRM-managed |
scheduledAtFrom | string <date-time> Time to start the scheduled interaction. |
scheduledAtTo | string <date-time> Time to end the scheduled interaction. |
failureDescriptionShort | string or null Short text describing the failure reason. Normally displayed in UI. |
failureDescriptionLong | string or null Detailed text describing the failure reason and any appropriate actions the user may take to fix the issue. |
complianceGuardRuleId | string or null The Compliance Guard rule identifier that blocked the interaction.
Only applicable if the |
object Represents various users such as a borrower, co-borrower, co-signer, etc. A lender can choose to provide PII or not. If no PII is provided, Peach cannot monitor for bankruptcy, deceased and SCRA. | |
object (contactInformation) The contact details. A contact can be email, phone, address,
etc. The | |
personId | string or null The ID of the borrower to which this interaction is associated |
Success
{- "channel": "fax",
- "content": { },
- "contactId": "string",
- "loanId": "string",
- "loanIds": [
- "string"
], - "subject": "annualPrivacyPolicyNotice",
- "theme": "agentNotification",
- "sensitive": false,
- "externalId": "string",
- "previousInteractionId": "string",
- "status": "attempted",
- "metaData": { },
- "isTransactional": true,
- "direction": "outbound",
- "contactExternalId": "string",
- "agentOutcome": "voiceSpokeWithFirstParty",
- "statusDetails": "voiceSpokeWithFirstParty",
- "startedAt": "2019-08-24T14:15:22Z",
- "endedAt": "2019-08-24T14:15:22Z",
- "scheduledAtFrom": "2019-08-24T14:15:22Z",
- "scheduledAtTo": "2019-08-24T14:15:22Z",
- "failureDescriptionShort": "string",
- "failureDescriptionLong": "string",
- "complianceGuardRuleId": "string",
- "borrower": {
- "borrowerType": "person",
- "externalId": "string",
- "status": "active",
- "collectionsIntensity": "light",
- "metaData": { },
- "commPreferences": {
- "statementDeliveryChannels": [
- "email"
], - "sendRemindersWhenCurrent": true
}, - "monitorStartDate": null
}, - "contact": {
- "externalId": "string",
- "contactType": "phone",
- "label": "personal",
- "affiliation": "self",
- "name": "string",
- "value": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countyOrRegion": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "POBox": "string"
}, - "valid": true,
- "verified": false,
- "receiveTextMessages": false,
- "authorizedThirdParty": false,
- "powerOfAttorney": false,
- "phoneDisconnectionDetails": {
- "lastKnownConnectionDate": "2019-08-24"
}
}, - "personId": "string"
}
{- "status": 0,
- "message": "string",
- "data": {
- "channel": "fax",
- "content": { },
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "contactId": "string",
- "loanId": "string",
- "loanIds": [
- "string"
], - "subject": "annualPrivacyPolicyNotice",
- "theme": "agentNotification",
- "sensitive": false,
- "externalId": "string",
- "previousInteractionId": "string",
- "status": "attempted",
- "metaData": { },
- "isTransactional": true,
- "direction": "outbound",
- "createdBy": {
- "id": "string",
- "name": "string",
- "descriptor": "string"
}, - "object": "interaction",
- "statusUpdatedAt": "2019-08-24T14:15:22Z",
- "agentOutcome": "voiceSpokeWithFirstParty",
- "agentOutcomeUpdatedAt": "2019-08-24T14:15:22Z",
- "statusDetails": "voiceSpokeWithFirstParty",
- "statusDetailsUpdatedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "endedAt": "2019-08-24T14:15:22Z",
- "templateVersionId": "string",
- "scheduledAtFrom": "2019-08-24T14:15:22Z",
- "scheduledAtTo": "2019-08-24T14:15:22Z",
- "supercaseBulkOperationId": "string",
- "failureDescriptionShort": "string",
- "failureDescriptionLong": "string",
- "complianceGuardRuleId": "string",
- "borrower": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "borrowerType": "person",
- "externalId": "string",
- "status": "active",
- "statusUpdatedAt": "2019-08-24T14:15:22Z",
- "collectionsIntensity": "light",
- "displayId": "string",
- "metaData": { },
- "commPreferences": {
- "statementDeliveryChannels": [
- "email"
], - "sendRemindersWhenCurrent": true
}, - "monitorStartDate": null
}, - "contact": {
- "object": "contactDetails",
- "externalId": "string",
- "contactType": "phone",
- "label": "personal",
- "affiliation": "self",
- "name": "string",
- "value": "string",
- "address": {
- "object": "address",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countyOrRegion": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "POBox": "string"
}, - "valid": true,
- "verified": false,
- "receiveTextMessages": false,
- "authorizedThirdParty": false,
- "powerOfAttorney": false,
- "receiveTextMessagesLastConsentAt": "2019-08-24T14:15:22Z",
- "phoneDisconnectionDetails": {
- "lastKnownConnectionDate": "2019-08-24",
- "lastDisconnectCheckDate": "2019-08-24",
- "disconnectionStatus": "disconnected"
}
}, - "personId": "string"
}
}
Template selectors and the data
OK
{- "subject": "annualPrivacyPolicyNotice",
- "channel": "email",
- "personId": "string",
- "loanId": "string",
- "caseId": "string",
- "context": { }
}
Template selectors, context and the document ID
OK
{- "subject": "annualPrivacyPolicyNotice",
- "channel": "email",
- "personId": "string",
- "loanId": "string",
- "caseId": "string",
- "context": { },
- "statementId": "string",
- "documentId": "string"
}
Template selectors and the data
OK
{- "subject": "annualPrivacyPolicyNotice",
- "channel": "voice",
- "personId": "string",
- "loanId": "string",
- "caseId": "string",
- "context": { }
}
{- "subjectLine": "string",
- "contentHtml": "string",
- "contentText": "string"
}
personalizations required | Array of any Specifies the email destination. See the body of POST /mail/send at https://sendgrid.com/docs/api-reference/. |
theme | string The reason why an interaction occurred. For example:
|
language | string Default: "en" A two character code of the email language. |
subjectLine | string The subject line of the email |
contentHtml | string The content of the email in the HTML format. |
contentPlain | string The content of the email in the plain text format. |
previousInteractionId | string The ID of an existing interaction to link the new interaction to. |
isTransactional | boolean Default: false |
Accepted
{- "personalizations": [
- null
], - "theme": "agentNotification",
- "language": "en",
- "subjectLine": "string",
- "contentHtml": "string",
- "contentPlain": "string",
- "previousInteractionId": "string",
- "isTransactional": false
}
{- "status": 0,
- "message": "string",
- "data": {
- "interactionId": "string"
}
}
OK
{- "subjectLine": "string",
- "contentHtml": "string",
- "contentPlain": "string"
}
{- "subjectLine": "string",
- "contentHtml": "string",
- "contentText": "string"
}
OK
{- "personId": "string",
- "email": "string",
- "phone": "string",
- "channel": "voice",
- "context": { }
}
OK
[- {
- "subject": "annualPrivacyPolicyNotice",
- "title": "string",
- "theme": "agentNotification",
- "caseTypes": [
- "generic"
], - "agentCanSend": true,
- "previewOnly": true
}
]