You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embedded/openapi/spec3.beta.sdk.json
+41-6Lines changed: 41 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -102403,6 +102403,11 @@
102403
102403
],
102404
102404
"title": "discount_end",
102405
102405
"type": "object"
102406
+
},
102407
+
"promotion_code": {
102408
+
"description": "ID of the promotion code to create a new discount for.",
102409
+
"maxLength": 5000,
102410
+
"type": "string"
102406
102411
}
102407
102412
},
102408
102413
"title": "discounts_data_param",
@@ -102417,7 +102422,7 @@
102417
102422
"type": "string"
102418
102423
}
102419
102424
],
102420
-
"description": "The coupons to redeem into discounts for the invoice item or invoice line item."
102425
+
"description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item."
102421
102426
},
102422
102427
"expand": {
102423
102428
"description": "Specifies which fields in the response should be expanded.",
@@ -102852,6 +102857,11 @@
102852
102857
],
102853
102858
"title": "discount_end",
102854
102859
"type": "object"
102860
+
},
102861
+
"promotion_code": {
102862
+
"description": "ID of the promotion code to create a new discount for.",
102863
+
"maxLength": 5000,
102864
+
"type": "string"
102855
102865
}
102856
102866
},
102857
102867
"title": "discounts_data_param",
@@ -102866,7 +102876,7 @@
102866
102876
"type": "string"
102867
102877
}
102868
102878
],
102869
-
"description": "The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
102879
+
"description": "The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
102870
102880
},
102871
102881
"expand": {
102872
102882
"description": "Specifies which fields in the response should be expanded.",
@@ -103643,6 +103653,11 @@
103643
103653
],
103644
103654
"title": "discount_end",
103645
103655
"type": "object"
103656
+
},
103657
+
"promotion_code": {
103658
+
"description": "ID of the promotion code to create a new discount for.",
103659
+
"maxLength": 5000,
103660
+
"type": "string"
103646
103661
}
103647
103662
},
103648
103663
"title": "discounts_data_param",
@@ -103657,7 +103672,7 @@
103657
103672
"type": "string"
103658
103673
}
103659
103674
],
103660
-
"description": "The coupons to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts."
103675
+
"description": "The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts."
103661
103676
},
103662
103677
"due_date": {
103663
103678
"description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.",
@@ -114430,6 +114445,11 @@
114430
114445
],
114431
114446
"title": "discount_end",
114432
114447
"type": "object"
114448
+
},
114449
+
"promotion_code": {
114450
+
"description": "ID of the promotion code to create a new discount for.",
114451
+
"maxLength": 5000,
114452
+
"type": "string"
114433
114453
}
114434
114454
},
114435
114455
"title": "discounts_data_param",
@@ -115417,6 +115437,11 @@
115417
115437
],
115418
115438
"title": "discount_end",
115419
115439
"type": "object"
115440
+
},
115441
+
"promotion_code": {
115442
+
"description": "ID of the promotion code to create a new discount for.",
115443
+
"maxLength": 5000,
115444
+
"type": "string"
115420
115445
}
115421
115446
},
115422
115447
"title": "discounts_data_param",
@@ -115431,7 +115456,7 @@
115431
115456
"type": "string"
115432
115457
}
115433
115458
],
115434
-
"description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
115459
+
"description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
115435
115460
},
115436
115461
"invoice_item": {
115437
115462
"description": "ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.",
@@ -116163,6 +116188,11 @@
116163
116188
],
116164
116189
"title": "discount_end",
116165
116190
"type": "object"
116191
+
},
116192
+
"promotion_code": {
116193
+
"description": "ID of the promotion code to create a new discount for.",
116194
+
"maxLength": 5000,
116195
+
"type": "string"
116166
116196
}
116167
116197
},
116168
116198
"title": "discounts_data_param",
@@ -116177,7 +116207,7 @@
116177
116207
"type": "string"
116178
116208
}
116179
116209
],
116180
-
"description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
116210
+
"description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
116181
116211
},
116182
116212
"expand": {
116183
116213
"description": "Specifies which fields in the response should be expanded.",
@@ -117192,6 +117222,11 @@
117192
117222
],
117193
117223
"title": "discount_end",
117194
117224
"type": "object"
117225
+
},
117226
+
"promotion_code": {
117227
+
"description": "ID of the promotion code to create a new discount for.",
117228
+
"maxLength": 5000,
117229
+
"type": "string"
117195
117230
}
117196
117231
},
117197
117232
"title": "discounts_data_param",
@@ -117206,7 +117241,7 @@
117206
117241
"type": "string"
117207
117242
}
117208
117243
],
117209
-
"description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
117244
+
"description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
117210
117245
},
117211
117246
"id": {
117212
117247
"description": "ID of an existing line item on the invoice.",
Copy file name to clipboardExpand all lines: embedded/openapi/spec3.json
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -81266,6 +81266,10 @@
81266
81266
"discount": {
81267
81267
"maxLength": 5000,
81268
81268
"type": "string"
81269
+
},
81270
+
"promotion_code": {
81271
+
"maxLength": 5000,
81272
+
"type": "string"
81269
81273
}
81270
81274
},
81271
81275
"title": "discounts_data_param",
@@ -81280,7 +81284,7 @@
81280
81284
"type": "string"
81281
81285
}
81282
81286
],
81283
-
"description": "The coupons to redeem into discounts for the invoice item or invoice line item."
81287
+
"description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item."
81284
81288
},
81285
81289
"expand": {
81286
81290
"description": "Specifies which fields in the response should be expanded.",
@@ -81646,6 +81650,10 @@
81646
81650
"discount": {
81647
81651
"maxLength": 5000,
81648
81652
"type": "string"
81653
+
},
81654
+
"promotion_code": {
81655
+
"maxLength": 5000,
81656
+
"type": "string"
81649
81657
}
81650
81658
},
81651
81659
"title": "discounts_data_param",
@@ -81660,7 +81668,7 @@
81660
81668
"type": "string"
81661
81669
}
81662
81670
],
81663
-
"description": "The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
81671
+
"description": "The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
81664
81672
},
81665
81673
"expand": {
81666
81674
"description": "Specifies which fields in the response should be expanded.",
@@ -82286,6 +82294,10 @@
82286
82294
"discount": {
82287
82295
"maxLength": 5000,
82288
82296
"type": "string"
82297
+
},
82298
+
"promotion_code": {
82299
+
"maxLength": 5000,
82300
+
"type": "string"
82289
82301
}
82290
82302
},
82291
82303
"title": "discounts_data_param",
@@ -82300,7 +82312,7 @@
82300
82312
"type": "string"
82301
82313
}
82302
82314
],
82303
-
"description": "The coupons to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts."
82315
+
"description": "The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts."
82304
82316
},
82305
82317
"due_date": {
82306
82318
"description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.",
@@ -85519,6 +85531,10 @@
85519
85531
"discount": {
85520
85532
"maxLength": 5000,
85521
85533
"type": "string"
85534
+
},
85535
+
"promotion_code": {
85536
+
"maxLength": 5000,
85537
+
"type": "string"
85522
85538
}
85523
85539
},
85524
85540
"title": "discounts_data_param",
@@ -86568,6 +86584,10 @@
86568
86584
"discount": {
86569
86585
"maxLength": 5000,
86570
86586
"type": "string"
86587
+
},
86588
+
"promotion_code": {
86589
+
"maxLength": 5000,
86590
+
"type": "string"
86571
86591
}
86572
86592
},
86573
86593
"title": "discounts_data_param",
@@ -86582,7 +86602,7 @@
86582
86602
"type": "string"
86583
86603
}
86584
86604
],
86585
-
"description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
86605
+
"description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
86586
86606
},
86587
86607
"expand": {
86588
86608
"description": "Specifies which fields in the response should be expanded.",
0 commit comments