forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathb2b-lead.schema.json
More file actions
158 lines (158 loc) · 6.51 KB
/
b2b-lead.schema.json
File metadata and controls
158 lines (158 loc) · 6.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"meta:license": [
"Copyright 2020 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/common/b2b-lead",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "B2B Lead",
"type": "object",
"meta:extensible": true,
"meta:abstract": true,
"description": "This Data Type is used to capture B2B Lead specific attributes.",
"definitions": {
"b2b-lead": {
"properties": {
"xdm:ID": {
"title": "Lead Id",
"description": "Lead id.",
"type": "string"
},
"xdm:isConverted": {
"title": "Converted Indicator",
"description": "Indicates whether the Lead was successfully converted or not.",
"type": "boolean"
},
"xdm:convertedAccountID": {
"title": "Converted Account ID",
"description": "Account Id if the lead was successfully converted.",
"type": "string"
},
"xdm:convertedContactID": {
"title": "Converted Contact ID",
"description": "Contact Id if the lead was successfully converted.",
"type": "string"
},
"xdm:convertedDate": {
"title": "Converted Date",
"description": "Date of conversion if the lead was successfully converted.",
"type": "string",
"format": "date-time"
},
"xdm:convertedOpportunityID": {
"title": "Converted Opportunity ID",
"description": "Opportunity Id if the lead was successfully converted.",
"type": "string"
},
"xdm:jigsawContactID": {
"title": "Jigsaw Contact Id",
"description": "Lead’s Data.com ID if available.",
"type": "string"
},
"xdm:lastTransferDate": {
"title": "Last Transfer Date",
"description": "Last transfer date.",
"type": "string",
"format": "date-time"
},
"xdm:isUnReadByOwner": {
"title": "Un-Read By Owner",
"description": "Un Read by owner indicator.",
"type": "boolean"
},
"xdm:source": {
"title": "Lead Source",
"description": "Field recording what source the lead originated from.",
"type": "string"
},
"xdm:organization": {
"title": "Organization Attributes",
"description": "Organization attributes if the lead is an organization.",
"$ref": "https://ns.adobe.com/xdm/common/organization"
},
"xdm:preferences": {
"title": "Lead Preferences",
"description": "Holds opt out values for different channels as selected by the lead.",
"$ref": "https://ns.adobe.com/xdm/context/optinout"
},
"xdm:extendedLead": {
"title": "Lead Extended Properties",
"description": "Holds additional properties for a person to be recognized as a lead in the business-to-business space.",
"$ref": "https://ns.adobe.com/xdm/common/contact-lead"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/b2b-lead"
}
],
"required": [
"xdm:ID"
],
"meta:status": "deprecated",
"examples": [
{
"xdm:ID": "",
"xdm:isConverted": true,
"xdm:convertedAccountID": "",
"xdm:convertedContactID": "",
"xdm:convertedDate": "2018-12-20T15:52:25+00:00",
"xdm:convertedOpportunityID": "",
"xdm:jigsawContactID": "",
"xdm:lastTransferDate": "2018-12-20T15:52:25+00:00",
"xdm:source": "",
"xdm:isUnReadByOwner": false,
"xdm:extendedLead": {
"xdm:type": "",
"xdm:ownerID": "",
"xdm:isDeleted": false,
"xdm:emailBouncedDate": "2018-12-20T15:52:25+00:00",
"xdm:emailBouncedReason": "Bounced Reason Here",
"xdm:isEmailBounced": true,
"xdm:description": "Contact description here",
"xdm:status": "Contacted",
"xdm:timezone": ""
},
"xdm:identityMap": {
"EMAIL": [
{
"xdm:id": "jane@doe.com"
}
]
},
"xdm:preferences": {
"https://ns.adobe.com/xdm/channels/email": "pending",
"https://ns.adobe.com/xdm/channels/phone": "out",
"https://ns.adobe.com/xdm/channels/sms": "in",
"https://ns.adobe.com/xdm/channels/fax": "not_provided",
"https://ns.adobe.com/xdm/channels/direct-mail": "not_provided",
"https://ns.adobe.com/xdm/channels/apns": "not_provided",
"xdm:globalOptout": false,
"xdm:optOutDetails": {
"xdm:email": {
"xdm:optOutReason": "Reason here",
"xdm:optOutDate": "2018-01-20T15:52:25+00:00"
},
"xdm:phone": {
"xdm:optOutReason": "Reason here",
"xdm:optOutDate": "2018-01-20T15:52:25+00:00"
}
}
},
"xdm:organization": {
"xdm:legalName": "ABC Stores",
"xdm:numberOfEmployees": 200,
"xdm:annualRevenue": 1000000,
"xdm:industry": "Retail",
"xdm:website": "http://www.abcstores.com"
}
}
]
}