sk_api_schema 0.10.5 → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.rdoc +1 -1
  4. data/json/v1.0/account.json +2 -2
  5. data/json/v1.0/contact.json +2 -2
  6. data/json/v1.0/line_item.json +3 -3
  7. data/json/v1.0/product.json +2 -2
  8. data/json/v1.0/sub.json +3 -3
  9. data/json/v2.0/account.json +172 -0
  10. data/json/v2.0/account_billing.json +131 -0
  11. data/json/v2.0/account_entry.json +212 -0
  12. data/json/v2.0/address.json +85 -0
  13. data/json/v2.0/attachment.json +133 -0
  14. data/json/v2.0/auth_permission.json +75 -0
  15. data/json/v2.0/client.json +318 -0
  16. data/json/v2.0/comment.json +122 -0
  17. data/json/v2.0/company.json +141 -0
  18. data/json/v2.0/contact.json +418 -0
  19. data/json/v2.0/credit_note.json +380 -0
  20. data/json/v2.0/divider_item.json +47 -0
  21. data/json/v2.0/document.json +240 -0
  22. data/json/v2.0/email.json +191 -0
  23. data/json/v2.0/email_template.json +132 -0
  24. data/json/v2.0/estimate.json +408 -0
  25. data/json/v2.0/export.json +142 -0
  26. data/json/v2.0/export_template.json +100 -0
  27. data/json/v2.0/invoice.json +407 -0
  28. data/json/v2.0/language.json +82 -0
  29. data/json/v2.0/line_item.json +121 -0
  30. data/json/v2.0/order.json +373 -0
  31. data/json/v2.0/payment.json +148 -0
  32. data/json/v2.0/payment_reminder.json +301 -0
  33. data/json/v2.0/pdf_template.json +99 -0
  34. data/json/v2.0/product.json +144 -0
  35. data/json/v2.0/recurring.json +340 -0
  36. data/json/v2.0/sub.json +60 -0
  37. data/json/v2.0/sub_total_item.json +57 -0
  38. data/json/v2.0/tag.json +76 -0
  39. data/json/v2.0/task.json +229 -0
  40. data/json/v2.0/text_template.json +95 -0
  41. data/json/v2.0/user.json +103 -0
  42. data/lib/sk_api_schema/version.rb +1 -1
  43. metadata +35 -2
