---
updatedAt: 2026-11-05T23:25:26.000Z
agentTools:
  siteIndex: https://docs.recurly.com/llms.txt
  projectIndex: https://docs.recurly.com/recurly-subscriptions/v2021-02-25/llms.txt
---

# Create a new subscription change

Calling this will overwrite an existing, pending subscription change.

If a subscription has a pending change, and a change is submitted which matches
the subscription as it currently exists, the pending change will be deleted,
and you will receive a 204 No Content response.

If a subscription has no pending
change, and a change is submitted which matches the subscription as it currently
exists, a 422 Unprocessable Entity validation error will be returned.


# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Recurly V3 API",
    "description": "# Getting Started\n\n## Versioning\nThe V3 API is versioned to allow stability for integrators and\nflexibility for Recurly to continue making improvements.\n\nThe versions follow a format that incorporates the approximate date the\nchanges were released in a YYYY-MM-DD format, e.g. `v2021-02-25`.\n\n> *WARNING*: Specifying a version is required to get a successful response.\n\nEach request should specify a version using the `Accept` header:\n* `Accept: application/vnd.recurly.v2021-02-25`\n* `Accept: application/vnd.recurly.v2021-02-25+json`\n\nAll responses will include a `Recurly-Version` header with the API version\nused to process the request:\n```\nRecurly-Version: recurly.v2021-02-25\n```\n\nRecurly's client libraries correspond with API versions as listed below.\n\n<table>\n  <tr>\n    <th>API Version</th>\n    <th>Client Library Version</th>\n  </tr>\n  <tr>\n    <td>v2021-02-25</td>\n    <td>4.x</td>\n  </tr>\n  <tr>\n    <td>v2019-10-10</td>\n    <td>3.x</td>\n  </tr>\n</table>\n\nClient library releases:\n\n* [Node.js](https://github.com/recurly/recurly-client-node/releases)\n* [Python](https://github.com/recurly/recurly-client-python/releases)\n* [.NET](https://github.com/recurly/recurly-client-dotnet/releases)\n* [Ruby](https://github.com/recurly/recurly-client-ruby/releases)\n* [Java](https://github.com/recurly/recurly-client-java/releases)\n* [PHP](https://github.com/recurly/recurly-client-php/releases)\n* [Go](https://github.com/recurly/recurly-client-go/releases)\n\nClient libraries follow semantic versioning. For example, [Ruby client library\nversion 3.18.1](https://github.com/recurly/recurly-client-ruby/releases/tag/3.18.1)\nrepresents major version `3`, minor version `18` with patch `1`.\n\nWe encourage you to update to the latest version of the API and corresponding client library,\nas most recent versions are more performant than their predecessors. See the\n[changelog](https://recurly.com/developers/api/changelog.html) for a comprehensive list of changes\nintroduced in the latest API version.\n\n### Default Versions\nSpecifying a version is required to get a successful response. If you wish to\nreceive the latest version and are willing to accept the risk of breaking changes,\nyou may specify a version of `latest`.\n\nThe following media types will default the newest version of\nthe API:\n\n* `application/vnd.recurly.latest`\n* `application/vnd.recurly.latest+json`\n\n### Deprecation\nResponses for a deprecated version request will return two headers:\n```\nRecurly-Deprecated: TRUE\nRecurly-Sunset-Date: 2017-06-01T00:00:00+00:00\n```\nThe sunset date is an ISO-8601 formatted date time after which the version\nwill no longer be accessible.\n\n### Unsupported Versions\nA request for an unsupported version will return a status code of 406 and\nthe body will include a list of supported versions:\n```\n{\n  \"error\": {\n    \"type\": \"invalid_api_version\",\n    \"message\": \"That accept header isn't in the format we use to specify an API version. Try one of these instead:\",\n    \"acceptable_accept_headers\": [\n      \"application/vnd.recurly.v2016-03-01\",\n      \"application/vnd.recurly.v2016-04-27\",\n      \"application/vnd.recurly.v2016-07-27\",\n      \"application/vnd.recurly.v2016-12-15\",\n      \"application/vnd.recurly.v2017-01-12\",\n      \"application/vnd.recurly.v2017-09-30\",\n      \"application/vnd.recurly.v2018-01-24\",\n      \"application/vnd.recurly.v2018-05-10\",\n      \"application/vnd.recurly.v2018-06-06\",\n      \"application/vnd.recurly.v2018-08-09\",\n      \"application/vnd.recurly.v2019-10-10\",\n      \"application/vnd.recurly.v2021-02-25\"\n    ]\n  }\n}\n```\n\n## Error Messages\nError messages sent via the Recurly API are generally directed at\ndevelopers and those who are familiar with API technology. When using the\nAPI and passing error messages to target systems, be mindful that\nthese messages may not make sense in the context of the target system.\nPlease consider changing these messages in the target system to be better\nsuited to the audience of the system.\n\nPlease see [transaction error codes](https://recurly.com/developers/pages/api-transaction-errors.html) for more details.\n\n## Pagination\n### Response Schema\nEvery GET listing endpoint returns a response with the same schema:\n\n```\n{\n  \"object\":   \"list\",         // Always \"list\"\n  \"has_more\": true,           // false if this is the last page of data\n  \"next\":     \"https://...\",  // A URL pointing to the next page of data\n  \"data\":     []              // The data for this page as an array\n}\n```\n\nTo page through every record, your code should continually call the URL\nat `next` until `has_more` is `false`.\n\n### Query Parameters\nMost GET listing endpoints take query parameters that allow filtering\nand sorting the results. Some endpoints have additional parameters, which are\ndocumented on the respective endpoints, but most support the\nfollowing parameters:\n\n* `ids`: A comma separated list of ids to match.\n* `limit`: The number of records to return per page.\n* `order`: The sort order of records.\n* `sort`: The date field to use in sorting.\n* `begin_time`: The start datetime to filter (ISO 8601).\n* `end_time`: The end datetime to filter (ISO 8601).\n\n### Counting with HEAD\nEvery GET listing endpoint also supports the HEAD HTTP method. Making a\nhead request to the endpoint results in an empty body and an additional\n`Recurly-Total-Records` header. This is a count of the total number of records\nthat the endpoint will return, taking into account the current filtering query\nparameters.\n\n## Limits\nIn order to provide a fast response time to all our customers, we may rate\nlimit excessive requests. By default, new Recurly sites have the following\nAPI rate limits:\n\n* Sandbox sites: 400 requests/min. All requests count towards the rate limit.\n* Production sites: 1,000 requests/min. Only GET requests count towards the rate limit.\n\nOnce your site moves into production mode, Recurly will only rate limit\nGET requests. New subscriptions, account modifications, and other requests\nusing POST, PUT, or DELETE methods will not count against your rate limit.\n\nThe rate limit is calculated over a sliding 5 minute window. This means a\nproduction site could make 4,000 requests within one minute and not hit\nthe rate limit so long as the site made less than 1,000 requests during\nthe prior 4 minutes.\n\nIf an API request exceeds the rate limit, the API will return a\n`429 Too Many Requests` HTTP status. If your business needs a higher\nlimit, please contact support.\n\nThe rate limit applied to your client can be determined with the\n`X-RateLimit-Limit` header, and the number of remaining requests is sent\nin the `X-RateLimit-Remaining` header. Finally, the `X-RateLimit-Reset`\nheader contains an integer value representing the time, measured in\nseconds since the UNIX Epoch, at which the request count will be reset.\n\n## Idempotent Requests\n\nRecurly supports idempotent requests via the `Idempotency-Key` header for\n`POST`, `PUT`, `PATCH`, and `DELETE` requests. This allows API clients to\nsafely retry these requests without risk of duplicate operations.\n\nWhen you send a request with an `Idempotency-Key` header, Recurly stores the\nresponse for **1 hour**. If you send an identical request (same key, method,\npath, and API key) within that window, Recurly replays the original response\nrather than processing a new one. The replay response includes an\n`Idempotency-Prior: true` header.\n\nIf a request with the same key is **already in flight** when a second arrives,\nthe server returns `409 Conflict` with `Recurly-Should-Retry: true` and a\n`Retry-After` header indicating how long to wait in seconds before retrying.\n\n> **Note:** `429 Too Many Requests` responses are intentionally **not** cached.\n> You may retry freely once your rate limit resets without risk of unintended\n> replay behavior.\n\nKeys must be **255 characters or fewer**. Keys exceeding this limit will\nreceive a `400 Bad Request` response. We recommend using a UUID v4 as your\nkey to guarantee uniqueness.\n\n> **SDK support:** Native `Idempotency-Key` management (automatic key\n> generation, retry handling, and replay detection) is currently supported only\n> in the **Ruby SDK**. When using other SDKs or raw HTTP clients, you must\n> supply and manage the `Idempotency-Key` header yourself.\n\n## Change Log\n\nA 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).\n",
    "version": "v2021-02-25"
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "x-tagGroups": [
    {
      "name": "Customers",
      "tags": [
        "Account",
        "Account Note",
        "Account Acquisition Info",
        "Billing Info",
        "Billing Infos",
        "Coupon Redemption",
        "Subscription",
        "Subscription Change",
        "Usage",
        "Shipping Address"
      ]
    },
    {
      "name": "Invoices and Payments",
      "tags": [
        "Purchase",
        "Invoice",
        "Line Item",
        "Credit Payment",
        "Transaction",
        "Revenue Recovery",
        "Gift Cards"
      ]
    },
    {
      "name": "Products and Promotions",
      "tags": [
        "Item",
        "Plan",
        "Add-on",
        "Measured Unit",
        "Coupon",
        "Unique Coupon Code",
        "Price Segment"
      ]
    },
    {
      "name": "Configuration",
      "tags": [
        "Site",
        "Custom Field Definition",
        "Shipping Method",
        "Dunning Campaigns",
        "Business Entities",
        "Automated Exports",
        "General Ledger Account",
        "Performance Obligations",
        "Invoice Templates"
      ]
    },
    {
      "name": "App Management",
      "tags": [
        "External Subscription",
        "External Invoice",
        "External Product",
        "External Account",
        "External Product Reference",
        "External Payment Phase"
      ]
    }
  ],
  "tags": [
    {
      "name": "Subscription Change",
      "description": "Subscription changes alter subscription in a way that might affect the invoiced amount, such as changing the plan, add-ons, quantities, or shipping address. Changes can be made immediately in the current billing cycle or scheduled to take place at the next renewal."
    }
  ],
  "paths": {
    "/subscriptions/{subscription_id}/change": {
      "post": {
        "tags": [
          "Subscription Change"
        ],
        "operationId": "create_subscription_change",
        "summary": "Create a new subscription change",
        "description": "Calling this will overwrite an existing, pending subscription change.\n\nIf a subscription has a pending change, and a change is submitted which matches\nthe subscription as it currently exists, the pending change will be deleted,\nand you will receive a 204 No Content response.\n\nIf a subscription has no pending\nchange, and a change is submitted which matches the subscription as it currently\nexists, a 422 Unprocessable Entity validation error will be returned.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/accept_header"
          },
          {
            "$ref": "#/components/parameters/subscription_id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionChangeCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "A subscription change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionChange"
                }
              }
            }
          },
          "204": {
            "description": "The previous pending change was reverted."
          },
          "404": {
            "description": "Incorrect site ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A validation error such as \"Subscription hasn't been changed\" or error running the verification transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorMayHaveTransaction"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Node.js",
            "source": "try {\n  const subscriptionChangeCreate = {\n    planCode: newPlanCode,\n    timeframe: 'now'\n  }\n\n  const change = await client.createSubscriptionChange(subscriptionId, subscriptionChangeCreate)\n  console.log('Created subscription change: ', change.id)\n} catch (err) {\n  if (err instanceof recurly.errors.ValidationError) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in err.params\n    console.log('Failed validation', err.params)\n  } else {\n    // If we don't know what to do with the err, we should\n    // probably re-raise and let our web framework and logger handle it\n    console.log('Unknown Error: ', err)\n  }\n}\n"
          },
          {
            "lang": "Python",
            "source": "try:\n    sub_change_create = {\"plan_code\": new_plan_code, \"timeframe\": \"now\"}\n    change = client.create_subscription_change(subscription_id, sub_change_create)\n    print(\"Created SubscriptionChange %s\" % change)\nexcept recurly.errors.ValidationError as e:\n    # If the request was invalid, you may want to tell your user\n    # why. You can find the invalid params and reasons in e.error.params\n    print(\"ValidationError: %s\" % e.error.message)\n    print(e.error.params)\n"
          },
          {
            "lang": ".NET",
            "source": "try\n{\n    var changeReq = new SubscriptionChangeCreate()\n    {\n        PlanCode = newPlanCode,\n        Timeframe = ChangeTimeframe.Now // choose \"now\" or \"renewal\"\n    };\n    SubscriptionChange change = client.CreateSubscriptionChange(subscriptionId, changeReq);\n    Console.WriteLine($\"Created subscription change {change.Id}\");\n}\ncatch (Recurly.Errors.Validation ex)\n{\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in ex.Error.Params\n    Console.WriteLine($\"Failed validation: {ex.Error.Message}\");\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n    // Use ApiError to catch a generic error from the API\n    Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
          },
          {
            "lang": "Ruby",
            "source": "begin\n  change_create = {\n    timeframe: \"now\",\n    plan_code: new_plan_code\n  }\n  change = @client.create_subscription_change(\n    subscription_id: subscription_id,\n    body: change_create\n  )\n  puts \"Created SubscriptionChange #{change}\"\nrescue Recurly::Errors::ValidationError => e\n  # If the request was invalid, you may want to tell your user\n  # why. You can find the invalid params and reasons in e.recurly_error.params\n  puts \"ValidationError: #{e.recurly_error.params}\"\nend\n"
          },
          {
            "lang": "Java",
            "source": "try {\n    SubscriptionChangeCreate changeCreate = new SubscriptionChangeCreate();\n\n    changeCreate.setPlanCode(newPlanCode);\n    changeCreate.setTimeframe(Constants.ChangeTimeframe.NOW); // choose \"now\" or \"renewal\"\n\n    SubscriptionChange change = client.createSubscriptionChange(subscriptionId, changeCreate);\n    System.out.println(\"Created subscription \" + change.getId());\n} catch (ValidationException e) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in e.getError().getParams()\n    System.out.println(\"Failed validation: \" + e.getError().getMessage());\n} catch (ApiException e) {\n    // Use ApiException to catch a generic error from the API\n    System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n"
          },
          {
            "lang": "PHP",
            "source": "try {\n    $change_create = [\n        \"plan_code\" => $new_plan_code,\n        \"timeframe\" => \"now\"\n    ];\n    $change = $client->createSubscriptionChange($subscription_id, $change_create);\n\n    echo 'Created Subscription Change:' . PHP_EOL;\n    var_dump($change);\n} catch (\\Recurly\\Errors\\Validation $e) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in err.params\n    var_dump($e);\n} catch (\\Recurly\\RecurlyError $e) {\n    // If we don't know what to do with the err, we should\n    // probably re-raise and let our web framework and logger handle it\n    var_dump($e);\n}\n"
          },
          {
            "lang": "Go",
            "source": "changeReq := &recurly.SubscriptionChangeCreate{\n\tPlanCode:  recurly.String(newPlanCode),\n\tTimeframe: recurly.String(\"now\"),\n}\nsubscriptionChange, err := client.CreateSubscriptionChange(subID, changeReq)\nif e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Subscription changed: %s\", subscriptionChange.Id)"
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "node",
              "code": "try {\n  const subscriptionChangeCreate = {\n    planCode: newPlanCode,\n    timeframe: 'now'\n  }\n\n  const change = await client.createSubscriptionChange(subscriptionId, subscriptionChangeCreate)\n  console.log('Created subscription change: ', change.id)\n} catch (err) {\n  if (err instanceof recurly.errors.ValidationError) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in err.params\n    console.log('Failed validation', err.params)\n  } else {\n    // If we don't know what to do with the err, we should\n    // probably re-raise and let our web framework and logger handle it\n    console.log('Unknown Error: ', err)\n  }\n}\n",
              "name": "Node.js"
            },
            {
              "language": "python",
              "code": "try:\n    sub_change_create = {\"plan_code\": new_plan_code, \"timeframe\": \"now\"}\n    change = client.create_subscription_change(subscription_id, sub_change_create)\n    print(\"Created SubscriptionChange %s\" % change)\nexcept recurly.errors.ValidationError as e:\n    # If the request was invalid, you may want to tell your user\n    # why. You can find the invalid params and reasons in e.error.params\n    print(\"ValidationError: %s\" % e.error.message)\n    print(e.error.params)\n",
              "name": "Python"
            },
            {
              "language": "csharp",
              "code": "try\n{\n    var changeReq = new SubscriptionChangeCreate()\n    {\n        PlanCode = newPlanCode,\n        Timeframe = ChangeTimeframe.Now // choose \"now\" or \"renewal\"\n    };\n    SubscriptionChange change = client.CreateSubscriptionChange(subscriptionId, changeReq);\n    Console.WriteLine($\"Created subscription change {change.Id}\");\n}\ncatch (Recurly.Errors.Validation ex)\n{\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in ex.Error.Params\n    Console.WriteLine($\"Failed validation: {ex.Error.Message}\");\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n    // Use ApiError to catch a generic error from the API\n    Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n",
              "name": ".NET"
            },
            {
              "language": "ruby",
              "code": "begin\n  change_create = {\n    timeframe: \"now\",\n    plan_code: new_plan_code\n  }\n  change = @client.create_subscription_change(\n    subscription_id: subscription_id,\n    body: change_create\n  )\n  puts \"Created SubscriptionChange #{change}\"\nrescue Recurly::Errors::ValidationError => e\n  # If the request was invalid, you may want to tell your user\n  # why. You can find the invalid params and reasons in e.recurly_error.params\n  puts \"ValidationError: #{e.recurly_error.params}\"\nend\n",
              "name": "Ruby"
            },
            {
              "language": "java",
              "code": "try {\n    SubscriptionChangeCreate changeCreate = new SubscriptionChangeCreate();\n\n    changeCreate.setPlanCode(newPlanCode);\n    changeCreate.setTimeframe(Constants.ChangeTimeframe.NOW); // choose \"now\" or \"renewal\"\n\n    SubscriptionChange change = client.createSubscriptionChange(subscriptionId, changeCreate);\n    System.out.println(\"Created subscription \" + change.getId());\n} catch (ValidationException e) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in e.getError().getParams()\n    System.out.println(\"Failed validation: \" + e.getError().getMessage());\n} catch (ApiException e) {\n    // Use ApiException to catch a generic error from the API\n    System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n",
              "name": "Java"
            },
            {
              "language": "php",
              "code": "try {\n    $change_create = [\n        \"plan_code\" => $new_plan_code,\n        \"timeframe\" => \"now\"\n    ];\n    $change = $client->createSubscriptionChange($subscription_id, $change_create);\n\n    echo 'Created Subscription Change:' . PHP_EOL;\n    var_dump($change);\n} catch (\\Recurly\\Errors\\Validation $e) {\n    // If the request was not valid, you may want to tell your user\n    // why. You can find the invalid params and reasons in err.params\n    var_dump($e);\n} catch (\\Recurly\\RecurlyError $e) {\n    // If we don't know what to do with the err, we should\n    // probably re-raise and let our web framework and logger handle it\n    var_dump($e);\n}\n",
              "name": "PHP"
            },
            {
              "language": "go",
              "code": "changeReq := &recurly.SubscriptionChangeCreate{\n\tPlanCode:  recurly.String(newPlanCode),\n\tTimeframe: recurly.String(\"now\"),\n}\nsubscriptionChange, err := client.CreateSubscriptionChange(subID, changeReq)\nif e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Subscription changed: %s\", subscriptionChange.Id)",
              "name": "Go"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://v3.recurly.com"
    },
    {
      "url": "https://v3.eu.recurly.com"
    }
  ],
  "components": {
    "parameters": {
      "accept_header": {
        "name": "Accept",
        "in": "header",
        "description": "The API version to use for this request, e.g. `application/vnd.recurly.v2021-02-25`. Requests without a versioned `Accept` header return a 406 response.",
        "required": true,
        "schema": {
          "default": "application/vnd.recurly.v2021-02-25",
          "type": "string",
          "enum": [
            "application/vnd.recurly.v2021-02-25",
            "application/vnd.recurly.v2021-02-25+json"
          ]
        }
      },
      "subscription_id": {
        "name": "subscription_id",
        "in": "path",
        "description": "Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "description": "Enter the API key as the username and set the password to an empty string. You can locate and manage your API keys from the [API Credentials](https://app.recurly.com/go/developer/api_keys) page.",
        "scheme": "basic"
      }
    },
    "schemas": {
      "AccountMini": {
        "type": "object",
        "title": "Account mini details",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "description": "The unique identifier of the account.",
            "maxLength": 50
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "The email address used for communicating with this customer.",
            "maxLength": 255
          },
          "first_name": {
            "type": "string",
            "maxLength": 255
          },
          "last_name": {
            "type": "string",
            "maxLength": 255
          },
          "company": {
            "type": "string",
            "maxLength": 255
          },
          "parent_account_id": {
            "type": "string",
            "maxLength": 13
          },
          "bill_to": {
            "type": "string",
            "maxLength": 6
          },
          "dunning_campaign_id": {
            "type": "string",
            "title": "Dunning Campaign ID",
            "description": "Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used."
          }
        }
      },
      "InvoiceAddress": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Address"
          },
          {
            "$ref": "#/components/schemas/AddressWithName"
          }
        ],
        "type": "object",
        "properties": {
          "name_on_account": {
            "type": "string",
            "title": "Name on account"
          },
          "company": {
            "type": "string",
            "title": "Company"
          }
        }
      },
      "Address": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "title": "Phone number"
          },
          "street1": {
            "type": "string",
            "title": "Street 1",
            "maxLength": 50
          },
          "street2": {
            "type": "string",
            "title": "Street 2",
            "maxLength": 50
          },
          "city": {
            "type": "string",
            "title": "City"
          },
          "region": {
            "type": "string",
            "title": "State/Province",
            "description": "State or province."
          },
          "postal_code": {
            "type": "string",
            "title": "Zip/Postal code",
            "description": "Zip or postal code."
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "Country, 2-letter ISO 3166-1 alpha-2 code."
          },
          "geo_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled."
          }
        }
      },
      "AddressWithName": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Address"
          }
        ],
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "title": "First name"
          },
          "last_name": {
            "type": "string",
            "title": "Last name"
          }
        }
      },
      "AddOnMini": {
        "type": "object",
        "title": "Add-on mini details",
        "description": "Just the important parts.",
        "properties": {
          "id": {
            "type": "string",
            "title": "Add-on ID",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "title": "Add-on code",
            "description": "The unique identifier for the add-on within its plan.",
            "maxLength": 50
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Describes your add-on and will appear in subscribers' invoices.",
            "maxLength": 255
          },
          "add_on_type": {
            "type": "string",
            "enum": [
              "fixed",
              "usage"
            ],
            "title": "Add-on Type",
            "description": "Whether the add-on type is fixed, or usage-based."
          },
          "usage_type": {
            "type": "string",
            "enum": [
              "price",
              "percentage"
            ],
            "title": "Usage Type",
            "description": "Type of usage, returns usage type if `add_on_type` is `usage`."
          },
          "usage_percentage": {
            "type": "number",
            "format": "float",
            "title": "Usage Percentage",
            "description": "The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0."
          },
          "measured_unit_id": {
            "type": "string",
            "title": "Measured Unit ID",
            "description": "System-generated unique identifier for an measured unit associated with the add-on.",
            "maxLength": 13
          },
          "item_id": {
            "type": "string",
            "title": "Item ID",
            "maxLength": 13,
            "readOnly": true
          },
          "external_sku": {
            "type": "string",
            "title": "External SKU",
            "description": "Optional, stock keeping unit to link the item to other inventory systems.",
            "maxLength": 50,
            "readOnly": true
          },
          "accounting_code": {
            "type": "string",
            "title": "Accounting code",
            "description": "Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code.",
            "pattern": "/^[a-z0-9_+-]+$/",
            "maxLength": 20
          }
        }
      },
      "LineItemDiscount": {
        "type": "object",
        "title": "Line item discount",
        "description": "A discount applied to a line item charge by a coupon redemption.",
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type",
            "description": "Will always be `line_item_discount`.",
            "readOnly": true
          },
          "coupon_id": {
            "type": "string",
            "title": "Coupon ID",
            "description": "The ID of the coupon that generated this discount.",
            "readOnly": true
          },
          "coupon_redemption_id": {
            "type": "string",
            "title": "Coupon Redemption ID",
            "description": "The ID of the coupon redemption that generated this discount.",
            "readOnly": true
          },
          "order_applied": {
            "type": "integer",
            "title": "Order applied",
            "description": "The order in which this discount was applied when multiple coupons were redeemed.",
            "readOnly": true
          },
          "discount_amount": {
            "type": "number",
            "format": "float",
            "title": "Discount amount",
            "description": "The amount discounted on this line item by this coupon redemption.",
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3,
            "readOnly": true
          }
        }
      },
      "CouponDiscount": {
        "type": "object",
        "description": "Details of the discount a coupon applies. Will contain a `type`\nproperty and one of the following properties: `percent`, `fixed`, `trial`.\n",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "fixed",
              "free_trial",
              "percent"
            ]
          },
          "percent": {
            "description": "This is only present when `type=percent`.",
            "type": "integer"
          },
          "currencies": {
            "type": "array",
            "description": "This is only present when `type=fixed`.",
            "items": {
              "$ref": "#/components/schemas/CouponDiscountPricing"
            }
          },
          "trial": {
            "type": "object",
            "x-class-name": "CouponDiscountTrial",
            "description": "This is only present when `type=free_trial`.",
            "properties": {
              "unit": {
                "title": "Trial unit",
                "description": "Temporal unit of the free trial. When `billing_period`, `length` represents the number of billing cycles.",
                "type": "string",
                "enum": [
                  "day",
                  "month",
                  "week",
                  "billing_period"
                ]
              },
              "length": {
                "type": "integer",
                "title": "Trial length",
                "description": "Trial length measured in the units specified by the sibling `unit` property"
              }
            }
          }
        }
      },
      "CouponDiscountPricing": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Discount Amount",
            "description": "Value of the fixed discount that this coupon applies."
          }
        }
      },
      "CouponMini": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Coupon ID",
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "title": "Coupon code",
            "description": "The code the customer enters to redeem the coupon."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The internal name for the coupon."
          },
          "state": {
            "title": "State",
            "description": "Indicates if the coupon is redeemable, and if it is not, why.",
            "type": "string",
            "enum": [
              "expired",
              "maxed_out",
              "redeemable"
            ]
          },
          "discount": {
            "$ref": "#/components/schemas/CouponDiscount"
          },
          "coupon_type": {
            "title": "Coupon type (TODO: implement coupon generation)",
            "description": "Whether the coupon is \"single_code\" or \"bulk\". Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.",
            "type": "string",
            "enum": [
              "bulk",
              "single_code"
            ]
          },
          "expired_at": {
            "type": "string",
            "title": "Expired at",
            "description": "The date and time the coupon was expired early or reached its `max_redemptions`.",
            "format": "date-time"
          }
        }
      },
      "CouponRedemptionRemainingDuration": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "title": "Duration Type",
            "description": "The coupon's duration type. `temporal` includes an `expires_at` timestamp. `billing_periods` includes a `redemptions_remaining` count of billing cycles. `forever` and `single_use` have no additional fields.",
            "readOnly": true,
            "enum": [
              "forever",
              "single_use",
              "temporal",
              "billing_periods"
            ]
          },
          "expires_at": {
            "type": "string",
            "title": "Expires at",
            "format": "date-time",
            "description": "Present when `type` is `temporal`. The datetime after which this redemption will no longer apply.",
            "readOnly": true
          },
          "redemptions_remaining": {
            "type": "integer",
            "title": "Redemptions Remaining",
            "description": "The number of redemption periods remaining for which this coupon will still apply.",
            "readOnly": true
          }
        }
      },
      "CouponRedemptionMini": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Coupon Redemption ID",
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "description": "Will always be `coupon`.",
            "readOnly": true
          },
          "coupon": {
            "$ref": "#/components/schemas/CouponMini"
          },
          "state": {
            "title": "Coupon Redemption state",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "remaining_duration": {
            "readOnly": true,
            "$ref": "#/components/schemas/CouponRedemptionRemainingDuration"
          },
          "discounted": {
            "type": "number",
            "format": "float",
            "title": "Amount Discounted",
            "description": "The amount that was discounted upon the application of the coupon, formatted with the currency."
          },
          "created_at": {
            "type": "string",
            "title": "Created at",
            "format": "date-time",
            "readOnly": true
          },
          "remaining_discount": {
            "type": "number",
            "format": "float",
            "title": "Remaining discount",
            "description": "The remaining discount budget of a draw_down application mode coupon, formatted with the currency. Null when the coupon does not use the draw_down application mode or its budget resets each billing period."
          },
          "discount_period_ends_at": {
            "type": "string",
            "title": "Discount period ends at",
            "description": "The end of the current discount period for a draw_down application mode coupon with a time-limited duration. Null when the coupon does not use the draw_down application mode with a time-limited duration.",
            "format": "date-time"
          }
        }
      },
      "CreditPayment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Credit Payment ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "uuid": {
            "type": "string",
            "title": "Recurly UUID",
            "description": "The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.",
            "maxLength": 32
          },
          "action": {
            "title": "Action",
            "description": "The action for which the credit was created.",
            "type": "string",
            "enum": [
              "payment",
              "reduction",
              "refund",
              "write_off"
            ]
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "applied_to_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "original_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Amount",
            "description": "Total credit payment amount applied to the charge invoice."
          },
          "original_credit_payment_id": {
            "type": "string",
            "title": "Original Credit Payment ID",
            "description": "For credit payments with action `refund`, this is the credit payment that was refunded.",
            "maxLength": 13
          },
          "refund_transaction": {
            "$ref": "#/components/schemas/Transaction"
          },
          "created_at": {
            "type": "string",
            "title": "Created at",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "title": "Last updated at",
            "format": "date-time",
            "readOnly": true
          },
          "voided_at": {
            "type": "string",
            "title": "Voided at",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "CustomField": {
        "type": "object",
        "title": "Custom field",
        "properties": {
          "name": {
            "type": "string",
            "title": "Field name",
            "description": "Fields must be created in the UI before values can be assigned to them.",
            "pattern": "/^[a-z0-9_-]+$/i",
            "maxLength": 50
          },
          "value": {
            "type": "string",
            "title": "Field value",
            "description": "Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.",
            "maxLength": 255
          },
          "source_record_type": {
            "type": "string",
            "title": "Source record type",
            "description": "The type of record a custom field was automatically copied from.",
            "readOnly": true,
            "enum": [
              "account",
              "plan",
              "product",
              "subscription"
            ]
          },
          "source_record_id": {
            "type": "string",
            "title": "Source record ID",
            "description": "The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.",
            "readOnly": true
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "CustomFields": {
        "type": "array",
        "title": "Custom fields",
        "description": "The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.",
        "items": {
          "$ref": "#/components/schemas/CustomField"
        }
      },
      "InvoiceCustomFields": {
        "type": "array",
        "title": "Custom fields",
        "description": "A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.",
        "readOnly": true,
        "items": {
          "$ref": "#/components/schemas/CustomField"
        }
      },
      "Invoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Invoice ID",
            "readOnly": true
          },
          "uuid": {
            "type": "string",
            "title": "Invoice UUID",
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "type": {
            "title": "Invoice type",
            "description": "Invoices are either charge, credit, or legacy invoices.",
            "type": "string",
            "enum": [
              "charge",
              "credit",
              "legacy"
            ]
          },
          "origin": {
            "title": "Origin",
            "description": "The event that created the invoice.",
            "type": "string",
            "enum": [
              "carryforward_credit",
              "carryforward_gift_credit",
              "credit",
              "external_refund",
              "gift_card",
              "immediate_change",
              "import",
              "line_item_refund",
              "open_amount_refund",
              "prepayment",
              "purchase",
              "refund",
              "renewal",
              "termination",
              "usage_correction",
              "write_off"
            ]
          },
          "state": {
            "title": "Invoice state",
            "type": "string",
            "default": "all",
            "enum": [
              "open",
              "pending",
              "processing",
              "past_due",
              "paid",
              "closed",
              "failed",
              "voided"
            ]
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "billing_info_id": {
            "type": "string",
            "title": "Billing info ID",
            "description": "The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature."
          },
          "subscription_ids": {
            "type": "array",
            "title": "Subscription IDs",
            "description": "If the invoice is charging or refunding for one or more subscriptions, these are their IDs.",
            "items": {
              "type": "string",
              "title": "Subscription ID",
              "maxLength": 13
            }
          },
          "previous_invoice_id": {
            "type": "string",
            "title": "Previous invoice ID",
            "description": "On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](https://recurly.com/developers/api/v2021-02-25/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.",
            "maxLength": 13
          },
          "number": {
            "type": "string",
            "title": "Invoice number",
            "description": "If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence."
          },
          "collection_method": {
            "title": "Collection method",
            "description": "An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.",
            "default": "automatic",
            "type": "string",
            "enum": [
              "automatic",
              "manual"
            ]
          },
          "po_number": {
            "type": "string",
            "title": "Purchase order number",
            "description": "For manual invoicing, this identifies the PO number associated with the subscription.",
            "maxLength": 50
          },
          "net_terms": {
            "type": "integer",
            "title": "Net terms",
            "description": "Integer paired with `Net Terms Type` and representing the number\nof days past the current date (for `net` Net Terms Type) or days after\nthe last day of the current month (for `eom` Net Terms Type) that the\ninvoice will become past due. For `manual` collection method, an additional 24 hours is\nadded to ensure the customer has the entire last day to make payment before\nbecoming past due. For example:\n\nIf an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.\nIf an invoice is due `net 30`, it will become past due at 31 days exactly.\nIf an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.\n\nFor `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.\nWhen `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.\n\nFor more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)\nor visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.",
            "minimum": 0,
            "default": 0
          },
          "net_terms_type": {
            "type": "string",
            "title": "Net Terms Type",
            "description": "Optionally supplied string that may be either `net` or `eom` (end-of-month).\nWhen `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.\nWhen `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.\n",
            "enum": [
              "net",
              "eom"
            ],
            "default": "net"
          },
          "address": {
            "$ref": "#/components/schemas/InvoiceAddress"
          },
          "shipping_address": {
            "$ref": "#/components/schemas/ShippingAddress"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "discount": {
            "type": "number",
            "format": "float",
            "title": "Discount",
            "description": "Total discounts applied to this invoice."
          },
          "coupon_redemptions": {
            "type": "array",
            "title": "Coupon Redemptions",
            "description": "The coupon redemptions applied to this invoice.",
            "items": {
              "$ref": "#/components/schemas/CouponRedemptionMini"
            }
          },
          "subtotal": {
            "type": "number",
            "format": "float",
            "title": "Subtotal",
            "description": "The summation of charges and credits, before discounts and taxes."
          },
          "subtotal_after_discount": {
            "type": "number",
            "format": "float",
            "title": "Subtotal After Discount",
            "description": "The summation of charges and credits, after discounts applied."
          },
          "tax": {
            "type": "number",
            "format": "float",
            "title": "Tax",
            "description": "The total tax on this invoice."
          },
          "reference_only_currency_conversion": {
            "$ref": "#/components/schemas/ReferenceOnlyCurrencyConversion"
          },
          "total": {
            "type": "number",
            "format": "float",
            "title": "Total",
            "description": "The final total on this invoice. The summation of invoice charges, discounts, credits, and tax."
          },
          "refundable_amount": {
            "type": "number",
            "format": "float",
            "title": "Refundable amount",
            "description": "The refundable amount on a charge invoice. It will be null for all other invoices."
          },
          "paid": {
            "type": "number",
            "format": "float",
            "title": "Paid",
            "description": "The total amount of successful payments transaction on this invoice."
          },
          "balance": {
            "type": "number",
            "format": "float",
            "title": "Balance",
            "description": "The outstanding balance remaining on this invoice."
          },
          "tax_info": {
            "$ref": "#/components/schemas/TaxInfo"
          },
          "used_tax_service": {
            "type": "boolean",
            "title": "Used Tax Service?",
            "description": "Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service."
          },
          "vat_number": {
            "type": "string",
            "title": "VAT number",
            "description": "VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.",
            "maxLength": 20
          },
          "vat_reverse_charge_notes": {
            "type": "string",
            "title": "VAT reverse charge notes",
            "description": "VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription."
          },
          "terms_and_conditions": {
            "type": "string",
            "title": "Terms and conditions",
            "description": "This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions."
          },
          "customer_notes": {
            "type": "string",
            "title": "Customer notes",
            "description": "This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes."
          },
          "line_items": {
            "type": "array",
            "title": "Line Items",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            }
          },
          "has_more_line_items": {
            "type": "boolean",
            "title": "Has more Line Items",
            "description": "Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint."
          },
          "transactions": {
            "type": "array",
            "title": "Transactions",
            "items": {
              "$ref": "#/components/schemas/Transaction"
            }
          },
          "credit_payments": {
            "type": "array",
            "title": "Credit payments",
            "items": {
              "$ref": "#/components/schemas/CreditPayment"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last updated at",
            "readOnly": true
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due at",
            "description": "Date invoice is due. This is the date the net terms are reached."
          },
          "closed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Closed at",
            "description": "Date invoice was marked paid or failed."
          },
          "dunning_campaign_id": {
            "type": "string",
            "title": "Dunning Campaign ID",
            "description": "Unique ID to identify the dunning campaign used when dunning the invoice. For sites without multiple dunning campaigns enabled, this will always be the default dunning campaign."
          },
          "dunning_events_sent": {
            "type": "integer",
            "title": "Dunning Event Sent",
            "description": "Number of times the event was sent."
          },
          "final_dunning_event": {
            "type": "boolean",
            "title": "Final Dunning Event",
            "description": "Last communication attempt."
          },
          "business_entity_id": {
            "type": "string",
            "title": "Business Entity ID",
            "description": "Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled."
          },
          "custom_fields": {
            "$ref": "#/components/schemas/InvoiceCustomFields"
          }
        }
      },
      "InvoiceCollection": {
        "type": "object",
        "title": "Invoice collection",
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "charge_invoice": {
            "$ref": "#/components/schemas/Invoice"
          },
          "credit_invoices": {
            "type": "array",
            "title": "Credit invoices",
            "items": {
              "$ref": "#/components/schemas/Invoice"
            }
          },
          "verification_transactions": {
            "type": "array",
            "title": "Verification transactions",
            "description": "Verification transactions (used for free trial payment method validation)",
            "items": {
              "$ref": "#/components/schemas/Transaction"
            }
          }
        }
      },
      "InvoiceMini": {
        "type": "object",
        "title": "Invoice mini details",
        "properties": {
          "id": {
            "type": "string",
            "title": "Invoice ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "number": {
            "type": "string",
            "title": "Invoice number"
          },
          "business_entity_id": {
            "type": "string",
            "title": "Business Entity ID",
            "description": "Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled."
          },
          "type": {
            "title": "Invoice type",
            "type": "string",
            "enum": [
              "charge",
              "credit",
              "legacy"
            ]
          },
          "state": {
            "title": "Invoice state",
            "type": "string",
            "default": "all",
            "enum": [
              "open",
              "pending",
              "processing",
              "past_due",
              "paid",
              "closed",
              "failed",
              "voided"
            ]
          }
        }
      },
      "LineItem": {
        "type": "object",
        "title": "Line item",
        "properties": {
          "id": {
            "type": "string",
            "title": "Line item ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "uuid": {
            "type": "string",
            "title": "UUID",
            "description": "The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.",
            "maxLength": 32
          },
          "type": {
            "title": "Line item type",
            "description": "Charges are positive line items that debit the account. Credits are negative line items that credit the account.",
            "type": "string",
            "enum": [
              "charge",
              "credit"
            ]
          },
          "item_code": {
            "type": "string",
            "title": "Item Code",
            "description": "Unique code to identify an item. Available when the Credit Invoices feature is enabled.",
            "pattern": "/^[a-z0-9_+-]+$/",
            "maxLength": 50
          },
          "item_id": {
            "type": "string",
            "title": "Item ID",
            "description": "System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.",
            "maxLength": 13
          },
          "external_sku": {
            "type": "string",
            "title": "External SKU",
            "description": "Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.",
            "maxLength": 50
          },
          "revenue_schedule_type": {
            "title": "Revenue schedule type",
            "type": "string",
            "enum": [
              "at_invoice",
              "at_range_end",
              "at_range_start",
              "evenly",
              "never"
            ]
          },
          "state": {
            "title": "Current state of the line item",
            "description": "Pending line items are charges or credits on an account that have not been applied to an invoice yet. Invoiced line items will always have an `invoice_id` value.",
            "type": "string",
            "enum": [
              "invoiced",
              "pending"
            ]
          },
          "legacy_category": {
            "title": "Legacy category",
            "description": "Category to describe the role of a line item on a legacy invoice:\n- \"charges\" refers to charges being billed for on this invoice.\n- \"credits\" refers to refund or proration credits. This portion of the invoice can be considered a credit memo.\n- \"applied_credits\" refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated.\n- \"carryforwards\" can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.\n",
            "type": "string",
            "enum": [
              "applied_credit",
              "carryforward",
              "charge",
              "credit"
            ]
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "bill_for_account_id": {
            "type": "string",
            "title": "Bill For Account ID",
            "maxLength": 13,
            "description": "The UUID of the account responsible for originating the line item."
          },
          "subscription_id": {
            "type": "string",
            "title": "Subscription ID",
            "description": "If the line item is a charge or credit for a subscription, this is its ID.",
            "maxLength": 13
          },
          "plan_id": {
            "type": "string",
            "title": "Plan ID",
            "description": "If the line item is a charge or credit for a plan or add-on, this is the plan's ID.",
            "maxLength": 13
          },
          "plan_code": {
            "type": "string",
            "title": "Plan code",
            "description": "If the line item is a charge or credit for a plan or add-on, this is the plan's code.",
            "maxLength": 50
          },
          "add_on_id": {
            "type": "string",
            "title": "Add-on ID",
            "description": "If the line item is a charge or credit for an add-on this is its ID.",
            "maxLength": 13
          },
          "add_on_code": {
            "type": "string",
            "title": "Add-on code",
            "description": "If the line item is a charge or credit for an add-on, this is its code.",
            "maxLength": 50
          },
          "invoice_id": {
            "type": "string",
            "title": "Invoice ID",
            "description": "Once the line item has been invoiced this will be the invoice's ID.",
            "maxLength": 13
          },
          "invoice_number": {
            "type": "string",
            "title": "Invoice number",
            "description": "Once the line item has been invoiced this will be the invoice's number. If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence."
          },
          "previous_line_item_id": {
            "type": "string",
            "title": "Previous line item ID",
            "description": "Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.",
            "maxLength": 13
          },
          "original_line_item_invoice_id": {
            "type": "string",
            "title": "Original line item's invoice ID",
            "description": "The invoice where the credit originated. Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.",
            "maxLength": 13
          },
          "origin": {
            "title": "Origin of line item",
            "description": "A credit created from an original charge will have the value of the charge's origin.",
            "type": "string",
            "enum": [
              "add_on",
              "add_on_trial",
              "carryforward",
              "coupon",
              "credit",
              "debit",
              "one_time",
              "plan",
              "plan_trial",
              "setup_fee",
              "prepayment"
            ]
          },
          "accounting_code": {
            "type": "string",
            "title": "Accounting code",
            "description": "Internal accounting code to help you reconcile your revenue to the correct ledger. Line items created as part of a subscription invoice will use the plan or add-on's accounting code, otherwise the value will only be present if you define an accounting code when creating the line item.",
            "maxLength": 20
          },
          "product_code": {
            "type": "string",
            "title": "Product code",
            "description": "For plan-related line items this will be the plan's code, for add-on related line items it will be the add-on's code. For item-related line items it will be the item's `external_sku`.",
            "maxLength": 50
          },
          "credit_reason_code": {
            "title": "Credit reason code",
            "description": "The reason the credit was given when line item is `type=credit`.",
            "default": "general",
            "type": "string",
            "enum": [
              "general",
              "gift_card",
              "promotional",
              "refund",
              "service",
              "write_off"
            ]
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Total after discounts and taxes",
            "description": "`(quantity * unit_amount) - discount + tax`"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description that appears on the invoice. For subscription related items this will be filled in automatically.",
            "maxLength": 255
          },
          "quantity": {
            "type": "integer",
            "title": "Quantity",
            "description": "This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.",
            "default": 1
          },
          "quantity_decimal": {
            "type": "string",
            "title": "Quantity Decimal",
            "description": "A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field."
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Unit amount",
            "description": "Positive amount for a charge, negative amount for a credit."
          },
          "unit_amount_decimal": {
            "type": "string",
            "title": "Unit amount decimal",
            "description": "Positive amount for a charge, negative amount for a credit."
          },
          "tax_inclusive": {
            "type": "boolean",
            "title": "Tax Inclusive?",
            "description": "Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag."
          },
          "subtotal": {
            "type": "number",
            "format": "float",
            "title": "Total before discounts and taxes",
            "description": "`quantity * unit_amount`"
          },
          "discount": {
            "type": "number",
            "format": "float",
            "title": "Discount",
            "description": "The sum of all discounts applied to the line item."
          },
          "discounts": {
            "type": "array",
            "title": "Discounts",
            "description": "The breakdown of discounts applied to the line item by coupon redemption.",
            "items": {
              "$ref": "#/components/schemas/LineItemDiscount"
            }
          },
          "liability_gl_account_code": {
            "type": "string",
            "title": "Accounting code for the ledger account.",
            "description": "Unique code to identify the ledger account. Each code must start\nwith a letter or number. The following special characters are\nallowed: `-_.,:`\n",
            "pattern": "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/",
            "maxLength": 255
          },
          "revenue_gl_account_code": {
            "type": "string",
            "title": "Accounting code for the ledger account.",
            "description": "Unique code to identify the ledger account. Each code must start\nwith a letter or number. The following special characters are\nallowed: `-_.,:`\n",
            "pattern": "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/",
            "maxLength": 255
          },
          "performance_obligation_id": {
            "type": "string",
            "title": "Performance Obligation ID",
            "description": "The ID of a performance obligation. Performance obligations are\nonly accessible as a part of the Recurly RevRec Standard and\nRecurly RevRec Advanced features.\n",
            "maxLength": 13
          },
          "tax": {
            "type": "number",
            "format": "float",
            "title": "Tax",
            "description": "The tax amount for the line item."
          },
          "taxable": {
            "type": "boolean",
            "title": "Taxable?",
            "description": "`true` if the line item is taxable, `false` if it is not."
          },
          "tax_exempt": {
            "type": "boolean",
            "title": "Tax exempt?",
            "description": "`true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature."
          },
          "avalara_transaction_type": {
            "type": "integer",
            "title": "Avalara Transaction Type",
            "description": "Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.",
            "minimum": 0
          },
          "avalara_service_type": {
            "type": "integer",
            "title": "Avalara Service Type",
            "description": "Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.",
            "minimum": 0
          },
          "vertex_transaction_type": {
            "type": "string",
            "title": "Vertex Transaction Type",
            "description": "Used by Vertex for tax calculations. Possible values are sale, rental, lease.",
            "enum": [
              "sale",
              "rental",
              "lease"
            ]
          },
          "tax_code": {
            "type": "string",
            "maxLength": 50,
            "title": "Tax code",
            "description": "Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes."
          },
          "harmonized_system_code": {
            "type": "string",
            "title": "Harmonized System Code",
            "description": "The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.",
            "maxLength": 25,
            "pattern": "^\\d+(\\.\\d+)*$"
          },
          "tax_info": {
            "$ref": "#/components/schemas/TaxInfo"
          },
          "origin_tax_address_source": {
            "type": "string",
            "title": "Origin tax address source",
            "description": "The source of the address that will be used as the origin in determining taxes. Available only when the site is on an Elite plan. A value of \"origin\" refers to the \"Business entity tax address\". A value of \"destination\" refers to the \"Customer tax address\".",
            "default": "origin",
            "enum": [
              "origin",
              "destination"
            ]
          },
          "destination_tax_address_source": {
            "type": "string",
            "title": "Destination tax address source",
            "description": "The source of the address that will be used as the destinaion in determining taxes. Available only when the site is on an Elite plan. A value of \"destination\" refers to the \"Customer tax address\". A value of \"origin\" refers to the \"Business entity tax address\".",
            "default": "destination",
            "enum": [
              "destination",
              "origin"
            ]
          },
          "proration_rate": {
            "type": "number",
            "format": "float",
            "title": "Proration rate",
            "description": "When a line item has been prorated, this is the rate of the proration. Proration rates were made available for line items created after March 30, 2017. For line items created prior to that date, the proration rate will be `null`, even if the line item was prorated.",
            "minimum": 0,
            "maximum": 1
          },
          "refund": {
            "type": "boolean",
            "title": "Refund?"
          },
          "refunded_quantity": {
            "type": "integer",
            "title": "Refunded Quantity",
            "description": "For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds)."
          },
          "refunded_quantity_decimal": {
            "type": "string",
            "title": "Refunded Quantity Decimal",
            "description": "A floating-point alternative to Refunded Quantity. For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds). The Decimal Quantity feature must be enabled to utilize this field."
          },
          "credit_applied": {
            "type": "number",
            "format": "float",
            "title": "Credit Applied",
            "description": "The amount of credit from this line item that was applied to the invoice."
          },
          "shipping_address": {
            "$ref": "#/components/schemas/ShippingAddress"
          },
          "start_date": {
            "type": "string",
            "format": "date-time",
            "title": "Start date",
            "description": "If an end date is present, this is value indicates the beginning of a billing time range. If no end date is present it indicates billing for a specific date."
          },
          "end_date": {
            "type": "string",
            "format": "date-time",
            "title": "End date",
            "description": "If this date is provided, it indicates the end of a time range."
          },
          "custom_fields": {
            "$ref": "#/components/schemas/CustomFields"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at",
            "description": "When the line item was created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last updated at",
            "description": "When the line item was last changed."
          }
        }
      },
      "PaymentGatewayReferences": {
        "type": "object",
        "title": "Payment Gateway References Object",
        "description": "Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.",
        "properties": {
          "token": {
            "type": "string",
            "title": "Token",
            "description": "Reference value used when the external token was created. If a Stripe gateway or Ebanx gateway is used, this value will need to be accompanied by its reference_type."
          },
          "reference_type": {
            "type": "string",
            "title": "Reference Type",
            "description": "The type of reference token. The value can be omitted for gateways that only support one type of token.",
            "enum": [
              "stripe_confirmation_token",
              "upi_vpa"
            ]
          }
        }
      },
      "PlanCode": {
        "type": "string",
        "title": "Plan code",
        "description": "Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.",
        "pattern": "/^[a-z0-9_+-]+$/",
        "maxLength": 50
      },
      "PlanName": {
        "type": "string",
        "title": "Name",
        "description": "This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.",
        "maxLength": 255
      },
      "PlanMini": {
        "type": "object",
        "title": "Plan mini details",
        "description": "Just the important parts.",
        "properties": {
          "id": {
            "type": "string",
            "title": "Plan ID",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "$ref": "#/components/schemas/PlanCode"
          },
          "name": {
            "$ref": "#/components/schemas/PlanName"
          }
        }
      },
      "PriceSegmentId": {
        "type": "string",
        "description": "The price segment ID, e.g. `e28zov4fw0v2`.",
        "maxLength": 50
      },
      "ProrationSettings": {
        "type": "object",
        "title": "Proration Settings",
        "description": "Allows you to control how any resulting charges and credits will be calculated and prorated.",
        "properties": {
          "charge": {
            "type": "string",
            "title": "Charge",
            "description": "Determines how the amount charged is determined for this change",
            "default": "prorated_amount",
            "enum": [
              "full_amount",
              "prorated_amount",
              "none"
            ]
          },
          "credit": {
            "type": "string",
            "title": "Credit",
            "description": "Determines how the amount credited is determined for this change",
            "default": "prorated_amount",
            "enum": [
              "full_amount",
              "prorated_amount",
              "none"
            ]
          }
        }
      },
      "ShippingAddress": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Shipping Address ID",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "account_id": {
            "type": "string",
            "title": "Account ID",
            "maxLength": 13,
            "readOnly": true
          },
          "nickname": {
            "type": "string",
            "maxLength": 255
          },
          "first_name": {
            "type": "string",
            "maxLength": 255
          },
          "last_name": {
            "type": "string",
            "maxLength": 255
          },
          "company": {
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "type": "string",
            "maxLength": 255
          },
          "vat_number": {
            "type": "string",
            "maxLength": 20
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "street1": {
            "type": "string",
            "maxLength": 255
          },
          "street2": {
            "type": "string",
            "maxLength": 255
          },
          "city": {
            "type": "string",
            "maxLength": 255
          },
          "region": {
            "type": "string",
            "maxLength": 255,
            "description": "State or province."
          },
          "postal_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Zip or postal code."
          },
          "country": {
            "type": "string",
            "maxLength": 50,
            "description": "Country, 2-letter ISO 3166-1 alpha-2 code."
          },
          "geo_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled."
          },
          "created_at": {
            "type": "string",
            "title": "Created at",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "title": "Updated at",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "ReferenceOnlyCurrencyConversion": {
        "type": "object",
        "title": "Reference Only Currency Conversion",
        "properties": {
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "subtotal_in_cents": {
            "type": "number",
            "format": "float",
            "title": "Subtotal In Cents",
            "description": "The subtotal converted to the currency."
          },
          "tax_in_cents": {
            "type": "number",
            "format": "float",
            "title": "Tax In Cents",
            "description": "The tax converted to the currency."
          },
          "rate": {
            "type": "string",
            "title": "Rate",
            "description": "The conversion rate to the currency."
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The source of the conversion rate."
          },
          "date": {
            "type": "string",
            "title": "Date",
            "format": "date",
            "description": "The date of the conversion rate."
          }
        }
      },
      "ShippingAddressCreate": {
        "type": "object",
        "properties": {
          "nickname": {
            "type": "string",
            "maxLength": 255
          },
          "first_name": {
            "type": "string",
            "maxLength": 255
          },
          "last_name": {
            "type": "string",
            "maxLength": 255
          },
          "company": {
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "type": "string",
            "maxLength": 255
          },
          "vat_number": {
            "type": "string",
            "maxLength": 20
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "street1": {
            "type": "string",
            "maxLength": 255
          },
          "street2": {
            "type": "string",
            "maxLength": 255
          },
          "city": {
            "type": "string",
            "maxLength": 255
          },
          "region": {
            "type": "string",
            "maxLength": 255,
            "description": "State or province."
          },
          "postal_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Zip or postal code."
          },
          "geo_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled."
          },
          "country": {
            "type": "string",
            "maxLength": 50,
            "description": "Country, 2-letter ISO 3166-1 alpha-2 code."
          }
        },
        "required": [
          "first_name",
          "last_name",
          "street1",
          "city",
          "postal_code",
          "country"
        ]
      },
      "ShippingMethodMini": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Shipping Method ID",
            "readOnly": true,
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "title": "Code",
            "description": "The internal name used identify the shipping method.",
            "maxLength": 50
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the shipping method displayed to customers.",
            "maxLength": 100
          }
        }
      },
      "SubscriptionAddOn": {
        "type": "object",
        "title": "Subscription Add-on",
        "description": "This links an Add-on to a specific Subscription.",
        "properties": {
          "id": {
            "type": "string",
            "title": "Subscription Add-on ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "subscription_id": {
            "type": "string",
            "title": "Subscription ID",
            "maxLength": 13
          },
          "add_on": {
            "$ref": "#/components/schemas/AddOnMini"
          },
          "add_on_source": {
            "type": "string",
            "title": "Add-on source",
            "description": "Used to determine where the associated add-on data is pulled from. If this value is set to\n`plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated\n`plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then\nthe associated add-on data will be pulled from the site's item catalog.\n",
            "default": "plan_add_on",
            "enum": [
              "plan_add_on",
              "item"
            ]
          },
          "quantity": {
            "type": "integer",
            "title": "Add-on quantity",
            "minimum": 0
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Add-on unit price",
            "description": "Supports up to 2 decimal places."
          },
          "unit_amount_decimal": {
            "type": "string",
            "format": "decimal",
            "title": "Add-on unit in decimal price",
            "description": "Supports up to 9 decimal places."
          },
          "revenue_schedule_type": {
            "title": "Revenue schedule type",
            "type": "string",
            "enum": [
              "at_range_end",
              "at_range_start",
              "evenly",
              "never"
            ]
          },
          "tier_type": {
            "type": "string",
            "title": "Tier type",
            "description": "The pricing model for the add-on.  For more information,\n[click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our\n[Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how\nto configure quantity-based pricing models.\n",
            "default": "flat",
            "enum": [
              "flat",
              "tiered",
              "stairstep",
              "volume"
            ]
          },
          "usage_calculation_type": {
            "type": "string",
            "description": "The type of calculation to be employed for an add-on.  Cumulative billing will sum all usage records created in the current billing cycle.  Last-in-period billing will apply only the most recent usage record in the billing period.  If no value is specified, cumulative billing will be used.",
            "enum": [
              "cumulative",
              "last_in_period"
            ]
          },
          "usage_timeframe": {
            "type": "string",
            "title": "Usage Timeframe",
            "description": "The time at which usage totals are reset for billing purposes.",
            "enum": [
              "billing_period",
              "subscription_term"
            ],
            "default": "billing_period"
          },
          "tiers": {
            "type": "array",
            "title": "Tiers",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOnTier"
            },
            "minItems": 1,
            "description": "If tiers are provided in the request, all existing tiers on the Subscription Add-on will be\nremoved and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and\nadd_on.usage_type is percentage use percentage_tiers instead. \nThere must be one tier without an `ending_quantity` value which represents the final tier.\n"
          },
          "percentage_tiers": {
            "type": "array",
            "title": "Percentage Tiers",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOnPercentageTier"
            },
            "minItems": 1,
            "description": "If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be\nremoved and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and\nadd_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the final tier.\nThis feature is currently in development and requires approval and enablement, please contact support.\n"
          },
          "usage_percentage": {
            "type": "number",
            "format": "float",
            "title": "Usage Percentage",
            "description": "The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if add_on_type is usage and usage_type is percentage."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated at"
          },
          "expired_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expired at"
          }
        }
      },
      "SubscriptionAddOnUpdate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Subscription Add-on ID.",
            "description": "When an id is provided, the existing subscription add-on attributes will\npersist unless overridden in the request.\n",
            "maxLength": 13
          },
          "code": {
            "type": "string",
            "title": "Add-on code",
            "maxLength": 50,
            "description": "If a code is provided without an id, the subscription add-on attributes\nwill be set to the current value for those attributes on the plan add-on\nunless provided in the request. If `add_on_source` is set to `plan_add_on`\nor left blank, then plan's add-on `code` should be used. If `add_on_source`\nis set to `item`, then the `code` from the associated item should be used.\n"
          },
          "add_on_source": {
            "type": "string",
            "title": "Add-on source",
            "description": "Used to determine where the associated add-on data is pulled from. If this value is set to\n`plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated\n`plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then\nthe associated add-on data will be pulled from the site's item catalog.\n",
            "default": "plan_add_on",
            "enum": [
              "plan_add_on",
              "item"
            ]
          },
          "quantity": {
            "type": "integer",
            "title": "Quantity",
            "minimum": 0
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Unit amount",
            "description": "Allows up to 2 decimal places. Optionally, override the add-on's default unit amount.\nIf the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount` cannot be provided.\n",
            "minimum": 0,
            "maximum": 1000000
          },
          "unit_amount_decimal": {
            "type": "string",
            "title": "Unit amount decimal",
            "description": "Allows up to 9 decimal places. Optionally, override the add-on's default unit amount.\nIf the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided.\nIf `unit_amount_decimal` is provided, `unit_amount` cannot be provided.\n"
          },
          "tiers": {
            "type": "array",
            "title": "Tiers",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOnTier"
            },
            "minItems": 1,
            "description": "If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object\nmust include one to many tiers with `ending_quantity` and `unit_amount`.\nThere must be one tier without an `ending_quantity` value which represents the final tier.\n"
          },
          "percentage_tiers": {
            "type": "array",
            "title": "Percentage Tiers",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOnPercentageTier"
            },
            "minItems": 1,
            "description": "If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be\nremoved and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and\nadd_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the\nfinal tier. This feature is currently in development and requires approval and enablement, please contact support.\n"
          },
          "usage_percentage": {
            "type": "number",
            "format": "float",
            "title": "Usage Percentage",
            "description": "The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if add_on_type is usage and usage_type is percentage."
          },
          "revenue_schedule_type": {
            "title": "Revenue schedule type",
            "type": "string",
            "enum": [
              "at_range_end",
              "at_range_start",
              "evenly",
              "never"
            ]
          }
        }
      },
      "SubscriptionAddOnTier": {
        "type": "object",
        "properties": {
          "ending_quantity": {
            "type": "integer",
            "title": "Ending quantity",
            "minimum": 1,
            "maximum": 999999999,
            "description": "Ending quantity for the tier.  This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier."
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Unit amount",
            "minimum": 0,
            "maximum": 1000000,
            "description": "Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided."
          },
          "unit_amount_decimal": {
            "type": "string",
            "title": "Unit amount decimal",
            "description": "Allows up to 9 decimal places.  Optionally, override tiers' default unit amount.\nIf `unit_amount_decimal` is provided, `unit_amount` cannot be provided.\nIf add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.\n"
          },
          "usage_percentage": {
            "type": "string",
            "title": "Usage Percentage",
            "description": "(deprecated) -- Use the percentage_tiers object instead.",
            "deprecated": true
          }
        }
      },
      "SubscriptionAddOnPercentageTier": {
        "type": "object",
        "properties": {
          "ending_amount": {
            "type": "number",
            "format": "float",
            "title": "Ending amount",
            "minimum": 1,
            "maximum": 9999999999999.99,
            "description": "Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier."
          },
          "usage_percentage": {
            "type": "string",
            "title": "Usage Percentage",
            "minimum": 0,
            "maximum": 100,
            "description": "The percentage taken of the monetary amount of usage tracked.\nThis can be up to 4 decimal places represented as a string.\n"
          }
        }
      },
      "SubscriptionChange": {
        "type": "object",
        "title": "Subscription Change",
        "properties": {
          "id": {
            "type": "string",
            "title": "Subscription Change ID",
            "description": "The ID of the Subscription Change."
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "subscription_id": {
            "type": "string",
            "title": "Subscription ID",
            "description": "The ID of the subscription that is going to be changed.",
            "maxLength": 13
          },
          "plan": {
            "$ref": "#/components/schemas/PlanMini"
          },
          "add_ons": {
            "type": "array",
            "title": "Add-ons",
            "description": "These add-ons will be used when the subscription renews.",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOn"
            }
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Unit amount"
          },
          "tax_inclusive": {
            "type": "boolean",
            "title": "Tax Inclusive?",
            "default": false,
            "description": "This field is deprecated. Please do not use it.",
            "deprecated": true
          },
          "quantity": {
            "type": "integer",
            "title": "Subscription quantity"
          },
          "shipping": {
            "$ref": "#/components/schemas/SubscriptionShipping"
          },
          "activate_at": {
            "type": "string",
            "format": "date-time",
            "title": "Activated at",
            "readOnly": true
          },
          "activated": {
            "type": "boolean",
            "title": "Activated?",
            "description": "Returns `true` if the subscription change is activated."
          },
          "price_segment_id": {
            "$ref": "#/components/schemas/PriceSegmentId"
          },
          "revenue_schedule_type": {
            "title": "Revenue schedule type",
            "type": "string",
            "enum": [
              "at_range_end",
              "at_range_start",
              "evenly",
              "never"
            ]
          },
          "invoice_collection": {
            "title": "Invoice Collection",
            "$ref": "#/components/schemas/InvoiceCollection"
          },
          "business_entity": {
            "title": "Business Entity",
            "$ref": "#/components/schemas/BusinessEntityMini"
          },
          "custom_fields": {
            "$ref": "#/components/schemas/CustomFields"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated at",
            "readOnly": true
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Deleted at",
            "readOnly": true
          },
          "billing_info": {
            "$ref": "#/components/schemas/SubscriptionChangeBillingInfo"
          },
          "ramp_intervals": {
            "type": "array",
            "title": "Ramp Intervals",
            "description": "The ramp intervals representing the pricing schedule for the subscription.",
            "items": {
              "$ref": "#/components/schemas/SubscriptionRampIntervalResponse"
            }
          },
          "next_bill_date": {
            "type": "string",
            "format": "date-time",
            "title": "Next bill date",
            "description": "If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). When combined with proration_settings, proration calculation should occur, only supported when timeframe is now."
          }
        }
      },
      "SubscriptionChangeBillingInfo": {
        "type": "object",
        "description": "Accept nested attributes for three_d_secure_action_result_token_id",
        "properties": {
          "three_d_secure_action_result_token_id": {
            "type": "string",
            "title": "3-D Secure action result token ID",
            "description": "A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.",
            "maxLength": 22
          }
        }
      },
      "SubscriptionChangeBillingInfoCreate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SubscriptionChangeBillingInfo"
          }
        ]
      },
      "SubscriptionChangeCreate": {
        "type": "object",
        "properties": {
          "timeframe": {
            "title": "Timeframe",
            "description": "The timeframe parameter controls when the upgrade or downgrade takes place. The subscription change can occur now, when the subscription is next billed, or when the subscription term ends. Generally, if you're performing an upgrade, you will want the change to occur immediately (now). If you're performing a downgrade, you should set the timeframe to `term_end` or `bill_date` so the change takes effect at a scheduled billing date. The `renewal` timeframe option is accepted as an alias for `term_end`.",
            "default": "now",
            "type": "string",
            "enum": [
              "bill_date",
              "now",
              "renewal",
              "term_end"
            ]
          },
          "plan_id": {
            "type": "string",
            "title": "Plan ID",
            "maxLength": 13,
            "description": "If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used."
          },
          "plan_code": {
            "type": "string",
            "title": "New plan code",
            "maxLength": 50,
            "description": "If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used."
          },
          "business_entity_id": {
            "type": "string",
            "title": "Business Entity ID",
            "description": "The `business_entity_id` is the value that represents a specific business entity for an end customer. When `business_entity_id` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used. Only allowed if the `timeframe` is not `now`."
          },
          "business_entity_code": {
            "type": "string",
            "title": "Business Entity Code",
            "description": "The `business_entity_code` is the value that represents a specific business entity for an end customer. When `business_entity_code` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used. Only allowed if the `timeframe` is not `now`."
          },
          "price_segment_id": {
            "$ref": "#/components/schemas/PriceSegmentId"
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Custom subscription price",
            "description": "Optionally, sets custom pricing for the subscription, overriding the plan's default unit amount. The subscription's current currency will be used.",
            "minimum": 0,
            "maximum": 1000000
          },
          "tax_inclusive": {
            "type": "boolean",
            "title": "Tax Inclusive?",
            "default": false,
            "description": "This field is deprecated. Please do not use it.",
            "deprecated": true
          },
          "quantity": {
            "type": "integer",
            "title": "Quantity",
            "description": "Optionally override the default quantity of 1.",
            "default": 1,
            "minimum": 0
          },
          "shipping": {
            "$ref": "#/components/schemas/SubscriptionChangeShippingCreate"
          },
          "coupon_codes": {
            "type": "array",
            "title": "Coupon codes",
            "description": "A list of coupon_codes to be redeemed on the subscription during the change. Only allowed if timeframe is now and you change something about the subscription that creates an invoice.",
            "items": {
              "type": "string"
            }
          },
          "add_ons": {
            "type": "array",
            "title": "Add-ons",
            "description": "If you provide a value for this field it will replace any\nexisting add-ons. So, when adding or modifying an add-on, you need to\ninclude the existing subscription add-ons. Unchanged add-ons can be included\njust using the subscription add-on''s ID: `{\"id\": \"abc123\"}`. If this\nvalue is omitted your existing add-ons will be unaffected. To remove all\nexisting add-ons, this value should be an empty array.'\n\nIf a subscription add-on's `code` is supplied without the `id`,\n`{\"code\": \"def456\"}`, the subscription add-on attributes will be set to the\ncurrent values of the plan add-on unless provided in the request.\n\n- If an `id` is passed, any attributes not passed in will pull from the\n  existing subscription add-on\n- If a `code` is passed, any attributes not passed in will pull from the\n  current values of the plan add-on\n- Attributes passed in as part of the request will override either of the\n  above scenarios\n",
            "items": {
              "$ref": "#/components/schemas/SubscriptionAddOnUpdate"
            }
          },
          "collection_method": {
            "title": "Collection method",
            "default": "automatic",
            "type": "string",
            "enum": [
              "automatic",
              "manual"
            ]
          },
          "revenue_schedule_type": {
            "title": "Revenue schedule type",
            "type": "string",
            "enum": [
              "at_range_end",
              "at_range_start",
              "evenly",
              "never"
            ]
          },
          "custom_fields": {
            "$ref": "#/components/schemas/CustomFields"
          },
          "po_number": {
            "type": "string",
            "title": "Purchase order number",
            "description": "For manual invoicing, this identifies the PO number associated with the subscription.",
            "maxLength": 50
          },
          "net_terms": {
            "type": "integer",
            "title": "Net terms",
            "description": "Integer normally paired with `Net Terms Type` and representing the number of days past\nthe current date (for `net` Net Terms Type) or days after the last day of the current\nmonth (for `eom` Net Terms Type) that the invoice will become past due. During a subscription\nchange, it's not necessary to provide both the `Net Terms Type` and `Net Terms` parameters.\n\nFor more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)\nor visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.",
            "minimum": 0,
            "default": 0
          },
          "net_terms_type": {
            "type": "string",
            "title": "Net Terms Type",
            "description": "Optionally supplied string that may be either `net` or `eom` (end-of-month).\nWhen `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.\nWhen `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.\n",
            "enum": [
              "net",
              "eom"
            ],
            "default": "net"
          },
          "transaction_type": {
            "description": "An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.",
            "type": "string",
            "enum": [
              "moto"
            ]
          },
          "billing_info": {
            "$ref": "#/components/schemas/SubscriptionChangeBillingInfoCreate"
          },
          "ramp_intervals": {
            "type": "array",
            "title": "Ramp Intervals",
            "description": "The new set of ramp intervals for the subscription.",
            "items": {
              "$ref": "#/components/schemas/SubscriptionRampInterval"
            }
          },
          "proration_settings": {
            "$ref": "#/components/schemas/ProrationSettings"
          },
          "next_bill_date": {
            "type": "string",
            "format": "date-time",
            "title": "Next bill date",
            "description": "If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). When combined with proration_settings, proration calculation should occur, only supported when timeframe is now."
          }
        }
      },
      "SubscriptionChangeShippingCreate": {
        "type": "object",
        "title": "Shipping details that will be changed on a subscription",
        "description": "Shipping addresses are tied to a customer's account. Each account can have up to 20 different shipping addresses, and if you have enabled multiple subscriptions per account, you can associate different shipping addresses to each subscription.",
        "properties": {
          "method_id": {
            "type": "string",
            "title": "Method ID",
            "description": "The id of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.",
            "maxLength": 13
          },
          "method_code": {
            "type": "string",
            "title": "Method Code",
            "description": "The code of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.",
            "maxLength": 50
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required."
          },
          "address_id": {
            "type": "string",
            "title": "Shipping address ID",
            "description": "Assign a shipping address from the account's existing shipping addresses. If this and address are both present, address will take precedence."
          },
          "address": {
            "$ref": "#/components/schemas/ShippingAddressCreate"
          }
        }
      },
      "SubscriptionShipping": {
        "type": "object",
        "title": "Subscription shipping details",
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "address": {
            "$ref": "#/components/schemas/ShippingAddress"
          },
          "method": {
            "$ref": "#/components/schemas/ShippingMethodMini"
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Subscription's shipping cost"
          }
        }
      },
      "SubscriptionRampInterval": {
        "type": "object",
        "title": "Subscription Ramp Interval",
        "properties": {
          "starting_billing_cycle": {
            "type": "integer",
            "description": "Represents the billing cycle where a ramp interval starts.",
            "default": 1
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "description": "Represents the price for the ramp interval."
          }
        }
      },
      "SubscriptionRampIntervalResponse": {
        "type": "object",
        "title": "Subscription Ramp Interval",
        "properties": {
          "starting_billing_cycle": {
            "type": "integer",
            "description": "Represents the billing cycle where a ramp interval starts."
          },
          "remaining_billing_cycles": {
            "type": "integer",
            "description": "Represents how many billing cycles are left in a ramp interval."
          },
          "starting_on": {
            "type": "string",
            "format": "date-time",
            "title": "Date the ramp interval starts"
          },
          "ending_on": {
            "type": "string",
            "format": "date-time",
            "title": "Date the ramp interval ends"
          },
          "unit_amount": {
            "type": "number",
            "format": "float",
            "title": "Unit price",
            "description": "Represents the price for the ramp interval."
          }
        }
      },
      "TaxInfo": {
        "type": "object",
        "title": "Tax info",
        "description": "Only for merchants using Recurly's In-The-Box taxes.",
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Provides the tax type as \"vat\" for EU VAT, \"usst\" for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries. Not present when Avalara for Communications is enabled."
          },
          "region": {
            "type": "string",
            "title": "Region",
            "description": "Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST. Not present when Avalara for Communications is enabled."
          },
          "rate": {
            "type": "number",
            "format": "float",
            "title": "Rate",
            "description": "The combined tax rate. Not present when Avalara for Communications is enabled."
          },
          "tax_details": {
            "type": "array",
            "description": "Provides additional tax details for Communications taxes when Avalara for Communications or Vertex Tax Breakdown is enabled or Canadian Sales Tax. Tax details will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.",
            "items": {
              "$ref": "#/components/schemas/TaxDetail"
            }
          }
        }
      },
      "TaxDetail": {
        "type": "object",
        "title": "Tax detail",
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Provides the tax type for the region or type of Comminications tax when Avalara for Communications or Vertex is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST."
          },
          "region": {
            "type": "string",
            "title": "Region",
            "description": "Provides the tax region applied on an invoice. For Canadian Sales Tax, this will be either the 2 letter province code or country code. Not present when Avalara for Communications is enabled."
          },
          "rate": {
            "type": "number",
            "format": "float",
            "title": "Rate",
            "description": "Provides the tax rate for the region."
          },
          "tax": {
            "type": "number",
            "format": "float",
            "title": "Tax",
            "description": "The total tax applied for this tax type."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Provides the name of the Communications tax applied. Present only when Avalara for Communications or Vertex is enabled."
          },
          "level": {
            "type": "string",
            "title": "Level",
            "description": "Provides the jurisdiction level for the Communications tax applied. Example values include city, state and federal. Present only when Avalara for Communications or Vertex is enabled."
          },
          "billable": {
            "type": "boolean",
            "title": "Billable",
            "description": "Whether or not the line item is taxable. Only populated for a single LineItem fetch when Avalara for Communications or Vertex is enabled."
          }
        }
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Transaction ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "uuid": {
            "type": "string",
            "title": "Recurly UUID",
            "description": "The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.",
            "maxLength": 32
          },
          "original_transaction_id": {
            "type": "string",
            "title": "Original Transaction ID",
            "description": "If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.",
            "maxLength": 13
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "initiator": {
            "type": "string",
            "description": "Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.",
            "enum": [
              "customer",
              "merchant"
            ]
          },
          "invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "merchant_reason_code": {
            "type": "string",
            "default": "none",
            "description": "This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases.\nNot all gateways support these methods, but will support a generic one-time Merchant Initiated transaction.\nOnly use this if the initiator value is \"merchant\". Otherwise, it will be ignored.\n  - Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses.\n  - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry.\n  - Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect.\n  - Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement.\n  - Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session.\n  - Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.\n",
            "enum": [
              "incremental",
              "no_show",
              "resubmission",
              "service_extension",
              "split_shipment",
              "top_up"
            ]
          },
          "voided_by_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "subscription_ids": {
            "type": "array",
            "title": "Subscription IDs",
            "description": "If the transaction is charging or refunding for one or more subscriptions, these are their IDs.",
            "items": {
              "type": "string",
              "title": "Subscription ID",
              "maxLength": 13
            }
          },
          "type": {
            "title": "Transaction type",
            "description": "- `authorization` – verifies billing information and places a hold on money in the customer's account.\n- `capture` – captures funds held by an authorization and completes a purchase.\n- `purchase` – combines the authorization and capture in one transaction.\n- `refund` – returns all or a portion of the money collected in a previous transaction to the customer.\n- `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.\n",
            "type": "string",
            "enum": [
              "authorization",
              "capture",
              "purchase",
              "refund",
              "verify"
            ]
          },
          "origin": {
            "title": "Origin of transaction",
            "description": "Describes how the transaction was triggered.",
            "type": "string",
            "enum": [
              "api",
              "chargeback",
              "external_recovery",
              "force_collect",
              "hpp",
              "merchant",
              "recurly_admin",
              "recurlyjs",
              "recurring",
              "refunded_externally",
              "transparent",
              "token_api",
              "api_force_collect",
              "api_sub_change",
              "api_verify_card",
              "refund_balance",
              "amazon_v2_ipn"
            ]
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description that gets sent to the gateway."
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Amount",
            "description": "Total transaction amount sent to the payment gateway."
          },
          "status": {
            "title": "Transaction status",
            "description": "The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.",
            "type": "string",
            "enum": [
              "chargeback",
              "declined",
              "error",
              "pending",
              "processing",
              "scheduled",
              "success",
              "void"
            ]
          },
          "success": {
            "type": "boolean",
            "title": "Success?",
            "description": "Did this transaction complete successfully?"
          },
          "backup_payment_method_used": {
            "type": "boolean",
            "title": "Backup Payment Method Used?",
            "description": "Indicates if the transaction was completed using a backup payment"
          },
          "refunded": {
            "type": "boolean",
            "title": "Refunded?",
            "description": "Indicates if part or all of this transaction was refunded."
          },
          "billing_address": {
            "$ref": "#/components/schemas/AddressWithName"
          },
          "collection_method": {
            "description": "The method by which the payment was collected.",
            "type": "string",
            "enum": [
              "automatic",
              "manual"
            ]
          },
          "payment_method": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "payment_gateway_references": {
            "type": "array",
            "description": "Array of Payment Gateway References captured at transaction time, each a reference to a third-party gateway object of varying types.",
            "items": {
              "$ref": "#/components/schemas/PaymentGatewayReferences"
            }
          },
          "ip_address_v4": {
            "type": "string",
            "title": "IP address",
            "description": "IP address provided when the billing information was collected:\n\n- When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address.\n- When the merchant enters billing information using the API, the merchant may provide an IP address.\n- When the merchant enters billing information using the UI, no IP address is recorded.\n"
          },
          "ip_address_country": {
            "type": "string",
            "title": "Origin IP address country, 2-letter ISO 3166-1 alpha-2 code, if known by Recurly."
          },
          "status_code": {
            "type": "string",
            "title": "Status code"
          },
          "status_message": {
            "type": "string",
            "title": "Status message",
            "description": "For declined (`success=false`) transactions, the message displayed to the merchant."
          },
          "customer_message": {
            "type": "string",
            "title": "Customer message",
            "description": "For declined (`success=false`) transactions, the message displayed to the customer."
          },
          "customer_message_locale": {
            "type": "string",
            "title": "Language code for the message"
          },
          "payment_gateway": {
            "type": "object",
            "x-class-name": "TransactionPaymentGateway",
            "properties": {
              "id": {
                "type": "string"
              },
              "object": {
                "type": "string",
                "title": "Object type"
              },
              "type": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "gateway_message": {
            "type": "string",
            "title": "Gateway message",
            "description": "Transaction message from the payment gateway."
          },
          "gateway_reference": {
            "type": "string",
            "title": "Gateway reference",
            "description": "Transaction reference number from the payment gateway."
          },
          "gateway_approval_code": {
            "type": "string",
            "title": "Transaction approval code from the payment gateway."
          },
          "gateway_response_code": {
            "type": "string",
            "title": "For declined transactions (`success=false`), this field lists the gateway error code."
          },
          "gateway_response_time": {
            "type": "number",
            "format": "float",
            "title": "Gateway response time",
            "description": "Time, in seconds, for gateway to process the transaction."
          },
          "gateway_response_values": {
            "type": "object",
            "title": "Gateway response values",
            "description": "The values in this field will vary from gateway to gateway."
          },
          "cvv_check": {
            "title": "CVV check",
            "description": "When processed, result from checking the CVV/CVC value on the transaction.",
            "type": "string",
            "enum": [
              "D",
              "I",
              "M",
              "N",
              "P",
              "S",
              "U",
              "X"
            ]
          },
          "avs_check": {
            "title": "AVS check",
            "description": "When processed, result from checking the overall AVS on the transaction.",
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G",
              "H",
              "I",
              "J",
              "K",
              "L",
              "M",
              "N",
              "O",
              "P",
              "Q",
              "R",
              "S",
              "T",
              "U",
              "V",
              "W",
              "X",
              "Y",
              "Z"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated at"
          },
          "voided_at": {
            "type": "string",
            "format": "date-time",
            "title": "Voided at"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time",
            "title": "Collected at, or if not collected yet, the time the transaction was created."
          },
          "action_result": {
            "type": "object",
            "description": "Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.",
            "title": "Action result"
          },
          "vat_number": {
            "type": "string",
            "description": "VAT number for the customer on this transaction. If the customer's Billing Info country is BR or AR, then this will be their Tax Identifier. For all other countries this will come from the VAT Number field in the Billing Info.",
            "title": "VAT Number"
          },
          "fraud_info": {
            "$ref": "#/components/schemas/TransactionFraudInfo"
          },
          "next_action": {
            "type": "object",
            "x-class-name": "TransactionNextAction",
            "description": "Next action values are used for any required customer follow-up action. Currently, this is supported for Ebanx when using Pix Automatico.",
            "properties": {
              "type": {
                "type": "string",
                "title": "Next action type",
                "description": "The type of next action required for the transaction.",
                "enum": [
                  "qr_code"
                ]
              },
              "value": {
                "type": "string",
                "title": "Next action value",
                "description": "The value associated with the next action type."
              }
            },
            "title": "Next action"
          }
        }
      },
      "TransactionFraudInfo": {
        "type": "object",
        "title": "Fraud information",
        "readOnly": true,
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "score": {
            "type": "integer",
            "title": "Kount score",
            "minimum": 1,
            "maximum": 99
          },
          "decision": {
            "title": "Kount decision",
            "maxLength": 10,
            "type": "string",
            "enum": [
              "approve",
              "decline",
              "escalate",
              "review"
            ]
          },
          "reference": {
            "type": "string",
            "title": "Kount transaction reference ID"
          },
          "risk_rules_triggered": {
            "type": "array",
            "title": "Risk Rules Triggered",
            "description": "A list of fraud risk rules that were triggered for the transaction.",
            "items": {
              "$ref": "#/components/schemas/FraudRiskRule"
            }
          }
        }
      },
      "FraudRiskRule": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "The Kount rule number."
          },
          "message": {
            "type": "string",
            "title": "Description of why the rule was triggered"
          }
        }
      },
      "PaymentMethod": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "bacs",
              "amazon",
              "amazon_billing_agreement",
              "apple_pay",
              "apple_pay_merchant_token",
              "bank_account_info",
              "braintree_apple_pay",
              "check",
              "credit_card",
              "eft",
              "gateway_token",
              "google_pay",
              "google_pay_device_pan",
              "iban_bank_account",
              "money_order",
              "other",
              "paypal",
              "paypal_billing_agreement",
              "roku",
              "sepadirectdebit",
              "venmo",
              "wire_transfer",
              "braintree_v_zero",
              "boleto",
              "cash_app",
              "upi_autopay",
              "pix_automatico",
              "mercadopago",
              "klarna",
              "braintree_google_pay",
              "stripe_link"
            ]
          },
          "card_type": {
            "description": "Visa, MasterCard, American Express, Discover, JCB, etc.",
            "type": "string",
            "enum": [
              "American Express",
              "Dankort",
              "Diners Club",
              "Discover",
              "ELO",
              "Forbrugsforeningen",
              "Hipercard",
              "JCB",
              "Laser",
              "Maestro",
              "MasterCard",
              "Test Card",
              "Union Pay",
              "Unknown",
              "Visa",
              "Tarjeta Naranja"
            ]
          },
          "first_six": {
            "type": "string",
            "description": "Credit card number's first six digits.\n\nFor a tokenized wallet payment (`apple_pay`, `google_pay`, or\n`google_pay_device_pan`), this is the DPAN's (the wallet/device token's own\nnumber) first six digits, not the underlying card's (FPAN).\n",
            "maxLength": 6
          },
          "last_four": {
            "type": "string",
            "description": "Credit card number's last four digits. Will refer to bank account if payment\nmethod is ACH.\n\nFor a tokenized wallet payment (`apple_pay`, `google_pay`, or\n`google_pay_device_pan`), this is the DPAN's last four digits, not the\nunderlying card's (FPAN).\n",
            "maxLength": 4
          },
          "last_two": {
            "type": "string",
            "description": "The IBAN bank account's last two digits.",
            "maxLength": 2
          },
          "exp_month": {
            "type": "integer",
            "description": "Expiration month.",
            "maxLength": 2
          },
          "exp_year": {
            "type": "integer",
            "description": "Expiration year.",
            "maxLength": 4
          },
          "gateway_token": {
            "type": "string",
            "description": "A token used in place of a credit card in order to perform transactions.",
            "maxLength": 50
          },
          "cc_bin_country": {
            "type": "string",
            "description": "The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known."
          },
          "funding_source": {
            "description": "The funding source of the card, if known.",
            "type": "string",
            "enum": [
              "credit",
              "debit",
              "charge",
              "prepaid",
              "deferred_debit"
            ]
          },
          "gateway_code": {
            "type": "string",
            "description": "An identifier for a specific payment gateway.",
            "maxLength": 13
          },
          "gateway_attributes": {
            "type": "object",
            "description": "Gateway specific attributes associated with this PaymentMethod",
            "x-class-name": "GatewayAttributes",
            "properties": {
              "account_reference": {
                "type": "string",
                "description": "Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.",
                "maxLength": 264
              }
            }
          },
          "card_network_preference": {
            "description": "Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.",
            "type": "string",
            "enum": [
              "Bancontact",
              "CartesBancaires",
              "Dankort",
              "MasterCard",
              "Visa"
            ]
          },
          "billing_agreement_id": {
            "type": "string",
            "description": "Billing Agreement identifier. Only present for Amazon or Paypal payment methods."
          },
          "name_on_account": {
            "type": "string",
            "description": "The name associated with the bank account."
          },
          "account_type": {
            "description": "The bank account type. Only present for ACH payment methods.",
            "type": "string",
            "enum": [
              "checking",
              "savings"
            ]
          },
          "routing_number": {
            "type": "string",
            "description": "The bank account's routing number. Only present for ACH payment methods."
          },
          "routing_number_bank": {
            "type": "string",
            "description": "The bank name of this routing number."
          },
          "username": {
            "type": "string",
            "description": "Username of the associated payment method. Currently only associated with Venmo."
          }
        }
      },
      "BusinessEntityMini": {
        "type": "object",
        "description": "Business entity details",
        "properties": {
          "id": {
            "title": "Business entity ID",
            "type": "string",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "title": "Object type",
            "type": "string",
            "readOnly": true
          },
          "code": {
            "title": "Business entity code",
            "type": "string",
            "maxLength": 50,
            "description": "The entity code of the business entity."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "This name describes your business entity and will appear on the invoice.",
            "maxLength": 255
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "enum": [
              "bad_request",
              "immutable_subscription",
              "internal_server_error",
              "invalid_api_key",
              "invalid_api_version",
              "invalid_content_type",
              "invalid_permissions",
              "invalid_token",
              "missing_feature",
              "not_found",
              "rate_limited",
              "service_not_available",
              "simultaneous_request",
              "tax_service_error",
              "transaction",
              "unauthorized",
              "unavailable_in_api_version",
              "unknown_api_version",
              "validation"
            ]
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "params": {
            "type": "array",
            "title": "Parameter specific errors",
            "items": {
              "type": "object",
              "properties": {
                "param": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ErrorMayHaveTransaction": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "properties": {
              "transaction_error": {
                "type": "object",
                "x-class-name": "TransactionError",
                "title": "Transaction error details",
                "description": "This is only included on errors with `type=transaction`.",
                "properties": {
                  "object": {
                    "type": "string",
                    "title": "Object type"
                  },
                  "transaction_id": {
                    "type": "string",
                    "title": "Transaction ID",
                    "maxLength": 13
                  },
                  "category": {
                    "title": "Category",
                    "type": "string",
                    "enum": [
                      "three_d_secure_required",
                      "three_d_secure_action_required",
                      "amazon",
                      "api_error",
                      "approved",
                      "communication",
                      "configuration",
                      "duplicate",
                      "fraud",
                      "hard",
                      "invalid",
                      "not_enabled",
                      "not_supported",
                      "recurly",
                      "referral",
                      "skles",
                      "soft",
                      "unknown"
                    ]
                  },
                  "code": {
                    "title": "Code",
                    "type": "string",
                    "enum": [
                      "ach_cancel",
                      "ach_chargeback",
                      "ach_credit_return",
                      "ach_exception",
                      "ach_return",
                      "ach_transactions_not_supported",
                      "ach_validation_exception",
                      "amazon_amount_exceeded",
                      "amazon_declined_review",
                      "amazon_invalid_authorization_status",
                      "amazon_invalid_close_attempt",
                      "amazon_invalid_create_order_reference",
                      "amazon_invalid_order_status",
                      "amazon_not_authorized",
                      "amazon_order_not_modifiable",
                      "amazon_transaction_count_exceeded",
                      "api_error",
                      "approved",
                      "approved_fraud_review",
                      "authorization_already_captured",
                      "authorization_amount_depleted",
                      "authorization_expired",
                      "batch_processing_error",
                      "billing_agreement_already_accepted",
                      "billing_agreement_not_accepted",
                      "billing_agreement_not_found",
                      "billing_agreement_replaced",
                      "call_issuer",
                      "call_issuer_update_cardholder_data",
                      "cancelled",
                      "cannot_refund_unsettled_transactions",
                      "card_not_activated",
                      "card_type_not_accepted",
                      "cardholder_requested_stop",
                      "contact_gateway",
                      "contract_not_found",
                      "currency_not_supported",
                      "customer_canceled_transaction",
                      "cvv_required",
                      "declined",
                      "declined_card_number",
                      "declined_exception",
                      "declined_expiration_date",
                      "declined_missing_data",
                      "declined_saveable",
                      "declined_security_code",
                      "deposit_referenced_chargeback",
                      "direct_debit_type_not_accepted",
                      "duplicate_transaction",
                      "exceeds_daily_limit",
                      "exceeds_max_amount",
                      "expired_card",
                      "finbot_disconnect",
                      "finbot_unavailable",
                      "fraud_address",
                      "fraud_address_recurly",
                      "fraud_advanced_verification",
                      "fraud_gateway",
                      "fraud_generic",
                      "fraud_ip_address",
                      "fraud_manual_decision",
                      "fraud_risk_check",
                      "fraud_security_code",
                      "fraud_stolen_card",
                      "fraud_too_many_attempts",
                      "fraud_velocity",
                      "gateway_account_setup_incomplete",
                      "gateway_error",
                      "gateway_rate_limited",
                      "gateway_timeout",
                      "gateway_token_not_found",
                      "gateway_unavailable",
                      "gateway_validation_exception",
                      "insufficient_funds",
                      "invalid_account_number",
                      "invalid_amount",
                      "invalid_billing_agreement_status",
                      "invalid_card_number",
                      "invalid_data",
                      "invalid_email",
                      "invalid_gateway_access_token",
                      "invalid_gateway_configuration",
                      "invalid_issuer",
                      "invalid_login",
                      "invalid_merchant_type",
                      "invalid_name",
                      "invalid_payment_method",
                      "invalid_payment_method_hard",
                      "invalid_transaction",
                      "issuer_unavailable",
                      "lifecycle_decline",
                      "merch_max_transaction_limit_exceeded",
                      "moneybot_disconnect",
                      "moneybot_unavailable",
                      "no_billing_information",
                      "no_gateway",
                      "no_gateway_found_for_transaction_amount",
                      "partial_approval",
                      "partial_credits_not_supported",
                      "payer_authentication_rejected",
                      "payment_cannot_void_authorization",
                      "payment_not_accepted",
                      "paypal_account_issue",
                      "paypal_cannot_pay_self",
                      "paypal_declined_use_alternate",
                      "paypal_expired_reference_id",
                      "paypal_hard_decline",
                      "paypal_invalid_billing_agreement",
                      "paypal_primary_declined",
                      "processor_not_available",
                      "processor_unavailable",
                      "recurly_credentials_not_found",
                      "recurly_error",
                      "recurly_failed_to_get_token",
                      "recurly_token_mismatch",
                      "recurly_token_not_found",
                      "reference_transactions_not_enabled",
                      "restricted_card",
                      "restricted_card_chargeback",
                      "rjs_token_expired",
                      "roku_invalid_card_number",
                      "roku_invalid_cib",
                      "roku_invalid_payment_method",
                      "roku_zip_code_mismatch",
                      "simultaneous",
                      "ssl_error",
                      "temporary_hold",
                      "three_d_secure_action_required",
                      "three_d_secure_action_result_token_mismatch",
                      "three_d_secure_authentication",
                      "three_d_secure_connection_error",
                      "three_d_secure_credential_error",
                      "three_d_secure_not_supported",
                      "too_busy",
                      "too_many_attempts",
                      "total_credit_exceeds_capture",
                      "transaction_already_refunded",
                      "transaction_already_voided",
                      "transaction_cannot_be_authorized",
                      "transaction_cannot_be_refunded",
                      "transaction_cannot_be_refunded_currently",
                      "transaction_cannot_be_voided",
                      "transaction_failed_to_settle",
                      "transaction_not_found",
                      "transaction_service_v2_disconnect",
                      "transaction_service_v2_unavailable",
                      "transaction_settled",
                      "transaction_stale_at_gateway",
                      "try_again",
                      "unknown",
                      "unmapped_partner_error",
                      "vaultly_service_unavailable",
                      "zero_dollar_auth_not_supported"
                    ]
                  },
                  "decline_code": {
                    "title": "Decline code",
                    "type": "string",
                    "enum": [
                      "account_closed",
                      "call_issuer",
                      "card_not_activated",
                      "card_not_supported",
                      "cardholder_requested_stop",
                      "do_not_honor",
                      "do_not_try_again",
                      "exceeds_daily_limit",
                      "generic_decline",
                      "expired_card",
                      "fraudulent",
                      "insufficient_funds",
                      "incorrect_address",
                      "incorrect_security_code",
                      "invalid_amount",
                      "invalid_number",
                      "invalid_transaction",
                      "issuer_unavailable",
                      "lifecycle_decline",
                      "lost_card",
                      "pickup_card",
                      "policy_decline",
                      "restricted_card",
                      "restricted_card_chargeback",
                      "security_decline",
                      "stolen_card",
                      "try_again",
                      "update_cardholder_data",
                      "requires_3d_secure"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "title": "Customer message"
                  },
                  "merchant_advice": {
                    "type": "string",
                    "title": "Merchant message"
                  },
                  "three_d_secure_action_token_id": {
                    "type": "string",
                    "title": "3-D Secure action token id",
                    "description": "Returned when 3-D Secure authentication is required for a transaction. Pass this value to Recurly.js so it can continue the challenge flow.",
                    "maxLength": 22
                  },
                  "fraud_info": {
                    "$ref": "#/components/schemas/TransactionFraudInfo"
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}
````

# Sibling pages

* [Fetch a subscription's pending change](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/get_subscription_change.md)
* [Delete the pending subscription change](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/remove_subscription_change.md)
* [Preview a new subscription change](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/preview_subscription_change.md)