@firedrill-tools/netsuite 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +214 -0
  3. package/firedrill/agent.target.json +16 -0
  4. package/firedrill/baseline.scenario.json +6905 -0
  5. package/firedrill/concurrency-limited.scenario.json +11 -0
  6. package/firedrill/conformance.suite.json +21 -0
  7. package/firedrill/ns-analytics.drill.json +73 -0
  8. package/firedrill/ns-concurrency.drill.json +53 -0
  9. package/firedrill/ns-default-identity.drill.json +43 -0
  10. package/firedrill/ns-denied.drill.json +38 -0
  11. package/firedrill/ns-insufficient-permission.drill.json +53 -0
  12. package/firedrill/ns-invalid-login.drill.json +53 -0
  13. package/firedrill/ns-order-to-cash.drill.json +93 -0
  14. package/firedrill/ns-record-locked.drill.json +53 -0
  15. package/firedrill/ns-records.drill.json +68 -0
  16. package/firedrill/ns-role-ar-clerk.drill.json +58 -0
  17. package/firedrill/ns-role-sales-rep.drill.json +58 -0
  18. package/firedrill/ns-subsidiary-scope.drill.json +58 -0
  19. package/firedrill/ns-tight-limits.drill.json +58 -0
  20. package/firedrill/ns-transform-lost.drill.json +63 -0
  21. package/firedrill/ns-write-outage.drill.json +63 -0
  22. package/firedrill/record-locked.scenario.json +11 -0
  23. package/firedrill/tight-limits.scenario.json +17 -0
  24. package/firedrill/tools/netsuite/app/assets/ATTRIBUTION.md +37 -0
  25. package/firedrill/tools/netsuite/app/assets/fonts/LICENSE.txt +92 -0
  26. package/firedrill/tools/netsuite/app/assets/oracle-netsuite.svg +1 -0
  27. package/firedrill/tools/netsuite/app/assets/oracle.svg +1 -0
  28. package/firedrill/tools/netsuite/app/site/app.js +182 -0
  29. package/firedrill/tools/netsuite/app/site/assets/fonts/open-sans-latin-ext.woff2 +0 -0
  30. package/firedrill/tools/netsuite/app/site/assets/fonts/open-sans-latin.woff2 +0 -0
  31. package/firedrill/tools/netsuite/app/site/assets/oracle-netsuite.svg +1 -0
  32. package/firedrill/tools/netsuite/app/site/assets/oracle.svg +1 -0
  33. package/firedrill/tools/netsuite/app/site/icons.js +59 -0
  34. package/firedrill/tools/netsuite/app/site/index.html +68 -0
  35. package/firedrill/tools/netsuite/app/site/menus.js +111 -0
  36. package/firedrill/tools/netsuite/app/site/overlay.js +121 -0
  37. package/firedrill/tools/netsuite/app/site/store.js +95 -0
  38. package/firedrill/tools/netsuite/app/site/styles/base.css +131 -0
  39. package/firedrill/tools/netsuite/app/site/styles/chrome.css +183 -0
  40. package/firedrill/tools/netsuite/app/site/styles/pages.css +134 -0
  41. package/firedrill/tools/netsuite/app/site/styles/tables.css +92 -0
  42. package/firedrill/tools/netsuite/app/site/ui.js +119 -0
  43. package/firedrill/tools/netsuite/app/site/views/common.js +134 -0
  44. package/firedrill/tools/netsuite/app/site/views/customer-form.js +152 -0
  45. package/firedrill/tools/netsuite/app/site/views/customer.js +147 -0
  46. package/firedrill/tools/netsuite/app/site/views/customers.js +111 -0
  47. package/firedrill/tools/netsuite/app/site/views/home-chrome.js +75 -0
  48. package/firedrill/tools/netsuite/app/site/views/home-data.js +153 -0
  49. package/firedrill/tools/netsuite/app/site/views/home.js +162 -0
  50. package/firedrill/tools/netsuite/app/site/views/invoice-new.js +131 -0
  51. package/firedrill/tools/netsuite/app/site/views/invoice.js +232 -0
  52. package/firedrill/tools/netsuite/app/site/views/invoices.js +99 -0
  53. package/firedrill/tools/netsuite/app/site/views/items.js +95 -0
  54. package/firedrill/tools/netsuite/app/site/views/order-new.js +154 -0
  55. package/firedrill/tools/netsuite/app/site/views/order.js +214 -0
  56. package/firedrill/tools/netsuite/app/site/views/orders.js +93 -0
  57. package/firedrill/tools/netsuite/app/site/views/payments.js +65 -0
  58. package/firedrill/tools/netsuite/app/site/views/pickers.js +117 -0
  59. package/firedrill/tools/netsuite/app/site/views/subsidiaries.js +40 -0
  60. package/firedrill/tools/netsuite/app/site/views/suiteql.js +81 -0
  61. package/firedrill/tools/netsuite/behavior.mjs +13 -0
  62. package/firedrill/tools/netsuite/lib/body.mjs +185 -0
  63. package/firedrill/tools/netsuite/lib/collections.mjs +202 -0
  64. package/firedrill/tools/netsuite/lib/errors.mjs +91 -0
  65. package/firedrill/tools/netsuite/lib/handlers-meta.mjs +100 -0
  66. package/firedrill/tools/netsuite/lib/handlers-read.mjs +141 -0
  67. package/firedrill/tools/netsuite/lib/handlers-session.mjs +52 -0
  68. package/firedrill/tools/netsuite/lib/handlers-write.mjs +6 -0
  69. package/firedrill/tools/netsuite/lib/metadata.mjs +148 -0
  70. package/firedrill/tools/netsuite/lib/primitives.mjs +105 -0
  71. package/firedrill/tools/netsuite/lib/project-tran.mjs +153 -0
  72. package/firedrill/tools/netsuite/lib/project.mjs +178 -0
  73. package/firedrill/tools/netsuite/lib/q.mjs +280 -0
  74. package/firedrill/tools/netsuite/lib/session.mjs +188 -0
  75. package/firedrill/tools/netsuite/lib/suiteql-parse.mjs +382 -0
  76. package/firedrill/tools/netsuite/lib/suiteql-run.mjs +270 -0
  77. package/firedrill/tools/netsuite/lib/suiteql-select.mjs +118 -0
  78. package/firedrill/tools/netsuite/lib/suiteql-tables.mjs +162 -0
  79. package/firedrill/tools/netsuite/lib/tran.mjs +133 -0
  80. package/firedrill/tools/netsuite/lib/wire-decode.mjs +107 -0
  81. package/firedrill/tools/netsuite/lib/wire.mjs +228 -0
  82. package/firedrill/tools/netsuite/lib/write-customer.mjs +181 -0
  83. package/firedrill/tools/netsuite/lib/write-invoice.mjs +319 -0
  84. package/firedrill/tools/netsuite/lib/write-order.mjs +269 -0
  85. package/firedrill/tools/netsuite/netsuite.tool.json +4888 -0
  86. package/firedrill/transform-response-lost.scenario.json +11 -0
  87. package/firedrill/world.json +7711 -0
  88. package/firedrill/write-outage.scenario.json +11 -0
  89. package/firedrill.json +5 -0
  90. package/package.json +52 -0
  91. package/starter.json +6904 -0
  92. package/test/conformance.mjs +701 -0
