recurly 4.24.0 → 4.26.0

Sign up to get free protection for your applications and to get access to all the features.
data/openapi/api.yaml CHANGED
@@ -57,7 +57,7 @@ info:
57
57
 
58
58
  We encourage you to update to the latest version of the API and corresponding client library,
59
59
  as most recent versions are more performant than their predecessors. See the
60
- [changelog](https://developers.recurly.com/api/changelog.html) for a comprehensive list of changes
60
+ [changelog](https://recurly.com/developers/api/changelog.html) for a comprehensive list of changes
61
61
  introduced in the latest API version.
62
62
 
63
63
  ### Default Versions
@@ -114,7 +114,7 @@ info:
114
114
  Please consider changing these messages in the target system to be better
115
115
  suited to the audience of the system.
116
116
 
117
- Please see [transaction error codes](https://developers.recurly.com/pages/api-transaction-errors.html) for more details.
117
+ Please see [transaction error codes](https://recurly.com/developers/pages/api-transaction-errors.html) for more details.
118
118
 
119
119
  ## Pagination
120
120
  ### Response Schema
@@ -181,7 +181,7 @@ info:
181
181
 
182
182
  ## Change Log
183
183
 
184
- A list of changes for this version can be found [in the changelog](https://developers.recurly.com/api/changelog.html#v2021-02-25---current-ga-version).
184
+ A list of changes for this version can be found [in the changelog](https://recurly.com/developers/api/changelog.html#v2021-02-25---current-ga-version).
185
185
  version: v2021-02-25
186
186
  security:
187
187
  - api_key: []
@@ -199,6 +199,8 @@ x-tagGroups:
199
199
  - purchase
200
200
  - usage
201
201
  - automated_exports
202
+ - external_subscriptions
203
+ - external_products
202
204
  - name: Products and Promotions
203
205
  tags:
204
206
  - item
@@ -338,6 +340,16 @@ tags:
338
340
  - name: dunning_campaigns
339
341
  x-displayName: Dunning Campaigns
340
342
  description: Settings used when attempting to dun customers whose payments are declined.
343
+ - name: external_subscriptions
344
+ x-displayName: External Subscription
345
+ description: A subscription from an external resource that is not managed by the
346
+ Recurly platform and instead is managed by third-party platforms like Apple Store
347
+ and Google Play.
348
+ - name: external_products
349
+ x-displayName: External Product
350
+ description: A product from an external resource that is not managed by the Recurly
351
+ platform and instead is managed by third-party platforms like Apple Store and
352
+ Google Play.
341
353
  paths:
342
354
  "/sites":
343
355
  get:
@@ -346,7 +358,7 @@ paths:
346
358
  description: |
347
359
  This route is most useful for finding a site's ID for subsequent requests.
348
360
 
349
- See the [Pagination Guide](/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
361
+ See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
350
362
  tags:
351
363
  - site
352
364
  parameters:
@@ -559,8 +571,8 @@ paths:
559
571
  - account
560
572
  operationId: list_accounts
561
573
  summary: List a site's accounts
562
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
563
- to use pagination in the API and Client Libraries.
574
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
575
+ to learn how to use pagination in the API and Client Libraries.
564
576
  parameters:
565
577
  - "$ref": "#/components/parameters/ids"
566
578
  - "$ref": "#/components/parameters/limit"
@@ -2490,8 +2502,8 @@ paths:
2490
2502
  - billing_infos
2491
2503
  operationId: list_billing_infos
2492
2504
  summary: Get the list of billing information associated with an account
2493
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
2494
- to use pagination in the API and Client Libraries.
2505
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
2506
+ to learn how to use pagination in the API and Client Libraries.
2495
2507
  parameters:
2496
2508
  - "$ref": "#/components/parameters/account_id"
2497
2509
  - "$ref": "#/components/parameters/ids"
@@ -2694,9 +2706,9 @@ paths:
2694
2706
  tags:
2695
2707
  - coupon_redemption
2696
2708
  operationId: list_account_coupon_redemptions
2697
- summary: Show the coupon redemptions for an account
2698
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
2699
- to use pagination in the API and Client Libraries.
2709
+ summary: List the coupon redemptions for an account
2710
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
2711
+ to learn how to use pagination in the API and Client Libraries.
2700
2712
  parameters:
2701
2713
  - "$ref": "#/components/parameters/account_id"
2702
2714
  - "$ref": "#/components/parameters/ids"
@@ -2791,9 +2803,9 @@ paths:
2791
2803
  tags:
2792
2804
  - coupon_redemption
2793
2805
  operationId: list_active_coupon_redemptions
2794
- summary: Show the coupon redemptions that are active on an account
2795
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
2796
- to use pagination in the API and Client Libraries.
2806
+ summary: List the coupon redemptions that are active on an account
2807
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
2808
+ to learn how to use pagination in the API and Client Libraries.
2797
2809
  parameters:
2798
2810
  - "$ref": "#/components/parameters/account_id"
2799
2811
  responses:
@@ -3120,8 +3132,8 @@ paths:
3120
3132
  - credit_payment
3121
3133
  operationId: list_account_credit_payments
3122
3134
  summary: List an account's credit payments
3123
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
3124
- to use pagination in the API and Client Libraries.
3135
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
3136
+ to learn how to use pagination in the API and Client Libraries.
3125
3137
  parameters:
3126
3138
  - "$ref": "#/components/parameters/account_id"
3127
3139
  - "$ref": "#/components/parameters/limit"
@@ -3227,8 +3239,8 @@ paths:
3227
3239
  - invoice
3228
3240
  operationId: list_account_invoices
3229
3241
  summary: List an account's invoices
3230
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
3231
- to use pagination in the API and Client Libraries.
3242
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
3243
+ to learn how to use pagination in the API and Client Libraries.
3232
3244
  parameters:
3233
3245
  - "$ref": "#/components/parameters/account_id"
3234
3246
  - "$ref": "#/components/parameters/ids"
@@ -3669,8 +3681,8 @@ paths:
3669
3681
  - line_item
3670
3682
  operationId: list_account_line_items
3671
3683
  summary: List an account's line items
3672
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
3673
- to use pagination in the API and Client Libraries.
3684
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
3685
+ to learn how to use pagination in the API and Client Libraries.
3674
3686
  parameters:
3675
3687
  - "$ref": "#/components/parameters/account_id"
3676
3688
  - "$ref": "#/components/parameters/ids"
@@ -3944,9 +3956,9 @@ paths:
3944
3956
  tags:
3945
3957
  - note
3946
3958
  operationId: list_account_notes
3947
- summary: Fetch a list of an account's notes
3948
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
3949
- to use pagination in the API and Client Libraries.
3959
+ summary: List an account's notes
3960
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
3961
+ to learn how to use pagination in the API and Client Libraries.
3950
3962
  parameters:
3951
3963
  - "$ref": "#/components/parameters/account_id"
3952
3964
  - "$ref": "#/components/parameters/ids"
@@ -4159,8 +4171,8 @@ paths:
4159
4171
  - shipping_address
4160
4172
  operationId: list_shipping_addresses
4161
4173
  summary: Fetch a list of an account's shipping addresses
4162
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
4163
- to use pagination in the API and Client Libraries.
4174
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
4175
+ to learn how to use pagination in the API and Client Libraries.
4164
4176
  parameters:
4165
4177
  - "$ref": "#/components/parameters/account_id"
4166
4178
  - "$ref": "#/components/parameters/ids"
@@ -4841,8 +4853,8 @@ paths:
4841
4853
  - subscription
4842
4854
  operationId: list_account_subscriptions
4843
4855
  summary: List an account's subscriptions
4844
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
4845
- to use pagination in the API and Client Libraries.
4856
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
4857
+ to learn how to use pagination in the API and Client Libraries.
4846
4858
  parameters:
4847
4859
  - "$ref": "#/components/parameters/account_id"
4848
4860
  - "$ref": "#/components/parameters/ids"
@@ -4945,8 +4957,8 @@ paths:
4945
4957
  - transaction
4946
4958
  operationId: list_account_transactions
4947
4959
  summary: List an account's transactions
4948
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
4949
- to use pagination in the API and Client Libraries.
4960
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
4961
+ to learn how to use pagination in the API and Client Libraries.
4950
4962
  parameters:
4951
4963
  - "$ref": "#/components/parameters/account_id"
4952
4964
  - "$ref": "#/components/parameters/ids"
@@ -5051,8 +5063,8 @@ paths:
5051
5063
  - account
5052
5064
  operationId: list_child_accounts
5053
5065
  summary: List an account's child accounts
5054
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
5055
- to use pagination in the API and Client Libraries.
5066
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
5067
+ to learn how to use pagination in the API and Client Libraries.
5056
5068
  parameters:
5057
5069
  - "$ref": "#/components/parameters/account_id"
5058
5070
  - "$ref": "#/components/parameters/ids"
@@ -5134,8 +5146,8 @@ paths:
5134
5146
  - account_acquisition
5135
5147
  operationId: list_account_acquisition
5136
5148
  summary: List a site's account acquisition data
5137
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
5138
- to use pagination in the API and Client Libraries.
5149
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
5150
+ to learn how to use pagination in the API and Client Libraries.
5139
5151
  parameters:
5140
5152
  - "$ref": "#/components/parameters/ids"
5141
5153
  - "$ref": "#/components/parameters/limit"
@@ -5233,8 +5245,8 @@ paths:
5233
5245
  - coupon
5234
5246
  operationId: list_coupons
5235
5247
  summary: List a site's coupons
5236
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
5237
- to use pagination in the API and Client Libraries.
5248
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
5249
+ to learn how to use pagination in the API and Client Libraries.
5238
5250
  parameters:
5239
5251
  - "$ref": "#/components/parameters/ids"
5240
5252
  - "$ref": "#/components/parameters/limit"
@@ -5997,8 +6009,8 @@ paths:
5997
6009
  - unique_coupon_code
5998
6010
  operationId: list_unique_coupon_codes
5999
6011
  summary: List unique coupon codes associated with a bulk coupon
6000
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
6001
- to use pagination in the API and Client Libraries.
6012
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6013
+ to learn how to use pagination in the API and Client Libraries.
6002
6014
  parameters:
6003
6015
  - "$ref": "#/components/parameters/coupon_id"
6004
6016
  - "$ref": "#/components/parameters/ids"
@@ -6033,8 +6045,8 @@ paths:
6033
6045
  - credit_payment
6034
6046
  operationId: list_credit_payments
6035
6047
  summary: List a site's credit payments
6036
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
6037
- to use pagination in the API and Client Libraries.
6048
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6049
+ to learn how to use pagination in the API and Client Libraries.
6038
6050
  parameters:
6039
6051
  - "$ref": "#/components/parameters/limit"
6040
6052
  - "$ref": "#/components/parameters/order"
@@ -6163,8 +6175,8 @@ paths:
6163
6175
  - custom_field_definition
6164
6176
  operationId: list_custom_field_definitions
6165
6177
  summary: List a site's custom field definitions
6166
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
6167
- to use pagination in the API and Client Libraries.
6178
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6179
+ to learn how to use pagination in the API and Client Libraries.
6168
6180
  parameters:
6169
6181
  - "$ref": "#/components/parameters/ids"
6170
6182
  - "$ref": "#/components/parameters/limit"
@@ -6388,8 +6400,8 @@ paths:
6388
6400
  - account
6389
6401
  operationId: list_invoice_template_accounts
6390
6402
  summary: List an invoice template's associated accounts
6391
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
6392
- to use pagination in the API and Client Libraries.
6403
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6404
+ to learn how to use pagination in the API and Client Libraries.
6393
6405
  parameters:
6394
6406
  - "$ref": "#/components/parameters/invoice_template_id"
6395
6407
  - "$ref": "#/components/parameters/ids"
@@ -6433,8 +6445,8 @@ paths:
6433
6445
  - item
6434
6446
  operationId: list_items
6435
6447
  summary: List a site's items
6436
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
6437
- to use pagination in the API and Client Libraries.
6448
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6449
+ to learn how to use pagination in the API and Client Libraries.
6438
6450
  parameters:
6439
6451
  - "$ref": "#/components/parameters/ids"
6440
6452
  - "$ref": "#/components/parameters/limit"
@@ -7268,8 +7280,8 @@ paths:
7268
7280
  - measured_unit
7269
7281
  operationId: list_measured_unit
7270
7282
  summary: List a site's measured units
7271
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
7272
- to use pagination in the API and Client Libraries.
7283
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
7284
+ to learn how to use pagination in the API and Client Libraries.
7273
7285
  parameters:
7274
7286
  - "$ref": "#/components/parameters/ids"
7275
7287
  - "$ref": "#/components/parameters/limit"
@@ -7442,14 +7454,137 @@ paths:
7442
7454
  schema:
7443
7455
  "$ref": "#/components/schemas/Error"
7444
7456
  x-code-samples: []
7457
+ "/external_products":
7458
+ get:
7459
+ tags:
7460
+ - external_products
7461
+ operationId: list_external_products
7462
+ summary: List a site's external products
7463
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
7464
+ to learn how to use pagination in the API and Client Libraries.
7465
+ parameters:
7466
+ - "$ref": "#/components/parameters/sort_dates"
7467
+ responses:
7468
+ '200':
7469
+ description: A list of the the external_products on a site.
7470
+ content:
7471
+ application/json:
7472
+ schema:
7473
+ "$ref": "#/components/schemas/ExternalProductList"
7474
+ '404':
7475
+ description: Incorrect site.
7476
+ content:
7477
+ application/json:
7478
+ schema:
7479
+ "$ref": "#/components/schemas/Error"
7480
+ default:
7481
+ description: Unexpected error.
7482
+ content:
7483
+ application/json:
7484
+ schema:
7485
+ "$ref": "#/components/schemas/Error"
7486
+ x-code-samples: []
7487
+ "/external_products/{external_product_id}":
7488
+ parameters:
7489
+ - "$ref": "#/components/parameters/external_product_id"
7490
+ get:
7491
+ tags:
7492
+ - external_products
7493
+ operationId: get_external_product
7494
+ summary: Fetch an external product
7495
+ responses:
7496
+ '200':
7497
+ description: Settings for an external product.
7498
+ content:
7499
+ application/json:
7500
+ schema:
7501
+ "$ref": "#/components/schemas/ExternalProduct"
7502
+ '404':
7503
+ description: Incorrect site or external product ID.
7504
+ content:
7505
+ application/json:
7506
+ schema:
7507
+ "$ref": "#/components/schemas/Error"
7508
+ default:
7509
+ description: Unexpected error.
7510
+ content:
7511
+ application/json:
7512
+ schema:
7513
+ "$ref": "#/components/schemas/Error"
7514
+ x-code-samples: []
7515
+ "/external_subscriptions":
7516
+ get:
7517
+ tags:
7518
+ - external_subscriptions
7519
+ operationId: list_external_subscriptions
7520
+ summary: List a site's external subscriptions
7521
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
7522
+ to learn how to use pagination in the API and Client Libraries.
7523
+ parameters:
7524
+ - "$ref": "#/components/parameters/sort_dates"
7525
+ responses:
7526
+ '200':
7527
+ description: A list of the the external_subscriptions on a site.
7528
+ content:
7529
+ application/json:
7530
+ schema:
7531
+ "$ref": "#/components/schemas/ExternalSubscriptionList"
7532
+ '404':
7533
+ description: Incorrect site.
7534
+ content:
7535
+ application/json:
7536
+ schema:
7537
+ "$ref": "#/components/schemas/Error"
7538
+ default:
7539
+ description: Unexpected error.
7540
+ content:
7541
+ application/json:
7542
+ schema:
7543
+ "$ref": "#/components/schemas/Error"
7544
+ x-code-samples: []
7545
+ "/external_subscriptions/{external_subscription_id}":
7546
+ parameters:
7547
+ - "$ref": "#/components/parameters/external_subscription_id"
7548
+ get:
7549
+ tags:
7550
+ - external_subscriptions
7551
+ operationId: get_external_subscription
7552
+ summary: Fetch an external subscription
7553
+ responses:
7554
+ '200':
7555
+ description: Settings for an external subscription.
7556
+ content:
7557
+ application/json:
7558
+ schema:
7559
+ "$ref": "#/components/schemas/ExternalSubscription"
7560
+ '404':
7561
+ description: Incorrect site or external subscription ID.
7562
+ content:
7563
+ application/json:
7564
+ schema:
7565
+ "$ref": "#/components/schemas/Error"
7566
+ '422':
7567
+ description: Validation error with external resource connection or feature
7568
+ flag.
7569
+ content:
7570
+ application/json:
7571
+ schema:
7572
+ "$ref": "#/components/schemas/Error"
7573
+ default:
7574
+ description: Unexpected error.
7575
+ content:
7576
+ application/json:
7577
+ schema:
7578
+ "$ref": "#/components/schemas/Error"
7579
+ x-code-samples: []
7445
7580
  "/invoices":
7446
7581
  get:
7447
7582
  tags:
7448
7583
  - invoice
7449
7584
  operationId: list_invoices
7450
7585
  summary: List a site's invoices
7451
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
7452
- to use pagination in the API and Client Libraries.
7586
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
7587
+ to learn how to use pagination in the API and Client Libraries.
7453
7588
  parameters:
7454
7589
  - "$ref": "#/components/parameters/ids"
7455
7590
  - "$ref": "#/components/parameters/limit"
@@ -7949,6 +8084,44 @@ paths:
7949
8084
  // Something bad happened... tell the user so that they can fix it?
7950
8085
  echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;
7951
8086
  }
8087
+ "/invoices/{invoice_id}/apply_credit_balance":
8088
+ put:
8089
+ tags:
8090
+ - invoice
8091
+ operationId: apply_credit_balance
8092
+ summary: Apply available credit to a pending or past due charge invoice
8093
+ description: Apply credit payment to the outstanding balance on an existing
8094
+ charge invoice from an account’s available balance from existing credit invoices.
8095
+ parameters:
8096
+ - "$ref": "#/components/parameters/site_id"
8097
+ - "$ref": "#/components/parameters/invoice_id"
8098
+ responses:
8099
+ '200':
8100
+ description: The updated invoice.
8101
+ content:
8102
+ application/json:
8103
+ schema:
8104
+ "$ref": "#/components/schemas/Invoice"
8105
+ '404':
8106
+ description: Incorrect site or invoice ID.
8107
+ content:
8108
+ application/json:
8109
+ schema:
8110
+ "$ref": "#/components/schemas/Error"
8111
+ '422':
8112
+ description: Tried applying credit to a legacy or closed invoice or there
8113
+ was an error processing the credit payment.
8114
+ content:
8115
+ application/json:
8116
+ schema:
8117
+ "$ref": "#/components/schemas/Error"
8118
+ default:
8119
+ description: Unexpected error.
8120
+ content:
8121
+ application/json:
8122
+ schema:
8123
+ "$ref": "#/components/schemas/Error"
8124
+ x-code-samples: []
7952
8125
  "/invoices/{invoice_id}/collect":
7953
8126
  put:
7954
8127
  tags:
@@ -8633,8 +8806,8 @@ paths:
8633
8806
  - line_item
8634
8807
  operationId: list_invoice_line_items
8635
8808
  summary: List an invoice's line items
8636
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
8637
- to use pagination in the API and Client Libraries.
8809
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
8810
+ to learn how to use pagination in the API and Client Libraries.
8638
8811
  parameters:
8639
8812
  - "$ref": "#/components/parameters/invoice_id"
8640
8813
  - "$ref": "#/components/parameters/ids"
@@ -8742,9 +8915,9 @@ paths:
8742
8915
  tags:
8743
8916
  - coupon_redemption
8744
8917
  operationId: list_invoice_coupon_redemptions
8745
- summary: Show the coupon redemptions applied to an invoice
8746
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
8747
- to use pagination in the API and Client Libraries.
8918
+ summary: List the coupon redemptions applied to an invoice
8919
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
8920
+ to learn how to use pagination in the API and Client Libraries.
8748
8921
  parameters:
8749
8922
  - "$ref": "#/components/parameters/invoice_id"
8750
8923
  - "$ref": "#/components/parameters/ids"
@@ -8843,7 +9016,7 @@ paths:
8843
9016
  For a charge invoice the related invoices will be credit invoices.
8844
9017
  For a credit invoice the related invoices will be charge invoices.
8845
9018
 
8846
- See the [Pagination Guide](/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
9019
+ See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
8847
9020
  parameters:
8848
9021
  - "$ref": "#/components/parameters/invoice_id"
8849
9022
  responses:
@@ -9097,8 +9270,8 @@ paths:
9097
9270
  - line_item
9098
9271
  operationId: list_line_items
9099
9272
  summary: List a site's line items
9100
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
9101
- to use pagination in the API and Client Libraries.
9273
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
9274
+ to learn how to use pagination in the API and Client Libraries.
9102
9275
  parameters:
9103
9276
  - "$ref": "#/components/parameters/ids"
9104
9277
  - "$ref": "#/components/parameters/limit"
@@ -9438,8 +9611,8 @@ paths:
9438
9611
  - plan
9439
9612
  operationId: list_plans
9440
9613
  summary: List a site's plans
9441
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
9442
- to use pagination in the API and Client Libraries.
9614
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
9615
+ to learn how to use pagination in the API and Client Libraries.
9443
9616
  parameters:
9444
9617
  - "$ref": "#/components/parameters/ids"
9445
9618
  - "$ref": "#/components/parameters/limit"
@@ -10107,8 +10280,8 @@ paths:
10107
10280
  - add-on
10108
10281
  operationId: list_plan_add_ons
10109
10282
  summary: List a plan's add-ons
10110
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
10111
- to use pagination in the API and Client Libraries.
10283
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
10284
+ to learn how to use pagination in the API and Client Libraries.
10112
10285
  parameters:
10113
10286
  - "$ref": "#/components/parameters/plan_id"
10114
10287
  - "$ref": "#/components/parameters/ids"
@@ -10773,8 +10946,8 @@ paths:
10773
10946
  - add-on
10774
10947
  operationId: list_add_ons
10775
10948
  summary: List a site's add-ons
10776
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
10777
- to use pagination in the API and Client Libraries.
10949
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
10950
+ to learn how to use pagination in the API and Client Libraries.
10778
10951
  parameters:
10779
10952
  - "$ref": "#/components/parameters/ids"
10780
10953
  - "$ref": "#/components/parameters/limit"
@@ -10991,8 +11164,8 @@ paths:
10991
11164
  - shipping_method
10992
11165
  operationId: list_shipping_methods
10993
11166
  summary: List a site's shipping methods
10994
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
10995
- to use pagination in the API and Client Libraries.
11167
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
11168
+ to learn how to use pagination in the API and Client Libraries.
10996
11169
  parameters:
10997
11170
  - "$ref": "#/components/parameters/ids"
10998
11171
  - "$ref": "#/components/parameters/limit"
@@ -11237,8 +11410,8 @@ paths:
11237
11410
  - subscription
11238
11411
  operationId: list_subscriptions
11239
11412
  summary: List a site's subscriptions
11240
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
11241
- to use pagination in the API and Client Libraries.
11413
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
11414
+ to learn how to use pagination in the API and Client Libraries.
11242
11415
  parameters:
11243
11416
  - "$ref": "#/components/parameters/ids"
11244
11417
  - "$ref": "#/components/parameters/limit"
@@ -13117,8 +13290,8 @@ paths:
13117
13290
  - invoice
13118
13291
  operationId: list_subscription_invoices
13119
13292
  summary: List a subscription's invoices
13120
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
13121
- to use pagination in the API and Client Libraries.
13293
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
13294
+ to learn how to use pagination in the API and Client Libraries.
13122
13295
  parameters:
13123
13296
  - "$ref": "#/components/parameters/subscription_id"
13124
13297
  - "$ref": "#/components/parameters/ids"
@@ -13221,8 +13394,8 @@ paths:
13221
13394
  - line_item
13222
13395
  operationId: list_subscription_line_items
13223
13396
  summary: List a subscription's line items
13224
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
13225
- to use pagination in the API and Client Libraries.
13397
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
13398
+ to learn how to use pagination in the API and Client Libraries.
13226
13399
  parameters:
13227
13400
  - "$ref": "#/components/parameters/subscription_id"
13228
13401
  - "$ref": "#/components/parameters/ids"
@@ -13327,9 +13500,9 @@ paths:
13327
13500
  tags:
13328
13501
  - coupon_redemption
13329
13502
  operationId: list_subscription_coupon_redemptions
13330
- summary: Show the coupon redemptions for a subscription
13331
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
13332
- to use pagination in the API and Client Libraries.
13503
+ summary: List the coupon redemptions for a subscription
13504
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
13505
+ to learn how to use pagination in the API and Client Libraries.
13333
13506
  parameters:
13334
13507
  - "$ref": "#/components/parameters/subscription_id"
13335
13508
  - "$ref": "#/components/parameters/ids"
@@ -13627,8 +13800,8 @@ paths:
13627
13800
  - transaction
13628
13801
  operationId: list_transactions
13629
13802
  summary: List a site's transactions
13630
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
13631
- to use pagination in the API and Client Libraries.
13803
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
13804
+ to learn how to use pagination in the API and Client Libraries.
13632
13805
  parameters:
13633
13806
  - "$ref": "#/components/parameters/ids"
13634
13807
  - "$ref": "#/components/parameters/limit"
@@ -14907,9 +15080,9 @@ paths:
14907
15080
  tags:
14908
15081
  - dunning_campaigns
14909
15082
  operationId: list_dunning_campaigns
14910
- summary: Show the dunning campaigns for a site
14911
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
14912
- to use pagination in the API and Client Libraries.
15083
+ summary: List the dunning campaigns for a site
15084
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
15085
+ to learn how to use pagination in the API and Client Libraries.
14913
15086
  parameters:
14914
15087
  - "$ref": "#/components/parameters/sort_dates"
14915
15088
  responses:
@@ -14939,7 +15112,7 @@ paths:
14939
15112
  tags:
14940
15113
  - dunning_campaigns
14941
15114
  operationId: get_dunning_campaign
14942
- summary: Show the settings for a dunning campaign
15115
+ summary: Fetch a dunning campaign
14943
15116
  responses:
14944
15117
  '200':
14945
15118
  description: Settings for a dunning campaign.
@@ -15011,8 +15184,8 @@ paths:
15011
15184
  - invoice_templates
15012
15185
  operationId: list_invoice_templates
15013
15186
  summary: Show the invoice templates for a site
15014
- description: See the [Pagination Guide](/guides/pagination.html) to learn how
15015
- to use pagination in the API and Client Libraries.
15187
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
15188
+ to learn how to use pagination in the API and Client Libraries.
15016
15189
  parameters:
15017
15190
  - "$ref": "#/components/parameters/sort_dates"
15018
15191
  responses:
@@ -15042,7 +15215,7 @@ paths:
15042
15215
  tags:
15043
15216
  - invoice_templates
15044
15217
  operationId: get_invoice_template
15045
- summary: Show the settings for an invoice template
15218
+ summary: Fetch an invoice template
15046
15219
  responses:
15047
15220
  '200':
15048
15221
  description: Settings for an invoice template.
@@ -15077,7 +15250,7 @@ paths:
15077
15250
  tags:
15078
15251
  - account
15079
15252
  operationId: list_entitlements
15080
- summary: Show all entitlements granted to an account
15253
+ summary: List entitlements granted to an account
15081
15254
  responses:
15082
15255
  '200':
15083
15256
  description: A list of the entitlements granted to an account.
@@ -15098,6 +15271,38 @@ paths:
15098
15271
  schema:
15099
15272
  "$ref": "#/components/schemas/Error"
15100
15273
  x-code-samples: []
15274
+ "/accounts/{account_id}/external_subscriptions":
15275
+ parameters:
15276
+ - "$ref": "#/components/parameters/account_id"
15277
+ get:
15278
+ tags:
15279
+ - account
15280
+ operationId: list_account_external_subscriptions
15281
+ summary: List an account's external subscriptions
15282
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
15283
+ to learn how to use pagination in the API and Client Libraries.
15284
+ parameters:
15285
+ - "$ref": "#/components/parameters/sort_dates"
15286
+ responses:
15287
+ '200':
15288
+ description: A list of the the external_subscriptions on an account.
15289
+ content:
15290
+ application/json:
15291
+ schema:
15292
+ "$ref": "#/components/schemas/ExternalSubscriptionList"
15293
+ '404':
15294
+ description: Incorrect account.
15295
+ content:
15296
+ application/json:
15297
+ schema:
15298
+ "$ref": "#/components/schemas/Error"
15299
+ default:
15300
+ description: Unexpected error.
15301
+ content:
15302
+ application/json:
15303
+ schema:
15304
+ "$ref": "#/components/schemas/Error"
15305
+ x-code-samples: []
15101
15306
  servers:
15102
15307
  - url: https://v3.recurly.com
15103
15308
  - url: https://v3.eu.recurly.com
@@ -15165,6 +15370,20 @@ components:
15165
15370
  required: true
15166
15371
  schema:
15167
15372
  type: string
15373
+ external_product_id:
15374
+ name: external_product_id
15375
+ in: path
15376
+ description: External product id
15377
+ required: true
15378
+ schema:
15379
+ type: string
15380
+ external_subscription_id:
15381
+ name: external_subscription_id
15382
+ in: path
15383
+ description: External subscription id
15384
+ required: true
15385
+ schema:
15386
+ type: string
15168
15387
  invoice_template_id:
15169
15388
  name: invoice_template_id
15170
15389
  in: path
@@ -16219,9 +16438,15 @@ components:
16219
16438
  processing_prepayment_amount:
16220
16439
  type: number
16221
16440
  format: float
16222
- title: Amount
16441
+ title: Processing Prepayment Amount
16223
16442
  description: Total amount for the prepayment credit invoices in a `processing`
16224
16443
  state on the account.
16444
+ available_credit_amount:
16445
+ type: number
16446
+ format: float
16447
+ title: Available Credit Amount
16448
+ description: Total amount of the open balances on credit invoices for the
16449
+ account.
16225
16450
  InvoiceAddress:
16226
16451
  allOf:
16227
16452
  - "$ref": "#/components/schemas/Address"
@@ -16369,6 +16594,8 @@ components:
16369
16594
  "$ref": "#/components/schemas/AddOnTypeEnum"
16370
16595
  usage_type:
16371
16596
  "$ref": "#/components/schemas/UsageTypeEnum"
16597
+ usage_calculation_type:
16598
+ "$ref": "#/components/schemas/UsageCalculationTypeEnum"
16372
16599
  usage_percentage:
16373
16600
  type: number
16374
16601
  format: float
@@ -16522,6 +16749,8 @@ components:
16522
16749
  "$ref": "#/components/schemas/AddOnTypeCreateEnum"
16523
16750
  usage_type:
16524
16751
  "$ref": "#/components/schemas/UsageTypeCreateEnum"
16752
+ usage_calculation_type:
16753
+ "$ref": "#/components/schemas/UsageCalculationTypeEnum"
16525
16754
  usage_percentage:
16526
16755
  type: number
16527
16756
  format: float
@@ -16682,6 +16911,8 @@ components:
16682
16911
  This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
16683
16912
  if `add_on_type` is usage, `tier_type` is `flat` and `usage_type` is percentage.
16684
16913
  Must be omitted otherwise.
16914
+ usage_calculation_type:
16915
+ "$ref": "#/components/schemas/UsageCalculationTypeEnum"
16685
16916
  measured_unit_id:
16686
16917
  type: string
16687
16918
  title: Measured Unit ID
@@ -16882,7 +17113,7 @@ components:
16882
17113
  token_id:
16883
17114
  type: string
16884
17115
  title: Token ID
16885
- description: A token [generated by Recurly.js](https://developers.recurly.com/reference/recurly-js/#getting-a-token).
17116
+ description: A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
16886
17117
  maxLength: 22
16887
17118
  first_name:
16888
17119
  type: string
@@ -19090,6 +19321,8 @@ components:
19090
19321
  title: Ramp Intervals
19091
19322
  items:
19092
19323
  "$ref": "#/components/schemas/PlanRampInterval"
19324
+ custom_fields:
19325
+ "$ref": "#/components/schemas/CustomFields"
19093
19326
  revenue_schedule_type:
19094
19327
  title: Revenue schedule type
19095
19328
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
@@ -19260,6 +19493,8 @@ components:
19260
19493
  title: Ramp Intervals
19261
19494
  items:
19262
19495
  "$ref": "#/components/schemas/PlanRampInterval"
19496
+ custom_fields:
19497
+ "$ref": "#/components/schemas/CustomFields"
19263
19498
  revenue_schedule_type:
19264
19499
  title: Revenue schedule type
19265
19500
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
@@ -19474,6 +19709,8 @@ components:
19474
19709
  title: Ramp Intervals
19475
19710
  items:
19476
19711
  "$ref": "#/components/schemas/PlanRampInterval"
19712
+ custom_fields:
19713
+ "$ref": "#/components/schemas/CustomFields"
19477
19714
  revenue_schedule_type:
19478
19715
  title: Revenue schedule type
19479
19716
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
@@ -20401,6 +20638,8 @@ components:
20401
20638
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
20402
20639
  tier_type:
20403
20640
  "$ref": "#/components/schemas/TierTypeEnum"
20641
+ usage_calculation_type:
20642
+ "$ref": "#/components/schemas/UsageCalculationTypeEnum"
20404
20643
  usage_timeframe:
20405
20644
  "$ref": "#/components/schemas/UsageTimeframeEnum"
20406
20645
  tiers:
@@ -20491,7 +20730,7 @@ components:
20491
20730
  If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object
20492
20731
  must include one to many tiers with `ending_quantity` and `unit_amount`.
20493
20732
  There must be one tier without an `ending_quantity` value which represents the final tier.
20494
- See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html)
20733
+ See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html)
20495
20734
  for an overview of how to configure quantity-based pricing models.
20496
20735
  percentage_tiers:
20497
20736
  type: array
@@ -20512,7 +20751,7 @@ components:
20512
20751
  description: The percentage taken of the monetary amount of usage tracked.
20513
20752
  This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
20514
20753
  if `add_on_type` is usage and `usage_type` is percentage. Must be omitted
20515
- otherwise. `usage_percentage` does not support tiers. See our [Guide](https://developers.recurly.com/guides/usage-based-billing-guide.html)
20754
+ otherwise. `usage_percentage` does not support tiers. See our [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html)
20516
20755
  for an overview of how to configure usage add-ons.
20517
20756
  revenue_schedule_type:
20518
20757
  title: Revenue schedule type
@@ -22175,6 +22414,184 @@ components:
22175
22414
  type: string
22176
22415
  format: date-time
22177
22416
  description: Time the object was last updated
22417
+ ExternalProduct:
22418
+ type: object
22419
+ description: Product from an external resource such as Apple App or Google Play.
22420
+ properties:
22421
+ id:
22422
+ type: string
22423
+ title: External product ID.
22424
+ description: System-generated unique identifier for an external product
22425
+ ID, e.g. `e28zov4fw0v2`.
22426
+ object:
22427
+ type: string
22428
+ title: Object type
22429
+ name:
22430
+ type: string
22431
+ title: Name
22432
+ description: Name to identify the external product in Recurly.
22433
+ plan:
22434
+ "$ref": "#/components/schemas/PlanMini"
22435
+ created_at:
22436
+ type: string
22437
+ format: date-time
22438
+ description: When the external product was created in Recurly.
22439
+ updated_at:
22440
+ type: string
22441
+ format: date-time
22442
+ description: When the external product was updated in Recurly.
22443
+ external_product_references:
22444
+ type: array
22445
+ title: External Product References
22446
+ description: List of external product references of the external product.
22447
+ items:
22448
+ "$ref": "#/components/schemas/ExternalProductReferenceMini"
22449
+ ExternalProductList:
22450
+ type: object
22451
+ properties:
22452
+ object:
22453
+ type: string
22454
+ title: Object type
22455
+ description: Will always be List.
22456
+ has_more:
22457
+ type: boolean
22458
+ description: Indicates there are more results on subsequent pages.
22459
+ next:
22460
+ type: string
22461
+ description: Path to subsequent page of results.
22462
+ data:
22463
+ type: array
22464
+ items:
22465
+ "$ref": "#/components/schemas/ExternalProduct"
22466
+ ExternalProductReferenceMini:
22467
+ type: object
22468
+ title: External Product Reference details
22469
+ description: External Product Reference details
22470
+ properties:
22471
+ id:
22472
+ type: string
22473
+ title: External Product ID
22474
+ description: System-generated unique identifier for an external product
22475
+ ID, e.g. `e28zov4fw0v2`.
22476
+ object:
22477
+ type: string
22478
+ title: object
22479
+ reference_code:
22480
+ type: string
22481
+ title: reference_code
22482
+ description: A code which associates the external product to a corresponding
22483
+ object or resource in an external platform like the Apple App Store or
22484
+ Google Play Store.
22485
+ external_connection_type:
22486
+ type: string
22487
+ title: external_connection_type
22488
+ description: Source connection platform.
22489
+ created_at:
22490
+ type: string
22491
+ format: date-time
22492
+ description: When the external product was created in Recurly.
22493
+ updated_at:
22494
+ type: string
22495
+ format: date-time
22496
+ description: When the external product was updated in Recurly.
22497
+ ExternalSubscription:
22498
+ type: object
22499
+ description: Subscription from an external resource such as Apple App or Google
22500
+ Play.
22501
+ properties:
22502
+ id:
22503
+ type: string
22504
+ title: External subscription ID
22505
+ description: System-generated unique identifier for an external subscription
22506
+ ID, e.g. `e28zov4fw0v2`.
22507
+ object:
22508
+ type: string
22509
+ title: Object type
22510
+ account:
22511
+ "$ref": "#/components/schemas/AccountMini"
22512
+ external_resource:
22513
+ "$ref": "#/components/schemas/ExternalResourceMini"
22514
+ external_product_reference:
22515
+ "$ref": "#/components/schemas/ExternalProductReferenceMini"
22516
+ last_purchased:
22517
+ type: string
22518
+ format: date-time
22519
+ title: Last purchased
22520
+ description: When a new billing event occurred on the external subscription
22521
+ in conjunction with a recent billing period, reactivation or upgrade/downgrade.
22522
+ auto_renew:
22523
+ type: boolean
22524
+ title: Auto-renew
22525
+ description: An indication of whether or not the external subscription will
22526
+ auto-renew at the expiration date.
22527
+ default: false
22528
+ app_identifier:
22529
+ type: string
22530
+ title: App identifier
22531
+ description: Identifier of the app that generated the external subscription.
22532
+ quantity:
22533
+ type: integer
22534
+ title: Quantity
22535
+ description: An indication of the quantity of a subscribed item's quantity.
22536
+ default: 1
22537
+ minimum: 0
22538
+ activated_at:
22539
+ type: string
22540
+ format: date-time
22541
+ title: Activated at
22542
+ description: When the external subscription was activated in the external
22543
+ platform.
22544
+ expires_at:
22545
+ type: string
22546
+ format: date-time
22547
+ title: Expires at
22548
+ description: When the external subscription expires in the external platform.
22549
+ created_at:
22550
+ type: string
22551
+ format: date-time
22552
+ title: Created at
22553
+ description: When the external subscription was created in Recurly.
22554
+ updated_at:
22555
+ type: string
22556
+ format: date-time
22557
+ title: Updated at
22558
+ description: When the external subscription was updated in Recurly.
22559
+ ExternalSubscriptionList:
22560
+ type: object
22561
+ properties:
22562
+ object:
22563
+ type: string
22564
+ title: Object type
22565
+ description: Will always be List.
22566
+ has_more:
22567
+ type: boolean
22568
+ description: Indicates there are more results on subsequent pages.
22569
+ next:
22570
+ type: string
22571
+ description: Path to subsequent page of results.
22572
+ data:
22573
+ type: array
22574
+ items:
22575
+ "$ref": "#/components/schemas/ExternalSubscription"
22576
+ ExternalResourceMini:
22577
+ type: object
22578
+ title: External Resource mini details
22579
+ properties:
22580
+ id:
22581
+ type: string
22582
+ title: External resource ID
22583
+ description: System-generated unique identifier for an external resource
22584
+ ID, e.g. `e28zov4fw0v2`.
22585
+ object:
22586
+ type: string
22587
+ title: Object type
22588
+ external_object_reference:
22589
+ type: string
22590
+ title: External Object Reference
22591
+ description: Identifier or URL reference where the resource is canonically
22592
+ available in the external platform.
22593
+ maxLength: 255
22594
+ readOnly: true
22178
22595
  CustomerPermission:
22179
22596
  type: object
22180
22597
  properties:
@@ -22367,6 +22784,7 @@ components:
22367
22784
  enum:
22368
22785
  - account
22369
22786
  - item
22787
+ - plan
22370
22788
  - subscription
22371
22789
  RefundTypeEnum:
22372
22790
  type: string
@@ -22392,6 +22810,15 @@ components:
22392
22810
  - percentage
22393
22811
  title: Usage Type
22394
22812
  description: Type of usage, returns usage type if `add_on_type` is `usage`.
22813
+ UsageCalculationTypeEnum:
22814
+ type: string
22815
+ description: The type of calculation to be employed for an add-on. Cumulative
22816
+ billing will sum all usage records created in the current billing cycle. Last-in-period
22817
+ billing will apply only the most recent usage record in the billing period. If
22818
+ no value is specified, cumulative billing will be used.
22819
+ enum:
22820
+ - cumulative
22821
+ - last_in_period
22395
22822
  BillingStatusEnum:
22396
22823
  type: string
22397
22824
  default: unbilled
@@ -22596,7 +23023,7 @@ components:
22596
23023
  title: Usage Type
22597
23024
  description: |
22598
23025
  Type of usage, required if `add_on_type` is `usage`. See our
22599
- [Guide](https://developers.recurly.com/guides/usage-based-billing-guide.html) for an
23026
+ [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html) for an
22600
23027
  overview of how to configure usage add-ons.
22601
23028
  TierTypeEnum:
22602
23029
  type: string
@@ -22604,7 +23031,7 @@ components:
22604
23031
  description: |
22605
23032
  The pricing model for the add-on. For more information,
22606
23033
  [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our
22607
- [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how
23034
+ [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how
22608
23035
  to configure quantity-based pricing models.
22609
23036
  default: flat
22610
23037
  enum:
@@ -22931,7 +23358,9 @@ components:
22931
23358
  - Dankort
22932
23359
  - Diners Club
22933
23360
  - Discover
23361
+ - ELO
22934
23362
  - Forbrugsforeningen
23363
+ - Hipercard
22935
23364
  - JCB
22936
23365
  - Laser
22937
23366
  - Maestro