@@ -0,0 +1,122 @@
1
+ { "type":"object",
2
+ "title": "comment",
3
+ "name": "comment",
4
+ "description":"An comment in SK must always be related to an object.",
5
+ "properties":{
6
+ "id":{
7
+ "description":"Unique identifier - UUID",
8
+ "identity":true,
9
+ "readonly":true,
10
+ "type":"string",
11
+ "maxLength": 22,
12
+ "minLength":22
13
+ },
14
+ "text":{
15
+ "description": "The comment himself.",
16
+ "required":true,
17
+ "type":"string"
18
+ },
19
+ "related_object_type":{
20
+ "description": "Object type of the comments parent. Is the camelcased base class name: Document for invoice, credit_note, contact",
21
+ "required":true,
22
+ "type":"string"
23
+ },
24
+ "related_object_id":{
25
+ "description": "uuid of the comments parent object.",
26
+ "required":true,
27
+ "type":"string",
28
+ "maxLength": 22,
29
+ "minLength":22
30
+ },
31
+ "created_at":{
32
+ "description": "Date the object was created in SK. Never changes afterwards",
33
+ "format":"date-time",
34
+ "readonly":true,
35
+ "type":"string"
36
+ },
37
+ "updated_at":{
38
+ "description": "Date the object was edited in SK.",
39
+ "format":"date-time",
40
+ "readonly":true,
41
+ "type":"string"
42
+ },
43
+ "team_id":{
44
+ "description": "A team uuid taken from the related object. If set only the team and its parent teams can see the record.",
45
+ "readonly" :true,
46
+ "type":"string",
47
+ "maxLength": 22,
48
+ "minLength":22
49
+ }
50
+ },
51
+ "links":[
52
+ { "rel": "self",
53
+ "href": "comments/{id}"
54
+ },
55
+ { "rel": "instances",
56
+ "href": "comments",
57
+ "properties" : {
58
+ "page":{
59
+ "title" : "Page",
60
+ "description": "In paginated results set the page to look for",
61
+ "type":"number"
62
+ },
63
+ "per_page":{
64
+ "title" : "Per page",
65
+ "description": "Results per page. Default is 50, max is 200",
66
+ "type":"number"
67
+ },
68
+ "filter[q]":{
69
+ "title" : "Search",
70
+ "description": "Search in text",
71
+ "type":"string"
72
+ },
73
+ "filter[contact_ids]":{
74
+ "title" : "Contact IDs",
75
+ "description": "Comma-separated list of contact IDs. While present, it will return comments related to the contact and all its documents.",
76
+ "type" : "string"
77
+ },
78
+ "filter[related_object_ids]":{
79
+ "title" : "Related object IDs",
80
+ "description": "Comma-separated list of related object IDs (objects which can have their own comments: document, task, products). Can also be used with a single ID to find all comments related to the given object.",
81
+ "type" : "string"
82
+ },
83
+ "filter[from]":{
84
+ "title" : "From date",
85
+ "description": "All objects with a date after the date. YYYY-MM-DD",
86
+ "format" : "date",
87
+ "type" : "string"
88
+ },
89
+ "filter[to]":{
90
+ "title" : "To date",
91
+ "description": "All objects with date before the date. YYYY-MM-DD",
92
+ "format" : "date",
93
+ "type" : "string"
94
+ },
95
+ "sort_by":{
96
+ "title" : "Sort by",
97
+ "description": "Sort the results by the given field => number",
98
+ "enum":["created_at", "updated_at"],
99
+ "type": "string"
100
+ },
101
+ "sort":{
102
+ "title" : "Sort",
103
+ "enum":["ASC","DESC"],
104
+ "description": "Sort the results in ASC or DESC",
105
+ "type": "string"
106
+ }
107
+ }
108
+ },
109
+ { "rel": "destroy",
110
+ "href": "comments/{id}",
111
+ "method": "DELETE"
112
+ },
113
+ { "rel": "update",
114
+ "href": "comments/{id}",
115
+ "method": "PUT"
116
+ },
117
+ { "rel": "create",
118
+ "href": "comments",
119
+ "method": "POST"
120
+ }
121
+ ]
122
+ }
@@ -0,0 +1,141 @@
1
+ { "type":"object",
2
+ "title": "company",
3
+ "name": "company",
4
+ "description": "A company is the main entity, so any data belongs to a company. It is identified by the current subdomain and cannot be edited via API atm",
5
+ "properties":{
6
+ "id":{
7
+ "description":"Unique identifier - UUID",
8
+ "identity":true,
9
+ "readonly":true,
10
+ "type":"string",
11
+ "maxLength": 22,
12
+ "minLength":22
13
+ },
14
+ "name":{
15
+ "description": "Company name",
16
+ "type":"string",
17
+ "maxLength": 100
18
+ },
19
+ "language":{
20
+ "description": "Default language, used for new users. Must be a valid language available in SalesKing",
21
+ "type":"string",
22
+ "maxLength": 10
23
+ },
24
+ "currency":{
25
+ "description": "Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)",
26
+ "type":"string",
27
+ "maxLength": 3,
28
+ "minLength": 3
29
+ },
30
+ "sub_domain":{
31
+ "description": "Unique subdomain identifying the company's SalesKing account.",
32
+ "type":"string",
33
+ "maxLength": 20
34
+ },
35
+ "account_link":{
36
+ "description": "Link to a company's SalesKing account.",
37
+ "type":"string",
38
+ "format":"uri",
39
+ "readonly":true
40
+ },
41
+ "time_zone":{
42
+ "description": "Default time zone, used for new users",
43
+ "type":"string",
44
+ "maxLength": 50
45
+ },
46
+ "email":{
47
+ "description": "Email address",
48
+ "required":true,
49
+ "type":"string",
50
+ "maxLength": 100
51
+ },
52
+ "url":{
53
+ "description": "A company website",
54
+ "type":"string",
55
+ "maxLength": 255
56
+ },
57
+ "phone_fax":{
58
+ "description": "Fax number",
59
+ "type":"string",
60
+ "maxLength": 30
61
+ },
62
+ "phone_office":{
63
+ "description": "Office phone number",
64
+ "type":"string",
65
+ "maxLength": 30
66
+ },
67
+ "phone_mobile":{
68
+ "description": "Mobile phone number",
69
+ "type":"string",
70
+ "maxLength": 30
71
+ },
72
+ "tax_number":{
73
+ "description": "Tax number, normally applies to a private person running a small business.",
74
+ "type":"string",
75
+ "maxLength": 30
76
+ },
77
+ "addresses":{
78
+ "description": "A company can have many addresses, sorted by date descending(new first). Default address used in placeholder is the most recent one.",
79
+ "type":"array",
80
+ "properties" : {"$ref":"./addresses.json#properties"}
81
+ },
82
+ "vat_number":{
83
+ "description": "VAT number, for a company entitled to pay value added taxes.",
84
+ "type":"string",
85
+ "maxLength": 30
86
+ },
87
+ "sepa_creditor_id":{
88
+ "description": "SEPA Creditor ID, needed for SEPA direct debit transactions.",
89
+ "type":"string",
90
+ "maxLength": 18
91
+ },
92
+ "bank_name":{
93
+ "description": "Bank name",
94
+ "type":"string",
95
+ "maxLength": 70
96
+ },
97
+ "bank_number":{
98
+ "description": "Bank number",
99
+ "type":"string",
100
+ "maxLength": 35
101
+ },
102
+ "bank_account_number":{
103
+ "description": "Bank account number.",
104
+ "type":"string",
105
+ "maxLength": 35
106
+ },
107
+ "bank_iban":{
108
+ "description": "IBAN Number of the bank account. Is validated",
109
+ "type":"string",
110
+ "maxLength": 35
111
+ },
112
+ "bank_swift":{
113
+ "description": "SWIFT BIC- Bank Identifier Code",
114
+ "type":"string",
115
+ "maxLength": 11
116
+ },
117
+ "bank_owner":{
118
+ "description": "Bank account owner",
119
+ "type":"string",
120
+ "maxLength": 70
121
+ },
122
+ "created_at":{
123
+ "description": "Date the record was created in SK. Never changes afterwards.",
124
+ "format":"date-time",
125
+ "readonly":true,
126
+ "type":"string"
127
+ },
128
+ "updated_at":{
129
+ "description": "Last date when the record was edited.",
130
+ "format":"date-time",
131
+ "readonly":true,
132
+ "type":"string"
133
+ }
134
+ },
135
+
136
+ "links":[
137
+ { "rel": "current",
138
+ "href": "companies/current"
139
+ }
140
+ ]
141
+ }
@@ -0,0 +1,418 @@
1
+ {"type":"object",
2
+ "title": "contact",
3
+ "name": "contact",
4
+ "description": "A contact can be a lead, client or supplier, depending on its type field. Use the filter[type] parameter to show only contacts of a kind. Use this resource instead of clients, as they are deprecated and dropped in the future.",
5
+ "properties":{
6
+ "id":{
7
+ "description":"Unique identifier - UUID",
8
+ "identity":true,
9
+ "readonly":true,
10
+ "type":"string",
11
+ "maxLength": 22,
12
+ "minLength":22
13
+ },
14
+ "parent_id":{
15
+ "description": "ID of a parent contact.",
16
+ "type":"string",
17
+ "maxLength": 22,
18
+ "minLength":22
19
+ },
20
+ "type":{
21
+ "description": "Type of contact",
22
+ "enum":["Client", "Lead", "Supplier"],
23
+ "required" : true,
24
+ "type":"string",
25
+ "maxLength": 50
26
+ },
27
+ "is_employee":{
28
+ "description": "An employee gets number, organisation, tax and vat_number from its parent. If you set any of these, they are overwritten. When changing a parent-contact the fields on his direct child-employees are updated too.",
29
+ "type": "boolean",
30
+ "default": false
31
+ },
32
+ "number":{
33
+ "description": "Unique number, auto-created by SK for new contacts(client, supplier) without number.",
34
+ "type":"string",
35
+ "maxLength": 50
36
+ },
37
+ "organisation":{
38
+ "description": "Name of a company. This or lastname must be present",
39
+ "required" : true,
40
+ "type":"string",
41
+ "maxLength": 100
42
+ },
43
+ "last_name":{
44
+ "description": "Last name of a person. At least this or the organisation field must be filled for new records",
45
+ "type":"string",
46
+ "maxLength": 50
47
+ },
48
+ "first_name":{
49
+ "description": "First name of a person.",
50
+ "type":"string",
51
+ "maxLength": 50
52
+ },
53
+ "gender":{
54
+ "description": "Can be empty for a company. Is used in salutation",
55
+ "enum":["male", "female"],
56
+ "type":"string"
57
+ },
58
+ "notes":{
59
+ "description": "Notes for a contact. For day to day information you should use comments instead.",
60
+ "type":"string",
61
+ "format": "text"
62
+ },
63
+ "position":{
64
+ "description": "Position of a person in a company.",
65
+ "type":"string",
66
+ "maxLength": 50
67
+ },
68
+ "title":{
69
+ "description": "Academical title of a person e.g. Dr., Prof",
70
+ "type":"string",
71
+ "maxLength": 50
72
+ },
73
+ "tax_number":{
74
+ "description": "Tax number, normally applies to a private person",
75
+ "type":"string",
76
+ "maxLength": 30
77
+ },
78
+ "vat_number":{
79
+ "description": "VAT number, for a company or person paying value added taxes.",
80
+ "type":"string",
81
+ "maxLength": 30
82
+ },
83
+ "email":{
84
+ "description": "Email address of the contact.",
85
+ "type":"string",
86
+ "maxLength": 100
87
+ },
88
+ "url":{
89
+ "description": "An url associated with the person, e.g its company website.",
90
+ "type":"string",
91
+ "maxLength": 255
92
+ },
93
+ "birthday":{
94
+ "description": "The birthday. YYYY-MM-DD",
95
+ "format":"date",
96
+ "type":"string"
97
+ },
98
+ "tag_list":{
99
+ "description": "Space separated list of tags. Are split and saved as Tag objects on create, update.",
100
+ "type":"string"
101
+ },
102
+ "created_at":{
103
+ "description": "Date the record was created in SK. Never changes afterwards.",
104
+ "format":"date-time",
105
+ "readonly":true,
106
+ "type":"string"
107
+ },
108
+ "updated_at":{
109
+ "description": "Last date when the record was edited.",
110
+ "format":"date-time",
111
+ "readonly":true,
112
+ "type":"string"
113
+ },
114
+ "language":{
115
+ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the client is emailed, a localized version of a multi-language template(email, pdf) will be used if available. The language will also be set for new documents.",
116
+ "type":"string",
117
+ "maxLength": 10
118
+ },
119
+ "currency":{
120
+ "description": "Currency code as defined by the ISO 4217 standard(3-letter UPCASE: EUR, USD). If set the currency is taken for new documents.",
121
+ "type":"string",
122
+ "maxLength": 3,
123
+ "minLength": 3
124
+ },
125
+ "payment_method":{
126
+ "description": "Default payment method for used for new documemts",
127
+ "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque", "moneybookers", "premium_sms"],
128
+ "type":"string"
129
+ },
130
+ "bank_name":{
131
+ "description": "Bank name",
132
+ "type":"string",
133
+ "maxLength": 70
134
+ },
135
+ "bank_number":{
136
+ "description": "Bank number",
137
+ "type":"string",
138
+ "maxLength": 35
139
+ },
140
+ "bank_account_number":{
141
+ "description": "Bank account number.",
142
+ "type":"string",
143
+ "maxLength": 35
144
+ },
145
+ "bank_iban":{
146
+ "description": "IBAN Number of the bank account. Is validated",
147
+ "type":"string",
148
+ "maxLength": 35
149
+ },
150
+ "bank_swift":{
151
+ "description": "SWIFT BIC- Bank Identifier Code",
152
+ "type":"string",
153
+ "maxLength": 11
154
+ },
155
+ "bank_owner":{
156
+ "description": "Bank account owner",
157
+ "type":"string",
158
+ "maxLength": 70
159
+ },
160
+ "phone_fax":{
161
+ "description": "Fax number",
162
+ "type":"string",
163
+ "maxLength": 30
164
+ },
165
+ "phone_office":{
166
+ "description": "Office phone number",
167
+ "type":"string",
168
+ "maxLength": 30
169
+ },
170
+ "phone_home":{
171
+ "description": "Private phone number",
172
+ "type":"string",
173
+ "maxLength": 30
174
+ },
175
+ "phone_mobile":{
176
+ "description": "Mobile phone number",
177
+ "type":"string",
178
+ "maxLength": 30
179
+ },
180
+ "lock_version":{
181
+ "description": "Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.",
182
+ "type":"integer"
183
+ },
184
+ "cash_discount":{
185
+ "description": "Default cash discount for new invoices.",
186
+ "type":"number"
187
+ },
188
+ "due_days":{
189
+ "description": "Default due days for new invoices.",
190
+ "type":"integer"
191
+ },
192
+ "address_field":{
193
+ "description": "Returns the address field used on new docs. Consist of Organisation name and default(first) address",
194
+ "readonly":true,
195
+ "type":"string"
196
+ },
197
+ "addresses":{
198
+ "description": "A client can have many addresses, sorted by date descending(new first). Default address is the most recent one.",
199
+ "type":"array",
200
+ "properties" : {"$ref":"./address.json#properties"}
201
+ },
202
+ "team_id":{
203
+ "description": "A team uuid. If set only the team and its parent teams can see the record. The team is set for all new documents and related objects like comments, attachments, emails. When changed ALL related objects are updated with the new team!!",
204
+ "type":"string",
205
+ "maxLength": 22,
206
+ "minLength":22
207
+ },
208
+ "lead_source":{
209
+ "description": "Lead source describing where a contact came from e.g. a campaign name, website, facebook, URL",
210
+ "type":"string"
211
+ },
212
+ "lead_ref":{
213
+ "description": "Lead reference e.g. a tracking id, web-url",
214
+ "type":"string"
215
+ },
216
+ "lead_date":{
217
+ "description": "Lead date e.g. date of first contact with your company. YYYY-MM-DD",
218
+ "format":"date",
219
+ "type":"string"
220
+ },
221
+ "converted_at":{
222
+ "description": "Date the contact converted from lead to client or any other contact type (supplier)",
223
+ "format":"date-time",
224
+ "type":"string"
225
+ },
226
+ "sales_potential":{
227
+ "description": "Sales potential for the contact e.g what is his budget, how much can he spend?",
228
+ "type":"number"
229
+ },
230
+ "probability":{
231
+ "description": "Likelihood that the sales potential will be realised in percent e.g. How hot is the contact, How much of the sales potential will we get also see expected_revenue?",
232
+ "type":"number"
233
+ },
234
+ "expected_revenue":{
235
+ "description": "Product of the probability and sales potential. e.g how much of the sales_potential can we get?",
236
+ "readonly":true,
237
+ "type":"number"
238
+ }
239
+ },
240
+ "links":[
241
+ { "rel": "self",
242
+ "href": "contacts/{id}"
243
+ },
244
+ { "rel": "instances",
245
+ "href": "contacts",
246
+ "properties" : {
247
+ "page":{
248
+ "title" : "Page",
249
+ "description": "In paginated results set the page to look for",
250
+ "type":"number"
251
+ },
252
+ "per_page":{
253
+ "title" : "Per page",
254
+ "description": "Results per page. Default is 50, max is 200",
255
+ "type":"number"
256
+ },
257
+ "filter[q]":{
258
+ "title" : "Search",
259
+ "description": "Wildcard search in first, last_name, organisation, email, number",
260
+ "type":"string"
261
+ },
262
+ "filter[organisation]":{
263
+ "title" : "Organisation",
264
+ "description": "Search by organisation. Searches by organisation begins with name%",
265
+ "type":"string"
266
+ },
267
+ "filter[tags]":{
268
+ "title" : "Tags",
269
+ "description": "Filter by a space delimited list of tags",
270
+ "type":"string"
271
+ },
272
+ "filter[ids]":{
273
+ "title" : "Contacts",
274
+ "description": "A single or a list of contacts uuids, comma separated",
275
+ "type" : "string"
276
+ },
277
+ "filter[created_at_from]":{
278
+ "title" : "From date",
279
+ "description": "Objects with a creation on/after the date(>=). ISO 8601 format YYY-MM-DDThh:mm:ss+z or just a date YYY-MM-DD. If date is given the time is set to the start of the day(00:00:00) so all objects created on this day are included. A time should be already utc time",
280
+ "format" : "date-time",
281
+ "type" : "string"
282
+ },
283
+ "filter[created_at_to]":{
284
+ "title" : "To date",
285
+ "description": "Objects with a creation until the date(<=). ISO 8601 format YYY-MM-DDThh:mm:ss+z or just a date YYY-MM-DD. If date is given the time is set to the end of the day(23:59:59) so all objects created on that day are included. A time should be already utc time.",
286
+ "format" : "date-time",
287
+ "type" : "string"
288
+ },
289
+ "filter[birthday_from]":{
290
+ "title" : "From birthday date",
291
+ "description": "Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day. YYYY-MM-DD",
292
+ "format" : "date",
293
+ "type" : "string"
294
+ },
295
+ "filter[birthday_to]":{
296
+ "title" : "To birthday date",
297
+ "description": "Contacts with a birthday date before and on the date. YYYY-MM-DD",
298
+ "format" : "date",
299
+ "type" : "string"
300
+ },
301
+ "filter[creator_ids]":{
302
+ "title" : "Creator",
303
+ "description": "Objects created by the given users uuids, comma separated",
304
+ "type" : "string"
305
+ },
306
+ "filter[number]":{
307
+ "title" : "By number",
308
+ "description": "Search by number where the number is matched from the start: number%",
309
+ "type" : "string"
310
+ },
311
+ "filter[languages]":{
312
+ "title" : "Languages",
313
+ "description": "A single or a list of language codes, comma separated",
314
+ "type" : "string"
315
+ },
316
+ "filter[type]":{
317
+ "title" : "Type",
318
+ "description": "Type of the contact: ",
319
+ "enum":["Client", "Lead", "Supplier"],
320
+ "type" : "string"
321
+ },
322
+ "filter[probability_from]":{
323
+ "title" : "By probability from",
324
+ "description": "Find contacts with a probability greater(>=) than given number. Minimum is 0 for percent fields, max 100",
325
+ "type":"number"
326
+ },
327
+ "filter[probability_to]": {
328
+ "title": "By probability to",
329
+ "description": "Find contacts with a probability smaller(<=) than given number."
330
+ },
331
+ "filter[sales_potential_from]":{
332
+ "title" : "By sales potential from",
333
+ "description": "Find contacts with a sales potential greater(>=) than given number.",
334
+ "type":"number"
335
+ },
336
+ "filter[sales_potential_to]": {
337
+ "title": "By sales potential to",
338
+ "description": "Find contacts with a sales potential smaller(<=) than given number."
339
+ },
340
+ "sort_by":{
341
+ "title" : "Sort by",
342
+ "description": "Sort the results by the given field => number",
343
+ "enum":["organisation", "number","email","first_name","last_name", "created_at", "updated_at"],
344
+ "type": "string"
345
+ },
346
+ "sort":{
347
+ "title" : "Sort",
348
+ "enum":["ASC","DESC"],
349
+ "description": "Sort the results in ASC or DESC",
350
+ "type": "string"
351
+ }
352
+ }
353
+ },
354
+ { "rel": "destroy",
355
+ "href": "contacts/{id}",
356
+ "method": "DELETE"
357
+ },
358
+ { "rel": "update",
359
+ "href": "contacts/{id}",
360
+ "method": "PUT"
361
+ },
362
+ { "rel": "create",
363
+ "href": "contacts",
364
+ "method": "POST"
365
+ },
366
+ { "rel": "documents",
367
+ "href": "contacts/{id}/documents"
368
+ },
369
+ { "rel": "attachments",
370
+ "href": "contacts/{id}/attachments"
371
+ },
372
+ { "rel": "invoices",
373
+ "href": "contacts/{id}/invoices"
374
+ },
375
+ { "rel": "estimates",
376
+ "href": "contacts/{id}/estimates"
377
+ },
378
+ { "rel": "orders",
379
+ "href": "contacts/{id}/orders"
380
+ },
381
+ { "rel": "credit_notes",
382
+ "href": "contacts/{id}/credit_notes"
383
+ },
384
+ { "rel": "recurrings",
385
+ "href": "contacts/{id}/recurrings"
386
+ },
387
+ { "rel": "payment_reminders",
388
+ "href": "contacts/{id}/payment_reminders"
389
+ },
390
+ { "rel": "comments",
391
+ "href": "contacts/{id}/comments"
392
+ },
393
+ { "rel": "emails",
394
+ "href": "contacts/{id}/emails"
395
+ },
396
+ { "rel": "emails create",
397
+ "href": "contacts/{id}/emails",
398
+ "method": "POST",
399
+ "properties" : {
400
+ "template_id":{
401
+ "title" : "Template",
402
+ "description": "UUID of an email template to use. If present template fields like subject, body, attachments are used for the current email.",
403
+ "type":"string",
404
+ "maxLength": 22,
405
+ "minLength":22
406
+ },
407
+ "send":{
408
+ "title" : "Send email",
409
+ "description": "Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft."
410
+ },
411
+ "archived_pdf":{
412
+ "title" : "Attach archived pdf",
413
+ "description": "Adds the archived pdf from the related resource(if it has one)."
414
+ }
415
+ }
416
+ }
417
+ ]
418
+ }