@@ -6265,8 +6265,7 @@ paths:
6265
6265
schema:
6266
6266
"$ref": "#/components/schemas/UniqueCouponCodeParams"
6267
6267
'400':
6268
- description: Invalid or unpermitted parameter; perhaps you tried to generate
6269
- more than 200 codes at a time?
6268
+ description: Invalid or unpermitted parameter.
6270
6269
content:
6271
6270
application/json:
6272
6271
schema:
@@ -6348,6 +6347,7 @@ paths:
6348
6347
- "$ref": "#/components/parameters/sort_dates"
6349
6348
- "$ref": "#/components/parameters/filter_begin_time"
6350
6349
- "$ref": "#/components/parameters/filter_end_time"
6350
+ - "$ref": "#/components/parameters/filter_redeemed"
6351
6351
responses:
6352
6352
'200':
6353
6353
description: A list of unique coupon codes that were generated
@@ -17184,6 +17184,13 @@ components:
17184
17184
- `type=legacy`, only legacy invoices will be returned.
17185
17185
schema:
17186
17186
"$ref": "#/components/schemas/FilterInvoiceTypeEnum"
17187
+ filter_redeemed:
17188
+ name: redeemed
17189
+ in: query
17190
+ description: Filter unique coupon codes by redemption status. `true` for redeemed,
17191
+ `false` for not redeemed.
17192
+ schema:
17193
+ "$ref": "#/components/schemas/FilterRedeemedEnum"
17187
17194
export_date:
17188
17195
name: export_date
17189
17196
in: path
@@ -18733,6 +18740,12 @@ components:
18733
18740
description: The `backup_payment_method` field is used to indicate a billing
18734
18741
info as a backup on the account that will be tried if the initial billing
18735
18742
info used for an invoice is declined.
18743
+ payment_gateway_references:
18744
+ type: array
18745
+ description: Array of Payment Gateway References, each a reference to a
18746
+ third-party gateway object of varying types.
18747
+ items:
18748
+ "$ref": "#/components/schemas/PaymentGatewayReferences"
18736
18749
created_at:
18737
18750
type: string
18738
18751
format: date-time
@@ -18815,9 +18828,21 @@ components:
18815
18828
maxLength: 50
18816
18829
gateway_code:
18817
18830
type: string
18818
- title: An identifier for a specific payment gateway. Must be used in conjunction
18819
- with `gateway_token`.
18831
+ title: An identifier for a specific payment gateway.
18820
18832
maxLength: 12
18833
+ payment_gateway_references:
18834
+ type: array
18835
+ description: Array of Payment Gateway References, each a reference to a
18836
+ third-party gateway object of varying types.
18837
+ items:
18838
+ "$ref": "#/components/schemas/PaymentGatewayReferences"
18839
+ properties:
18840
+ token:
18841
+ type: strings
18842
+ maxLength: 50
18843
+ reference_type:
18844
+ type: string
18845
+ "$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
18821
18846
gateway_attributes:
18822
18847
type: object
18823
18848
description: Additional attributes to send to the gateway.
@@ -19282,9 +19307,9 @@ components:
19282
19307
number_of_unique_codes:
19283
19308
type: integer
19284
19309
title: Number of unique codes
19285
- description: The quantity of unique coupon codes to generate
19310
+ description: The quantity of unique coupon codes to generate. A bulk coupon
19311
+ can have up to 100,000 unique codes (or your site's configured limit).
19286
19312
minimum: 1
19287
- maximum: 200
19288
19313
CouponMini:
19289
19314
type: object
19290
19315
properties:
@@ -21285,6 +21310,22 @@ components:
21285
21310
- currency
21286
21311
- unit_amount
21287
21312
- type
21313
+ PaymentGatewayReferences:
21314
+ type: object
21315
+ title: Payment Gateway References Object
21316
+ description: Array of Payment Gateway References, each a reference to a third-party
21317
+ gateway object of varying types.
21318
+ properties:
21319
+ token:
21320
+ type: string
21321
+ title: Token
21322
+ description: Reference value used when the external token was created. If
21323
+ Stripe gateway is used, this value will need to be accompanied by its
21324
+ reference_type.
21325
+ reference_type:
21326
+ type: string
21327
+ title: Reference Type
21328
+ "$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
21288
21329
PlanMini:
21289
21330
type: object
21290
21331
title: Plan mini details
@@ -26430,6 +26471,11 @@ components:
26430
26471
- credit
26431
26472
- legacy
26432
26473
- non-legacy
26474
+ FilterRedeemedEnum:
26475
+ type: string
26476
+ enum:
26477
+ - true
26478
+ - false
26433
26479
ChannelEnum:
26434
26480
type: string
26435
26481
enum:
@@ -26491,6 +26537,14 @@ components:
26491
26537
enum:
26492
26538
- email
26493
26539
- post
26540
+ PaymentGatewayReferencesEnum:
26541
+ type: string
26542
+ description: The type of reference token. Required if token is passed in for
26543
+ Stripe Gateway.
26544
+ enum:
26545
+ - stripe_confirmation_token
26546
+ - stripe_customer
26547
+ - stripe_payment_method
26494
26548
GatewayTransactionTypeEnum:
26495
26549
type: string
26496
26550
enum:
0 commit comments