@@ -0,0 +1,4888 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "module": "./behavior.mjs",
4
+ "ui": {
5
+ "root": "app/site",
6
+ "entry": "index.html"
7
+ },
8
+ "manifest": {
9
+ "schemaVersion": 1,
10
+ "id": "netsuite",
11
+ "version": "0.1.2",
12
+ "engine": ">=0.1.0 <0.2.0",
13
+ "capabilities": [
14
+ "clock.read",
15
+ "event.emit",
16
+ "state.read",
17
+ "state.write"
18
+ ],
19
+ "state": [
20
+ {
21
+ "namespace": "customer-payments",
22
+ "schema": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "id",
27
+ "tranId",
28
+ "tranDate",
29
+ "entityId",
30
+ "subsidiaryId",
31
+ "payment",
32
+ "unapplied",
33
+ "accountName",
34
+ "memo",
35
+ "currencyId",
36
+ "applied",
37
+ "status",
38
+ "createdDate",
39
+ "lastModifiedDate",
40
+ "createdById",
41
+ "version"
42
+ ],
43
+ "properties": {
44
+ "id": {
45
+ "type": "string",
46
+ "pattern": "^[1-9][0-9]{0,14}$",
47
+ "maxLength": 15
48
+ },
49
+ "tranId": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 45
53
+ },
54
+ "tranDate": {
55
+ "type": "string",
56
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
57
+ },
58
+ "entityId": {
59
+ "type": "string",
60
+ "pattern": "^[1-9][0-9]{0,14}$",
61
+ "maxLength": 15
62
+ },
63
+ "subsidiaryId": {
64
+ "type": "string",
65
+ "pattern": "^[1-9][0-9]{0,14}$",
66
+ "maxLength": 15
67
+ },
68
+ "payment": {
69
+ "type": "number",
70
+ "exclusiveMinimum": 0,
71
+ "maximum": 1000000000
72
+ },
73
+ "unapplied": {
74
+ "type": "number",
75
+ "minimum": 0,
76
+ "maximum": 1000000000
77
+ },
78
+ "accountName": {
79
+ "type": "string",
80
+ "maxLength": 80
81
+ },
82
+ "memo": {
83
+ "anyOf": [
84
+ {
85
+ "type": "string",
86
+ "maxLength": 999
87
+ },
88
+ {
89
+ "type": "null"
90
+ }
91
+ ]
92
+ },
93
+ "currencyId": {
94
+ "type": "string",
95
+ "pattern": "^[1-9][0-9]{0,14}$",
96
+ "maxLength": 15
97
+ },
98
+ "applied": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "invoiceId",
105
+ "amount"
106
+ ],
107
+ "properties": {
108
+ "invoiceId": {
109
+ "type": "string",
110
+ "pattern": "^[1-9][0-9]{0,14}$",
111
+ "maxLength": 15
112
+ },
113
+ "amount": {
114
+ "type": "number"
115
+ }
116
+ }
117
+ },
118
+ "minItems": 1,
119
+ "maxItems": 20
120
+ },
121
+ "status": {
122
+ "type": "string",
123
+ "enum": [
124
+ "deposited",
125
+ "notDeposited"
126
+ ]
127
+ },
128
+ "createdDate": {
129
+ "type": "string",
130
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
131
+ },
132
+ "lastModifiedDate": {
133
+ "type": "string",
134
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
135
+ },
136
+ "createdById": {
137
+ "type": "string",
138
+ "pattern": "^[1-9][0-9]{0,14}$",
139
+ "maxLength": 15
140
+ },
141
+ "version": {
142
+ "type": "integer",
143
+ "minimum": 1,
144
+ "maximum": 1000000
145
+ }
146
+ }
147
+ },
148
+ "description": "Customer payments, created by transforming an invoice; each carries its applications."
149
+ },
150
+ {
151
+ "namespace": "customers",
152
+ "schema": {
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": [
156
+ "id",
157
+ "entityId",
158
+ "companyName",
159
+ "isPerson",
160
+ "firstName",
161
+ "lastName",
162
+ "middleName",
163
+ "email",
164
+ "phone",
165
+ "altPhone",
166
+ "subsidiaryId",
167
+ "currencyId",
168
+ "termsId",
169
+ "creditLimit",
170
+ "comments",
171
+ "isInactive",
172
+ "categoryId",
173
+ "defaultAddress",
174
+ "addressBook",
175
+ "dateCreated",
176
+ "createdDate",
177
+ "lastModifiedDate",
178
+ "createdById",
179
+ "lastModifiedById",
180
+ "version"
181
+ ],
182
+ "properties": {
183
+ "id": {
184
+ "type": "string",
185
+ "pattern": "^[1-9][0-9]{0,14}$",
186
+ "maxLength": 15
187
+ },
188
+ "entityId": {
189
+ "type": "string",
190
+ "minLength": 1,
191
+ "maxLength": 83
192
+ },
193
+ "companyName": {
194
+ "anyOf": [
195
+ {
196
+ "type": "string",
197
+ "maxLength": 83
198
+ },
199
+ {
200
+ "type": "null"
201
+ }
202
+ ]
203
+ },
204
+ "isPerson": {
205
+ "type": "boolean"
206
+ },
207
+ "firstName": {
208
+ "anyOf": [
209
+ {
210
+ "type": "string",
211
+ "maxLength": 32
212
+ },
213
+ {
214
+ "type": "null"
215
+ }
216
+ ]
217
+ },
218
+ "lastName": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string",
222
+ "maxLength": 32
223
+ },
224
+ {
225
+ "type": "null"
226
+ }
227
+ ]
228
+ },
229
+ "middleName": {
230
+ "anyOf": [
231
+ {
232
+ "type": "string",
233
+ "maxLength": 32
234
+ },
235
+ {
236
+ "type": "null"
237
+ }
238
+ ]
239
+ },
240
+ "email": {
241
+ "anyOf": [
242
+ {
243
+ "type": "string",
244
+ "maxLength": 254
245
+ },
246
+ {
247
+ "type": "null"
248
+ }
249
+ ]
250
+ },
251
+ "phone": {
252
+ "anyOf": [
253
+ {
254
+ "type": "string",
255
+ "maxLength": 22
256
+ },
257
+ {
258
+ "type": "null"
259
+ }
260
+ ]
261
+ },
262
+ "altPhone": {
263
+ "anyOf": [
264
+ {
265
+ "type": "string",
266
+ "maxLength": 22
267
+ },
268
+ {
269
+ "type": "null"
270
+ }
271
+ ]
272
+ },
273
+ "subsidiaryId": {
274
+ "type": "string",
275
+ "pattern": "^[1-9][0-9]{0,14}$",
276
+ "maxLength": 15
277
+ },
278
+ "currencyId": {
279
+ "type": "string",
280
+ "pattern": "^[1-9][0-9]{0,14}$",
281
+ "maxLength": 15
282
+ },
283
+ "termsId": {
284
+ "anyOf": [
285
+ {
286
+ "type": "string",
287
+ "pattern": "^[1-9][0-9]{0,14}$",
288
+ "maxLength": 15
289
+ },
290
+ {
291
+ "type": "null"
292
+ }
293
+ ]
294
+ },
295
+ "creditLimit": {
296
+ "anyOf": [
297
+ {
298
+ "type": "number",
299
+ "minimum": 0,
300
+ "maximum": 1000000000
301
+ },
302
+ {
303
+ "type": "null"
304
+ }
305
+ ]
306
+ },
307
+ "comments": {
308
+ "anyOf": [
309
+ {
310
+ "type": "string",
311
+ "maxLength": 999
312
+ },
313
+ {
314
+ "type": "null"
315
+ }
316
+ ]
317
+ },
318
+ "isInactive": {
319
+ "type": "boolean"
320
+ },
321
+ "categoryId": {
322
+ "anyOf": [
323
+ {
324
+ "type": "string",
325
+ "pattern": "^[1-9][0-9]{0,14}$",
326
+ "maxLength": 15
327
+ },
328
+ {
329
+ "type": "null"
330
+ }
331
+ ]
332
+ },
333
+ "defaultAddress": {
334
+ "anyOf": [
335
+ {
336
+ "type": "string",
337
+ "maxLength": 500
338
+ },
339
+ {
340
+ "type": "null"
341
+ }
342
+ ]
343
+ },
344
+ "addressBook": {
345
+ "type": "array",
346
+ "items": {
347
+ "type": "object",
348
+ "additionalProperties": false,
349
+ "required": [
350
+ "addrId",
351
+ "label",
352
+ "addressee",
353
+ "addr1",
354
+ "addr2",
355
+ "city",
356
+ "state",
357
+ "zip",
358
+ "country",
359
+ "defaultBilling",
360
+ "defaultShipping"
361
+ ],
362
+ "properties": {
363
+ "addrId": {
364
+ "type": "string",
365
+ "minLength": 1,
366
+ "maxLength": 15
367
+ },
368
+ "label": {
369
+ "type": "string",
370
+ "maxLength": 80
371
+ },
372
+ "addressee": {
373
+ "type": "string",
374
+ "maxLength": 120
375
+ },
376
+ "addr1": {
377
+ "type": "string",
378
+ "maxLength": 150
379
+ },
380
+ "addr2": {
381
+ "anyOf": [
382
+ {
383
+ "type": "string",
384
+ "maxLength": 150
385
+ },
386
+ {
387
+ "type": "null"
388
+ }
389
+ ]
390
+ },
391
+ "city": {
392
+ "type": "string",
393
+ "maxLength": 80
394
+ },
395
+ "state": {
396
+ "type": "string",
397
+ "maxLength": 40
398
+ },
399
+ "zip": {
400
+ "type": "string",
401
+ "maxLength": 36
402
+ },
403
+ "country": {
404
+ "type": "string",
405
+ "minLength": 2,
406
+ "maxLength": 2
407
+ },
408
+ "defaultBilling": {
409
+ "type": "boolean"
410
+ },
411
+ "defaultShipping": {
412
+ "type": "boolean"
413
+ }
414
+ }
415
+ },
416
+ "maxItems": 4
417
+ },
418
+ "dateCreated": {
419
+ "type": "string",
420
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
421
+ },
422
+ "createdDate": {
423
+ "type": "string",
424
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
425
+ },
426
+ "lastModifiedDate": {
427
+ "type": "string",
428
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
429
+ },
430
+ "createdById": {
431
+ "type": "string",
432
+ "pattern": "^[1-9][0-9]{0,14}$",
433
+ "maxLength": 15
434
+ },
435
+ "lastModifiedById": {
436
+ "type": "string",
437
+ "pattern": "^[1-9][0-9]{0,14}$",
438
+ "maxLength": 15
439
+ },
440
+ "version": {
441
+ "type": "integer",
442
+ "minimum": 1,
443
+ "maximum": 1000000
444
+ }
445
+ }
446
+ },
447
+ "description": "Customer records; rowId is the NetSuite internal id. Balances are computed from transactions on read, never stored."
448
+ },
449
+ {
450
+ "namespace": "employees",
451
+ "schema": {
452
+ "type": "object",
453
+ "additionalProperties": false,
454
+ "required": [
455
+ "id",
456
+ "entityId",
457
+ "firstName",
458
+ "lastName",
459
+ "email",
460
+ "title",
461
+ "subsidiaryId",
462
+ "supervisorId",
463
+ "isInactive",
464
+ "roleIds",
465
+ "lastModifiedDate"
466
+ ],
467
+ "properties": {
468
+ "id": {
469
+ "type": "string",
470
+ "pattern": "^[1-9][0-9]{0,14}$",
471
+ "maxLength": 15
472
+ },
473
+ "entityId": {
474
+ "type": "string",
475
+ "minLength": 1,
476
+ "maxLength": 83
477
+ },
478
+ "firstName": {
479
+ "type": "string",
480
+ "maxLength": 32
481
+ },
482
+ "lastName": {
483
+ "type": "string",
484
+ "maxLength": 32
485
+ },
486
+ "email": {
487
+ "type": "string",
488
+ "maxLength": 254
489
+ },
490
+ "title": {
491
+ "type": "string",
492
+ "maxLength": 80
493
+ },
494
+ "subsidiaryId": {
495
+ "type": "string",
496
+ "pattern": "^[1-9][0-9]{0,14}$",
497
+ "maxLength": 15
498
+ },
499
+ "supervisorId": {
500
+ "anyOf": [
501
+ {
502
+ "type": "string",
503
+ "pattern": "^[1-9][0-9]{0,14}$",
504
+ "maxLength": 15
505
+ },
506
+ {
507
+ "type": "null"
508
+ }
509
+ ]
510
+ },
511
+ "isInactive": {
512
+ "type": "boolean"
513
+ },
514
+ "roleIds": {
515
+ "type": "array",
516
+ "items": {
517
+ "type": "string",
518
+ "pattern": "^[1-9][0-9]{0,14}$",
519
+ "maxLength": 15
520
+ },
521
+ "maxItems": 8
522
+ },
523
+ "lastModifiedDate": {
524
+ "type": "string",
525
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
526
+ }
527
+ }
528
+ },
529
+ "description": "Read-only employees; backs the acting identity, the SuiteQL `employee` table and record audit fields."
530
+ },
531
+ {
532
+ "namespace": "invoices",
533
+ "schema": {
534
+ "type": "object",
535
+ "additionalProperties": false,
536
+ "required": [
537
+ "id",
538
+ "tranId",
539
+ "tranDate",
540
+ "dueDate",
541
+ "entityId",
542
+ "subsidiaryId",
543
+ "createdFromId",
544
+ "status",
545
+ "memo",
546
+ "otherRefNum",
547
+ "currencyId",
548
+ "termsId",
549
+ "lines",
550
+ "subtotal",
551
+ "taxTotal",
552
+ "total",
553
+ "amountPaid",
554
+ "appliedPaymentIds",
555
+ "createdDate",
556
+ "lastModifiedDate",
557
+ "createdById",
558
+ "lastModifiedById",
559
+ "version"
560
+ ],
561
+ "properties": {
562
+ "id": {
563
+ "type": "string",
564
+ "pattern": "^[1-9][0-9]{0,14}$",
565
+ "maxLength": 15
566
+ },
567
+ "tranId": {
568
+ "type": "string",
569
+ "minLength": 1,
570
+ "maxLength": 45
571
+ },
572
+ "tranDate": {
573
+ "type": "string",
574
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
575
+ },
576
+ "dueDate": {
577
+ "type": "string",
578
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
579
+ },
580
+ "entityId": {
581
+ "type": "string",
582
+ "pattern": "^[1-9][0-9]{0,14}$",
583
+ "maxLength": 15
584
+ },
585
+ "subsidiaryId": {
586
+ "type": "string",
587
+ "pattern": "^[1-9][0-9]{0,14}$",
588
+ "maxLength": 15
589
+ },
590
+ "createdFromId": {
591
+ "anyOf": [
592
+ {
593
+ "type": "string",
594
+ "pattern": "^[1-9][0-9]{0,14}$",
595
+ "maxLength": 15
596
+ },
597
+ {
598
+ "type": "null"
599
+ }
600
+ ]
601
+ },
602
+ "status": {
603
+ "type": "string",
604
+ "enum": [
605
+ "open",
606
+ "paidInFull",
607
+ "pendingApproval",
608
+ "voided"
609
+ ]
610
+ },
611
+ "memo": {
612
+ "anyOf": [
613
+ {
614
+ "type": "string",
615
+ "maxLength": 999
616
+ },
617
+ {
618
+ "type": "null"
619
+ }
620
+ ]
621
+ },
622
+ "otherRefNum": {
623
+ "anyOf": [
624
+ {
625
+ "type": "string",
626
+ "maxLength": 45
627
+ },
628
+ {
629
+ "type": "null"
630
+ }
631
+ ]
632
+ },
633
+ "currencyId": {
634
+ "type": "string",
635
+ "pattern": "^[1-9][0-9]{0,14}$",
636
+ "maxLength": 15
637
+ },
638
+ "termsId": {
639
+ "anyOf": [
640
+ {
641
+ "type": "string",
642
+ "pattern": "^[1-9][0-9]{0,14}$",
643
+ "maxLength": 15
644
+ },
645
+ {
646
+ "type": "null"
647
+ }
648
+ ]
649
+ },
650
+ "lines": {
651
+ "type": "array",
652
+ "items": {
653
+ "type": "object",
654
+ "additionalProperties": false,
655
+ "required": [
656
+ "line",
657
+ "itemId",
658
+ "quantity",
659
+ "rate",
660
+ "amount",
661
+ "description",
662
+ "taxRate",
663
+ "taxAmount",
664
+ "orderLine",
665
+ "quantityBilled"
666
+ ],
667
+ "properties": {
668
+ "line": {
669
+ "type": "integer",
670
+ "minimum": 1,
671
+ "maximum": 100000
672
+ },
673
+ "itemId": {
674
+ "type": "string",
675
+ "pattern": "^[1-9][0-9]{0,14}$",
676
+ "maxLength": 15
677
+ },
678
+ "quantity": {
679
+ "type": "number",
680
+ "minimum": 0,
681
+ "maximum": 1000000
682
+ },
683
+ "rate": {
684
+ "type": "number",
685
+ "minimum": 0,
686
+ "maximum": 100000000
687
+ },
688
+ "amount": {
689
+ "type": "number"
690
+ },
691
+ "description": {
692
+ "anyOf": [
693
+ {
694
+ "type": "string",
695
+ "maxLength": 999
696
+ },
697
+ {
698
+ "type": "null"
699
+ }
700
+ ]
701
+ },
702
+ "taxRate": {
703
+ "type": "number",
704
+ "minimum": 0,
705
+ "maximum": 0.25
706
+ },
707
+ "taxAmount": {
708
+ "type": "number"
709
+ },
710
+ "orderLine": {
711
+ "anyOf": [
712
+ {
713
+ "type": "integer",
714
+ "minimum": 1
715
+ },
716
+ {
717
+ "type": "null"
718
+ }
719
+ ]
720
+ },
721
+ "quantityBilled": {
722
+ "type": "number",
723
+ "minimum": 0,
724
+ "maximum": 1000000
725
+ }
726
+ }
727
+ },
728
+ "minItems": 0,
729
+ "maxItems": 200
730
+ },
731
+ "subtotal": {
732
+ "type": "number"
733
+ },
734
+ "taxTotal": {
735
+ "type": "number"
736
+ },
737
+ "total": {
738
+ "type": "number"
739
+ },
740
+ "amountPaid": {
741
+ "type": "number",
742
+ "minimum": 0
743
+ },
744
+ "appliedPaymentIds": {
745
+ "type": "array",
746
+ "items": {
747
+ "type": "string",
748
+ "pattern": "^[1-9][0-9]{0,14}$",
749
+ "maxLength": 15
750
+ },
751
+ "maxItems": 100
752
+ },
753
+ "createdDate": {
754
+ "type": "string",
755
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
756
+ },
757
+ "lastModifiedDate": {
758
+ "type": "string",
759
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
760
+ },
761
+ "createdById": {
762
+ "type": "string",
763
+ "pattern": "^[1-9][0-9]{0,14}$",
764
+ "maxLength": 15
765
+ },
766
+ "lastModifiedById": {
767
+ "type": "string",
768
+ "pattern": "^[1-9][0-9]{0,14}$",
769
+ "maxLength": 15
770
+ },
771
+ "version": {
772
+ "type": "integer",
773
+ "minimum": 1,
774
+ "maximum": 1000000
775
+ }
776
+ }
777
+ },
778
+ "description": "Invoices, standalone or created from a sales order; amountRemaining is computed on read."
779
+ },
780
+ {
781
+ "namespace": "items",
782
+ "schema": {
783
+ "type": "object",
784
+ "additionalProperties": false,
785
+ "required": [
786
+ "id",
787
+ "itemType",
788
+ "itemId",
789
+ "displayName",
790
+ "description",
791
+ "basePrice",
792
+ "cost",
793
+ "quantityOnHand",
794
+ "incomeAccountName",
795
+ "taxScheduleName",
796
+ "subsidiaryIds",
797
+ "isInactive",
798
+ "lastModifiedDate"
799
+ ],
800
+ "properties": {
801
+ "id": {
802
+ "type": "string",
803
+ "pattern": "^[1-9][0-9]{0,14}$",
804
+ "maxLength": 15
805
+ },
806
+ "itemType": {
807
+ "type": "string",
808
+ "enum": [
809
+ "inventoryItem",
810
+ "serviceSaleItem"
811
+ ]
812
+ },
813
+ "itemId": {
814
+ "type": "string",
815
+ "minLength": 1,
816
+ "maxLength": 60
817
+ },
818
+ "displayName": {
819
+ "anyOf": [
820
+ {
821
+ "type": "string",
822
+ "maxLength": 60
823
+ },
824
+ {
825
+ "type": "null"
826
+ }
827
+ ]
828
+ },
829
+ "description": {
830
+ "anyOf": [
831
+ {
832
+ "type": "string",
833
+ "maxLength": 999
834
+ },
835
+ {
836
+ "type": "null"
837
+ }
838
+ ]
839
+ },
840
+ "basePrice": {
841
+ "type": "number",
842
+ "minimum": 0,
843
+ "maximum": 100000000
844
+ },
845
+ "cost": {
846
+ "anyOf": [
847
+ {
848
+ "type": "number",
849
+ "minimum": 0,
850
+ "maximum": 100000000
851
+ },
852
+ {
853
+ "type": "null"
854
+ }
855
+ ]
856
+ },
857
+ "quantityOnHand": {
858
+ "type": "number",
859
+ "minimum": 0,
860
+ "maximum": 100000000
861
+ },
862
+ "incomeAccountName": {
863
+ "type": "string",
864
+ "maxLength": 80
865
+ },
866
+ "taxScheduleName": {
867
+ "type": "string",
868
+ "maxLength": 80
869
+ },
870
+ "subsidiaryIds": {
871
+ "type": "array",
872
+ "items": {
873
+ "type": "string",
874
+ "pattern": "^[1-9][0-9]{0,14}$",
875
+ "maxLength": 15
876
+ },
877
+ "minItems": 1,
878
+ "maxItems": 2
879
+ },
880
+ "isInactive": {
881
+ "type": "boolean"
882
+ },
883
+ "lastModifiedDate": {
884
+ "type": "string",
885
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
886
+ }
887
+ }
888
+ },
889
+ "description": "Inventory and service items; the inventoryItem endpoints expose only `inventoryItem` rows, SuiteQL `item` exposes both."
890
+ },
891
+ {
892
+ "namespace": "line-counters",
893
+ "schema": {
894
+ "type": "object",
895
+ "additionalProperties": false,
896
+ "required": [
897
+ "nextLine"
898
+ ],
899
+ "properties": {
900
+ "nextLine": {
901
+ "type": "integer",
902
+ "minimum": 1,
903
+ "maximum": 100000
904
+ }
905
+ }
906
+ },
907
+ "description": "Per-transaction line sequence, so a removed line number is never reused within that transaction."
908
+ },
909
+ {
910
+ "namespace": "meta",
911
+ "schema": {
912
+ "anyOf": [
913
+ {
914
+ "type": "object",
915
+ "additionalProperties": false,
916
+ "required": [
917
+ "accountId",
918
+ "companyName",
919
+ "defaultEmployeeId",
920
+ "baseCurrency",
921
+ "dateFormat",
922
+ "timeZoneOffsetMinutes",
923
+ "isOneWorld",
924
+ "defaultSubsidiaryId"
925
+ ],
926
+ "properties": {
927
+ "accountId": {
928
+ "type": "string",
929
+ "pattern": "^[A-Z0-9_]{6,24}$"
930
+ },
931
+ "companyName": {
932
+ "type": "string",
933
+ "minLength": 1,
934
+ "maxLength": 120
935
+ },
936
+ "defaultEmployeeId": {
937
+ "type": "string",
938
+ "pattern": "^[1-9][0-9]{0,14}$",
939
+ "maxLength": 15
940
+ },
941
+ "baseCurrency": {
942
+ "type": "string",
943
+ "enum": [
944
+ "USD"
945
+ ]
946
+ },
947
+ "dateFormat": {
948
+ "type": "string",
949
+ "enum": [
950
+ "M/D/YYYY"
951
+ ]
952
+ },
953
+ "timeZoneOffsetMinutes": {
954
+ "type": "integer",
955
+ "minimum": -720,
956
+ "maximum": 840
957
+ },
958
+ "isOneWorld": {
959
+ "type": "boolean"
960
+ },
961
+ "defaultSubsidiaryId": {
962
+ "type": "string",
963
+ "pattern": "^[1-9][0-9]{0,14}$",
964
+ "maxLength": 15
965
+ }
966
+ }
967
+ },
968
+ {
969
+ "type": "object",
970
+ "additionalProperties": false,
971
+ "required": [
972
+ "nextEntityId",
973
+ "nextItemId",
974
+ "nextTransactionId"
975
+ ],
976
+ "properties": {
977
+ "nextEntityId": {
978
+ "type": "integer",
979
+ "minimum": 1,
980
+ "maximum": 999999999
981
+ },
982
+ "nextItemId": {
983
+ "type": "integer",
984
+ "minimum": 1,
985
+ "maximum": 999999999
986
+ },
987
+ "nextTransactionId": {
988
+ "type": "integer",
989
+ "minimum": 1,
990
+ "maximum": 999999999
991
+ }
992
+ }
993
+ },
994
+ {
995
+ "type": "object",
996
+ "additionalProperties": false,
997
+ "required": [
998
+ "maxScanRows",
999
+ "maxPageBytes"
1000
+ ],
1001
+ "properties": {
1002
+ "maxScanRows": {
1003
+ "type": "integer",
1004
+ "minimum": 1,
1005
+ "maximum": 10000
1006
+ },
1007
+ "maxPageBytes": {
1008
+ "type": "integer",
1009
+ "minimum": 1000,
1010
+ "maximum": 1000000
1011
+ }
1012
+ }
1013
+ }
1014
+ ]
1015
+ },
1016
+ "description": "Row `account` (the simulated NetSuite account), row `counters` (entity/item/transaction id sequences) and row `limits` (scan and page bounds)."
1017
+ },
1018
+ {
1019
+ "namespace": "roles",
1020
+ "schema": {
1021
+ "type": "object",
1022
+ "additionalProperties": false,
1023
+ "required": [
1024
+ "id",
1025
+ "name",
1026
+ "isAdmin",
1027
+ "subsidiaryId",
1028
+ "permissions"
1029
+ ],
1030
+ "properties": {
1031
+ "id": {
1032
+ "type": "string",
1033
+ "pattern": "^[1-9][0-9]{0,14}$",
1034
+ "maxLength": 15
1035
+ },
1036
+ "name": {
1037
+ "type": "string",
1038
+ "minLength": 1,
1039
+ "maxLength": 80
1040
+ },
1041
+ "isAdmin": {
1042
+ "type": "boolean"
1043
+ },
1044
+ "subsidiaryId": {
1045
+ "type": "string",
1046
+ "pattern": "^[0-9]{1,15}$"
1047
+ },
1048
+ "permissions": {
1049
+ "type": "object",
1050
+ "additionalProperties": false,
1051
+ "required": [],
1052
+ "properties": {
1053
+ "LIST_CUSTJOB": {
1054
+ "type": "string",
1055
+ "enum": [
1056
+ "view",
1057
+ "create",
1058
+ "edit",
1059
+ "full"
1060
+ ]
1061
+ },
1062
+ "TRAN_SALESORD": {
1063
+ "type": "string",
1064
+ "enum": [
1065
+ "view",
1066
+ "create",
1067
+ "edit",
1068
+ "full"
1069
+ ]
1070
+ },
1071
+ "TRAN_CUSTINVC": {
1072
+ "type": "string",
1073
+ "enum": [
1074
+ "view",
1075
+ "create",
1076
+ "edit",
1077
+ "full"
1078
+ ]
1079
+ },
1080
+ "TRAN_CUSTPYMT": {
1081
+ "type": "string",
1082
+ "enum": [
1083
+ "view",
1084
+ "create",
1085
+ "edit",
1086
+ "full"
1087
+ ]
1088
+ },
1089
+ "LIST_ITEM": {
1090
+ "type": "string",
1091
+ "enum": [
1092
+ "view",
1093
+ "create",
1094
+ "edit",
1095
+ "full"
1096
+ ]
1097
+ },
1098
+ "LIST_SUBSIDIARY": {
1099
+ "type": "string",
1100
+ "enum": [
1101
+ "view",
1102
+ "create",
1103
+ "edit",
1104
+ "full"
1105
+ ]
1106
+ },
1107
+ "SETUP_RECORD_METADATA": {
1108
+ "type": "string",
1109
+ "enum": [
1110
+ "view",
1111
+ "create",
1112
+ "edit",
1113
+ "full"
1114
+ ]
1115
+ },
1116
+ "REPO_ANALYTICS": {
1117
+ "type": "string",
1118
+ "enum": [
1119
+ "view",
1120
+ "create",
1121
+ "edit",
1122
+ "full"
1123
+ ]
1124
+ }
1125
+ }
1126
+ }
1127
+ }
1128
+ },
1129
+ "description": "Read-only role definitions: permission levels and the role's subsidiary restriction (\"0\" = all)."
1130
+ },
1131
+ {
1132
+ "namespace": "sales-orders",
1133
+ "schema": {
1134
+ "type": "object",
1135
+ "additionalProperties": false,
1136
+ "required": [
1137
+ "id",
1138
+ "tranId",
1139
+ "tranDate",
1140
+ "entityId",
1141
+ "subsidiaryId",
1142
+ "status",
1143
+ "memo",
1144
+ "otherRefNum",
1145
+ "currencyId",
1146
+ "termsId",
1147
+ "lines",
1148
+ "subtotal",
1149
+ "taxTotal",
1150
+ "total",
1151
+ "billedTotal",
1152
+ "createdFromId",
1153
+ "createdDate",
1154
+ "lastModifiedDate",
1155
+ "createdById",
1156
+ "lastModifiedById",
1157
+ "version"
1158
+ ],
1159
+ "properties": {
1160
+ "id": {
1161
+ "type": "string",
1162
+ "pattern": "^[1-9][0-9]{0,14}$",
1163
+ "maxLength": 15
1164
+ },
1165
+ "tranId": {
1166
+ "type": "string",
1167
+ "minLength": 1,
1168
+ "maxLength": 45
1169
+ },
1170
+ "tranDate": {
1171
+ "type": "string",
1172
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
1173
+ },
1174
+ "entityId": {
1175
+ "type": "string",
1176
+ "pattern": "^[1-9][0-9]{0,14}$",
1177
+ "maxLength": 15
1178
+ },
1179
+ "subsidiaryId": {
1180
+ "type": "string",
1181
+ "pattern": "^[1-9][0-9]{0,14}$",
1182
+ "maxLength": 15
1183
+ },
1184
+ "status": {
1185
+ "type": "string",
1186
+ "enum": [
1187
+ "pendingApproval",
1188
+ "pendingFulfillment",
1189
+ "partiallyFulfilled",
1190
+ "pendingBillingPartFulfilled",
1191
+ "pendingBilling",
1192
+ "billed",
1193
+ "closed"
1194
+ ]
1195
+ },
1196
+ "memo": {
1197
+ "anyOf": [
1198
+ {
1199
+ "type": "string",
1200
+ "maxLength": 999
1201
+ },
1202
+ {
1203
+ "type": "null"
1204
+ }
1205
+ ]
1206
+ },
1207
+ "otherRefNum": {
1208
+ "anyOf": [
1209
+ {
1210
+ "type": "string",
1211
+ "maxLength": 45
1212
+ },
1213
+ {
1214
+ "type": "null"
1215
+ }
1216
+ ]
1217
+ },
1218
+ "currencyId": {
1219
+ "type": "string",
1220
+ "pattern": "^[1-9][0-9]{0,14}$",
1221
+ "maxLength": 15
1222
+ },
1223
+ "termsId": {
1224
+ "anyOf": [
1225
+ {
1226
+ "type": "string",
1227
+ "pattern": "^[1-9][0-9]{0,14}$",
1228
+ "maxLength": 15
1229
+ },
1230
+ {
1231
+ "type": "null"
1232
+ }
1233
+ ]
1234
+ },
1235
+ "lines": {
1236
+ "type": "array",
1237
+ "items": {
1238
+ "type": "object",
1239
+ "additionalProperties": false,
1240
+ "required": [
1241
+ "line",
1242
+ "itemId",
1243
+ "quantity",
1244
+ "rate",
1245
+ "amount",
1246
+ "description",
1247
+ "taxRate",
1248
+ "taxAmount",
1249
+ "orderLine",
1250
+ "quantityBilled"
1251
+ ],
1252
+ "properties": {
1253
+ "line": {
1254
+ "type": "integer",
1255
+ "minimum": 1,
1256
+ "maximum": 100000
1257
+ },
1258
+ "itemId": {
1259
+ "type": "string",
1260
+ "pattern": "^[1-9][0-9]{0,14}$",
1261
+ "maxLength": 15
1262
+ },
1263
+ "quantity": {
1264
+ "type": "number",
1265
+ "minimum": 0,
1266
+ "maximum": 1000000
1267
+ },
1268
+ "rate": {
1269
+ "type": "number",
1270
+ "minimum": 0,
1271
+ "maximum": 100000000
1272
+ },
1273
+ "amount": {
1274
+ "type": "number"
1275
+ },
1276
+ "description": {
1277
+ "anyOf": [
1278
+ {
1279
+ "type": "string",
1280
+ "maxLength": 999
1281
+ },
1282
+ {
1283
+ "type": "null"
1284
+ }
1285
+ ]
1286
+ },
1287
+ "taxRate": {
1288
+ "type": "number",
1289
+ "minimum": 0,
1290
+ "maximum": 0.25
1291
+ },
1292
+ "taxAmount": {
1293
+ "type": "number"
1294
+ },
1295
+ "orderLine": {
1296
+ "anyOf": [
1297
+ {
1298
+ "type": "integer",
1299
+ "minimum": 1
1300
+ },
1301
+ {
1302
+ "type": "null"
1303
+ }
1304
+ ]
1305
+ },
1306
+ "quantityBilled": {
1307
+ "type": "number",
1308
+ "minimum": 0,
1309
+ "maximum": 1000000
1310
+ }
1311
+ }
1312
+ },
1313
+ "minItems": 1,
1314
+ "maxItems": 200
1315
+ },
1316
+ "subtotal": {
1317
+ "type": "number"
1318
+ },
1319
+ "taxTotal": {
1320
+ "type": "number"
1321
+ },
1322
+ "total": {
1323
+ "type": "number"
1324
+ },
1325
+ "billedTotal": {
1326
+ "type": "number"
1327
+ },
1328
+ "createdFromId": {
1329
+ "type": "null"
1330
+ },
1331
+ "createdDate": {
1332
+ "type": "string",
1333
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
1334
+ },
1335
+ "lastModifiedDate": {
1336
+ "type": "string",
1337
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
1338
+ },
1339
+ "createdById": {
1340
+ "type": "string",
1341
+ "pattern": "^[1-9][0-9]{0,14}$",
1342
+ "maxLength": 15
1343
+ },
1344
+ "lastModifiedById": {
1345
+ "type": "string",
1346
+ "pattern": "^[1-9][0-9]{0,14}$",
1347
+ "maxLength": 15
1348
+ },
1349
+ "version": {
1350
+ "type": "integer",
1351
+ "minimum": 1,
1352
+ "maximum": 1000000
1353
+ }
1354
+ }
1355
+ },
1356
+ "description": "Sales orders with their item sublist; status is derived from billed quantities."
1357
+ },
1358
+ {
1359
+ "namespace": "subsidiaries",
1360
+ "schema": {
1361
+ "type": "object",
1362
+ "additionalProperties": false,
1363
+ "required": [
1364
+ "id",
1365
+ "name",
1366
+ "parentId",
1367
+ "country",
1368
+ "currencyName",
1369
+ "isElimination",
1370
+ "isInactive",
1371
+ "fiscalCalendarName",
1372
+ "lastModifiedDate"
1373
+ ],
1374
+ "properties": {
1375
+ "id": {
1376
+ "type": "string",
1377
+ "pattern": "^[1-9][0-9]{0,14}$",
1378
+ "maxLength": 15
1379
+ },
1380
+ "name": {
1381
+ "type": "string",
1382
+ "minLength": 1,
1383
+ "maxLength": 120
1384
+ },
1385
+ "parentId": {
1386
+ "anyOf": [
1387
+ {
1388
+ "type": "string",
1389
+ "pattern": "^[1-9][0-9]{0,14}$",
1390
+ "maxLength": 15
1391
+ },
1392
+ {
1393
+ "type": "null"
1394
+ }
1395
+ ]
1396
+ },
1397
+ "country": {
1398
+ "type": "string",
1399
+ "enum": [
1400
+ "US",
1401
+ "CA"
1402
+ ]
1403
+ },
1404
+ "currencyName": {
1405
+ "type": "string",
1406
+ "enum": [
1407
+ "USD",
1408
+ "CAD"
1409
+ ]
1410
+ },
1411
+ "isElimination": {
1412
+ "type": "boolean"
1413
+ },
1414
+ "isInactive": {
1415
+ "type": "boolean"
1416
+ },
1417
+ "fiscalCalendarName": {
1418
+ "type": "string",
1419
+ "maxLength": 60
1420
+ },
1421
+ "lastModifiedDate": {
1422
+ "type": "string",
1423
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
1424
+ }
1425
+ }
1426
+ },
1427
+ "description": "Read-only OneWorld subsidiary hierarchy; rowId is the internal id."
1428
+ }
1429
+ ],
1430
+ "operations": [
1431
+ {
1432
+ "id": "customer-payment.get",
1433
+ "description": "GET /services/rest/record/v1/customerPayment/{id} — read one customer payment record by internal id (permission TRAN_CUSTPYMT, view).",
1434
+ "inputSchema": {
1435
+ "type": "object",
1436
+ "additionalProperties": false,
1437
+ "required": [
1438
+ "recordId"
1439
+ ],
1440
+ "properties": {
1441
+ "recordId": {
1442
+ "type": "string",
1443
+ "maxLength": 512
1444
+ },
1445
+ "fields": {
1446
+ "type": "array",
1447
+ "items": {
1448
+ "type": "string"
1449
+ }
1450
+ },
1451
+ "expandSubResources": {
1452
+ "anyOf": [
1453
+ {
1454
+ "type": "string",
1455
+ "maxLength": 40
1456
+ },
1457
+ {
1458
+ "type": "boolean"
1459
+ }
1460
+ ]
1461
+ },
1462
+ "simpleEnumFormat": {
1463
+ "anyOf": [
1464
+ {
1465
+ "type": "string",
1466
+ "maxLength": 40
1467
+ },
1468
+ {
1469
+ "type": "boolean"
1470
+ }
1471
+ ]
1472
+ }
1473
+ }
1474
+ },
1475
+ "outputSchema": {
1476
+ "type": "object"
1477
+ },
1478
+ "declaredErrors": [
1479
+ "CONCURRENCY_LIMIT_EXCEEDED",
1480
+ "INSUFFICIENT_PERMISSION",
1481
+ "INVALID_ID",
1482
+ "INVALID_LOGIN",
1483
+ "INVALID_PARAMETER",
1484
+ "NONEXISTENT_ID",
1485
+ "RESULT_SET_TOO_LARGE"
1486
+ ],
1487
+ "idempotency": "none",
1488
+ "fidelity": "stateful"
1489
+ },
1490
+ {
1491
+ "id": "customer-payment.list",
1492
+ "description": "GET /services/rest/record/v1/customerPayment — list customer payment records as a NetSuite record collection, filtered by `q` and paged by limit/offset (permission TRAN_CUSTPYMT, view).",
1493
+ "inputSchema": {
1494
+ "type": "object",
1495
+ "additionalProperties": false,
1496
+ "required": [],
1497
+ "properties": {
1498
+ "q": {
1499
+ "type": "string"
1500
+ },
1501
+ "limit": {
1502
+ "anyOf": [
1503
+ {
1504
+ "type": "string",
1505
+ "maxLength": 40
1506
+ },
1507
+ {
1508
+ "type": "integer",
1509
+ "minimum": -1000000000,
1510
+ "maximum": 1000000
1511
+ }
1512
+ ]
1513
+ },
1514
+ "offset": {
1515
+ "anyOf": [
1516
+ {
1517
+ "type": "string",
1518
+ "maxLength": 40
1519
+ },
1520
+ {
1521
+ "type": "integer",
1522
+ "minimum": -1000000000,
1523
+ "maximum": 1000000000
1524
+ }
1525
+ ]
1526
+ }
1527
+ }
1528
+ },
1529
+ "outputSchema": {
1530
+ "type": "object",
1531
+ "additionalProperties": false,
1532
+ "required": [
1533
+ "links",
1534
+ "items",
1535
+ "count",
1536
+ "offset",
1537
+ "hasMore",
1538
+ "totalResults"
1539
+ ],
1540
+ "properties": {
1541
+ "links": {
1542
+ "type": "array",
1543
+ "items": {
1544
+ "type": "object",
1545
+ "additionalProperties": false,
1546
+ "required": [
1547
+ "rel",
1548
+ "href"
1549
+ ],
1550
+ "properties": {
1551
+ "rel": {
1552
+ "type": "string",
1553
+ "maxLength": 20
1554
+ },
1555
+ "href": {
1556
+ "type": "string",
1557
+ "maxLength": 400
1558
+ }
1559
+ }
1560
+ },
1561
+ "maxItems": 8
1562
+ },
1563
+ "items": {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "type": "object"
1567
+ },
1568
+ "maxItems": 1000
1569
+ },
1570
+ "count": {
1571
+ "type": "integer",
1572
+ "minimum": 0
1573
+ },
1574
+ "offset": {
1575
+ "type": "integer",
1576
+ "minimum": 0
1577
+ },
1578
+ "hasMore": {
1579
+ "type": "boolean"
1580
+ },
1581
+ "totalResults": {
1582
+ "type": "integer",
1583
+ "minimum": 0
1584
+ }
1585
+ }
1586
+ },
1587
+ "declaredErrors": [
1588
+ "CONCURRENCY_LIMIT_EXCEEDED",
1589
+ "INSUFFICIENT_PERMISSION",
1590
+ "INVALID_LOGIN",
1591
+ "INVALID_PARAMETER",
1592
+ "INVALID_REQUEST",
1593
+ "RESULT_SET_TOO_LARGE"
1594
+ ],
1595
+ "idempotency": "none",
1596
+ "fidelity": "behavioral"
1597
+ },
1598
+ {
1599
+ "id": "customer.create",
1600
+ "description": "POST /services/rest/record/v1/customer — create a customer from a NetSuite wire body; answers 204 with a Location header (permission LIST_CUSTJOB, create).",
1601
+ "inputSchema": {
1602
+ "type": "object",
1603
+ "additionalProperties": false,
1604
+ "required": [
1605
+ "body"
1606
+ ],
1607
+ "properties": {
1608
+ "body": {
1609
+ "type": "object"
1610
+ },
1611
+ "propertyNameValidation": {
1612
+ "type": "string",
1613
+ "enum": [
1614
+ "ignore",
1615
+ "warning",
1616
+ "error"
1617
+ ]
1618
+ },
1619
+ "idempotencyKeyHeader": {
1620
+ "type": "string",
1621
+ "maxLength": 200
1622
+ },
1623
+ "bodyError": {
1624
+ "type": "string",
1625
+ "enum": [
1626
+ "depth",
1627
+ "prototype",
1628
+ "not-json"
1629
+ ]
1630
+ }
1631
+ }
1632
+ },
1633
+ "outputSchema": {
1634
+ "type": "object",
1635
+ "additionalProperties": false,
1636
+ "required": [
1637
+ "id",
1638
+ "location"
1639
+ ],
1640
+ "properties": {
1641
+ "id": {
1642
+ "type": "string",
1643
+ "pattern": "^[1-9][0-9]{0,14}$",
1644
+ "maxLength": 15
1645
+ },
1646
+ "location": {
1647
+ "type": "string",
1648
+ "maxLength": 400
1649
+ }
1650
+ }
1651
+ },
1652
+ "declaredErrors": [
1653
+ "CONCURRENCY_LIMIT_EXCEEDED",
1654
+ "INSUFFICIENT_PERMISSION",
1655
+ "INVALID_CONTENT",
1656
+ "INVALID_KEY_OR_REF",
1657
+ "INVALID_LOGIN",
1658
+ "INVALID_PARAMETER",
1659
+ "INVALID_REQUEST",
1660
+ "RESULT_SET_TOO_LARGE",
1661
+ "UNEXPECTED_ERROR",
1662
+ "USER_ERROR"
1663
+ ],
1664
+ "idempotency": "optional",
1665
+ "fidelity": "behavioral"
1666
+ },
1667
+ {
1668
+ "id": "customer.delete",
1669
+ "description": "DELETE /services/rest/record/v1/customer/{id} — delete a customer that no transaction references (permission LIST_CUSTJOB, full).",
1670
+ "inputSchema": {
1671
+ "type": "object",
1672
+ "additionalProperties": false,
1673
+ "required": [
1674
+ "recordId"
1675
+ ],
1676
+ "properties": {
1677
+ "recordId": {
1678
+ "type": "string",
1679
+ "maxLength": 512
1680
+ },
1681
+ "idempotencyKeyHeader": {
1682
+ "type": "string",
1683
+ "maxLength": 200
1684
+ }
1685
+ }
1686
+ },
1687
+ "outputSchema": {
1688
+ "type": "object",
1689
+ "additionalProperties": false,
1690
+ "required": [
1691
+ "id"
1692
+ ],
1693
+ "properties": {
1694
+ "id": {
1695
+ "type": "string",
1696
+ "pattern": "^[1-9][0-9]{0,14}$",
1697
+ "maxLength": 15
1698
+ }
1699
+ }
1700
+ },
1701
+ "declaredErrors": [
1702
+ "CONCURRENCY_LIMIT_EXCEEDED",
1703
+ "INSUFFICIENT_PERMISSION",
1704
+ "INVALID_ID",
1705
+ "INVALID_LOGIN",
1706
+ "INVALID_PARAMETER",
1707
+ "NONEXISTENT_ID",
1708
+ "RESULT_SET_TOO_LARGE",
1709
+ "UNEXPECTED_ERROR",
1710
+ "USER_ERROR"
1711
+ ],
1712
+ "idempotency": "optional",
1713
+ "fidelity": "behavioral"
1714
+ },
1715
+ {
1716
+ "id": "customer.get",
1717
+ "description": "GET /services/rest/record/v1/customer/{id} — read one customer record by internal id (permission LIST_CUSTJOB, view).",
1718
+ "inputSchema": {
1719
+ "type": "object",
1720
+ "additionalProperties": false,
1721
+ "required": [
1722
+ "recordId"
1723
+ ],
1724
+ "properties": {
1725
+ "recordId": {
1726
+ "type": "string",
1727
+ "maxLength": 512
1728
+ },
1729
+ "fields": {
1730
+ "type": "array",
1731
+ "items": {
1732
+ "type": "string"
1733
+ }
1734
+ },
1735
+ "expandSubResources": {
1736
+ "anyOf": [
1737
+ {
1738
+ "type": "string",
1739
+ "maxLength": 40
1740
+ },
1741
+ {
1742
+ "type": "boolean"
1743
+ }
1744
+ ]
1745
+ },
1746
+ "simpleEnumFormat": {
1747
+ "anyOf": [
1748
+ {
1749
+ "type": "string",
1750
+ "maxLength": 40
1751
+ },
1752
+ {
1753
+ "type": "boolean"
1754
+ }
1755
+ ]
1756
+ }
1757
+ }
1758
+ },
1759
+ "outputSchema": {
1760
+ "type": "object"
1761
+ },
1762
+ "declaredErrors": [
1763
+ "CONCURRENCY_LIMIT_EXCEEDED",
1764
+ "INSUFFICIENT_PERMISSION",
1765
+ "INVALID_ID",
1766
+ "INVALID_LOGIN",
1767
+ "INVALID_PARAMETER",
1768
+ "NONEXISTENT_ID",
1769
+ "RESULT_SET_TOO_LARGE"
1770
+ ],
1771
+ "idempotency": "none",
1772
+ "fidelity": "stateful"
1773
+ },
1774
+ {
1775
+ "id": "customer.list",
1776
+ "description": "GET /services/rest/record/v1/customer — list customer records as a NetSuite record collection, filtered by `q` and paged by limit/offset (permission LIST_CUSTJOB, view).",
1777
+ "inputSchema": {
1778
+ "type": "object",
1779
+ "additionalProperties": false,
1780
+ "required": [],
1781
+ "properties": {
1782
+ "q": {
1783
+ "type": "string"
1784
+ },
1785
+ "limit": {
1786
+ "anyOf": [
1787
+ {
1788
+ "type": "string",
1789
+ "maxLength": 40
1790
+ },
1791
+ {
1792
+ "type": "integer",
1793
+ "minimum": -1000000000,
1794
+ "maximum": 1000000
1795
+ }
1796
+ ]
1797
+ },
1798
+ "offset": {
1799
+ "anyOf": [
1800
+ {
1801
+ "type": "string",
1802
+ "maxLength": 40
1803
+ },
1804
+ {
1805
+ "type": "integer",
1806
+ "minimum": -1000000000,
1807
+ "maximum": 1000000000
1808
+ }
1809
+ ]
1810
+ }
1811
+ }
1812
+ },
1813
+ "outputSchema": {
1814
+ "type": "object",
1815
+ "additionalProperties": false,
1816
+ "required": [
1817
+ "links",
1818
+ "items",
1819
+ "count",
1820
+ "offset",
1821
+ "hasMore",
1822
+ "totalResults"
1823
+ ],
1824
+ "properties": {
1825
+ "links": {
1826
+ "type": "array",
1827
+ "items": {
1828
+ "type": "object",
1829
+ "additionalProperties": false,
1830
+ "required": [
1831
+ "rel",
1832
+ "href"
1833
+ ],
1834
+ "properties": {
1835
+ "rel": {
1836
+ "type": "string",
1837
+ "maxLength": 20
1838
+ },
1839
+ "href": {
1840
+ "type": "string",
1841
+ "maxLength": 400
1842
+ }
1843
+ }
1844
+ },
1845
+ "maxItems": 8
1846
+ },
1847
+ "items": {
1848
+ "type": "array",
1849
+ "items": {
1850
+ "type": "object"
1851
+ },
1852
+ "maxItems": 1000
1853
+ },
1854
+ "count": {
1855
+ "type": "integer",
1856
+ "minimum": 0
1857
+ },
1858
+ "offset": {
1859
+ "type": "integer",
1860
+ "minimum": 0
1861
+ },
1862
+ "hasMore": {
1863
+ "type": "boolean"
1864
+ },
1865
+ "totalResults": {
1866
+ "type": "integer",
1867
+ "minimum": 0
1868
+ }
1869
+ }
1870
+ },
1871
+ "declaredErrors": [
1872
+ "CONCURRENCY_LIMIT_EXCEEDED",
1873
+ "INSUFFICIENT_PERMISSION",
1874
+ "INVALID_LOGIN",
1875
+ "INVALID_PARAMETER",
1876
+ "INVALID_REQUEST",
1877
+ "RESULT_SET_TOO_LARGE"
1878
+ ],
1879
+ "idempotency": "none",
1880
+ "fidelity": "behavioral"
1881
+ },
1882
+ {
1883
+ "id": "customer.update",
1884
+ "description": "PATCH /services/rest/record/v1/customer/{id} — merge-patch a customer; `replace` clears the named fields first (permission LIST_CUSTJOB, edit).",
1885
+ "inputSchema": {
1886
+ "type": "object",
1887
+ "additionalProperties": false,
1888
+ "required": [
1889
+ "recordId",
1890
+ "body"
1891
+ ],
1892
+ "properties": {
1893
+ "recordId": {
1894
+ "type": "string",
1895
+ "maxLength": 512
1896
+ },
1897
+ "body": {
1898
+ "type": "object"
1899
+ },
1900
+ "replace": {
1901
+ "type": "array",
1902
+ "items": {
1903
+ "type": "string",
1904
+ "maxLength": 120
1905
+ },
1906
+ "maxItems": 20
1907
+ },
1908
+ "propertyNameValidation": {
1909
+ "type": "string",
1910
+ "enum": [
1911
+ "ignore",
1912
+ "warning",
1913
+ "error"
1914
+ ]
1915
+ },
1916
+ "idempotencyKeyHeader": {
1917
+ "type": "string",
1918
+ "maxLength": 200
1919
+ },
1920
+ "ifMatchVersion": {
1921
+ "type": "string",
1922
+ "maxLength": 120
1923
+ },
1924
+ "bodyError": {
1925
+ "type": "string",
1926
+ "enum": [
1927
+ "depth",
1928
+ "prototype",
1929
+ "not-json"
1930
+ ]
1931
+ }
1932
+ }
1933
+ },
1934
+ "outputSchema": {
1935
+ "type": "object",
1936
+ "additionalProperties": false,
1937
+ "required": [
1938
+ "id",
1939
+ "location"
1940
+ ],
1941
+ "properties": {
1942
+ "id": {
1943
+ "type": "string",
1944
+ "pattern": "^[1-9][0-9]{0,14}$",
1945
+ "maxLength": 15
1946
+ },
1947
+ "location": {
1948
+ "type": "string",
1949
+ "maxLength": 400
1950
+ }
1951
+ }
1952
+ },
1953
+ "declaredErrors": [
1954
+ "CONCURRENCY_LIMIT_EXCEEDED",
1955
+ "INSUFFICIENT_PERMISSION",
1956
+ "INVALID_CONTENT",
1957
+ "INVALID_ID",
1958
+ "INVALID_KEY_OR_REF",
1959
+ "INVALID_LOGIN",
1960
+ "INVALID_PARAMETER",
1961
+ "INVALID_REQUEST",
1962
+ "NONEXISTENT_ID",
1963
+ "RCRD_HAS_BEEN_CHANGED",
1964
+ "RESULT_SET_TOO_LARGE",
1965
+ "UNEXPECTED_ERROR",
1966
+ "USER_ERROR"
1967
+ ],
1968
+ "idempotency": "optional",
1969
+ "fidelity": "behavioral"
1970
+ },
1971
+ {
1972
+ "id": "inventory-item.get",
1973
+ "description": "GET /services/rest/record/v1/inventoryItem/{id} — read one inventory item record by internal id (permission LIST_ITEM, view).",
1974
+ "inputSchema": {
1975
+ "type": "object",
1976
+ "additionalProperties": false,
1977
+ "required": [
1978
+ "recordId"
1979
+ ],
1980
+ "properties": {
1981
+ "recordId": {
1982
+ "type": "string",
1983
+ "maxLength": 512
1984
+ },
1985
+ "fields": {
1986
+ "type": "array",
1987
+ "items": {
1988
+ "type": "string"
1989
+ }
1990
+ },
1991
+ "expandSubResources": {
1992
+ "anyOf": [
1993
+ {
1994
+ "type": "string",
1995
+ "maxLength": 40
1996
+ },
1997
+ {
1998
+ "type": "boolean"
1999
+ }
2000
+ ]
2001
+ },
2002
+ "simpleEnumFormat": {
2003
+ "anyOf": [
2004
+ {
2005
+ "type": "string",
2006
+ "maxLength": 40
2007
+ },
2008
+ {
2009
+ "type": "boolean"
2010
+ }
2011
+ ]
2012
+ }
2013
+ }
2014
+ },
2015
+ "outputSchema": {
2016
+ "type": "object"
2017
+ },
2018
+ "declaredErrors": [
2019
+ "CONCURRENCY_LIMIT_EXCEEDED",
2020
+ "INSUFFICIENT_PERMISSION",
2021
+ "INVALID_ID",
2022
+ "INVALID_LOGIN",
2023
+ "INVALID_PARAMETER",
2024
+ "NONEXISTENT_ID"
2025
+ ],
2026
+ "idempotency": "none",
2027
+ "fidelity": "stateful"
2028
+ },
2029
+ {
2030
+ "id": "inventory-item.list",
2031
+ "description": "GET /services/rest/record/v1/inventoryItem — list inventory item records as a NetSuite record collection, filtered by `q` and paged by limit/offset (permission LIST_ITEM, view).",
2032
+ "inputSchema": {
2033
+ "type": "object",
2034
+ "additionalProperties": false,
2035
+ "required": [],
2036
+ "properties": {
2037
+ "q": {
2038
+ "type": "string"
2039
+ },
2040
+ "limit": {
2041
+ "anyOf": [
2042
+ {
2043
+ "type": "string",
2044
+ "maxLength": 40
2045
+ },
2046
+ {
2047
+ "type": "integer",
2048
+ "minimum": -1000000000,
2049
+ "maximum": 1000000
2050
+ }
2051
+ ]
2052
+ },
2053
+ "offset": {
2054
+ "anyOf": [
2055
+ {
2056
+ "type": "string",
2057
+ "maxLength": 40
2058
+ },
2059
+ {
2060
+ "type": "integer",
2061
+ "minimum": -1000000000,
2062
+ "maximum": 1000000000
2063
+ }
2064
+ ]
2065
+ }
2066
+ }
2067
+ },
2068
+ "outputSchema": {
2069
+ "type": "object",
2070
+ "additionalProperties": false,
2071
+ "required": [
2072
+ "links",
2073
+ "items",
2074
+ "count",
2075
+ "offset",
2076
+ "hasMore",
2077
+ "totalResults"
2078
+ ],
2079
+ "properties": {
2080
+ "links": {
2081
+ "type": "array",
2082
+ "items": {
2083
+ "type": "object",
2084
+ "additionalProperties": false,
2085
+ "required": [
2086
+ "rel",
2087
+ "href"
2088
+ ],
2089
+ "properties": {
2090
+ "rel": {
2091
+ "type": "string",
2092
+ "maxLength": 20
2093
+ },
2094
+ "href": {
2095
+ "type": "string",
2096
+ "maxLength": 400
2097
+ }
2098
+ }
2099
+ },
2100
+ "maxItems": 8
2101
+ },
2102
+ "items": {
2103
+ "type": "array",
2104
+ "items": {
2105
+ "type": "object"
2106
+ },
2107
+ "maxItems": 1000
2108
+ },
2109
+ "count": {
2110
+ "type": "integer",
2111
+ "minimum": 0
2112
+ },
2113
+ "offset": {
2114
+ "type": "integer",
2115
+ "minimum": 0
2116
+ },
2117
+ "hasMore": {
2118
+ "type": "boolean"
2119
+ },
2120
+ "totalResults": {
2121
+ "type": "integer",
2122
+ "minimum": 0
2123
+ }
2124
+ }
2125
+ },
2126
+ "declaredErrors": [
2127
+ "CONCURRENCY_LIMIT_EXCEEDED",
2128
+ "INSUFFICIENT_PERMISSION",
2129
+ "INVALID_LOGIN",
2130
+ "INVALID_PARAMETER",
2131
+ "INVALID_REQUEST",
2132
+ "RESULT_SET_TOO_LARGE"
2133
+ ],
2134
+ "idempotency": "none",
2135
+ "fidelity": "behavioral"
2136
+ },
2137
+ {
2138
+ "id": "invoice.create",
2139
+ "description": "POST /services/rest/record/v1/invoice — create a invoice from a NetSuite wire body; answers 204 with a Location header (permission TRAN_CUSTINVC, create).",
2140
+ "inputSchema": {
2141
+ "type": "object",
2142
+ "additionalProperties": false,
2143
+ "required": [
2144
+ "body"
2145
+ ],
2146
+ "properties": {
2147
+ "body": {
2148
+ "type": "object"
2149
+ },
2150
+ "propertyNameValidation": {
2151
+ "type": "string",
2152
+ "enum": [
2153
+ "ignore",
2154
+ "warning",
2155
+ "error"
2156
+ ]
2157
+ },
2158
+ "idempotencyKeyHeader": {
2159
+ "type": "string",
2160
+ "maxLength": 200
2161
+ },
2162
+ "bodyError": {
2163
+ "type": "string",
2164
+ "enum": [
2165
+ "depth",
2166
+ "prototype",
2167
+ "not-json"
2168
+ ]
2169
+ }
2170
+ }
2171
+ },
2172
+ "outputSchema": {
2173
+ "type": "object",
2174
+ "additionalProperties": false,
2175
+ "required": [
2176
+ "id",
2177
+ "location"
2178
+ ],
2179
+ "properties": {
2180
+ "id": {
2181
+ "type": "string",
2182
+ "pattern": "^[1-9][0-9]{0,14}$",
2183
+ "maxLength": 15
2184
+ },
2185
+ "location": {
2186
+ "type": "string",
2187
+ "maxLength": 400
2188
+ }
2189
+ }
2190
+ },
2191
+ "declaredErrors": [
2192
+ "CONCURRENCY_LIMIT_EXCEEDED",
2193
+ "INSUFFICIENT_PERMISSION",
2194
+ "INVALID_CONTENT",
2195
+ "INVALID_KEY_OR_REF",
2196
+ "INVALID_LOGIN",
2197
+ "INVALID_PARAMETER",
2198
+ "INVALID_REQUEST",
2199
+ "RESULT_SET_TOO_LARGE",
2200
+ "UNEXPECTED_ERROR",
2201
+ "USER_ERROR"
2202
+ ],
2203
+ "idempotency": "optional",
2204
+ "fidelity": "behavioral"
2205
+ },
2206
+ {
2207
+ "id": "invoice.get",
2208
+ "description": "GET /services/rest/record/v1/invoice/{id} — read one invoice record by internal id (permission TRAN_CUSTINVC, view).",
2209
+ "inputSchema": {
2210
+ "type": "object",
2211
+ "additionalProperties": false,
2212
+ "required": [
2213
+ "recordId"
2214
+ ],
2215
+ "properties": {
2216
+ "recordId": {
2217
+ "type": "string",
2218
+ "maxLength": 512
2219
+ },
2220
+ "fields": {
2221
+ "type": "array",
2222
+ "items": {
2223
+ "type": "string"
2224
+ }
2225
+ },
2226
+ "expandSubResources": {
2227
+ "anyOf": [
2228
+ {
2229
+ "type": "string",
2230
+ "maxLength": 40
2231
+ },
2232
+ {
2233
+ "type": "boolean"
2234
+ }
2235
+ ]
2236
+ },
2237
+ "simpleEnumFormat": {
2238
+ "anyOf": [
2239
+ {
2240
+ "type": "string",
2241
+ "maxLength": 40
2242
+ },
2243
+ {
2244
+ "type": "boolean"
2245
+ }
2246
+ ]
2247
+ }
2248
+ }
2249
+ },
2250
+ "outputSchema": {
2251
+ "type": "object"
2252
+ },
2253
+ "declaredErrors": [
2254
+ "CONCURRENCY_LIMIT_EXCEEDED",
2255
+ "INSUFFICIENT_PERMISSION",
2256
+ "INVALID_ID",
2257
+ "INVALID_LOGIN",
2258
+ "INVALID_PARAMETER",
2259
+ "NONEXISTENT_ID",
2260
+ "RESULT_SET_TOO_LARGE"
2261
+ ],
2262
+ "idempotency": "none",
2263
+ "fidelity": "stateful"
2264
+ },
2265
+ {
2266
+ "id": "invoice.list",
2267
+ "description": "GET /services/rest/record/v1/invoice — list invoice records as a NetSuite record collection, filtered by `q` and paged by limit/offset (permission TRAN_CUSTINVC, view).",
2268
+ "inputSchema": {
2269
+ "type": "object",
2270
+ "additionalProperties": false,
2271
+ "required": [],
2272
+ "properties": {
2273
+ "q": {
2274
+ "type": "string"
2275
+ },
2276
+ "limit": {
2277
+ "anyOf": [
2278
+ {
2279
+ "type": "string",
2280
+ "maxLength": 40
2281
+ },
2282
+ {
2283
+ "type": "integer",
2284
+ "minimum": -1000000000,
2285
+ "maximum": 1000000
2286
+ }
2287
+ ]
2288
+ },
2289
+ "offset": {
2290
+ "anyOf": [
2291
+ {
2292
+ "type": "string",
2293
+ "maxLength": 40
2294
+ },
2295
+ {
2296
+ "type": "integer",
2297
+ "minimum": -1000000000,
2298
+ "maximum": 1000000000
2299
+ }
2300
+ ]
2301
+ }
2302
+ }
2303
+ },
2304
+ "outputSchema": {
2305
+ "type": "object",
2306
+ "additionalProperties": false,
2307
+ "required": [
2308
+ "links",
2309
+ "items",
2310
+ "count",
2311
+ "offset",
2312
+ "hasMore",
2313
+ "totalResults"
2314
+ ],
2315
+ "properties": {
2316
+ "links": {
2317
+ "type": "array",
2318
+ "items": {
2319
+ "type": "object",
2320
+ "additionalProperties": false,
2321
+ "required": [
2322
+ "rel",
2323
+ "href"
2324
+ ],
2325
+ "properties": {
2326
+ "rel": {
2327
+ "type": "string",
2328
+ "maxLength": 20
2329
+ },
2330
+ "href": {
2331
+ "type": "string",
2332
+ "maxLength": 400
2333
+ }
2334
+ }
2335
+ },
2336
+ "maxItems": 8
2337
+ },
2338
+ "items": {
2339
+ "type": "array",
2340
+ "items": {
2341
+ "type": "object"
2342
+ },
2343
+ "maxItems": 1000
2344
+ },
2345
+ "count": {
2346
+ "type": "integer",
2347
+ "minimum": 0
2348
+ },
2349
+ "offset": {
2350
+ "type": "integer",
2351
+ "minimum": 0
2352
+ },
2353
+ "hasMore": {
2354
+ "type": "boolean"
2355
+ },
2356
+ "totalResults": {
2357
+ "type": "integer",
2358
+ "minimum": 0
2359
+ }
2360
+ }
2361
+ },
2362
+ "declaredErrors": [
2363
+ "CONCURRENCY_LIMIT_EXCEEDED",
2364
+ "INSUFFICIENT_PERMISSION",
2365
+ "INVALID_LOGIN",
2366
+ "INVALID_PARAMETER",
2367
+ "INVALID_REQUEST",
2368
+ "RESULT_SET_TOO_LARGE"
2369
+ ],
2370
+ "idempotency": "none",
2371
+ "fidelity": "behavioral"
2372
+ },
2373
+ {
2374
+ "id": "invoice.transform",
2375
+ "description": "POST /services/rest/record/v1/invoice/{id}/!transform/customerPayment — accept a customer payment against an invoice (permissions TRAN_CUSTINVC view and TRAN_CUSTPYMT create).",
2376
+ "inputSchema": {
2377
+ "type": "object",
2378
+ "additionalProperties": false,
2379
+ "required": [
2380
+ "recordId",
2381
+ "target",
2382
+ "transformMarker"
2383
+ ],
2384
+ "properties": {
2385
+ "recordId": {
2386
+ "type": "string",
2387
+ "maxLength": 512
2388
+ },
2389
+ "target": {
2390
+ "type": "string",
2391
+ "enum": [
2392
+ "customerPayment"
2393
+ ]
2394
+ },
2395
+ "transformMarker": {
2396
+ "type": "string",
2397
+ "maxLength": 120
2398
+ },
2399
+ "body": {
2400
+ "type": "object"
2401
+ },
2402
+ "idempotencyKeyHeader": {
2403
+ "type": "string",
2404
+ "maxLength": 200
2405
+ },
2406
+ "ifMatchVersion": {
2407
+ "type": "string",
2408
+ "maxLength": 120
2409
+ },
2410
+ "bodyError": {
2411
+ "type": "string",
2412
+ "enum": [
2413
+ "depth",
2414
+ "prototype",
2415
+ "not-json"
2416
+ ]
2417
+ }
2418
+ }
2419
+ },
2420
+ "outputSchema": {
2421
+ "type": "object",
2422
+ "additionalProperties": false,
2423
+ "required": [
2424
+ "id",
2425
+ "location"
2426
+ ],
2427
+ "properties": {
2428
+ "id": {
2429
+ "type": "string",
2430
+ "pattern": "^[1-9][0-9]{0,14}$",
2431
+ "maxLength": 15
2432
+ },
2433
+ "location": {
2434
+ "type": "string",
2435
+ "maxLength": 400
2436
+ }
2437
+ }
2438
+ },
2439
+ "declaredErrors": [
2440
+ "CONCURRENCY_LIMIT_EXCEEDED",
2441
+ "INSUFFICIENT_PERMISSION",
2442
+ "INVALID_CONTENT",
2443
+ "INVALID_ID",
2444
+ "INVALID_LOGIN",
2445
+ "INVALID_PARAMETER",
2446
+ "INVALID_REQUEST",
2447
+ "NONEXISTENT_ID",
2448
+ "RCRD_HAS_BEEN_CHANGED",
2449
+ "RESULT_SET_TOO_LARGE",
2450
+ "UNEXPECTED_ERROR",
2451
+ "USER_ERROR"
2452
+ ],
2453
+ "idempotency": "optional",
2454
+ "fidelity": "behavioral"
2455
+ },
2456
+ {
2457
+ "id": "invoice.update",
2458
+ "description": "PATCH /services/rest/record/v1/invoice/{id} — merge-patch a invoice; `replace` clears the named fields first (permission TRAN_CUSTINVC, edit).",
2459
+ "inputSchema": {
2460
+ "type": "object",
2461
+ "additionalProperties": false,
2462
+ "required": [
2463
+ "recordId",
2464
+ "body"
2465
+ ],
2466
+ "properties": {
2467
+ "recordId": {
2468
+ "type": "string",
2469
+ "maxLength": 512
2470
+ },
2471
+ "body": {
2472
+ "type": "object"
2473
+ },
2474
+ "replace": {
2475
+ "type": "array",
2476
+ "items": {
2477
+ "type": "string",
2478
+ "maxLength": 120
2479
+ },
2480
+ "maxItems": 20
2481
+ },
2482
+ "propertyNameValidation": {
2483
+ "type": "string",
2484
+ "enum": [
2485
+ "ignore",
2486
+ "warning",
2487
+ "error"
2488
+ ]
2489
+ },
2490
+ "idempotencyKeyHeader": {
2491
+ "type": "string",
2492
+ "maxLength": 200
2493
+ },
2494
+ "ifMatchVersion": {
2495
+ "type": "string",
2496
+ "maxLength": 120
2497
+ },
2498
+ "bodyError": {
2499
+ "type": "string",
2500
+ "enum": [
2501
+ "depth",
2502
+ "prototype",
2503
+ "not-json"
2504
+ ]
2505
+ }
2506
+ }
2507
+ },
2508
+ "outputSchema": {
2509
+ "type": "object",
2510
+ "additionalProperties": false,
2511
+ "required": [
2512
+ "id",
2513
+ "location"
2514
+ ],
2515
+ "properties": {
2516
+ "id": {
2517
+ "type": "string",
2518
+ "pattern": "^[1-9][0-9]{0,14}$",
2519
+ "maxLength": 15
2520
+ },
2521
+ "location": {
2522
+ "type": "string",
2523
+ "maxLength": 400
2524
+ }
2525
+ }
2526
+ },
2527
+ "declaredErrors": [
2528
+ "CONCURRENCY_LIMIT_EXCEEDED",
2529
+ "INSUFFICIENT_PERMISSION",
2530
+ "INVALID_CONTENT",
2531
+ "INVALID_ID",
2532
+ "INVALID_KEY_OR_REF",
2533
+ "INVALID_LOGIN",
2534
+ "INVALID_PARAMETER",
2535
+ "INVALID_REQUEST",
2536
+ "NONEXISTENT_ID",
2537
+ "RCRD_HAS_BEEN_CHANGED",
2538
+ "RESULT_SET_TOO_LARGE",
2539
+ "UNEXPECTED_ERROR",
2540
+ "USER_ERROR"
2541
+ ],
2542
+ "idempotency": "optional",
2543
+ "fidelity": "behavioral"
2544
+ },
2545
+ {
2546
+ "id": "record.get",
2547
+ "description": "Read one record of any supported type by internal id, with sublists expanded; the argument shape matches the MCP Standard Tools ns_getRecord tool. The permission of the named record type is checked at view level.",
2548
+ "inputSchema": {
2549
+ "type": "object",
2550
+ "additionalProperties": false,
2551
+ "required": [
2552
+ "recordType",
2553
+ "recordId"
2554
+ ],
2555
+ "properties": {
2556
+ "recordType": {
2557
+ "type": "string",
2558
+ "maxLength": 120
2559
+ },
2560
+ "recordId": {
2561
+ "type": "string",
2562
+ "maxLength": 512
2563
+ }
2564
+ }
2565
+ },
2566
+ "outputSchema": {
2567
+ "type": "object"
2568
+ },
2569
+ "declaredErrors": [
2570
+ "CONCURRENCY_LIMIT_EXCEEDED",
2571
+ "INSUFFICIENT_PERMISSION",
2572
+ "INVALID_CONTENT",
2573
+ "INVALID_ID",
2574
+ "INVALID_LOGIN",
2575
+ "NONEXISTENT_ID",
2576
+ "RESULT_SET_TOO_LARGE"
2577
+ ],
2578
+ "idempotency": "none",
2579
+ "fidelity": "stateful",
2580
+ "mcp": {
2581
+ "name": "ns_getRecord",
2582
+ "description": "Get a NetSuite record by record type and internal id."
2583
+ }
2584
+ },
2585
+ {
2586
+ "id": "record.metadata",
2587
+ "description": "GET /services/rest/record/v1/metadata-catalog[/{recordType}] — list the supported record types, or describe one type's fields as an application/schema+json-shaped body derived from this Tool's own state schemas (permission SETUP_RECORD_METADATA, view). Also carries the account's server time.",
2588
+ "inputSchema": {
2589
+ "type": "object",
2590
+ "additionalProperties": false,
2591
+ "required": [],
2592
+ "properties": {
2593
+ "recordType": {
2594
+ "type": "string",
2595
+ "maxLength": 120
2596
+ }
2597
+ }
2598
+ },
2599
+ "outputSchema": {
2600
+ "type": "object"
2601
+ },
2602
+ "declaredErrors": [
2603
+ "CONCURRENCY_LIMIT_EXCEEDED",
2604
+ "INSUFFICIENT_PERMISSION",
2605
+ "INVALID_CONTENT",
2606
+ "INVALID_LOGIN"
2607
+ ],
2608
+ "idempotency": "none",
2609
+ "fidelity": "contract",
2610
+ "mcp": {
2611
+ "name": "ns_getRecordTypeMetadata",
2612
+ "description": "Describe the fields of a NetSuite record type, or list the supported record types."
2613
+ }
2614
+ },
2615
+ {
2616
+ "id": "sales-order.create",
2617
+ "description": "POST /services/rest/record/v1/salesOrder — create a sales order from a NetSuite wire body; answers 204 with a Location header (permission TRAN_SALESORD, create).",
2618
+ "inputSchema": {
2619
+ "type": "object",
2620
+ "additionalProperties": false,
2621
+ "required": [
2622
+ "body"
2623
+ ],
2624
+ "properties": {
2625
+ "body": {
2626
+ "type": "object"
2627
+ },
2628
+ "propertyNameValidation": {
2629
+ "type": "string",
2630
+ "enum": [
2631
+ "ignore",
2632
+ "warning",
2633
+ "error"
2634
+ ]
2635
+ },
2636
+ "idempotencyKeyHeader": {
2637
+ "type": "string",
2638
+ "maxLength": 200
2639
+ },
2640
+ "bodyError": {
2641
+ "type": "string",
2642
+ "enum": [
2643
+ "depth",
2644
+ "prototype",
2645
+ "not-json"
2646
+ ]
2647
+ }
2648
+ }
2649
+ },
2650
+ "outputSchema": {
2651
+ "type": "object",
2652
+ "additionalProperties": false,
2653
+ "required": [
2654
+ "id",
2655
+ "location"
2656
+ ],
2657
+ "properties": {
2658
+ "id": {
2659
+ "type": "string",
2660
+ "pattern": "^[1-9][0-9]{0,14}$",
2661
+ "maxLength": 15
2662
+ },
2663
+ "location": {
2664
+ "type": "string",
2665
+ "maxLength": 400
2666
+ }
2667
+ }
2668
+ },
2669
+ "declaredErrors": [
2670
+ "CONCURRENCY_LIMIT_EXCEEDED",
2671
+ "INSUFFICIENT_PERMISSION",
2672
+ "INVALID_CONTENT",
2673
+ "INVALID_KEY_OR_REF",
2674
+ "INVALID_LOGIN",
2675
+ "INVALID_PARAMETER",
2676
+ "INVALID_REQUEST",
2677
+ "RESULT_SET_TOO_LARGE",
2678
+ "UNEXPECTED_ERROR",
2679
+ "USER_ERROR"
2680
+ ],
2681
+ "idempotency": "optional",
2682
+ "fidelity": "behavioral"
2683
+ },
2684
+ {
2685
+ "id": "sales-order.get",
2686
+ "description": "GET /services/rest/record/v1/salesOrder/{id} — read one sales order record by internal id (permission TRAN_SALESORD, view).",
2687
+ "inputSchema": {
2688
+ "type": "object",
2689
+ "additionalProperties": false,
2690
+ "required": [
2691
+ "recordId"
2692
+ ],
2693
+ "properties": {
2694
+ "recordId": {
2695
+ "type": "string",
2696
+ "maxLength": 512
2697
+ },
2698
+ "fields": {
2699
+ "type": "array",
2700
+ "items": {
2701
+ "type": "string"
2702
+ }
2703
+ },
2704
+ "expandSubResources": {
2705
+ "anyOf": [
2706
+ {
2707
+ "type": "string",
2708
+ "maxLength": 40
2709
+ },
2710
+ {
2711
+ "type": "boolean"
2712
+ }
2713
+ ]
2714
+ },
2715
+ "simpleEnumFormat": {
2716
+ "anyOf": [
2717
+ {
2718
+ "type": "string",
2719
+ "maxLength": 40
2720
+ },
2721
+ {
2722
+ "type": "boolean"
2723
+ }
2724
+ ]
2725
+ }
2726
+ }
2727
+ },
2728
+ "outputSchema": {
2729
+ "type": "object"
2730
+ },
2731
+ "declaredErrors": [
2732
+ "CONCURRENCY_LIMIT_EXCEEDED",
2733
+ "INSUFFICIENT_PERMISSION",
2734
+ "INVALID_ID",
2735
+ "INVALID_LOGIN",
2736
+ "INVALID_PARAMETER",
2737
+ "NONEXISTENT_ID",
2738
+ "RESULT_SET_TOO_LARGE"
2739
+ ],
2740
+ "idempotency": "none",
2741
+ "fidelity": "stateful"
2742
+ },
2743
+ {
2744
+ "id": "sales-order.items.list",
2745
+ "description": "GET /services/rest/record/v1/salesOrder/{id}/item — page the item sublist of one sales order (permission TRAN_SALESORD, view).",
2746
+ "inputSchema": {
2747
+ "type": "object",
2748
+ "additionalProperties": false,
2749
+ "required": [
2750
+ "recordId"
2751
+ ],
2752
+ "properties": {
2753
+ "recordId": {
2754
+ "type": "string",
2755
+ "maxLength": 512
2756
+ },
2757
+ "limit": {
2758
+ "anyOf": [
2759
+ {
2760
+ "type": "string",
2761
+ "maxLength": 40
2762
+ },
2763
+ {
2764
+ "type": "integer",
2765
+ "minimum": -1000000000,
2766
+ "maximum": 1000000
2767
+ }
2768
+ ]
2769
+ },
2770
+ "offset": {
2771
+ "anyOf": [
2772
+ {
2773
+ "type": "string",
2774
+ "maxLength": 40
2775
+ },
2776
+ {
2777
+ "type": "integer",
2778
+ "minimum": -1000000000,
2779
+ "maximum": 1000000000
2780
+ }
2781
+ ]
2782
+ }
2783
+ }
2784
+ },
2785
+ "outputSchema": {
2786
+ "type": "object",
2787
+ "additionalProperties": false,
2788
+ "required": [
2789
+ "links",
2790
+ "items",
2791
+ "count",
2792
+ "offset",
2793
+ "hasMore",
2794
+ "totalResults"
2795
+ ],
2796
+ "properties": {
2797
+ "links": {
2798
+ "type": "array",
2799
+ "items": {
2800
+ "type": "object",
2801
+ "additionalProperties": false,
2802
+ "required": [
2803
+ "rel",
2804
+ "href"
2805
+ ],
2806
+ "properties": {
2807
+ "rel": {
2808
+ "type": "string",
2809
+ "maxLength": 20
2810
+ },
2811
+ "href": {
2812
+ "type": "string",
2813
+ "maxLength": 400
2814
+ }
2815
+ }
2816
+ },
2817
+ "maxItems": 8
2818
+ },
2819
+ "items": {
2820
+ "type": "array",
2821
+ "items": {
2822
+ "type": "object"
2823
+ },
2824
+ "maxItems": 1000
2825
+ },
2826
+ "count": {
2827
+ "type": "integer",
2828
+ "minimum": 0
2829
+ },
2830
+ "offset": {
2831
+ "type": "integer",
2832
+ "minimum": 0
2833
+ },
2834
+ "hasMore": {
2835
+ "type": "boolean"
2836
+ },
2837
+ "totalResults": {
2838
+ "type": "integer",
2839
+ "minimum": 0
2840
+ }
2841
+ }
2842
+ },
2843
+ "declaredErrors": [
2844
+ "CONCURRENCY_LIMIT_EXCEEDED",
2845
+ "INSUFFICIENT_PERMISSION",
2846
+ "INVALID_ID",
2847
+ "INVALID_LOGIN",
2848
+ "INVALID_PARAMETER",
2849
+ "NONEXISTENT_ID",
2850
+ "RESULT_SET_TOO_LARGE"
2851
+ ],
2852
+ "idempotency": "none",
2853
+ "fidelity": "stateful"
2854
+ },
2855
+ {
2856
+ "id": "sales-order.list",
2857
+ "description": "GET /services/rest/record/v1/salesOrder — list sales order records as a NetSuite record collection, filtered by `q` and paged by limit/offset (permission TRAN_SALESORD, view).",
2858
+ "inputSchema": {
2859
+ "type": "object",
2860
+ "additionalProperties": false,
2861
+ "required": [],
2862
+ "properties": {
2863
+ "q": {
2864
+ "type": "string"
2865
+ },
2866
+ "limit": {
2867
+ "anyOf": [
2868
+ {
2869
+ "type": "string",
2870
+ "maxLength": 40
2871
+ },
2872
+ {
2873
+ "type": "integer",
2874
+ "minimum": -1000000000,
2875
+ "maximum": 1000000
2876
+ }
2877
+ ]
2878
+ },
2879
+ "offset": {
2880
+ "anyOf": [
2881
+ {
2882
+ "type": "string",
2883
+ "maxLength": 40
2884
+ },
2885
+ {
2886
+ "type": "integer",
2887
+ "minimum": -1000000000,
2888
+ "maximum": 1000000000
2889
+ }
2890
+ ]
2891
+ }
2892
+ }
2893
+ },
2894
+ "outputSchema": {
2895
+ "type": "object",
2896
+ "additionalProperties": false,
2897
+ "required": [
2898
+ "links",
2899
+ "items",
2900
+ "count",
2901
+ "offset",
2902
+ "hasMore",
2903
+ "totalResults"
2904
+ ],
2905
+ "properties": {
2906
+ "links": {
2907
+ "type": "array",
2908
+ "items": {
2909
+ "type": "object",
2910
+ "additionalProperties": false,
2911
+ "required": [
2912
+ "rel",
2913
+ "href"
2914
+ ],
2915
+ "properties": {
2916
+ "rel": {
2917
+ "type": "string",
2918
+ "maxLength": 20
2919
+ },
2920
+ "href": {
2921
+ "type": "string",
2922
+ "maxLength": 400
2923
+ }
2924
+ }
2925
+ },
2926
+ "maxItems": 8
2927
+ },
2928
+ "items": {
2929
+ "type": "array",
2930
+ "items": {
2931
+ "type": "object"
2932
+ },
2933
+ "maxItems": 1000
2934
+ },
2935
+ "count": {
2936
+ "type": "integer",
2937
+ "minimum": 0
2938
+ },
2939
+ "offset": {
2940
+ "type": "integer",
2941
+ "minimum": 0
2942
+ },
2943
+ "hasMore": {
2944
+ "type": "boolean"
2945
+ },
2946
+ "totalResults": {
2947
+ "type": "integer",
2948
+ "minimum": 0
2949
+ }
2950
+ }
2951
+ },
2952
+ "declaredErrors": [
2953
+ "CONCURRENCY_LIMIT_EXCEEDED",
2954
+ "INSUFFICIENT_PERMISSION",
2955
+ "INVALID_LOGIN",
2956
+ "INVALID_PARAMETER",
2957
+ "INVALID_REQUEST",
2958
+ "RESULT_SET_TOO_LARGE"
2959
+ ],
2960
+ "idempotency": "none",
2961
+ "fidelity": "behavioral"
2962
+ },
2963
+ {
2964
+ "id": "sales-order.transform",
2965
+ "description": "POST /services/rest/record/v1/salesOrder/{id}/!transform/invoice — bill a sales order into an invoice, raising each billed line's quantityBilled (permissions TRAN_SALESORD view and TRAN_CUSTINVC create).",
2966
+ "inputSchema": {
2967
+ "type": "object",
2968
+ "additionalProperties": false,
2969
+ "required": [
2970
+ "recordId",
2971
+ "target",
2972
+ "transformMarker"
2973
+ ],
2974
+ "properties": {
2975
+ "recordId": {
2976
+ "type": "string",
2977
+ "maxLength": 512
2978
+ },
2979
+ "target": {
2980
+ "type": "string",
2981
+ "enum": [
2982
+ "invoice"
2983
+ ]
2984
+ },
2985
+ "transformMarker": {
2986
+ "type": "string",
2987
+ "maxLength": 120
2988
+ },
2989
+ "body": {
2990
+ "type": "object"
2991
+ },
2992
+ "idempotencyKeyHeader": {
2993
+ "type": "string",
2994
+ "maxLength": 200
2995
+ },
2996
+ "ifMatchVersion": {
2997
+ "type": "string",
2998
+ "maxLength": 120
2999
+ },
3000
+ "bodyError": {
3001
+ "type": "string",
3002
+ "enum": [
3003
+ "depth",
3004
+ "prototype",
3005
+ "not-json"
3006
+ ]
3007
+ }
3008
+ }
3009
+ },
3010
+ "outputSchema": {
3011
+ "type": "object",
3012
+ "additionalProperties": false,
3013
+ "required": [
3014
+ "id",
3015
+ "location"
3016
+ ],
3017
+ "properties": {
3018
+ "id": {
3019
+ "type": "string",
3020
+ "pattern": "^[1-9][0-9]{0,14}$",
3021
+ "maxLength": 15
3022
+ },
3023
+ "location": {
3024
+ "type": "string",
3025
+ "maxLength": 400
3026
+ }
3027
+ }
3028
+ },
3029
+ "declaredErrors": [
3030
+ "CONCURRENCY_LIMIT_EXCEEDED",
3031
+ "INSUFFICIENT_PERMISSION",
3032
+ "INVALID_CONTENT",
3033
+ "INVALID_ID",
3034
+ "INVALID_LOGIN",
3035
+ "INVALID_PARAMETER",
3036
+ "INVALID_REQUEST",
3037
+ "NONEXISTENT_ID",
3038
+ "RCRD_HAS_BEEN_CHANGED",
3039
+ "RESULT_SET_TOO_LARGE",
3040
+ "UNEXPECTED_ERROR",
3041
+ "USER_ERROR"
3042
+ ],
3043
+ "idempotency": "optional",
3044
+ "fidelity": "behavioral"
3045
+ },
3046
+ {
3047
+ "id": "sales-order.update",
3048
+ "description": "PATCH /services/rest/record/v1/salesOrder/{id} — merge-patch a sales order; `replace` clears the named fields first (permission TRAN_SALESORD, edit).",
3049
+ "inputSchema": {
3050
+ "type": "object",
3051
+ "additionalProperties": false,
3052
+ "required": [
3053
+ "recordId",
3054
+ "body"
3055
+ ],
3056
+ "properties": {
3057
+ "recordId": {
3058
+ "type": "string",
3059
+ "maxLength": 512
3060
+ },
3061
+ "body": {
3062
+ "type": "object"
3063
+ },
3064
+ "replace": {
3065
+ "type": "array",
3066
+ "items": {
3067
+ "type": "string",
3068
+ "maxLength": 120
3069
+ },
3070
+ "maxItems": 20
3071
+ },
3072
+ "propertyNameValidation": {
3073
+ "type": "string",
3074
+ "enum": [
3075
+ "ignore",
3076
+ "warning",
3077
+ "error"
3078
+ ]
3079
+ },
3080
+ "idempotencyKeyHeader": {
3081
+ "type": "string",
3082
+ "maxLength": 200
3083
+ },
3084
+ "ifMatchVersion": {
3085
+ "type": "string",
3086
+ "maxLength": 120
3087
+ },
3088
+ "bodyError": {
3089
+ "type": "string",
3090
+ "enum": [
3091
+ "depth",
3092
+ "prototype",
3093
+ "not-json"
3094
+ ]
3095
+ }
3096
+ }
3097
+ },
3098
+ "outputSchema": {
3099
+ "type": "object",
3100
+ "additionalProperties": false,
3101
+ "required": [
3102
+ "id",
3103
+ "location"
3104
+ ],
3105
+ "properties": {
3106
+ "id": {
3107
+ "type": "string",
3108
+ "pattern": "^[1-9][0-9]{0,14}$",
3109
+ "maxLength": 15
3110
+ },
3111
+ "location": {
3112
+ "type": "string",
3113
+ "maxLength": 400
3114
+ }
3115
+ }
3116
+ },
3117
+ "declaredErrors": [
3118
+ "CONCURRENCY_LIMIT_EXCEEDED",
3119
+ "INSUFFICIENT_PERMISSION",
3120
+ "INVALID_CONTENT",
3121
+ "INVALID_ID",
3122
+ "INVALID_KEY_OR_REF",
3123
+ "INVALID_LOGIN",
3124
+ "INVALID_PARAMETER",
3125
+ "INVALID_REQUEST",
3126
+ "NONEXISTENT_ID",
3127
+ "RCRD_HAS_BEEN_CHANGED",
3128
+ "RESULT_SET_TOO_LARGE",
3129
+ "UNEXPECTED_ERROR",
3130
+ "USER_ERROR"
3131
+ ],
3132
+ "idempotency": "optional",
3133
+ "fidelity": "behavioral"
3134
+ },
3135
+ {
3136
+ "id": "session.get",
3137
+ "description": "The signed-in SuiteTalk session: account, employee, role with its permission levels, subsidiary scope and the account server time. NetSuite exposes this through its application shell rather than a REST resource, so this operation has no HTTP route; it is what the browser app reads to render the account/role chrome and to date every screen from world time (permission SETUP_RECORD_METADATA, view).",
3138
+ "inputSchema": {
3139
+ "type": "object",
3140
+ "additionalProperties": false,
3141
+ "required": [],
3142
+ "properties": {}
3143
+ },
3144
+ "outputSchema": {
3145
+ "type": "object"
3146
+ },
3147
+ "declaredErrors": [
3148
+ "CONCURRENCY_LIMIT_EXCEEDED",
3149
+ "INSUFFICIENT_PERMISSION",
3150
+ "INVALID_LOGIN"
3151
+ ],
3152
+ "idempotency": "none",
3153
+ "fidelity": "stateful"
3154
+ },
3155
+ {
3156
+ "id": "subsidiary.list",
3157
+ "description": "GET /services/rest/record/v1/subsidiary — list the account's subsidiaries (permission LIST_SUBSIDIARY, view). The REST route answers a record collection; the canonical/MCP shape carries the full subsidiary objects.",
3158
+ "inputSchema": {
3159
+ "type": "object",
3160
+ "additionalProperties": false,
3161
+ "required": [],
3162
+ "properties": {
3163
+ "limit": {
3164
+ "anyOf": [
3165
+ {
3166
+ "type": "string",
3167
+ "maxLength": 40
3168
+ },
3169
+ {
3170
+ "type": "integer",
3171
+ "minimum": -1000000000,
3172
+ "maximum": 1000000
3173
+ }
3174
+ ]
3175
+ },
3176
+ "offset": {
3177
+ "anyOf": [
3178
+ {
3179
+ "type": "string",
3180
+ "maxLength": 40
3181
+ },
3182
+ {
3183
+ "type": "integer",
3184
+ "minimum": -1000000000,
3185
+ "maximum": 1000000000
3186
+ }
3187
+ ]
3188
+ }
3189
+ }
3190
+ },
3191
+ "outputSchema": {
3192
+ "type": "object",
3193
+ "additionalProperties": false,
3194
+ "required": [
3195
+ "links",
3196
+ "items",
3197
+ "count",
3198
+ "offset",
3199
+ "hasMore",
3200
+ "totalResults"
3201
+ ],
3202
+ "properties": {
3203
+ "links": {
3204
+ "type": "array",
3205
+ "items": {
3206
+ "type": "object",
3207
+ "additionalProperties": false,
3208
+ "required": [
3209
+ "rel",
3210
+ "href"
3211
+ ],
3212
+ "properties": {
3213
+ "rel": {
3214
+ "type": "string",
3215
+ "maxLength": 20
3216
+ },
3217
+ "href": {
3218
+ "type": "string",
3219
+ "maxLength": 400
3220
+ }
3221
+ }
3222
+ },
3223
+ "maxItems": 8
3224
+ },
3225
+ "items": {
3226
+ "type": "array",
3227
+ "items": {
3228
+ "type": "object"
3229
+ },
3230
+ "maxItems": 1000
3231
+ },
3232
+ "count": {
3233
+ "type": "integer",
3234
+ "minimum": 0
3235
+ },
3236
+ "offset": {
3237
+ "type": "integer",
3238
+ "minimum": 0
3239
+ },
3240
+ "hasMore": {
3241
+ "type": "boolean"
3242
+ },
3243
+ "totalResults": {
3244
+ "type": "integer",
3245
+ "minimum": 0
3246
+ }
3247
+ }
3248
+ },
3249
+ "declaredErrors": [
3250
+ "CONCURRENCY_LIMIT_EXCEEDED",
3251
+ "INSUFFICIENT_PERMISSION",
3252
+ "INVALID_LOGIN",
3253
+ "INVALID_PARAMETER",
3254
+ "RESULT_SET_TOO_LARGE"
3255
+ ],
3256
+ "idempotency": "none",
3257
+ "fidelity": "stateful",
3258
+ "mcp": {
3259
+ "name": "ns_getSubsidiaries",
3260
+ "description": "List the subsidiaries defined in this NetSuite account."
3261
+ }
3262
+ },
3263
+ {
3264
+ "id": "suiteql.query",
3265
+ "description": "POST /services/rest/query/v1/suiteql — run one read-only SELECT over the analytics tables customer, transaction, transactionLine, item, employee and subsidiary. Requires the Prefer: transient header and permission REPO_ANALYTICS, view. Every scalar is rendered as a JSON string, as NetSuite does.",
3266
+ "inputSchema": {
3267
+ "type": "object",
3268
+ "additionalProperties": false,
3269
+ "required": [
3270
+ "q"
3271
+ ],
3272
+ "properties": {
3273
+ "q": {
3274
+ "type": "string",
3275
+ "minLength": 0,
3276
+ "maxLength": 20000
3277
+ },
3278
+ "params": {
3279
+ "type": "array",
3280
+ "items": {
3281
+ "anyOf": [
3282
+ {
3283
+ "type": "string",
3284
+ "maxLength": 2000
3285
+ },
3286
+ {
3287
+ "type": "number"
3288
+ },
3289
+ {
3290
+ "type": "boolean"
3291
+ },
3292
+ {
3293
+ "type": "null"
3294
+ }
3295
+ ]
3296
+ },
3297
+ "maxItems": 50
3298
+ },
3299
+ "limit": {
3300
+ "anyOf": [
3301
+ {
3302
+ "type": "string",
3303
+ "maxLength": 40
3304
+ },
3305
+ {
3306
+ "type": "integer",
3307
+ "minimum": -1000000000,
3308
+ "maximum": 1000000
3309
+ }
3310
+ ]
3311
+ },
3312
+ "offset": {
3313
+ "anyOf": [
3314
+ {
3315
+ "type": "string",
3316
+ "maxLength": 40
3317
+ },
3318
+ {
3319
+ "type": "integer",
3320
+ "minimum": -1000000000,
3321
+ "maximum": 1000000000
3322
+ }
3323
+ ]
3324
+ },
3325
+ "prefer": {
3326
+ "type": "string",
3327
+ "maxLength": 200
3328
+ },
3329
+ "bodyError": {
3330
+ "type": "string",
3331
+ "enum": [
3332
+ "depth",
3333
+ "prototype",
3334
+ "not-json"
3335
+ ]
3336
+ }
3337
+ }
3338
+ },
3339
+ "outputSchema": {
3340
+ "type": "object",
3341
+ "additionalProperties": false,
3342
+ "required": [
3343
+ "links",
3344
+ "items",
3345
+ "count",
3346
+ "offset",
3347
+ "hasMore",
3348
+ "totalResults"
3349
+ ],
3350
+ "properties": {
3351
+ "links": {
3352
+ "type": "array",
3353
+ "items": {
3354
+ "type": "object",
3355
+ "additionalProperties": false,
3356
+ "required": [
3357
+ "rel",
3358
+ "href"
3359
+ ],
3360
+ "properties": {
3361
+ "rel": {
3362
+ "type": "string",
3363
+ "maxLength": 20
3364
+ },
3365
+ "href": {
3366
+ "type": "string",
3367
+ "maxLength": 400
3368
+ }
3369
+ }
3370
+ },
3371
+ "maxItems": 8
3372
+ },
3373
+ "items": {
3374
+ "type": "array",
3375
+ "items": {
3376
+ "type": "object"
3377
+ },
3378
+ "maxItems": 1000
3379
+ },
3380
+ "count": {
3381
+ "type": "integer",
3382
+ "minimum": 0
3383
+ },
3384
+ "offset": {
3385
+ "type": "integer",
3386
+ "minimum": 0
3387
+ },
3388
+ "hasMore": {
3389
+ "type": "boolean"
3390
+ },
3391
+ "totalResults": {
3392
+ "type": "integer",
3393
+ "minimum": 0
3394
+ }
3395
+ }
3396
+ },
3397
+ "declaredErrors": [
3398
+ "CONCURRENCY_LIMIT_EXCEEDED",
3399
+ "INSUFFICIENT_PERMISSION",
3400
+ "INVALID_LOGIN",
3401
+ "INVALID_PARAMETER",
3402
+ "INVALID_REQUEST",
3403
+ "RESULT_SET_TOO_LARGE"
3404
+ ],
3405
+ "idempotency": "none",
3406
+ "fidelity": "behavioral"
3407
+ },
3408
+ {
3409
+ "id": "suiteql.run",
3410
+ "description": "Run a read-only SuiteQL SELECT and return the rows directly; the argument shape matches the MCP Standard Tools ns_runCustomSuiteQL tool (permission REPO_ANALYTICS, view).",
3411
+ "inputSchema": {
3412
+ "type": "object",
3413
+ "additionalProperties": false,
3414
+ "required": [
3415
+ "query"
3416
+ ],
3417
+ "properties": {
3418
+ "query": {
3419
+ "type": "string",
3420
+ "minLength": 0,
3421
+ "maxLength": 20000
3422
+ }
3423
+ }
3424
+ },
3425
+ "outputSchema": {
3426
+ "type": "object",
3427
+ "additionalProperties": false,
3428
+ "required": [
3429
+ "items",
3430
+ "count",
3431
+ "hasMore",
3432
+ "totalResults"
3433
+ ],
3434
+ "properties": {
3435
+ "items": {
3436
+ "type": "array",
3437
+ "items": {
3438
+ "type": "object"
3439
+ },
3440
+ "maxItems": 1000
3441
+ },
3442
+ "count": {
3443
+ "type": "integer",
3444
+ "minimum": 0
3445
+ },
3446
+ "hasMore": {
3447
+ "type": "boolean"
3448
+ },
3449
+ "totalResults": {
3450
+ "type": "integer",
3451
+ "minimum": 0
3452
+ }
3453
+ }
3454
+ },
3455
+ "declaredErrors": [
3456
+ "CONCURRENCY_LIMIT_EXCEEDED",
3457
+ "INSUFFICIENT_PERMISSION",
3458
+ "INVALID_LOGIN",
3459
+ "INVALID_REQUEST",
3460
+ "RESULT_SET_TOO_LARGE"
3461
+ ],
3462
+ "idempotency": "none",
3463
+ "fidelity": "behavioral",
3464
+ "mcp": {
3465
+ "name": "ns_runCustomSuiteQL",
3466
+ "description": "Run a read-only SuiteQL SELECT statement and return the resulting rows."
3467
+ }
3468
+ }
3469
+ ],
3470
+ "events": [
3471
+ {
3472
+ "id": "record.changed",
3473
+ "payloadSchema": {
3474
+ "type": "object",
3475
+ "additionalProperties": false,
3476
+ "required": [
3477
+ "recordType",
3478
+ "recordId",
3479
+ "changeType",
3480
+ "occurredAt",
3481
+ "employeeId",
3482
+ "subsidiaryId"
3483
+ ],
3484
+ "properties": {
3485
+ "recordType": {
3486
+ "type": "string",
3487
+ "enum": [
3488
+ "customer",
3489
+ "salesOrder",
3490
+ "invoice",
3491
+ "customerPayment"
3492
+ ]
3493
+ },
3494
+ "recordId": {
3495
+ "type": "string",
3496
+ "pattern": "^[1-9][0-9]{0,14}$",
3497
+ "maxLength": 15
3498
+ },
3499
+ "changeType": {
3500
+ "type": "string",
3501
+ "enum": [
3502
+ "CREATE",
3503
+ "UPDATE",
3504
+ "DELETE"
3505
+ ]
3506
+ },
3507
+ "occurredAt": {
3508
+ "type": "string",
3509
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
3510
+ },
3511
+ "employeeId": {
3512
+ "type": "string",
3513
+ "pattern": "^[1-9][0-9]{0,14}$",
3514
+ "maxLength": 15
3515
+ },
3516
+ "subsidiaryId": {
3517
+ "type": "string",
3518
+ "pattern": "^[1-9][0-9]{0,14}$",
3519
+ "maxLength": 15
3520
+ }
3521
+ }
3522
+ }
3523
+ },
3524
+ {
3525
+ "id": "transaction.status-changed",
3526
+ "payloadSchema": {
3527
+ "type": "object",
3528
+ "additionalProperties": false,
3529
+ "required": [
3530
+ "recordType",
3531
+ "recordId",
3532
+ "tranId",
3533
+ "previousStatus",
3534
+ "status",
3535
+ "occurredAt",
3536
+ "total",
3537
+ "amountRemaining"
3538
+ ],
3539
+ "properties": {
3540
+ "recordType": {
3541
+ "type": "string",
3542
+ "enum": [
3543
+ "salesOrder",
3544
+ "invoice"
3545
+ ]
3546
+ },
3547
+ "recordId": {
3548
+ "type": "string",
3549
+ "pattern": "^[1-9][0-9]{0,14}$",
3550
+ "maxLength": 15
3551
+ },
3552
+ "tranId": {
3553
+ "type": "string",
3554
+ "minLength": 1,
3555
+ "maxLength": 45
3556
+ },
3557
+ "previousStatus": {
3558
+ "anyOf": [
3559
+ {
3560
+ "type": "string",
3561
+ "maxLength": 40
3562
+ },
3563
+ {
3564
+ "type": "null"
3565
+ }
3566
+ ]
3567
+ },
3568
+ "status": {
3569
+ "type": "string",
3570
+ "minLength": 1,
3571
+ "maxLength": 40
3572
+ },
3573
+ "occurredAt": {
3574
+ "type": "string",
3575
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
3576
+ },
3577
+ "total": {
3578
+ "type": "number"
3579
+ },
3580
+ "amountRemaining": {
3581
+ "anyOf": [
3582
+ {
3583
+ "type": "number"
3584
+ },
3585
+ {
3586
+ "type": "null"
3587
+ }
3588
+ ]
3589
+ }
3590
+ }
3591
+ }
3592
+ }
3593
+ ],
3594
+ "faults": [
3595
+ {
3596
+ "id": "concurrency-limit",
3597
+ "appliesTo": [
3598
+ "customer-payment.get",
3599
+ "customer-payment.list",
3600
+ "customer.create",
3601
+ "customer.delete",
3602
+ "customer.get",
3603
+ "customer.list",
3604
+ "customer.update",
3605
+ "inventory-item.get",
3606
+ "inventory-item.list",
3607
+ "invoice.create",
3608
+ "invoice.get",
3609
+ "invoice.list",
3610
+ "invoice.transform",
3611
+ "invoice.update",
3612
+ "record.get",
3613
+ "record.metadata",
3614
+ "sales-order.create",
3615
+ "sales-order.get",
3616
+ "sales-order.items.list",
3617
+ "sales-order.list",
3618
+ "sales-order.transform",
3619
+ "sales-order.update",
3620
+ "session.get",
3621
+ "subsidiary.list",
3622
+ "suiteql.query",
3623
+ "suiteql.run"
3624
+ ],
3625
+ "timing": "before",
3626
+ "error": {
3627
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3628
+ "message": "Concurrent request limit exceeded. Request blocked.",
3629
+ "retryable": true
3630
+ }
3631
+ },
3632
+ {
3633
+ "id": "record-locked",
3634
+ "appliesTo": [
3635
+ "customer.update",
3636
+ "invoice.transform",
3637
+ "invoice.update",
3638
+ "sales-order.transform",
3639
+ "sales-order.update"
3640
+ ],
3641
+ "timing": "before",
3642
+ "error": {
3643
+ "code": "RCRD_HAS_BEEN_CHANGED",
3644
+ "message": "Record has been changed. Please refresh the record and try again.",
3645
+ "retryable": true
3646
+ }
3647
+ },
3648
+ {
3649
+ "id": "transform-response-lost",
3650
+ "appliesTo": [
3651
+ "invoice.transform",
3652
+ "sales-order.transform"
3653
+ ],
3654
+ "timing": "after_commit",
3655
+ "error": {
3656
+ "code": "UNEXPECTED_ERROR",
3657
+ "message": "An unexpected error occurred. Error ID: firedrill-transform-response-lost",
3658
+ "retryable": true
3659
+ }
3660
+ },
3661
+ {
3662
+ "id": "write-outage",
3663
+ "appliesTo": [
3664
+ "customer.create",
3665
+ "customer.delete",
3666
+ "customer.update",
3667
+ "invoice.create",
3668
+ "invoice.transform",
3669
+ "invoice.update",
3670
+ "sales-order.create",
3671
+ "sales-order.transform",
3672
+ "sales-order.update"
3673
+ ],
3674
+ "timing": "before",
3675
+ "error": {
3676
+ "code": "UNEXPECTED_ERROR",
3677
+ "message": "An unexpected error occurred. Error ID: firedrill-write-outage",
3678
+ "retryable": true
3679
+ }
3680
+ }
3681
+ ],
3682
+ "subscriptions": [],
3683
+ "http": [
3684
+ {
3685
+ "id": "customer-create",
3686
+ "operationId": "customer.create",
3687
+ "method": "POST",
3688
+ "path": "/services/rest/record/v1/customer",
3689
+ "auth": {
3690
+ "kind": "bearer",
3691
+ "schemes": [
3692
+ "Bearer"
3693
+ ]
3694
+ },
3695
+ "requestBody": "json",
3696
+ "response": {
3697
+ "successStatus": 204,
3698
+ "errors": [
3699
+ {
3700
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3701
+ "status": 429
3702
+ },
3703
+ {
3704
+ "code": "INSUFFICIENT_PERMISSION",
3705
+ "status": 403
3706
+ },
3707
+ {
3708
+ "code": "INVALID_CONTENT",
3709
+ "status": 400
3710
+ },
3711
+ {
3712
+ "code": "INVALID_KEY_OR_REF",
3713
+ "status": 400
3714
+ },
3715
+ {
3716
+ "code": "INVALID_LOGIN",
3717
+ "status": 401
3718
+ },
3719
+ {
3720
+ "code": "INVALID_PARAMETER",
3721
+ "status": 400
3722
+ },
3723
+ {
3724
+ "code": "INVALID_REQUEST",
3725
+ "status": 400
3726
+ },
3727
+ {
3728
+ "code": "RESULT_SET_TOO_LARGE",
3729
+ "status": 400
3730
+ },
3731
+ {
3732
+ "code": "UNEXPECTED_ERROR",
3733
+ "status": 500
3734
+ },
3735
+ {
3736
+ "code": "USER_ERROR",
3737
+ "status": 400
3738
+ }
3739
+ ]
3740
+ }
3741
+ },
3742
+ {
3743
+ "id": "customer-delete",
3744
+ "operationId": "customer.delete",
3745
+ "method": "DELETE",
3746
+ "path": "/services/rest/record/v1/customer/{id}",
3747
+ "auth": {
3748
+ "kind": "bearer",
3749
+ "schemes": [
3750
+ "Bearer"
3751
+ ]
3752
+ },
3753
+ "requestBody": "none",
3754
+ "response": {
3755
+ "successStatus": 204,
3756
+ "errors": [
3757
+ {
3758
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3759
+ "status": 429
3760
+ },
3761
+ {
3762
+ "code": "INSUFFICIENT_PERMISSION",
3763
+ "status": 403
3764
+ },
3765
+ {
3766
+ "code": "INVALID_ID",
3767
+ "status": 400
3768
+ },
3769
+ {
3770
+ "code": "INVALID_LOGIN",
3771
+ "status": 401
3772
+ },
3773
+ {
3774
+ "code": "INVALID_PARAMETER",
3775
+ "status": 400
3776
+ },
3777
+ {
3778
+ "code": "NONEXISTENT_ID",
3779
+ "status": 404
3780
+ },
3781
+ {
3782
+ "code": "RESULT_SET_TOO_LARGE",
3783
+ "status": 400
3784
+ },
3785
+ {
3786
+ "code": "UNEXPECTED_ERROR",
3787
+ "status": 500
3788
+ },
3789
+ {
3790
+ "code": "USER_ERROR",
3791
+ "status": 400
3792
+ }
3793
+ ]
3794
+ }
3795
+ },
3796
+ {
3797
+ "id": "customer-get",
3798
+ "operationId": "customer.get",
3799
+ "method": "GET",
3800
+ "path": "/services/rest/record/v1/customer/{id}",
3801
+ "auth": {
3802
+ "kind": "bearer",
3803
+ "schemes": [
3804
+ "Bearer"
3805
+ ]
3806
+ },
3807
+ "requestBody": "none",
3808
+ "response": {
3809
+ "successStatus": 200,
3810
+ "errors": [
3811
+ {
3812
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3813
+ "status": 429
3814
+ },
3815
+ {
3816
+ "code": "INSUFFICIENT_PERMISSION",
3817
+ "status": 403
3818
+ },
3819
+ {
3820
+ "code": "INVALID_ID",
3821
+ "status": 400
3822
+ },
3823
+ {
3824
+ "code": "INVALID_LOGIN",
3825
+ "status": 401
3826
+ },
3827
+ {
3828
+ "code": "INVALID_PARAMETER",
3829
+ "status": 400
3830
+ },
3831
+ {
3832
+ "code": "NONEXISTENT_ID",
3833
+ "status": 404
3834
+ },
3835
+ {
3836
+ "code": "RESULT_SET_TOO_LARGE",
3837
+ "status": 400
3838
+ }
3839
+ ]
3840
+ }
3841
+ },
3842
+ {
3843
+ "id": "customer-list",
3844
+ "operationId": "customer.list",
3845
+ "method": "GET",
3846
+ "path": "/services/rest/record/v1/customer",
3847
+ "auth": {
3848
+ "kind": "bearer",
3849
+ "schemes": [
3850
+ "Bearer"
3851
+ ]
3852
+ },
3853
+ "requestBody": "none",
3854
+ "response": {
3855
+ "successStatus": 200,
3856
+ "errors": [
3857
+ {
3858
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3859
+ "status": 429
3860
+ },
3861
+ {
3862
+ "code": "INSUFFICIENT_PERMISSION",
3863
+ "status": 403
3864
+ },
3865
+ {
3866
+ "code": "INVALID_LOGIN",
3867
+ "status": 401
3868
+ },
3869
+ {
3870
+ "code": "INVALID_PARAMETER",
3871
+ "status": 400
3872
+ },
3873
+ {
3874
+ "code": "INVALID_REQUEST",
3875
+ "status": 400
3876
+ },
3877
+ {
3878
+ "code": "RESULT_SET_TOO_LARGE",
3879
+ "status": 400
3880
+ }
3881
+ ]
3882
+ }
3883
+ },
3884
+ {
3885
+ "id": "customer-payment-get",
3886
+ "operationId": "customer-payment.get",
3887
+ "method": "GET",
3888
+ "path": "/services/rest/record/v1/customerPayment/{id}",
3889
+ "auth": {
3890
+ "kind": "bearer",
3891
+ "schemes": [
3892
+ "Bearer"
3893
+ ]
3894
+ },
3895
+ "requestBody": "none",
3896
+ "response": {
3897
+ "successStatus": 200,
3898
+ "errors": [
3899
+ {
3900
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3901
+ "status": 429
3902
+ },
3903
+ {
3904
+ "code": "INSUFFICIENT_PERMISSION",
3905
+ "status": 403
3906
+ },
3907
+ {
3908
+ "code": "INVALID_ID",
3909
+ "status": 400
3910
+ },
3911
+ {
3912
+ "code": "INVALID_LOGIN",
3913
+ "status": 401
3914
+ },
3915
+ {
3916
+ "code": "INVALID_PARAMETER",
3917
+ "status": 400
3918
+ },
3919
+ {
3920
+ "code": "NONEXISTENT_ID",
3921
+ "status": 404
3922
+ },
3923
+ {
3924
+ "code": "RESULT_SET_TOO_LARGE",
3925
+ "status": 400
3926
+ }
3927
+ ]
3928
+ }
3929
+ },
3930
+ {
3931
+ "id": "customer-payment-list",
3932
+ "operationId": "customer-payment.list",
3933
+ "method": "GET",
3934
+ "path": "/services/rest/record/v1/customerPayment",
3935
+ "auth": {
3936
+ "kind": "bearer",
3937
+ "schemes": [
3938
+ "Bearer"
3939
+ ]
3940
+ },
3941
+ "requestBody": "none",
3942
+ "response": {
3943
+ "successStatus": 200,
3944
+ "errors": [
3945
+ {
3946
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3947
+ "status": 429
3948
+ },
3949
+ {
3950
+ "code": "INSUFFICIENT_PERMISSION",
3951
+ "status": 403
3952
+ },
3953
+ {
3954
+ "code": "INVALID_LOGIN",
3955
+ "status": 401
3956
+ },
3957
+ {
3958
+ "code": "INVALID_PARAMETER",
3959
+ "status": 400
3960
+ },
3961
+ {
3962
+ "code": "INVALID_REQUEST",
3963
+ "status": 400
3964
+ },
3965
+ {
3966
+ "code": "RESULT_SET_TOO_LARGE",
3967
+ "status": 400
3968
+ }
3969
+ ]
3970
+ }
3971
+ },
3972
+ {
3973
+ "id": "customer-update",
3974
+ "operationId": "customer.update",
3975
+ "method": "PATCH",
3976
+ "path": "/services/rest/record/v1/customer/{id}",
3977
+ "auth": {
3978
+ "kind": "bearer",
3979
+ "schemes": [
3980
+ "Bearer"
3981
+ ]
3982
+ },
3983
+ "requestBody": "json",
3984
+ "response": {
3985
+ "successStatus": 204,
3986
+ "errors": [
3987
+ {
3988
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
3989
+ "status": 429
3990
+ },
3991
+ {
3992
+ "code": "INSUFFICIENT_PERMISSION",
3993
+ "status": 403
3994
+ },
3995
+ {
3996
+ "code": "INVALID_CONTENT",
3997
+ "status": 400
3998
+ },
3999
+ {
4000
+ "code": "INVALID_ID",
4001
+ "status": 400
4002
+ },
4003
+ {
4004
+ "code": "INVALID_KEY_OR_REF",
4005
+ "status": 400
4006
+ },
4007
+ {
4008
+ "code": "INVALID_LOGIN",
4009
+ "status": 401
4010
+ },
4011
+ {
4012
+ "code": "INVALID_PARAMETER",
4013
+ "status": 400
4014
+ },
4015
+ {
4016
+ "code": "INVALID_REQUEST",
4017
+ "status": 400
4018
+ },
4019
+ {
4020
+ "code": "NONEXISTENT_ID",
4021
+ "status": 404
4022
+ },
4023
+ {
4024
+ "code": "RCRD_HAS_BEEN_CHANGED",
4025
+ "status": 409
4026
+ },
4027
+ {
4028
+ "code": "RESULT_SET_TOO_LARGE",
4029
+ "status": 400
4030
+ },
4031
+ {
4032
+ "code": "UNEXPECTED_ERROR",
4033
+ "status": 500
4034
+ },
4035
+ {
4036
+ "code": "USER_ERROR",
4037
+ "status": 400
4038
+ }
4039
+ ]
4040
+ }
4041
+ },
4042
+ {
4043
+ "id": "inventory-item-get",
4044
+ "operationId": "inventory-item.get",
4045
+ "method": "GET",
4046
+ "path": "/services/rest/record/v1/inventoryItem/{id}",
4047
+ "auth": {
4048
+ "kind": "bearer",
4049
+ "schemes": [
4050
+ "Bearer"
4051
+ ]
4052
+ },
4053
+ "requestBody": "none",
4054
+ "response": {
4055
+ "successStatus": 200,
4056
+ "errors": [
4057
+ {
4058
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4059
+ "status": 429
4060
+ },
4061
+ {
4062
+ "code": "INSUFFICIENT_PERMISSION",
4063
+ "status": 403
4064
+ },
4065
+ {
4066
+ "code": "INVALID_ID",
4067
+ "status": 400
4068
+ },
4069
+ {
4070
+ "code": "INVALID_LOGIN",
4071
+ "status": 401
4072
+ },
4073
+ {
4074
+ "code": "INVALID_PARAMETER",
4075
+ "status": 400
4076
+ },
4077
+ {
4078
+ "code": "NONEXISTENT_ID",
4079
+ "status": 404
4080
+ }
4081
+ ]
4082
+ }
4083
+ },
4084
+ {
4085
+ "id": "inventory-item-list",
4086
+ "operationId": "inventory-item.list",
4087
+ "method": "GET",
4088
+ "path": "/services/rest/record/v1/inventoryItem",
4089
+ "auth": {
4090
+ "kind": "bearer",
4091
+ "schemes": [
4092
+ "Bearer"
4093
+ ]
4094
+ },
4095
+ "requestBody": "none",
4096
+ "response": {
4097
+ "successStatus": 200,
4098
+ "errors": [
4099
+ {
4100
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4101
+ "status": 429
4102
+ },
4103
+ {
4104
+ "code": "INSUFFICIENT_PERMISSION",
4105
+ "status": 403
4106
+ },
4107
+ {
4108
+ "code": "INVALID_LOGIN",
4109
+ "status": 401
4110
+ },
4111
+ {
4112
+ "code": "INVALID_PARAMETER",
4113
+ "status": 400
4114
+ },
4115
+ {
4116
+ "code": "INVALID_REQUEST",
4117
+ "status": 400
4118
+ },
4119
+ {
4120
+ "code": "RESULT_SET_TOO_LARGE",
4121
+ "status": 400
4122
+ }
4123
+ ]
4124
+ }
4125
+ },
4126
+ {
4127
+ "id": "invoice-create",
4128
+ "operationId": "invoice.create",
4129
+ "method": "POST",
4130
+ "path": "/services/rest/record/v1/invoice",
4131
+ "auth": {
4132
+ "kind": "bearer",
4133
+ "schemes": [
4134
+ "Bearer"
4135
+ ]
4136
+ },
4137
+ "requestBody": "json",
4138
+ "response": {
4139
+ "successStatus": 204,
4140
+ "errors": [
4141
+ {
4142
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4143
+ "status": 429
4144
+ },
4145
+ {
4146
+ "code": "INSUFFICIENT_PERMISSION",
4147
+ "status": 403
4148
+ },
4149
+ {
4150
+ "code": "INVALID_CONTENT",
4151
+ "status": 400
4152
+ },
4153
+ {
4154
+ "code": "INVALID_KEY_OR_REF",
4155
+ "status": 400
4156
+ },
4157
+ {
4158
+ "code": "INVALID_LOGIN",
4159
+ "status": 401
4160
+ },
4161
+ {
4162
+ "code": "INVALID_PARAMETER",
4163
+ "status": 400
4164
+ },
4165
+ {
4166
+ "code": "INVALID_REQUEST",
4167
+ "status": 400
4168
+ },
4169
+ {
4170
+ "code": "RESULT_SET_TOO_LARGE",
4171
+ "status": 400
4172
+ },
4173
+ {
4174
+ "code": "UNEXPECTED_ERROR",
4175
+ "status": 500
4176
+ },
4177
+ {
4178
+ "code": "USER_ERROR",
4179
+ "status": 400
4180
+ }
4181
+ ]
4182
+ }
4183
+ },
4184
+ {
4185
+ "id": "invoice-get",
4186
+ "operationId": "invoice.get",
4187
+ "method": "GET",
4188
+ "path": "/services/rest/record/v1/invoice/{id}",
4189
+ "auth": {
4190
+ "kind": "bearer",
4191
+ "schemes": [
4192
+ "Bearer"
4193
+ ]
4194
+ },
4195
+ "requestBody": "none",
4196
+ "response": {
4197
+ "successStatus": 200,
4198
+ "errors": [
4199
+ {
4200
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4201
+ "status": 429
4202
+ },
4203
+ {
4204
+ "code": "INSUFFICIENT_PERMISSION",
4205
+ "status": 403
4206
+ },
4207
+ {
4208
+ "code": "INVALID_ID",
4209
+ "status": 400
4210
+ },
4211
+ {
4212
+ "code": "INVALID_LOGIN",
4213
+ "status": 401
4214
+ },
4215
+ {
4216
+ "code": "INVALID_PARAMETER",
4217
+ "status": 400
4218
+ },
4219
+ {
4220
+ "code": "NONEXISTENT_ID",
4221
+ "status": 404
4222
+ },
4223
+ {
4224
+ "code": "RESULT_SET_TOO_LARGE",
4225
+ "status": 400
4226
+ }
4227
+ ]
4228
+ }
4229
+ },
4230
+ {
4231
+ "id": "invoice-list",
4232
+ "operationId": "invoice.list",
4233
+ "method": "GET",
4234
+ "path": "/services/rest/record/v1/invoice",
4235
+ "auth": {
4236
+ "kind": "bearer",
4237
+ "schemes": [
4238
+ "Bearer"
4239
+ ]
4240
+ },
4241
+ "requestBody": "none",
4242
+ "response": {
4243
+ "successStatus": 200,
4244
+ "errors": [
4245
+ {
4246
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4247
+ "status": 429
4248
+ },
4249
+ {
4250
+ "code": "INSUFFICIENT_PERMISSION",
4251
+ "status": 403
4252
+ },
4253
+ {
4254
+ "code": "INVALID_LOGIN",
4255
+ "status": 401
4256
+ },
4257
+ {
4258
+ "code": "INVALID_PARAMETER",
4259
+ "status": 400
4260
+ },
4261
+ {
4262
+ "code": "INVALID_REQUEST",
4263
+ "status": 400
4264
+ },
4265
+ {
4266
+ "code": "RESULT_SET_TOO_LARGE",
4267
+ "status": 400
4268
+ }
4269
+ ]
4270
+ }
4271
+ },
4272
+ {
4273
+ "id": "invoice-transform",
4274
+ "operationId": "invoice.transform",
4275
+ "method": "POST",
4276
+ "path": "/services/rest/record/v1/invoice/{id}/{transformMarker}/customerPayment",
4277
+ "auth": {
4278
+ "kind": "bearer",
4279
+ "schemes": [
4280
+ "Bearer"
4281
+ ]
4282
+ },
4283
+ "requestBody": "json",
4284
+ "response": {
4285
+ "successStatus": 204,
4286
+ "errors": [
4287
+ {
4288
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4289
+ "status": 429
4290
+ },
4291
+ {
4292
+ "code": "INSUFFICIENT_PERMISSION",
4293
+ "status": 403
4294
+ },
4295
+ {
4296
+ "code": "INVALID_CONTENT",
4297
+ "status": 400
4298
+ },
4299
+ {
4300
+ "code": "INVALID_ID",
4301
+ "status": 400
4302
+ },
4303
+ {
4304
+ "code": "INVALID_LOGIN",
4305
+ "status": 401
4306
+ },
4307
+ {
4308
+ "code": "INVALID_PARAMETER",
4309
+ "status": 400
4310
+ },
4311
+ {
4312
+ "code": "INVALID_REQUEST",
4313
+ "status": 400
4314
+ },
4315
+ {
4316
+ "code": "NONEXISTENT_ID",
4317
+ "status": 404
4318
+ },
4319
+ {
4320
+ "code": "RCRD_HAS_BEEN_CHANGED",
4321
+ "status": 409
4322
+ },
4323
+ {
4324
+ "code": "RESULT_SET_TOO_LARGE",
4325
+ "status": 400
4326
+ },
4327
+ {
4328
+ "code": "UNEXPECTED_ERROR",
4329
+ "status": 500
4330
+ },
4331
+ {
4332
+ "code": "USER_ERROR",
4333
+ "status": 400
4334
+ }
4335
+ ]
4336
+ }
4337
+ },
4338
+ {
4339
+ "id": "invoice-update",
4340
+ "operationId": "invoice.update",
4341
+ "method": "PATCH",
4342
+ "path": "/services/rest/record/v1/invoice/{id}",
4343
+ "auth": {
4344
+ "kind": "bearer",
4345
+ "schemes": [
4346
+ "Bearer"
4347
+ ]
4348
+ },
4349
+ "requestBody": "json",
4350
+ "response": {
4351
+ "successStatus": 204,
4352
+ "errors": [
4353
+ {
4354
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4355
+ "status": 429
4356
+ },
4357
+ {
4358
+ "code": "INSUFFICIENT_PERMISSION",
4359
+ "status": 403
4360
+ },
4361
+ {
4362
+ "code": "INVALID_CONTENT",
4363
+ "status": 400
4364
+ },
4365
+ {
4366
+ "code": "INVALID_ID",
4367
+ "status": 400
4368
+ },
4369
+ {
4370
+ "code": "INVALID_KEY_OR_REF",
4371
+ "status": 400
4372
+ },
4373
+ {
4374
+ "code": "INVALID_LOGIN",
4375
+ "status": 401
4376
+ },
4377
+ {
4378
+ "code": "INVALID_PARAMETER",
4379
+ "status": 400
4380
+ },
4381
+ {
4382
+ "code": "INVALID_REQUEST",
4383
+ "status": 400
4384
+ },
4385
+ {
4386
+ "code": "NONEXISTENT_ID",
4387
+ "status": 404
4388
+ },
4389
+ {
4390
+ "code": "RCRD_HAS_BEEN_CHANGED",
4391
+ "status": 409
4392
+ },
4393
+ {
4394
+ "code": "RESULT_SET_TOO_LARGE",
4395
+ "status": 400
4396
+ },
4397
+ {
4398
+ "code": "UNEXPECTED_ERROR",
4399
+ "status": 500
4400
+ },
4401
+ {
4402
+ "code": "USER_ERROR",
4403
+ "status": 400
4404
+ }
4405
+ ]
4406
+ }
4407
+ },
4408
+ {
4409
+ "id": "metadata-catalog-list",
4410
+ "operationId": "record.metadata",
4411
+ "method": "GET",
4412
+ "path": "/services/rest/record/v1/metadata-catalog",
4413
+ "auth": {
4414
+ "kind": "bearer",
4415
+ "schemes": [
4416
+ "Bearer"
4417
+ ]
4418
+ },
4419
+ "requestBody": "none",
4420
+ "response": {
4421
+ "successStatus": 200,
4422
+ "errors": [
4423
+ {
4424
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4425
+ "status": 429
4426
+ },
4427
+ {
4428
+ "code": "INSUFFICIENT_PERMISSION",
4429
+ "status": 403
4430
+ },
4431
+ {
4432
+ "code": "INVALID_CONTENT",
4433
+ "status": 400
4434
+ },
4435
+ {
4436
+ "code": "INVALID_LOGIN",
4437
+ "status": 401
4438
+ }
4439
+ ]
4440
+ }
4441
+ },
4442
+ {
4443
+ "id": "metadata-catalog-type",
4444
+ "operationId": "record.metadata",
4445
+ "method": "GET",
4446
+ "path": "/services/rest/record/v1/metadata-catalog/{recordType}",
4447
+ "auth": {
4448
+ "kind": "bearer",
4449
+ "schemes": [
4450
+ "Bearer"
4451
+ ]
4452
+ },
4453
+ "requestBody": "none",
4454
+ "response": {
4455
+ "successStatus": 200,
4456
+ "errors": [
4457
+ {
4458
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4459
+ "status": 429
4460
+ },
4461
+ {
4462
+ "code": "INSUFFICIENT_PERMISSION",
4463
+ "status": 403
4464
+ },
4465
+ {
4466
+ "code": "INVALID_CONTENT",
4467
+ "status": 400
4468
+ },
4469
+ {
4470
+ "code": "INVALID_LOGIN",
4471
+ "status": 401
4472
+ }
4473
+ ]
4474
+ }
4475
+ },
4476
+ {
4477
+ "id": "sales-order-create",
4478
+ "operationId": "sales-order.create",
4479
+ "method": "POST",
4480
+ "path": "/services/rest/record/v1/salesOrder",
4481
+ "auth": {
4482
+ "kind": "bearer",
4483
+ "schemes": [
4484
+ "Bearer"
4485
+ ]
4486
+ },
4487
+ "requestBody": "json",
4488
+ "response": {
4489
+ "successStatus": 204,
4490
+ "errors": [
4491
+ {
4492
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4493
+ "status": 429
4494
+ },
4495
+ {
4496
+ "code": "INSUFFICIENT_PERMISSION",
4497
+ "status": 403
4498
+ },
4499
+ {
4500
+ "code": "INVALID_CONTENT",
4501
+ "status": 400
4502
+ },
4503
+ {
4504
+ "code": "INVALID_KEY_OR_REF",
4505
+ "status": 400
4506
+ },
4507
+ {
4508
+ "code": "INVALID_LOGIN",
4509
+ "status": 401
4510
+ },
4511
+ {
4512
+ "code": "INVALID_PARAMETER",
4513
+ "status": 400
4514
+ },
4515
+ {
4516
+ "code": "INVALID_REQUEST",
4517
+ "status": 400
4518
+ },
4519
+ {
4520
+ "code": "RESULT_SET_TOO_LARGE",
4521
+ "status": 400
4522
+ },
4523
+ {
4524
+ "code": "UNEXPECTED_ERROR",
4525
+ "status": 500
4526
+ },
4527
+ {
4528
+ "code": "USER_ERROR",
4529
+ "status": 400
4530
+ }
4531
+ ]
4532
+ }
4533
+ },
4534
+ {
4535
+ "id": "sales-order-get",
4536
+ "operationId": "sales-order.get",
4537
+ "method": "GET",
4538
+ "path": "/services/rest/record/v1/salesOrder/{id}",
4539
+ "auth": {
4540
+ "kind": "bearer",
4541
+ "schemes": [
4542
+ "Bearer"
4543
+ ]
4544
+ },
4545
+ "requestBody": "none",
4546
+ "response": {
4547
+ "successStatus": 200,
4548
+ "errors": [
4549
+ {
4550
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4551
+ "status": 429
4552
+ },
4553
+ {
4554
+ "code": "INSUFFICIENT_PERMISSION",
4555
+ "status": 403
4556
+ },
4557
+ {
4558
+ "code": "INVALID_ID",
4559
+ "status": 400
4560
+ },
4561
+ {
4562
+ "code": "INVALID_LOGIN",
4563
+ "status": 401
4564
+ },
4565
+ {
4566
+ "code": "INVALID_PARAMETER",
4567
+ "status": 400
4568
+ },
4569
+ {
4570
+ "code": "NONEXISTENT_ID",
4571
+ "status": 404
4572
+ },
4573
+ {
4574
+ "code": "RESULT_SET_TOO_LARGE",
4575
+ "status": 400
4576
+ }
4577
+ ]
4578
+ }
4579
+ },
4580
+ {
4581
+ "id": "sales-order-items",
4582
+ "operationId": "sales-order.items.list",
4583
+ "method": "GET",
4584
+ "path": "/services/rest/record/v1/salesOrder/{id}/item",
4585
+ "auth": {
4586
+ "kind": "bearer",
4587
+ "schemes": [
4588
+ "Bearer"
4589
+ ]
4590
+ },
4591
+ "requestBody": "none",
4592
+ "response": {
4593
+ "successStatus": 200,
4594
+ "errors": [
4595
+ {
4596
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4597
+ "status": 429
4598
+ },
4599
+ {
4600
+ "code": "INSUFFICIENT_PERMISSION",
4601
+ "status": 403
4602
+ },
4603
+ {
4604
+ "code": "INVALID_ID",
4605
+ "status": 400
4606
+ },
4607
+ {
4608
+ "code": "INVALID_LOGIN",
4609
+ "status": 401
4610
+ },
4611
+ {
4612
+ "code": "INVALID_PARAMETER",
4613
+ "status": 400
4614
+ },
4615
+ {
4616
+ "code": "NONEXISTENT_ID",
4617
+ "status": 404
4618
+ },
4619
+ {
4620
+ "code": "RESULT_SET_TOO_LARGE",
4621
+ "status": 400
4622
+ }
4623
+ ]
4624
+ }
4625
+ },
4626
+ {
4627
+ "id": "sales-order-list",
4628
+ "operationId": "sales-order.list",
4629
+ "method": "GET",
4630
+ "path": "/services/rest/record/v1/salesOrder",
4631
+ "auth": {
4632
+ "kind": "bearer",
4633
+ "schemes": [
4634
+ "Bearer"
4635
+ ]
4636
+ },
4637
+ "requestBody": "none",
4638
+ "response": {
4639
+ "successStatus": 200,
4640
+ "errors": [
4641
+ {
4642
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4643
+ "status": 429
4644
+ },
4645
+ {
4646
+ "code": "INSUFFICIENT_PERMISSION",
4647
+ "status": 403
4648
+ },
4649
+ {
4650
+ "code": "INVALID_LOGIN",
4651
+ "status": 401
4652
+ },
4653
+ {
4654
+ "code": "INVALID_PARAMETER",
4655
+ "status": 400
4656
+ },
4657
+ {
4658
+ "code": "INVALID_REQUEST",
4659
+ "status": 400
4660
+ },
4661
+ {
4662
+ "code": "RESULT_SET_TOO_LARGE",
4663
+ "status": 400
4664
+ }
4665
+ ]
4666
+ }
4667
+ },
4668
+ {
4669
+ "id": "sales-order-transform",
4670
+ "operationId": "sales-order.transform",
4671
+ "method": "POST",
4672
+ "path": "/services/rest/record/v1/salesOrder/{id}/{transformMarker}/invoice",
4673
+ "auth": {
4674
+ "kind": "bearer",
4675
+ "schemes": [
4676
+ "Bearer"
4677
+ ]
4678
+ },
4679
+ "requestBody": "json",
4680
+ "response": {
4681
+ "successStatus": 204,
4682
+ "errors": [
4683
+ {
4684
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4685
+ "status": 429
4686
+ },
4687
+ {
4688
+ "code": "INSUFFICIENT_PERMISSION",
4689
+ "status": 403
4690
+ },
4691
+ {
4692
+ "code": "INVALID_CONTENT",
4693
+ "status": 400
4694
+ },
4695
+ {
4696
+ "code": "INVALID_ID",
4697
+ "status": 400
4698
+ },
4699
+ {
4700
+ "code": "INVALID_LOGIN",
4701
+ "status": 401
4702
+ },
4703
+ {
4704
+ "code": "INVALID_PARAMETER",
4705
+ "status": 400
4706
+ },
4707
+ {
4708
+ "code": "INVALID_REQUEST",
4709
+ "status": 400
4710
+ },
4711
+ {
4712
+ "code": "NONEXISTENT_ID",
4713
+ "status": 404
4714
+ },
4715
+ {
4716
+ "code": "RCRD_HAS_BEEN_CHANGED",
4717
+ "status": 409
4718
+ },
4719
+ {
4720
+ "code": "RESULT_SET_TOO_LARGE",
4721
+ "status": 400
4722
+ },
4723
+ {
4724
+ "code": "UNEXPECTED_ERROR",
4725
+ "status": 500
4726
+ },
4727
+ {
4728
+ "code": "USER_ERROR",
4729
+ "status": 400
4730
+ }
4731
+ ]
4732
+ }
4733
+ },
4734
+ {
4735
+ "id": "sales-order-update",
4736
+ "operationId": "sales-order.update",
4737
+ "method": "PATCH",
4738
+ "path": "/services/rest/record/v1/salesOrder/{id}",
4739
+ "auth": {
4740
+ "kind": "bearer",
4741
+ "schemes": [
4742
+ "Bearer"
4743
+ ]
4744
+ },
4745
+ "requestBody": "json",
4746
+ "response": {
4747
+ "successStatus": 204,
4748
+ "errors": [
4749
+ {
4750
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4751
+ "status": 429
4752
+ },
4753
+ {
4754
+ "code": "INSUFFICIENT_PERMISSION",
4755
+ "status": 403
4756
+ },
4757
+ {
4758
+ "code": "INVALID_CONTENT",
4759
+ "status": 400
4760
+ },
4761
+ {
4762
+ "code": "INVALID_ID",
4763
+ "status": 400
4764
+ },
4765
+ {
4766
+ "code": "INVALID_KEY_OR_REF",
4767
+ "status": 400
4768
+ },
4769
+ {
4770
+ "code": "INVALID_LOGIN",
4771
+ "status": 401
4772
+ },
4773
+ {
4774
+ "code": "INVALID_PARAMETER",
4775
+ "status": 400
4776
+ },
4777
+ {
4778
+ "code": "INVALID_REQUEST",
4779
+ "status": 400
4780
+ },
4781
+ {
4782
+ "code": "NONEXISTENT_ID",
4783
+ "status": 404
4784
+ },
4785
+ {
4786
+ "code": "RCRD_HAS_BEEN_CHANGED",
4787
+ "status": 409
4788
+ },
4789
+ {
4790
+ "code": "RESULT_SET_TOO_LARGE",
4791
+ "status": 400
4792
+ },
4793
+ {
4794
+ "code": "UNEXPECTED_ERROR",
4795
+ "status": 500
4796
+ },
4797
+ {
4798
+ "code": "USER_ERROR",
4799
+ "status": 400
4800
+ }
4801
+ ]
4802
+ }
4803
+ },
4804
+ {
4805
+ "id": "subsidiary-list",
4806
+ "operationId": "subsidiary.list",
4807
+ "method": "GET",
4808
+ "path": "/services/rest/record/v1/subsidiary",
4809
+ "auth": {
4810
+ "kind": "bearer",
4811
+ "schemes": [
4812
+ "Bearer"
4813
+ ]
4814
+ },
4815
+ "requestBody": "none",
4816
+ "response": {
4817
+ "successStatus": 200,
4818
+ "errors": [
4819
+ {
4820
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4821
+ "status": 429
4822
+ },
4823
+ {
4824
+ "code": "INSUFFICIENT_PERMISSION",
4825
+ "status": 403
4826
+ },
4827
+ {
4828
+ "code": "INVALID_LOGIN",
4829
+ "status": 401
4830
+ },
4831
+ {
4832
+ "code": "INVALID_PARAMETER",
4833
+ "status": 400
4834
+ },
4835
+ {
4836
+ "code": "RESULT_SET_TOO_LARGE",
4837
+ "status": 400
4838
+ }
4839
+ ]
4840
+ }
4841
+ },
4842
+ {
4843
+ "id": "suiteql",
4844
+ "operationId": "suiteql.query",
4845
+ "method": "POST",
4846
+ "path": "/services/rest/query/v1/suiteql",
4847
+ "auth": {
4848
+ "kind": "bearer",
4849
+ "schemes": [
4850
+ "Bearer"
4851
+ ]
4852
+ },
4853
+ "requestBody": "json",
4854
+ "response": {
4855
+ "successStatus": 200,
4856
+ "errors": [
4857
+ {
4858
+ "code": "CONCURRENCY_LIMIT_EXCEEDED",
4859
+ "status": 429
4860
+ },
4861
+ {
4862
+ "code": "INSUFFICIENT_PERMISSION",
4863
+ "status": 403
4864
+ },
4865
+ {
4866
+ "code": "INVALID_LOGIN",
4867
+ "status": 401
4868
+ },
4869
+ {
4870
+ "code": "INVALID_PARAMETER",
4871
+ "status": 400
4872
+ },
4873
+ {
4874
+ "code": "INVALID_REQUEST",
4875
+ "status": 400
4876
+ },
4877
+ {
4878
+ "code": "RESULT_SET_TOO_LARGE",
4879
+ "status": 400
4880
+ }
4881
+ ]
4882
+ }
4883
+ }
4884
+ ],
4885
+ "callbacks": [],
4886
+ "compatibility": []
4887
+ }
4888
+ }