From a597b3547bd58e8470e63bd0e9ef6224bf5d5354 Mon Sep 17 00:00:00 2001
From: Michael Nahkies
Date: Sat, 6 Apr 2024 12:10:44 +0100
Subject: [PATCH] chore: refresh data (#142)
`./scripts/refresh-data.sh && yarn ci-pipeline`
---
.../api.github.com.yaml | 15459 +++++----
integration-tests-definitions/stripe.yaml | 27371 ++++++++++++----
.../api.github.com.yaml/client.service.ts | 1828 +-
.../generated/api.github.com.yaml/models.ts | 561 +-
.../generated/stripe.yaml/client.service.ts | 5233 ++-
.../src/generated/stripe.yaml/models.ts | 1340 +-
.../generated/api.github.com.yaml/client.ts | 1825 +-
.../generated/api.github.com.yaml/models.ts | 561 +-
.../src/generated/stripe.yaml/client.ts | 3999 ++-
.../src/generated/stripe.yaml/models.ts | 1340 +-
.../generated/api.github.com.yaml/client.ts | 1369 +-
.../generated/api.github.com.yaml/models.ts | 561 +-
.../src/generated/stripe.yaml/client.ts | 3996 ++-
.../src/generated/stripe.yaml/models.ts | 1340 +-
.../api.github.com.yaml/generated.ts | 10403 +++---
.../generated/api.github.com.yaml/models.ts | 894 +-
.../generated/api.github.com.yaml/schemas.ts | 873 +-
.../src/generated/stripe.yaml/generated.ts | 10461 +++++-
.../src/generated/stripe.yaml/models.ts | 3699 ++-
.../src/generated/stripe.yaml/schemas.ts | 1880 +-
20 files changed, 72014 insertions(+), 22979 deletions(-)
diff --git a/integration-tests-definitions/api.github.com.yaml b/integration-tests-definitions/api.github.com.yaml
index bec7541f..e147387a 100644
--- a/integration-tests-definitions/api.github.com.yaml
+++ b/integration-tests-definitions/api.github.com.yaml
@@ -85,6 +85,8 @@ tags:
description: Owner or admin management of users interactions.
- name: classroom
description: Interact with GitHub Classroom.
+- name: desktop
+ description: Desktop specific endpoints.
servers:
- url: https://api.github.com
externalDocs:
@@ -158,20 +160,7 @@ paths:
in: query
description: If specified, only advisories for these ecosystems will be returned.
schema:
- type: string
- enum:
- - actions
- - composer
- - erlang
- - go
- - maven
- - npm
- - nuget
- - other
- - pip
- - pub
- - rubygems
- - rust
+ "$ref": "#/components/schemas/security-advisory-ecosystems"
- name: severity
in: query
description: If specified, only advisories with these severities will be returned.
@@ -242,7 +231,8 @@ paths:
- "$ref": "#/components/parameters/pagination-after"
- "$ref": "#/components/parameters/direction"
- name: per_page
- description: The number of results per page (max 100).
+ description: The number of results per page (max 100). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -618,9 +608,9 @@ paths:
get:
summary: List installations for the authenticated app
description: |-
- You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
-
The permissions the installation has are included under the `permissions` key.
+
+ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
tags:
- apps
operationId: apps/list-installations
@@ -716,10 +706,33 @@ paths:
"/app/installations/{installation_id}/access_tokens":
post:
summary: Create an installation access token for an app
- description: |-
- Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key.
-
- You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
+ description: "Creates an installation access token that enables a GitHub App
+ to make authenticated API requests for the app's installation on an organization
+ or individual account. Installation tokens expire one hour from the time you
+ create them. Using an expired token produces a status code of `401 - Unauthorized`,
+ and requires creating a new installation token. By default the installation
+ token has access to all repositories that the installation can access. \n\nOptionally,
+ you can use the `repositories` or `repository_ids` body parameters to specify
+ individual repositories that the installation access token can access. If
+ you don't use `repositories` or `repository_ids` to grant access to specific
+ repositories, the installation access token will have access to all repositories
+ that the installation was granted access to. The installation access token
+ cannot be granted access to repositories that the installation was not granted
+ access to. Up to 500 repositories can be listed in this manner.\n\nOptionally,
+ use the `permissions` body parameter to specify the permissions that the installation
+ access token should have. If `permissions` is not specified, the installation
+ access token will have all of the permissions that were granted to the app.
+ The installation access token cannot be granted permissions that the app was
+ not granted.\n\nWhen using the repository or permission parameters to reduce
+ the access of the token, the complexity of the token is increased due to both
+ the number of permissions in the request and the number of repositories the
+ token will have access to. If the complexity is too large, the token will
+ fail to be issued. If this occurs, the error message will indicate the maximum
+ number of repositories that should be requested. For the average application
+ requesting 8 permissions, this limit is around 5000 repositories. With fewer
+ permissions requested, more repositories are supported. \n\nYou must use a
+ [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app)
+ to access this endpoint."
tags:
- apps
operationId: apps/create-installation-access-token
@@ -755,7 +768,8 @@ paths:
examples:
default:
value:
- repository: Hello-World
+ repositories:
+ - Hello-World
permissions:
issues: write
contents: read
@@ -1018,13 +1032,16 @@ paths:
"/applications/{client_id}/token/scoped":
post:
summary: Create a scoped access token
- description: Use a non-scoped user access token to create a repository scoped
- and/or permission scoped user access token. You can specify which repositories
- the token can access and which permissions are granted to the token. You must
- use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)
- when accessing this endpoint, using the `client_id` and `client_secret` of
- the GitHub App as the username and password. Invalid tokens will return `404
- NOT FOUND`.
+ description: |-
+ Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specify
+ which repositories the token can access and which permissions are granted to the
+ token.
+
+ Invalid tokens will return `404 NOT FOUND`.
+
+ You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)
+ when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App
+ as the username and password.
tags:
- apps
operationId: apps/scope-token
@@ -1111,10 +1128,9 @@ paths:
"/apps/{app_slug}":
get:
summary: Get an app
- description: |-
- **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).
-
- If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.
+ description: "**Note**: The `:app_slug` is just the URL-friendly name of your
+ GitHub App. You can find this on the settings page for your GitHub App (e.g.,
+ `https://github.com/settings/apps/:app_slug`)."
tags:
- apps
operationId: apps/get-by-slug
@@ -1429,9 +1445,12 @@ paths:
summary: List Dependabot alerts for an enterprise
description: |-
Lists Dependabot alerts for repositories that are owned by the specified enterprise.
- To use this endpoint, you must be a member of the enterprise, and you must use an
- access token with the `repo` scope or `security_events` scope.
+
+ The authenticated user must be a member of the enterprise to use this endpoint.
+
Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager. For more information about security managers, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/list-alerts-for-enterprise
@@ -1483,7 +1502,12 @@ paths:
summary: List secret scanning alerts for an enterprise
description: |-
Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.
- To use this endpoint, you must be a member of the enterprise, and you must use an access token with the `repo` scope or `security_events` scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a [security manager](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).
+
+ Alerts are only returned for organizations in the enterprise for which the authenticated user is an organization owner or a [security manager](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).
+
+ The authenticated user must be a member of the enterprise in order to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope or `security_events` scope to use this endpoint.
tags:
- secret-scanning
operationId: secret-scanning/list-alerts-for-enterprise
@@ -1500,6 +1524,7 @@ paths:
- "$ref": "#/components/parameters/per-page"
- "$ref": "#/components/parameters/pagination-before"
- "$ref": "#/components/parameters/pagination-after"
+ - "$ref": "#/components/parameters/secret-scanning-alert-validity"
responses:
'200':
description: Response
@@ -1566,16 +1591,18 @@ paths:
get:
summary: Get feeds
description: |-
- GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:
+ Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.
* **Timeline**: The GitHub global public timeline
- * **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)
+ * **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
* **Current user public**: The public timeline for the authenticated user
* **Current user**: The private timeline for the authenticated user
* **Current user actor**: The private timeline for activity created by the authenticated user
* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.
* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.
+ By default, timeline resources are returned in JSON. You can specify the `application/atom+xml` type in the `Accept` header to return timeline resources in Atom format. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
tags:
- activity
@@ -1734,7 +1761,7 @@ paths:
description: |-
List public gists sorted by most recently updated to least recently updated.
- Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
+ Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
tags:
- gists
operationId: gists/list-public
@@ -1814,7 +1841,13 @@ paths:
"/gists/{gist_id}":
get:
summary: Get a gist
- description: ''
+ description: |-
+ Gets a specified gist.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/get
@@ -1847,8 +1880,16 @@ paths:
patch:
summary: Update a gist
description: |-
- Allows you to update a gist's description and to update, delete, or rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.
+ Allows you to update a gist's description and to update, delete, or rename gist files. Files
+ from the previous version of the gist that aren't explicitly changed during an edit
+ are unchanged.
+
At least one of `description` or `files` is required.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/update
@@ -1962,7 +2003,13 @@ paths:
"/gists/{gist_id}/comments":
get:
summary: List gist comments
- description: ''
+ description: |-
+ Lists the comments on a gist.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/list-comments
@@ -2001,7 +2048,13 @@ paths:
subcategory: comments
post:
summary: Create a gist comment
- description: ''
+ description: |-
+ Creates a comment on a gist.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/create-comment
@@ -2058,7 +2111,13 @@ paths:
"/gists/{gist_id}/comments/{comment_id}":
get:
summary: Get a gist comment
- description: ''
+ description: |-
+ Gets a comment on a gist.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/get-comment
@@ -2091,7 +2150,13 @@ paths:
subcategory: comments
patch:
summary: Update a gist comment
- description: ''
+ description: |-
+ Updates a comment on a gist.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/update-comment
@@ -2319,7 +2384,7 @@ paths:
put:
summary: Star a gist
description: Note that you'll need to set `Content-Length` to zero when calling
- out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- gists
operationId: gists/star
@@ -2370,7 +2435,13 @@ paths:
"/gists/{gist_id}/{sha}":
get:
summary: Get a gist revision
- description: ''
+ description: |-
+ Gets a specified gist revision.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
tags:
- gists
operationId: gists/get-revision
@@ -2447,8 +2518,11 @@ paths:
get:
summary: Get a gitignore template
description: |-
- The API also allows fetching the source of a single template.
- Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.
+ Get the content of a gitignore template.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents.
operationId: gitignore/get-template
tags:
- gitignore
@@ -2481,10 +2555,7 @@ paths:
"/installation/repositories":
get:
summary: List repositories accessible to the app installation
- description: |-
- List repositories that an app installation can access.
-
- You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.
+ description: List repositories that an app installation can access.
tags:
- apps
operationId: apps/list-repos-accessible-to-installation
@@ -2538,8 +2609,6 @@ paths:
Revokes the installation token you're using to authenticate as an installation and access this endpoint.
Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create an installation access token for an app](https://docs.github.com/rest/apps/apps#create-an-installation-access-token-for-an-app)" endpoint.
-
- You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.
tags:
- apps
operationId: apps/revoke-installation-access-token
@@ -2563,11 +2632,17 @@ paths:
repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not
necessarily assigned to you.
-
**Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this
reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list
@@ -3212,7 +3287,8 @@ paths:
- "$ref": "#/components/parameters/before"
- "$ref": "#/components/parameters/page"
- name: per_page
- description: The number of results per page (max 50).
+ description: The number of results per page (max 50). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -3366,6 +3442,26 @@ paths:
enabledForGitHubApps: false
category: activity
subcategory: notifications
+ delete:
+ summary: Mark a thread as done
+ description: 'Marks a thread as "done." Marking a thread as "done" is equivalent
+ to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications.'
+ tags:
+ - activity
+ operationId: activity/mark-thread-as-done
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done
+ parameters:
+ - "$ref": "#/components/parameters/thread-id"
+ responses:
+ '204':
+ description: No content
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: false
+ category: activity
+ subcategory: notifications
"/notifications/threads/{thread_id}/subscription":
get:
summary: Get a thread subscription for the authenticated user
@@ -3519,7 +3615,7 @@ paths:
get:
summary: List organizations
description: |-
- Lists all organizations, in the order that they were created on GitHub.
+ Lists all organizations, in the order that they were created.
**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
tags:
@@ -3559,9 +3655,26 @@ paths:
get:
summary: Get an organization
description: |-
- To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).
+ Gets information about an organization.
+
+ When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).
+
+ To see the full details about an organization, the authenticated user must be an organization owner.
+
+ The values returned by this endpoint are set by the "Update an organization" endpoint. If your organization set a default security configuration (beta), the following values retrieved from the "Update an organization" endpoint have been overwritten by that configuration:
+
+ - advanced_security_enabled_for_new_repositories
+ - dependabot_alerts_enabled_for_new_repositories
+ - dependabot_security_updates_enabled_for_new_repositories
+ - dependency_graph_enabled_for_new_repositories
+ - secret_scanning_enabled_for_new_repositories
+ - secret_scanning_push_protection_enabled_for_new_repositories
- GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example response, see 'Response with GitHub plan information' below."
+ For more information on security configurations, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to see the full details about an organization.
+
+ To see information about an organization's GitHub plan, GitHub Apps need the `Organization plan` permission.
tags:
- orgs
operationId: orgs/get
@@ -3592,7 +3705,22 @@ paths:
description: |-
**Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).
- Enables an authenticated organization owner with the `admin:org` scope or the `repo` scope to update the organization's profile and member privileges.
+ Updates the organization's profile and member privileges.
+
+ With security configurations (beta), your organization can choose a default security configuration which will automatically apply a set of security enablement settings to new repositories in your organization based on their visibility. For targeted repositories, the following attributes will be overridden by the default security configuration:
+
+ - advanced_security_enabled_for_new_repositories
+ - dependabot_alerts_enabled_for_new_repositories
+ - dependabot_security_updates_enabled_for_new_repositories
+ - dependency_graph_enabled_for_new_repositories
+ - secret_scanning_enabled_for_new_repositories
+ - secret_scanning_push_protection_enabled_for_new_repositories
+
+ For more information on setting a default security configuration, see "[Enabling security features at scale](https://docs.github.com/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale)."
+
+ The authenticated user must be an organization owner to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint.
tags:
- orgs
operationId: orgs/update
@@ -3628,7 +3756,8 @@ paths:
description: The shorthand name of the company.
description:
type: string
- description: The description of the company.
+ description: The description of the company. The maximum size is
+ 160 characters.
has_organization_projects:
type: boolean
description: Whether an organization can use organization projects.
@@ -3849,7 +3978,8 @@ paths:
description: |-
Gets the total GitHub Actions cache usage for an organization.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
- You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `organization_admistration:read` permission to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
tags:
- actions
operationId: actions/get-actions-cache-usage-for-org
@@ -3882,7 +4012,8 @@ paths:
description: |-
Lists repositories and their GitHub Actions cache usage for an organization.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
- You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `organization_admistration:read` permission to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
tags:
- actions
operationId: actions/get-actions-cache-usage-by-repo-for-org
@@ -3926,8 +4057,8 @@ paths:
summary: Get the customization template for an OIDC subject claim for an organization
description: |-
Gets the customization template for an OpenID Connect (OIDC) subject claim.
- You must authenticate using an access token with the `read:org` scope to use this endpoint.
- GitHub Apps must have the `organization_administration:write` permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
tags:
- oidc
operationId: oidc/get-oidc-custom-sub-template-for-org
@@ -3954,8 +4085,8 @@ paths:
summary: Set the customization template for an OIDC subject claim for an organization
description: |-
Creates or updates the customization template for an OpenID Connect (OIDC) subject claim.
- You must authenticate using an access token with the `write:org` scope to use this endpoint.
- GitHub Apps must have the `admin:org` permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
tags:
- oidc
operationId: oidc/update-oidc-custom-sub-template-for-org
@@ -3998,7 +4129,7 @@ paths:
description: |-
Gets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/get-github-actions-permissions-organization
tags:
- actions
@@ -4027,7 +4158,7 @@ paths:
description: |-
Sets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/set-github-actions-permissions-organization
tags:
- actions
@@ -4068,7 +4199,7 @@ paths:
description: |-
Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/list-selected-repositories-enabled-github-actions-organization
tags:
- actions
@@ -4109,7 +4240,8 @@ paths:
description: |-
Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/set-selected-repositories-enabled-github-actions-organization
tags:
- actions
@@ -4153,7 +4285,7 @@ paths:
description: |-
Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/enable-selected-repository-github-actions-organization
tags:
- actions
@@ -4176,7 +4308,7 @@ paths:
description: |-
Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/disable-selected-repository-github-actions-organization
tags:
- actions
@@ -4198,9 +4330,9 @@ paths:
get:
summary: Get allowed actions and reusable workflows for an organization
description: |-
- Gets the selected actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).""
+ Gets the selected actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/get-allowed-actions-organization
tags:
- actions
@@ -4229,7 +4361,7 @@ paths:
description: |-
Sets the actions and reusable workflows that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
operationId: actions/set-allowed-actions-organization
tags:
- actions
@@ -4263,7 +4395,7 @@ paths:
as well as whether GitHub Actions can submit approving pull request reviews. For more information, see
"[Setting the permissions of the GITHUB_TOKEN for your organization](https://docs.github.com/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- actions
operationId: actions/get-github-actions-default-workflow-permissions-organization
@@ -4294,7 +4426,7 @@ paths:
can submit approving pull request reviews. For more information, see
"[Setting the permissions of the GITHUB_TOKEN for your organization](https://docs.github.com/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- actions
operationId: actions/set-github-actions-default-workflow-permissions-organization
@@ -4326,10 +4458,9 @@ paths:
description: |-
Lists all self-hosted runners configured in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-self-hosted-runners-for-org
@@ -4379,10 +4510,9 @@ paths:
description: |-
Lists binaries for the runner application that you can download and run.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-runner-applications-for-org
@@ -4414,10 +4544,9 @@ paths:
description: |-
Generates a configuration that can be passed to the runner application at startup.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ The authenticated user must have admin access to the organization.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/generate-runner-jitconfig-for-org
@@ -4482,17 +4611,18 @@ paths:
"/orgs/{org}/actions/runners/registration-token":
post:
summary: Create a registration token for an organization
- description: "Returns a token that you can pass to the `config` script. The
- token expires after one hour.\n\nYou must authenticate using an access token
- with the `admin:org` scope to use this endpoint.\nIf the repository is private,
- you must use an access token with the `repo` scope.\nGitHub Apps must have
- the `administration` permission for repositories and the `organization_self_hosted_runners`
- permission for organizations.\nAuthenticated users must have admin access
- to repositories or organizations, or the `manage_runners:enterprise` scope
- for enterprises, to use these endpoints.\n\nExample using registration token:
- \n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration
- token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/octo-org
- --token TOKEN\n```"
+ description: |-
+ Returns a token that you can pass to the `config` script. The token expires after one hour.
+
+ For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:
+
+ ```
+ ./config.sh --url https://github.com/octo-org --token TOKEN
+ ```
+
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-registration-token-for-org
@@ -4522,19 +4652,15 @@ paths:
description: |-
Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
-
- Example using remove token:
-
- To remove your self-hosted runner from an organization, replace `TOKEN` with the remove token provided by this
- endpoint.
+ For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:
```
./config.sh remove --token TOKEN
```
+
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-remove-token-for-org
@@ -4564,10 +4690,9 @@ paths:
description: |-
Gets a specific self-hosted runner configured in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/get-self-hosted-runner-for-org
@@ -4597,10 +4722,9 @@ paths:
description: |-
Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-self-hosted-runner-from-org
@@ -4624,10 +4748,9 @@ paths:
description: |-
Lists all labels for a self-hosted runner configured in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-labels-for-self-hosted-runner-for-org
@@ -4650,12 +4773,11 @@ paths:
post:
summary: Add custom labels to a self-hosted runner for an organization
description: |-
- Add custom labels to a self-hosted runner configured in an organization.
+ Adds custom labels to a self-hosted runner configured in an organization.
+
+ Authenticated users must have admin access to the organization to use this endpoint.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- actions
operationId: actions/add-custom-labels-to-self-hosted-runner-for-org
@@ -4705,10 +4827,9 @@ paths:
Remove all previous custom labels and set the new custom labels for a specific
self-hosted runner configured in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/set-custom-labels-for-self-hosted-runner-for-org
@@ -4759,10 +4880,9 @@ paths:
Remove all custom labels from a self-hosted runner configured in an
organization. Returns the remaining read-only labels from the runner.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/remove-all-custom-labels-from-self-hosted-runner-for-org
@@ -4792,10 +4912,9 @@ paths:
This endpoint returns a `404 Not Found` status if the custom label is not
present on the runner.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/remove-custom-label-from-self-hosted-runner-for-org
@@ -4825,10 +4944,9 @@ paths:
Lists all secrets available in an organization without revealing their
encrypted values.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-org-secrets
@@ -4874,10 +4992,9 @@ paths:
Gets your public key, which you need to encrypt secrets. You need to
encrypt a secret before you can create or update secrets.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+ The authenticated user must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-org-public-key
@@ -4907,10 +5024,9 @@ paths:
description: |-
Gets a single organization secret without revealing its encrypted value.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+ The authenticated user must have collaborator access to a repository to create, update, or read secrets
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-org-secret
@@ -4941,10 +5057,9 @@ paths:
Creates or updates an organization secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-or-update-org-secret
@@ -5025,10 +5140,9 @@ paths:
description: |-
Deletes a secret in an organization using the secret name.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-org-secret
@@ -5053,10 +5167,9 @@ paths:
Lists all repositories that have been selected when the `visibility`
for repository access to a secret is set to `selected`.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-selected-repos-for-org-secret
@@ -5100,10 +5213,9 @@ paths:
for repository access is set to `selected`. The visibility is set when you [Create
or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/set-selected-repos-for-org-secret
@@ -5151,13 +5263,12 @@ paths:
summary: Add selected repository to an organization secret
description: |-
Adds a repository to an organization secret when the `visibility` for
- repository access is set to `selected`. The visibility is set when you [Create or
+ repository access is set to `selected`. For more information about setting the visibility, see [Create or
update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/add-selected-repo-to-org-secret
@@ -5189,10 +5300,9 @@ paths:
for repository access is set to `selected`. The visibility is set when you [Create
or update an organization secret](https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/remove-selected-repo-from-org-secret
@@ -5222,7 +5332,10 @@ paths:
summary: List organization variables
description: |-
Lists all organization variables.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `organization_actions_variables:read` organization permission to use this endpoint. Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-org-variables
@@ -5266,10 +5379,9 @@ paths:
description: |-
Creates an organization variable that you can reference in a GitHub Actions workflow.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-org-variable
@@ -5341,10 +5453,9 @@ paths:
description: |-
Gets a specific variable in an organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:read` organization permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
+ The authenticated user must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-org-variable
@@ -5374,10 +5485,9 @@ paths:
description: |-
Updates an organization variable that you can reference in a GitHub Actions workflow.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/update-org-variable
@@ -5438,10 +5548,9 @@ paths:
description: |-
Deletes an organization variable using the variable name.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the`admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-org-variable
@@ -5466,10 +5575,9 @@ paths:
Lists all repositories that can access an organization variable
that is available to selected repositories.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:read` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/list-selected-repos-for-org-variable
@@ -5516,11 +5624,9 @@ paths:
to selected repositories. Organization variables that are available to selected
repositories have their `visibility` field set to `selected`.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this
- endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/set-selected-repos-for-org-variable
@@ -5568,10 +5674,9 @@ paths:
Adds a repository to an organization variable that is available to selected repositories.
Organization variables that are available to selected repositories have their `visibility` field set to `selected`.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
+ Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/add-selected-repo-to-org-variable
@@ -5604,10 +5709,9 @@ paths:
available to selected repositories. Organization variables that are available to
selected repositories have their `visibility` field set to `selected`.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `organization_actions_variables:write` organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.
tags:
- actions
operationId: actions/remove-selected-repo-from-org-variable
@@ -5742,11 +5846,9 @@ paths:
description: |-
Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
- To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the `repo` scope or `security_events` scope.
-
- For public repositories, you may instead use the `public_repo` scope.
+ The authenticated user must be an owner or security manager for the organization to use this endpoint.
- GitHub Apps must have the `security_events` read permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `security_events` or `repo`s cope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/list-alerts-for-org
@@ -5816,7 +5918,7 @@ paths:
description: |-
Lists the codespaces associated to a specified organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-in-organization
@@ -5867,7 +5969,7 @@ paths:
summary: Manage access control for organization codespaces
description: |-
Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces access permissions for users according to the visibility.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/set-codespaces-access
@@ -5938,7 +6040,7 @@ paths:
To use this endpoint, the access settings for the organization must be set to `selected_members`.
For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/set-codespaces-access-users
@@ -5996,7 +6098,7 @@ paths:
To use this endpoint, the access settings for the organization must be set to `selected_members`.
For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)."
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-codespaces-access-users
@@ -6050,8 +6152,10 @@ paths:
get:
summary: List organization secrets
description: |-
- Lists all Codespaces secrets available at the organization-level without revealing their encrypted values.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ Lists all Codespaces development environment secrets available at the organization-level without revealing their encrypted
+ values.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-org-secrets
@@ -6093,10 +6197,9 @@ paths:
"/orgs/{org}/codespaces/secrets/public-key":
get:
summary: Get an organization public key
- description: Gets a public key for an organization, which is required in order
- to encrypt secrets. You need to encrypt the value of a secret before you can
- create or update secrets. You must authenticate using an access token with
- the `admin:org` scope to use this endpoint.
+ description: |-
+ Gets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-org-public-key
@@ -6124,8 +6227,9 @@ paths:
get:
summary: Get an organization secret
description: |-
- Gets an organization secret without revealing its encrypted value.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ Gets an organization development environment secret without revealing its encrypted value.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-org-secret
@@ -6156,11 +6260,10 @@ paths:
put:
summary: Create or update an organization secret
description: |-
- Creates or updates an organization secret with an encrypted value. Encrypt your secret using
+ Creates or updates an organization development environment secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access
- token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-or-update-org-secret
@@ -6242,9 +6345,10 @@ paths:
subcategory: organization-secrets
delete:
summary: Delete an organization secret
- description: Deletes an organization secret using the secret name. You must
- authenticate using an access token with the `admin:org` scope to use this
- endpoint.
+ description: |-
+ Deletes an organization development environment secret using the secret name.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-org-secret
@@ -6267,9 +6371,11 @@ paths:
"/orgs/{org}/codespaces/secrets/{secret_name}/repositories":
get:
summary: List selected repositories for an organization secret
- description: Lists all repositories that have been selected when the `visibility`
- for repository access to a secret is set to `selected`. You must authenticate
- using an access token with the `admin:org` scope to use this endpoint.
+ description: |-
+ Lists all repositories that have been selected when the `visibility`
+ for repository access to a secret is set to `selected`.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-selected-repos-for-org-secret
@@ -6310,11 +6416,12 @@ paths:
subcategory: organization-secrets
put:
summary: Set selected repositories for an organization secret
- description: Replaces all repositories for an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint.
+ description: |-
+ Replaces all repositories for an organization development environment secret when the `visibility`
+ for repository access is set to `selected`. The visibility is set when you [Create
+ or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/set-selected-repos-for-org-secret
@@ -6364,11 +6471,9 @@ paths:
"/orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}":
put:
summary: Add selected repository to an organization secret
- description: Adds a repository to an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint.
+ description: |-
+ Adds a repository to an organization development environment secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/add-selected-repo-to-org-secret
@@ -6399,11 +6504,12 @@ paths:
subcategory: organization-secrets
delete:
summary: Remove selected repository from an organization secret
- description: Removes a repository from an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint.
+ description: |-
+ Removes a repository from an organization development environment secret when the `visibility`
+ for repository access is set to `selected`. The visibility is set when you [Create
+ or update an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret).
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/remove-selected-repo-from-org-secret
@@ -6434,22 +6540,23 @@ paths:
subcategory: organization-secrets
"/orgs/{org}/copilot/billing":
get:
- summary: Get Copilot for Business seat information and settings for an organization
+ summary: Get Copilot seat information and settings for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Gets information about an organization's Copilot for Business subscription, including seat breakdown
+ Gets information about an organization's Copilot subscription, including seat breakdown
and code matching policies. To configure these settings, go to your organization's settings on GitHub.com.
- For more information, see "[Configuring GitHub Copilot settings in your organization](https://docs.github.com/copilot/configuring-github-copilot/configuring-github-copilot-settings-in-your-organization)".
+ For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".
- Only organization owners and members with admin permissions can configure and view details about the organization's Copilot for Business subscription. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ Only organization owners can configure and view details about the organization's Copilot Business subscription.
+
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
operationId: copilot/get-copilot-organization-details
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-information-and-settings-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-information-and-settings-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
responses:
@@ -6470,32 +6577,36 @@ paths:
"$ref": "#/components/responses/forbidden"
'404':
"$ref": "#/components/responses/not_found"
+ '422':
+ description: There is a problem with your account's associated payment method.
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
"/orgs/{org}/copilot/billing/seats":
get:
- summary: List all Copilot for Business seat assignments for an organization
+ summary: List all Copilot seat assignments for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Lists all Copilot for Business seat assignments for an organization that are currently being billed (either active or pending cancellation at the start of the next billing cycle).
+ Lists all Copilot seat assignments for an organization that are currently being billed (either active or pending cancellation at the start of the next billing cycle).
+
+ Only organization owners can configure and view details about the organization's Copilot Business or Enterprise subscription.
- Only organization owners and members with admin permissions can configure and view details about the organization's Copilot for Business subscription. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
operationId: copilot/list-copilot-seats
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#list-all-copilot-for-business-seat-assignments-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
- "$ref": "#/components/parameters/page"
- name: per_page
- description: The number of results per page (max 100).
+ description: The number of results per page (max 100). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -6510,8 +6621,8 @@ paths:
properties:
total_seats:
type: integer
- description: Total number of Copilot For Business seats for the
- organization currently being billed.
+ description: Total number of Copilot seats for the organization
+ currently being billed.
seats:
type: array
items:
@@ -6534,28 +6645,29 @@ paths:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
"/orgs/{org}/copilot/billing/selected_teams":
post:
- summary: Add teams to the Copilot for Business subscription for an organization
+ summary: Add teams to the Copilot subscription for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Purchases a GitHub Copilot for Business seat for all users within each specified team.
- The organization will be billed accordingly. For more information about Copilot for Business pricing, see "[About billing for GitHub Copilot for Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-for-business)".
+ Purchases a GitHub Copilot seat for all users within each specified team.
+ The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
- Only organization owners and members with admin permissions can configure GitHub Copilot in their organization. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ Only organization owners can configure GitHub Copilot in their organization.
- In order for an admin to use this endpoint, the organization must have a Copilot for Business subscription and a configured suggestion matching policy.
- For more information about setting up a Copilot for Business subscription, see "[Setting up a Copilot for Business subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise#setting-up-a-copilot-for-business-subscription-for-your-organization)".
- For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/configuring-github-copilot/configuring-github-copilot-settings-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
+ In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
+ For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
+ For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
+
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
- operationId: copilot/add-copilot-for-business-seats-for-teams
+ operationId: copilot/add-copilot-seats-for-teams
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#add-teams-to-the-copilot-for-business-subscription-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#add-teams-to-the-copilot-subscription-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
requestBody:
@@ -6607,7 +6719,7 @@ paths:
'404':
"$ref": "#/components/responses/not_found"
'422':
- description: Copilot for Business is not enabled for this organization,
+ description: Copilot Business or Enterprise is not enabled for this organization,
billing has not been set up for this organization, a public code suggestions
policy has not been set for this organization, or the organization's Copilot
access setting is set to enable Copilot for all users or is unconfigured.
@@ -6615,27 +6727,28 @@ paths:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
delete:
- summary: Remove teams from the Copilot for Business subscription for an organization
+ summary: Remove teams from the Copilot subscription for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Cancels the Copilot for Business seat assignment for all members of each team specified.
+ Cancels the Copilot seat assignment for all members of each team specified.
This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
- For more information about Copilot for Business pricing, see "[About billing for GitHub Copilot for Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-for-business)".
+ For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
+
+ For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
- For more information about disabling access to Copilot for Business, see "[Disabling access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/configuring-github-copilot/configuring-github-copilot-settings-in-your-organization#disabling-access-to-github-copilot-for-specific-users-in-your-organization)".
+ Only organization owners can configure GitHub Copilot in their organization.
- Only organization owners and members with admin permissions can configure GitHub Copilot in their organization. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
operationId: copilot/cancel-copilot-seat-assignment-for-teams
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#remove-teams-from-the-copilot-for-business-subscription-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
requestBody:
@@ -6687,7 +6800,7 @@ paths:
'404':
"$ref": "#/components/responses/not_found"
'422':
- description: Copilot for Business is not enabled for this organization,
+ description: Copilot Business or Enterprise is not enabled for this organization,
billing has not been set up for this organization, a public code suggestions
policy has not been set for this organization, or the organization's Copilot
access setting is set to enable Copilot for all users or is unconfigured.
@@ -6695,28 +6808,29 @@ paths:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
"/orgs/{org}/copilot/billing/selected_users":
post:
- summary: Add users to the Copilot for Business subscription for an organization
+ summary: Add users to the Copilot subscription for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Purchases a GitHub Copilot for Business seat for each user specified.
- The organization will be billed accordingly. For more information about Copilot for Business pricing, see "[About billing for GitHub Copilot for Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-for-business)".
+ Purchases a GitHub Copilot seat for each user specified.
+ The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
- Only organization owners and members with admin permissions can configure GitHub Copilot in their organization. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ Only organization owners can configure GitHub Copilot in their organization.
- In order for an admin to use this endpoint, the organization must have a Copilot for Business subscription and a configured suggestion matching policy.
- For more information about setting up a Copilot for Business subscription, see "[Setting up a Copilot for Business subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise#setting-up-a-copilot-for-business-subscription-for-your-organization)".
- For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/configuring-github-copilot/configuring-github-copilot-settings-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
+ In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.
+ For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".
+ For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".
+
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
- operationId: copilot/add-copilot-for-business-seats-for-users
+ operationId: copilot/add-copilot-seats-for-users
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#add-users-to-the-copilot-for-business-subscription-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
requestBody:
@@ -6768,7 +6882,7 @@ paths:
'404':
"$ref": "#/components/responses/not_found"
'422':
- description: Copilot for Business is not enabled for this organization,
+ description: Copilot Business or Enterprise is not enabled for this organization,
billing has not been set up for this organization, a public code suggestions
policy has not been set for this organization, or the organization's Copilot
access setting is set to enable Copilot for all users or is unconfigured.
@@ -6776,27 +6890,28 @@ paths:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
delete:
- summary: Remove users from the Copilot for Business subscription for an organization
+ summary: Remove users from the Copilot subscription for an organization
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Cancels the Copilot for Business seat assignment for each user specified.
+ Cancels the Copilot seat assignment for each user specified.
This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.
- For more information about Copilot for Business pricing, see "[About billing for GitHub Copilot for Business](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#pricing-for-github-copilot-for-business)"
+ For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".
+
+ For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".
- For more information about disabling access to Copilot for Business, see "[Disabling access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/configuring-github-copilot/configuring-github-copilot-settings-in-your-organization#disabling-access-to-github-copilot-for-specific-users-in-your-organization)".
+ Only organization owners can configure GitHub Copilot in their organization.
- Only organization owners and members with admin permissions can configure GitHub Copilot in their organization. You must
- authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
operationId: copilot/cancel-copilot-seat-assignment-for-users
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#remove-users-from-the-copilot-for-business-subscription-for-an-organization
+ url: https://docs.github.com/rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization
parameters:
- "$ref": "#/components/parameters/org"
requestBody:
@@ -6848,7 +6963,7 @@ paths:
'404':
"$ref": "#/components/responses/not_found"
'422':
- description: Copilot for Business is not enabled for this organization,
+ description: Copilot Business or Enterprise is not enabled for this organization,
billing has not been set up for this organization, a public code suggestions
policy has not been set for this organization, the seat management setting
is set to enable Copilot for all users or is unconfigured, or a user's
@@ -6857,18 +6972,16 @@ paths:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
"/orgs/{org}/dependabot/alerts":
get:
summary: List Dependabot alerts for an organization
description: |-
Lists Dependabot alerts for an organization.
- To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the `repo` scope or `security_events` scope.
+ The authenticated user must be an owner or security manager for the organization to use this endpoint.
- For public repositories, you may instead use the `public_repo` scope.
-
- GitHub Apps must have **Dependabot alerts** read permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- dependabot
operationId: dependabot/list-alerts-for-org
@@ -6919,10 +7032,11 @@ paths:
"/orgs/{org}/dependabot/secrets":
get:
summary: List organization secrets
- description: Lists all secrets available in an organization without revealing
- their encrypted values. You must authenticate using an access token with the
- `admin:org` scope to use this endpoint. GitHub Apps must have the `dependabot_secrets`
- organization permission to use this endpoint.
+ description: |-
+ Lists all secrets available in an organization without revealing their
+ encrypted values.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/list-org-secrets
@@ -6964,11 +7078,11 @@ paths:
"/orgs/{org}/dependabot/secrets/public-key":
get:
summary: Get an organization public key
- description: Gets your public key, which you need to encrypt secrets. You need
- to encrypt a secret before you can create or update secrets. You must authenticate
- using an access token with the `admin:org` scope to use this endpoint. GitHub
- Apps must have the `dependabot_secrets` organization permission to use this
- endpoint.
+ description: |-
+ Gets your public key, which you need to encrypt secrets. You need to
+ encrypt a secret before you can create or update secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/get-org-public-key
@@ -6995,10 +7109,10 @@ paths:
"/orgs/{org}/dependabot/secrets/{secret_name}":
get:
summary: Get an organization secret
- description: Gets a single organization secret without revealing its encrypted
- value. You must authenticate using an access token with the `admin:org` scope
- to use this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ description: |-
+ Gets a single organization secret without revealing its encrypted value.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/get-org-secret
@@ -7029,9 +7143,7 @@ paths:
Creates or updates an organization secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access
- token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/create-or-update-org-secret
@@ -7109,10 +7221,10 @@ paths:
subcategory: secrets
delete:
summary: Delete an organization secret
- description: Deletes a secret in an organization using the secret name. You
- must authenticate using an access token with the `admin:org` scope to use
- this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ description: |-
+ Deletes a secret in an organization using the secret name.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/delete-org-secret
@@ -7133,11 +7245,11 @@ paths:
"/orgs/{org}/dependabot/secrets/{secret_name}/repositories":
get:
summary: List selected repositories for an organization secret
- description: Lists all repositories that have been selected when the `visibility`
- for repository access to a secret is set to `selected`. You must authenticate
- using an access token with the `admin:org` scope to use this endpoint. GitHub
- Apps must have the `dependabot_secrets` organization permission to use this
- endpoint.
+ description: |-
+ Lists all repositories that have been selected when the `visibility`
+ for repository access to a secret is set to `selected`.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/list-selected-repos-for-org-secret
@@ -7176,12 +7288,12 @@ paths:
subcategory: secrets
put:
summary: Set selected repositories for an organization secret
- description: Replaces all repositories for an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ description: |-
+ Replaces all repositories for an organization secret when the `visibility`
+ for repository access is set to `selected`. The visibility is set when you [Create
+ or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/set-selected-repos-for-org-secret
@@ -7227,12 +7339,12 @@ paths:
"/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}":
put:
summary: Add selected repository to an organization secret
- description: Adds a repository to an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ description: |-
+ Adds a repository to an organization secret when the `visibility` for
+ repository access is set to `selected`. The visibility is set when you [Create or
+ update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/add-selected-repo-to-org-secret
@@ -7259,12 +7371,12 @@ paths:
subcategory: secrets
delete:
summary: Remove selected repository from an organization secret
- description: Removes a repository from an organization secret when the `visibility`
- for repository access is set to `selected`. The visibility is set when you
- [Create or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
- You must authenticate using an access token with the `admin:org` scope to
- use this endpoint. GitHub Apps must have the `dependabot_secrets` organization
- permission to use this endpoint.
+ description: |-
+ Removes a repository from an organization secret when the `visibility`
+ for repository access is set to `selected`. The visibility is set when you [Create
+ or update an organization secret](https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret).
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/remove-selected-repo-from-org-secret
@@ -7294,7 +7406,8 @@ paths:
summary: Get list of conflicting packages during Docker migration for organization
description: |-
Lists all packages that are in a specific organization, are readable by the requesting user, and that encountered a conflict during a Docker migration.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
tags:
- packages
operationId: packages/list-docker-migration-conflicting-packages-for-organization
@@ -7396,7 +7509,10 @@ paths:
"/orgs/{org}/hooks":
get:
summary: List organization webhooks
- description: ''
+ description: "You must be an organization owner to use this endpoint. \n\nOAuth
+ app tokens and personal access tokens (classic) need `admin:org_hook` scope.
+ OAuth apps cannot list, view, or edit \nwebhooks that they did not create
+ and users cannot list, view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/list-webhooks
@@ -7431,8 +7547,11 @@ paths:
subcategory: webhooks
post:
summary: Create an organization webhook
- description: 'Here''s how you can create a hook that posts payloads in JSON
- format:'
+ description: "Create a hook that posts payloads in JSON format.\n\nYou must
+ be an organization owner to use this endpoint. \n\nOAuth app tokens and personal
+ access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list,
+ view, or \nedit webhooks that they did not create and users cannot list, view,
+ or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/create-webhook
@@ -7526,8 +7645,12 @@ paths:
"/orgs/{org}/hooks/{hook_id}":
get:
summary: Get an organization webhook
- description: Returns a webhook configured in an organization. To get only the
- webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization)."
+ description: "Returns a webhook configured in an organization. To get only the
+ webhook\n`config` properties, see \"[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization).
+ \n\nYou must be an organization owner to use this endpoint. \n\nOAuth app
+ tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth
+ apps cannot list, view, or edit \nwebhooks that they did not create and users
+ cannot list, view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/get-webhook
@@ -7556,11 +7679,15 @@ paths:
subcategory: webhooks
patch:
summary: Update an organization webhook
- description: Updates a webhook configured in an organization. When you update
- a webhook, the `secret` will be overwritten. If you previously had a `secret`
- set, you must provide the same `secret` or set a new `secret` or the secret
- will be removed. If you are only updating individual webhook `config` properties,
- use "[Update a webhook configuration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)."
+ description: "Updates a webhook configured in an organization. When you update
+ a webhook,\nthe `secret` will be overwritten. If you previously had a `secret`
+ set, you must\nprovide the same `secret` or set a new `secret` or the secret
+ will be removed. If\nyou are only updating individual webhook `config` properties,
+ use \"[Update a webhook\nconfiguration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)\".
+ \n\nYou must be an organization owner to use this endpoint. \n\nOAuth app
+ tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth
+ apps cannot list, view, or edit \nwebhooks that they did not create and users
+ cannot list, view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/update-webhook
@@ -7634,7 +7761,10 @@ paths:
subcategory: webhooks
delete:
summary: Delete an organization webhook
- description: ''
+ description: "You must be an organization owner to use this endpoint. \n\nOAuth
+ app tokens and personal access tokens (classic) need `admin:org_hook` scope.
+ OAuth apps cannot list, view, or edit \nwebhooks that they did not create
+ and users cannot list, view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/delete-webhook
@@ -7657,10 +7787,13 @@ paths:
"/orgs/{org}/hooks/{hook_id}/config":
get:
summary: Get a webhook configuration for an organization
- description: |-
- Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook)."
-
- Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:read` permission.
+ description: "Returns the webhook configuration for an organization. To get
+ more information about the webhook, including the `active` state and `events`,
+ use \"[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook).\"\n\nYou
+ must be an organization owner to use this endpoint. \n\nOAuth app tokens and
+ personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot
+ list, view, or edit \nwebhooks that they did not create and users cannot list,
+ view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/get-webhook-config-for-org
@@ -7687,10 +7820,13 @@ paths:
subcategory: webhooks
patch:
summary: Update a webhook configuration for an organization
- description: |-
- Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook)."
-
- Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:write` permission.
+ description: "Updates the webhook configuration for an organization. To update
+ more information about the webhook, including the `active` state and `events`,
+ use \"[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook).\"\n\nYou
+ must be an organization owner to use this endpoint. \n\nOAuth app tokens and
+ personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot
+ list, view, or edit \nwebhooks that they did not create and users cannot list,
+ view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/update-webhook-config-for-org
@@ -7741,8 +7877,12 @@ paths:
"/orgs/{org}/hooks/{hook_id}/deliveries":
get:
summary: List deliveries for an organization webhook
- description: Returns a list of webhook deliveries for a webhook configured in
- an organization.
+ description: "Returns a list of webhook deliveries for a webhook configured
+ in an organization.\n\nYou must be an organization owner to use this endpoint.
+ \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook`
+ scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not
+ create and users cannot list, view, or edit webhooks that were created by
+ OAuth apps."
tags:
- orgs
operationId: orgs/list-webhook-deliveries
@@ -7783,7 +7923,11 @@ paths:
"/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}":
get:
summary: Get a webhook delivery for an organization webhook
- description: Returns a delivery for a webhook configured in an organization.
+ description: "Returns a delivery for a webhook configured in an organization.\n\nYou
+ must be an organization owner to use this endpoint. \n\nOAuth app tokens and
+ personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot
+ list, view, or edit \nwebhooks that they did not create and users cannot list,
+ view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/get-webhook-delivery
@@ -7816,7 +7960,11 @@ paths:
"/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts":
post:
summary: Redeliver a delivery for an organization webhook
- description: Redeliver a delivery for a webhook configured in an organization.
+ description: "Redeliver a delivery for a webhook configured in an organization.\n\nYou
+ must be an organization owner to use this endpoint. \n\nOAuth app tokens and
+ personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot
+ list, view, or edit \nwebhooks that they did not create and users cannot list,
+ view, or edit webhooks that were created by OAuth apps."
tags:
- orgs
operationId: orgs/redeliver-webhook-delivery
@@ -7842,8 +7990,12 @@ paths:
"/orgs/{org}/hooks/{hook_id}/pings":
post:
summary: Ping an organization webhook
- description: This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event)
- to be sent to the hook.
+ description: "This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event)\nto
+ be sent to the hook.\n\nYou must be an organization owner to use this endpoint.
+ \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook`
+ scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not
+ create and users cannot list, view, or edit webhooks that were created by
+ OAuth apps."
tags:
- orgs
operationId: orgs/ping-webhook
@@ -7896,9 +8048,13 @@ paths:
"/orgs/{org}/installations":
get:
summary: List app installations for an organization
- description: Lists all GitHub Apps in an organization. The installation count
- includes all GitHub Apps installed on repositories in the organization. You
- must be an organization owner with `admin:read` scope to use this endpoint.
+ description: |-
+ Lists all GitHub Apps in an organization. The installation count includes
+ all GitHub Apps installed on repositories in the organization.
+
+ The authenticated user must be an organization owner to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:read` scope to use this endpoint.
tags:
- orgs
operationId: orgs/list-app-installations
@@ -8101,7 +8257,8 @@ paths:
description: |-
Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
tags:
- orgs
operationId: orgs/create-invitation
@@ -8134,11 +8291,15 @@ paths:
- Non-owner organization members with ability to see other members
and join teams by invitation. \n * `billing_manager` - Non-owner
organization members with ability to manage the billing settings
- of your organization."
+ of your organization. \n * `reinstate` - The previous role assigned
+ to the invitee before they were removed from your organization.
+ Can be one of the roles listed above. Only works if the invitee
+ was previously part of your organization."
enum:
- admin
- direct_member
- billing_manager
+ - reinstate
default: direct_member
team_ids:
type: array
@@ -8251,6 +8412,13 @@ paths:
reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list-for-org
@@ -8449,7 +8617,7 @@ paths:
description: |-
Lists the codespaces that a member of an organization has for repositories in that organization.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-codespaces-for-user-in-org
@@ -8502,7 +8670,7 @@ paths:
description: |-
Deletes a user's codespace.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-from-organization
@@ -8537,7 +8705,7 @@ paths:
description: |-
Stops a user's codespace.
- You must authenticate using an access token with the `admin:org` scope to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/stop-in-organization
@@ -8575,19 +8743,21 @@ paths:
subcategory: organizations
"/orgs/{org}/members/{username}/copilot":
get:
- summary: Get Copilot for Business seat assignment details for a user
+ summary: Get Copilot seat assignment details for a user
description: |-
**Note**: This endpoint is in beta and is subject to change.
- Gets the GitHub Copilot for Business seat assignment details for a member of an organization who currently has access to GitHub Copilot.
+ Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.
- Organization owners and members with admin permissions can view GitHub Copilot seat assignment details for members in their organization. You must authenticate using an access token with the `manage_billing:copilot` scope to use this endpoint.
+ Organization owners can view GitHub Copilot seat assignment details for members in their organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `manage_billing:copilot` scope to use this endpoint.
tags:
- copilot
- operationId: copilot/get-copilot-seat-assignment-details-for-user
+ operationId: copilot/get-copilot-seat-details-for-user
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-assignment-details-for-a-user
+ url: https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-a-user
parameters:
- "$ref": "#/components/parameters/org"
- "$ref": "#/components/parameters/username"
@@ -8610,13 +8780,13 @@ paths:
'404':
"$ref": "#/components/responses/not_found"
'422':
- description: Copilot for Business is not enabled for this organization or
- the user has a pending organization invitation.
+ description: Copilot Business or Enterprise is not enabled for this organization
+ or the user has a pending organization invitation.
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
category: copilot
- subcategory: copilot-for-business
+ subcategory: copilot-user-management
"/orgs/{org}/memberships/{username}":
get:
summary: Get organization membership for a user
@@ -8858,9 +9028,8 @@ paths:
default: false
exclude:
type: array
- description: 'Exclude related items from being returned in the response
- in order to improve performance of the request. The array can
- include any of: `"repositories"`.'
+ description: Exclude related items from being returned in the response
+ in order to improve performance of the request.
items:
type: string
enum:
@@ -9054,6 +9223,610 @@ paths:
enabledForGitHubApps: false
category: migrations
subcategory: orgs
+ "/orgs/{org}/organization-fine-grained-permissions":
+ get:
+ summary: List organization fine-grained permissions for an organization
+ description: |-
+ Lists the fine-grained permissions that can be used in custom organization roles for an organization. For more information, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To list the fine-grained permissions that can be used in custom repository roles for an organization, see "[List repository fine-grained permissions for an organization](https://docs.github.com/rest/orgs/organization-roles#list-repository-fine-grained-permissions-for-an-organization)."
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/list-organization-fine-grained-permissions
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#list-organization-fine-grained-permissions-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ "$ref": "#/components/schemas/organization-fine-grained-permission"
+ examples:
+ default:
+ "$ref": "#/components/examples/organization-fine-grained-permission-example"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles":
+ get:
+ summary: Get all organization roles for an organization
+ description: |-
+ Lists the organization roles available in this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/list-org-roles
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#get-all-organization-roles-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ responses:
+ '200':
+ description: Response - list of organization roles
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ total_count:
+ type: integer
+ description: The total number of organization roles available
+ to the organization.
+ roles:
+ type: array
+ description: The list of organization roles available to the organization.
+ items:
+ "$ref": "#/components/schemas/organization-role"
+ examples:
+ default:
+ "$ref": "#/components/examples/organization-role-list"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ post:
+ summary: Create a custom organization role
+ description: |-
+ Creates a custom organization role that can be assigned to users and teams, granting them specific permissions over the organization. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/create-custom-organization-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the custom role.
+ description:
+ type: string
+ description: A short description about the intended usage of this
+ role or what permissions it grants.
+ permissions:
+ type: array
+ description: A list of additional permissions included in this role.
+ items:
+ type: string
+ required:
+ - name
+ - permissions
+ examples:
+ default:
+ value:
+ name: Custom Role Manager
+ description: Permissions to manage custom roles within an org
+ permissions:
+ - write_organization_custom_repo_role
+ - write_organization_custom_org_role
+ - read_organization_custom_repo_role
+ - read_organization_custom_org_role
+ responses:
+ '201':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/organization-role"
+ examples:
+ default:
+ value:
+ id: 8030
+ name: Custom Role Manager
+ description: Permissions to manage custom roles within an org
+ permissions:
+ - write_organization_custom_repo_role
+ - write_organization_custom_org_role
+ - read_organization_custom_repo_role
+ - read_organization_custom_org_role
+ organization:
+ login: github
+ id: 1
+ node_id: MDEyOk9yZ2FuaXphdGlvbjE=
+ url: https://api.github.com/orgs/github
+ repos_url: https://api.github.com/orgs/github/repos
+ events_url: https://api.github.com/orgs/github/events
+ hooks_url: https://api.github.com/orgs/github/hooks
+ issues_url: https://api.github.com/orgs/github/issues
+ members_url: https://api.github.com/orgs/github/members{/member}
+ public_members_url: https://api.github.com/orgs/github/public_members{/member}
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ description: A great organization
+ created_at: '2022-07-04T22:19:11Z'
+ updated_at: '2022-07-04T22:19:11Z'
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/teams/{team_slug}":
+ delete:
+ summary: Remove all organization roles for a team
+ description: |-
+ Removes all assigned organization roles from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/revoke-all-org-roles-team
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-team
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/team-slug"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}":
+ put:
+ summary: Assign an organization role to a team
+ description: |-
+ Assigns an organization role to a team in an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/assign-team-to-org-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/team-slug"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '204':
+ description: Response
+ '404':
+ description: Response if the organization, team or role does not exist.
+ '422':
+ description: Response if the organization roles feature is not enabled for
+ the organization, or validation failed.
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ delete:
+ summary: Remove an organization role from a team
+ description: |-
+ Removes an organization role from a team. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/revoke-org-role-team
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/team-slug"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/users/{username}":
+ delete:
+ summary: Remove all organization roles for a user
+ description: |-
+ Revokes all assigned organization roles from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/revoke-all-org-roles-user
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-user
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/username"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/users/{username}/{role_id}":
+ put:
+ summary: Assign an organization role to a user
+ description: |-
+ Assigns an organization role to a member of an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/assign-user-to-org-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/username"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '204':
+ description: Response
+ '404':
+ description: Response if the organization, user or role does not exist.
+ '422':
+ description: Response if the organization roles feature is not enabled enabled
+ for the organization, the validation failed, or the user is not an organization
+ member.
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ delete:
+ summary: Remove an organization role from a user
+ description: |-
+ Remove an organization role from a user. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ The authenticated user must be an administrator for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/revoke-org-role-user
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/username"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/{role_id}":
+ get:
+ summary: Get an organization role
+ description: |-
+ Gets an organization role that is available to this organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `read_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/get-org-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#get-an-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/organization-role"
+ examples:
+ default:
+ "$ref": "#/components/examples/organization-role"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ patch:
+ summary: Update a custom organization role
+ description: |-
+ Updates an existing custom organization role. Permission changes will apply to all assignees. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/patch-custom-organization-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/role-id"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the custom role.
+ description:
+ type: string
+ description: A short description about the intended usage of this
+ role or what permissions it grants.
+ permissions:
+ type: array
+ description: A list of additional permissions included in this role.
+ items:
+ type: string
+ examples:
+ default:
+ value:
+ description: Permissions to manage custom roles within an org.
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/organization-role"
+ examples:
+ default:
+ value:
+ id: 8030
+ name: Custom Role Manager
+ description: Permissions to manage custom roles within an org
+ permissions:
+ - write_organization_custom_repo_role
+ - write_organization_custom_org_role
+ - read_organization_custom_repo_role
+ - read_organization_custom_org_role
+ organization:
+ login: github
+ id: 1
+ node_id: MDEyOk9yZ2FuaXphdGlvbjE=
+ url: https://api.github.com/orgs/github
+ repos_url: https://api.github.com/orgs/github/repos
+ events_url: https://api.github.com/orgs/github/events
+ hooks_url: https://api.github.com/orgs/github/hooks
+ issues_url: https://api.github.com/orgs/github/issues
+ members_url: https://api.github.com/orgs/github/members{/member}
+ public_members_url: https://api.github.com/orgs/github/public_members{/member}
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ description: A great organization
+ created_at: '2022-07-04T22:19:11Z'
+ updated_at: '2022-07-04T22:19:11Z'
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ delete:
+ summary: Delete a custom organization role.
+ description: |-
+ Deletes a custom organization role. For more information on custom organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, the authenticated user must be one of:
+
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permissions of `write_organization_custom_org_role` in the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/delete-custom-organization-role
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/role-id"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/{role_id}/teams":
+ get:
+ summary: List teams that are assigned to an organization role
+ description: |-
+ Lists the teams that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, you must be an administrator for the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/list-org-role-teams
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/role-id"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response - List of assigned teams
+ content:
+ application/json:
+ schema:
+ type: array
+ description: List of teams assigned to the organization role
+ items:
+ "$ref": "#/components/schemas/team"
+ examples:
+ default:
+ "$ref": "#/components/examples/team-items"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ '404':
+ description: Response if the organization or role does not exist.
+ '422':
+ description: Response if the organization roles feature is not enabled or
+ validation failed.
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
+ "/orgs/{org}/organization-roles/{role_id}/users":
+ get:
+ summary: List users that are assigned to an organization role
+ description: |-
+ Lists organization members that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."
+
+ To use this endpoint, you must be an administrator for the organization.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
+ tags:
+ - orgs
+ operationId: orgs/list-org-role-users
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/role-id"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response - List of assigned users
+ content:
+ application/json:
+ schema:
+ type: array
+ description: List of users assigned to the organization role
+ items:
+ "$ref": "#/components/schemas/simple-user"
+ examples:
+ default:
+ "$ref": "#/components/examples/simple-user-items"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ '404':
+ description: Response if the organization or role does not exist.
+ '422':
+ description: Response if the organization roles feature is not enabled or
+ validation failed.
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: organization-roles
"/orgs/{org}/outside_collaborators":
get:
summary: List outside collaborators for an organization
@@ -9209,7 +9982,7 @@ paths:
description: |-
Lists packages in an organization readable by the user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/list-packages-for-organization
@@ -9237,13 +10010,15 @@ paths:
- "$ref": "#/components/parameters/org"
- "$ref": "#/components/parameters/package-visibility"
- name: page
- description: Page number of the results to fetch.
+ description: The page number of the results to fetch. For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
default: 1
- name: per_page
- description: The number of results per page (max 100).
+ description: The number of results per page (max 100). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -9277,7 +10052,7 @@ paths:
description: |-
Gets a specific package in an organization.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-for-organization
@@ -9308,9 +10083,9 @@ paths:
description: |-
Deletes an entire package in an organization. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must have admin permissions in the organization and authenticate using an access token with the `read:packages` and `delete:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package you want to delete. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-for-org
@@ -9345,9 +10120,9 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must have admin permissions in the organization and authenticate using an access token with the `read:packages` and `write:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package you want to restore. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-for-org
@@ -9384,7 +10159,7 @@ paths:
description: |-
Lists package versions for a package owned by an organization.
- If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-all-package-versions-for-package-owned-by-org
@@ -9436,7 +10211,7 @@ paths:
description: |-
Gets a specific package version in an organization.
- You must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-version-for-organization
@@ -9468,9 +10243,9 @@ paths:
description: |-
Deletes a specific package version in an organization. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must have admin permissions in the organization and authenticate using an access token with the `read:packages` and `delete:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package whose version you want to delete. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-version-for-org
@@ -9506,9 +10281,9 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must have admin permissions in the organization and authenticate using an access token with the `read:packages` and `write:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package whose version you want to restore. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ The authenticated user must have admin permissions in the organization to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must also have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-version-for-org
@@ -9539,10 +10314,9 @@ paths:
summary: List requests to access organization resources with fine-grained personal
access tokens
description: |-
- Lists requests from organization members to access organization resources with a fine-grained personal access token. Only GitHub Apps can call this API,
- using the `organization_personal_access_token_requests: read` permission.
+ Lists requests from organization members to access organization resources with a fine-grained personal access token.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/list-pat-grant-requests
@@ -9592,10 +10366,9 @@ paths:
summary: Review requests to access organization resources with fine-grained
personal access tokens
description: |-
- Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token. Only GitHub Apps can call this API,
- using the `organization_personal_access_token_requests: write` permission.
+ Approves or denies multiple pending requests to access organization resources via a fine-grained personal access token.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/review-pat-grant-requests-in-bulk
@@ -9664,10 +10437,9 @@ paths:
summary: Review a request to access organization resources with a fine-grained
personal access token
description: |-
- Approves or denies a pending request to access organization resources via a fine-grained personal access token. Only GitHub Apps can call this API,
- using the `organization_personal_access_token_requests: write` permission.
+ Approves or denies a pending request to access organization resources via a fine-grained personal access token.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/review-pat-grant-request
@@ -9731,10 +10503,9 @@ paths:
summary: List repositories requested to be accessed by a fine-grained personal
access token
description: |-
- Lists the repositories a fine-grained personal access token request is requesting access to. Only GitHub Apps can call this API,
- using the `organization_personal_access_token_requests: read` permission.
+ Lists the repositories a fine-grained personal access token request is requesting access to.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/list-pat-grant-request-repositories
@@ -9783,10 +10554,9 @@ paths:
summary: List fine-grained personal access tokens with access to organization
resources
description: |-
- Lists approved fine-grained personal access tokens owned by organization members that can access organization resources. Only GitHub Apps can call this API,
- using the `organization_personal_access_tokens: read` permission.
+ Lists approved fine-grained personal access tokens owned by organization members that can access organization resources.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/list-pat-grants
@@ -9836,10 +10606,9 @@ paths:
summary: Update the access to organization resources via fine-grained personal
access tokens
description: |-
- Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access. Only GitHub Apps can call this API,
- using the `organization_personal_access_tokens: write` permission.
+ Updates the access organization members have to organization resources via fine-grained personal access tokens. Limited to revoking a token's existing access.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/update-pat-accesses
@@ -9902,10 +10671,9 @@ paths:
summary: Update the access a fine-grained personal access token has to organization
resources
description: |-
- Updates the access an organization member has to organization resources via a fine-grained personal access token. Limited to revoking the token's existing access. Limited to revoking a token's existing access. Only GitHub Apps can call this API,
- using the `organization_personal_access_tokens: write` permission.
+ Updates the access an organization member has to organization resources via a fine-grained personal access token. Limited to revoking the token's existing access. Limited to revoking a token's existing access.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/update-pat-access
@@ -9955,10 +10723,9 @@ paths:
get:
summary: List repositories a fine-grained personal access token has access to
description: |-
- Lists the repositories a fine-grained personal access token has access to. Only GitHub Apps can call this API,
- using the `organization_personal_access_tokens: read` permission.
+ Lists the repositories a fine-grained personal access token has access to.
- **Note**: Fine-grained PATs are in public beta. Related APIs, events, and functionality are subject to change.
+ Only GitHub Apps can use this endpoint.
tags:
- orgs
operationId: orgs/list-pat-grant-repositories
@@ -10110,6 +10877,377 @@ paths:
enabledForGitHubApps: true
category: projects
subcategory: projects
+ "/orgs/{org}/properties/schema":
+ get:
+ summary: Get all custom properties for an organization
+ description: |-
+ Gets all custom properties defined for an organization.
+ Organization members can read these properties.
+ tags:
+ - orgs
+ operationId: orgs/get-all-custom-properties
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ "$ref": "#/components/schemas/org-custom-property"
+ examples:
+ default:
+ "$ref": "#/components/examples/org-custom-properties"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ patch:
+ summary: Create or update custom properties for an organization
+ description: |-
+ Creates new or updates existing custom properties defined for an organization in a batch.
+
+ To use this endpoint, the authenticated user must be one of:
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.
+ tags:
+ - orgs
+ operationId: orgs/create-or-update-custom-properties
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ properties:
+ type: array
+ description: The array of custom properties to create or update.
+ items:
+ "$ref": "#/components/schemas/org-custom-property"
+ minItems: 1
+ maxItems: 100
+ required:
+ - properties
+ examples:
+ default:
+ value:
+ properties:
+ - property_name: environment
+ value_type: single_select
+ required: true
+ default_value: production
+ description: Prod or dev environment
+ allowed_values:
+ - production
+ - development
+ values_editable_by: org_actors
+ - property_name: service
+ value_type: string
+ - property_name: team
+ value_type: string
+ description: Team owning the repository
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ "$ref": "#/components/schemas/org-custom-property"
+ examples:
+ default:
+ "$ref": "#/components/examples/org-custom-properties"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ "/orgs/{org}/properties/schema/{custom_property_name}":
+ get:
+ summary: Get a custom property for an organization
+ description: |-
+ Gets a custom property that is defined for an organization.
+ Organization members can read these properties.
+ tags:
+ - orgs
+ operationId: orgs/get-custom-property
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/custom-property-name"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/org-custom-property"
+ examples:
+ default:
+ "$ref": "#/components/examples/org-custom-property"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ put:
+ summary: Create or update a custom property for an organization
+ description: |-
+ Creates a new or updates an existing custom property that is defined for an organization.
+
+ To use this endpoint, the authenticated user must be one of:
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.
+ tags:
+ - orgs
+ operationId: orgs/create-or-update-custom-property
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/custom-property-name"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ value_type:
+ type: string
+ example: single_select
+ enum:
+ - string
+ - single_select
+ description: The type of the value for the property
+ required:
+ type: boolean
+ description: Whether the property is required.
+ default_value:
+ oneOf:
+ - type: string
+ - type: array
+ items:
+ type: string
+ nullable: true
+ description: Default value of the property
+ description:
+ type: string
+ nullable: true
+ description: Short description of the property
+ allowed_values:
+ type: array
+ items:
+ type: string
+ maxLength: 75
+ maxItems: 200
+ nullable: true
+ description: |-
+ An ordered list of the allowed values of the property.
+ The property can have up to 200 allowed values.
+ required:
+ - value_type
+ examples:
+ default:
+ value:
+ value_type: single_select
+ required: true
+ default_value: production
+ description: Prod or dev environment
+ allowed_values:
+ - production
+ - development
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/org-custom-property"
+ examples:
+ default:
+ "$ref": "#/components/examples/org-custom-property"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ delete:
+ summary: Remove a custom property for an organization
+ description: |-
+ Removes a custom property that is defined for an organization.
+
+ To use this endpoint, the authenticated user must be one of:
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.
+ tags:
+ - orgs
+ operationId: orgs/remove-custom-property
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/custom-property-name"
+ responses:
+ '204':
+ "$ref": "#/components/responses/no_content"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ "/orgs/{org}/properties/values":
+ get:
+ summary: List custom property values for organization repositories
+ description: |-
+ Lists organization repositories with all of their custom property values.
+ Organization members can read these properties.
+ tags:
+ - orgs
+ operationId: orgs/list-custom-properties-values-for-repos
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ - name: repository_query
+ description: Finds repositories in the organization with a query containing
+ one or more search keywords and qualifiers. Qualifiers allow you to limit
+ your search to specific areas of GitHub. The REST API supports the same
+ qualifiers as the web interface for GitHub. To learn more about the format
+ of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query).
+ See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)"
+ for a detailed list of qualifiers.
+ in: query
+ required: false
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ "$ref": "#/components/schemas/org-repo-custom-property-values"
+ examples:
+ default:
+ "$ref": "#/components/examples/org-repo-custom-property-values"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
+ patch:
+ summary: Create or update custom property values for organization repositories
+ description: |-
+ Create new or update existing custom property values for repositories in a batch that belong to an organization.
+ Each target repository will have its custom property values updated to match the values provided in the request.
+
+ A maximum of 30 repositories can be updated in a single request.
+
+ Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.
+
+ To use this endpoint, the authenticated user must be one of:
+ - An administrator for the organization.
+ - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_values_editor` in the organization.
+ tags:
+ - orgs
+ operationId: orgs/create-or-update-custom-properties-values-for-repos
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ repository_names:
+ type: array
+ description: The names of repositories that the custom property
+ values will be applied to.
+ items:
+ type: string
+ minItems: 1
+ maxItems: 30
+ properties:
+ type: array
+ description: List of custom property names and associated values
+ to apply to the repositories.
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ required:
+ - repository_names
+ - properties
+ examples:
+ default:
+ "$ref": "#/components/examples/org-repo-update-custom-property-values"
+ responses:
+ '204':
+ description: No Content when custom property values are successfully created
+ or updated
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: custom-properties
"/orgs/{org}/public_members":
get:
summary: List public organization members
@@ -10173,7 +11311,7 @@ paths:
description: |-
The user can publicize their own membership. (A user cannot publicize the membership for another user.)
- Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- orgs
operationId: orgs/set-public-membership-for-authenticated-user
@@ -10292,12 +11430,7 @@ paths:
description: |-
Creates a new repository in the specified organization. The authenticated user must be a member of the organization.
- **OAuth scope requirements**
-
- When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:
-
- * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use `repo` scope to create an internal repository.
- * `repo` scope to create a private repository
+ OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository.
tags:
- repos
operationId: repos/create-in-org
@@ -10459,6 +11592,12 @@ paths:
- `PR_TITLE` - default to the pull request's title.
- `PR_BODY` - default to the pull request's body.
- `BLANK` - default to a blank commit message.
+ custom_properties:
+ type: object
+ description: The custom properties for the new repository. The keys
+ are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
required:
- name
examples:
@@ -10477,10 +11616,10 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/repository"
+ "$ref": "#/components/schemas/full-repository"
examples:
default:
- "$ref": "#/components/examples/repository"
+ "$ref": "#/components/examples/full-repository"
headers:
Location:
example: https://api.github.com/repos/octocat/Hello-World
@@ -10623,6 +11762,79 @@ paths:
"$ref": "#/components/responses/not_found"
'500':
"$ref": "#/components/responses/internal_error"
+ "/orgs/{org}/rulesets/rule-suites":
+ get:
+ summary: List organization rule suites
+ description: |-
+ Lists suites of rule evaluations at the organization level.
+ For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)."
+ tags:
+ - repos
+ operationId: repos/get-org-rule-suites
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/repository-name-in-query"
+ - "$ref": "#/components/parameters/time-period"
+ - "$ref": "#/components/parameters/actor-name-in-query"
+ - "$ref": "#/components/parameters/rule-suite-result"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/rule-suites"
+ examples:
+ default:
+ "$ref": "#/components/examples/rule-suite-items"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '500':
+ "$ref": "#/components/responses/internal_error"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: rule-suites
+ "/orgs/{org}/rulesets/rule-suites/{rule_suite_id}":
+ get:
+ summary: Get an organization rule suite
+ description: |-
+ Gets information about a suite of rule evaluations from within an organization.
+ For more information, see "[Managing rulesets for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#viewing-insights-for-rulesets)."
+ tags:
+ - repos
+ operationId: repos/get-org-rule-suite
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/orgs/rule-suites#get-an-organization-rule-suite
+ parameters:
+ - "$ref": "#/components/parameters/org"
+ - "$ref": "#/components/parameters/rule-suite-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/rule-suite"
+ examples:
+ default:
+ "$ref": "#/components/examples/rule-suite"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '500':
+ "$ref": "#/components/responses/internal_error"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: orgs
+ subcategory: rule-suites
"/orgs/{org}/rulesets/{ruleset_id}":
get:
summary: Get an organization repository ruleset
@@ -10790,10 +12002,10 @@ paths:
summary: List secret scanning alerts for an organization
description: |-
Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
- To use this endpoint, you must be an administrator or security manager for the organization, and you must use an access token with the `repo` scope or `security_events` scope.
- For public repositories, you may instead use the `public_repo` scope.
- GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint.
+ The authenticated user must be an administrator or security manager for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- secret-scanning
operationId: secret-scanning/list-alerts-for-org
@@ -10811,6 +12023,7 @@ paths:
- "$ref": "#/components/parameters/per-page"
- "$ref": "#/components/parameters/secret-scanning-pagination-before-org-repo"
- "$ref": "#/components/parameters/secret-scanning-pagination-after-org-repo"
+ - "$ref": "#/components/parameters/secret-scanning-alert-validity"
responses:
'200':
description: Response
@@ -10841,7 +12054,9 @@ paths:
description: |-
Lists repository security advisories for an organization.
- To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the `repo` scope or `repository_advisories:write` permission.
+ The authenticated user must be an owner or security manager for the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
tags:
- security-advisories
operationId: security-advisories/list-org-repository-advisories
@@ -10865,7 +12080,8 @@ paths:
- "$ref": "#/components/parameters/pagination-before"
- "$ref": "#/components/parameters/pagination-after"
- name: per_page
- description: The number of advisories to return per page.
+ description: The number of advisories to return per page. For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
required: false
schema:
@@ -10912,9 +12128,9 @@ paths:
description: |-
Lists teams that are security managers for an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
- To use this endpoint, you must be an administrator or security manager for the organization, and you must use an access token with the `read:org` scope.
+ The authenticated user must be an administrator or security manager for the organization to use this endpoint.
- GitHub Apps must have the `administration` organization read permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
tags:
- orgs
operationId: orgs/list-security-manager-teams
@@ -10947,9 +12163,9 @@ paths:
description: |-
Adds a team as a security manager for an organization. For more information, see "[Managing security for an organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization) for an organization."
- To use this endpoint, you must be an administrator for the organization, and you must use an access token with the `write:org` scope.
+ The authenticated user must be an administrator for the organization to use this endpoint.
- GitHub Apps must have the `administration` organization read-write permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
tags:
- orgs
operationId: orgs/add-security-manager-team
@@ -10976,9 +12192,9 @@ paths:
description: |-
Removes the security manager role from a team for an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization) team from an organization."
- To use this endpoint, you must be an administrator for the organization, and you must use an access token with the `admin:org` scope.
+ The authenticated user must be an administrator for the organization to use this endpoint.
- GitHub Apps must have the `administration` organization read-write permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
tags:
- orgs
operationId: orgs/remove-security-manager-team
@@ -11005,7 +12221,7 @@ paths:
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
- Access tokens must have the `repo` or `admin:org` scope.
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
operationId: billing/get-github-actions-billing-org
tags:
- billing
@@ -11037,7 +12253,7 @@ paths:
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
- Access tokens must have the `repo` or `admin:org` scope.
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
operationId: billing/get-github-packages-billing-org
tags:
- billing
@@ -11069,7 +12285,7 @@ paths:
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
- Access tokens must have the `repo` or `admin:org` scope.
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `admin:org` scope to use this endpoint.
operationId: billing/get-shared-storage-billing-org
tags:
- billing
@@ -11392,9 +12608,11 @@ paths:
get:
summary: List discussions
description: |-
- List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List all discussions on a team's page.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/list-discussions-in-org
@@ -11436,11 +12654,13 @@ paths:
post:
summary: Create a discussion
description: |-
- Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Creates a new discussion post on a team's page.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/create-discussion-in-org
@@ -11498,9 +12718,11 @@ paths:
get:
summary: Get a discussion
description: |-
- Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Get a specific discussion on a team's page.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/get-discussion-in-org
@@ -11529,9 +12751,11 @@ paths:
patch:
summary: Update a discussion
description: |-
- Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Edits the title and body text of a discussion post. Only the parameters you provide are updated.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/update-discussion-in-org
@@ -11577,9 +12801,11 @@ paths:
delete:
summary: Delete a discussion
description: |-
- Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Delete a discussion from a team's page.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/delete-discussion-in-org
@@ -11602,9 +12828,11 @@ paths:
get:
summary: List discussion comments
description: |-
- List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List all comments on a team discussion.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/list-discussion-comments-in-org
@@ -11641,11 +12869,13 @@ paths:
post:
summary: Create a discussion comment
description: |-
- Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Creates a new comment on a team discussion.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/create-discussion-comment-in-org
@@ -11692,9 +12922,11 @@ paths:
get:
summary: Get a discussion comment
description: |-
- Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Get a specific comment on a team discussion.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/get-discussion-comment-in-org
@@ -11724,9 +12956,11 @@ paths:
patch:
summary: Update a discussion comment
description: |-
- Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Edits the body text of a discussion comment.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/update-discussion-comment-in-org
@@ -11772,9 +13006,11 @@ paths:
delete:
summary: Delete a discussion comment
description: |-
- Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Deletes a comment on a team discussion.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/delete-discussion-comment-in-org
@@ -11798,9 +13034,11 @@ paths:
get:
summary: List reactions for a team discussion comment
description: |-
- List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/list-for-team-discussion-comment-in-org
@@ -11853,9 +13091,13 @@ paths:
post:
summary: Create reaction for a team discussion comment
description: |-
- Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
+ Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
+
+ A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/create-for-team-discussion-comment-in-org
@@ -11924,7 +13166,9 @@ paths:
description: |-
**Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`.
- Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Delete a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/delete-for-team-discussion-comment
@@ -11949,9 +13193,11 @@ paths:
get:
summary: List reactions for a team discussion
description: |-
- List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/list-for-team-discussion-in-org
@@ -12003,9 +13249,13 @@ paths:
post:
summary: Create reaction for a team discussion
description: |-
- Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
+ Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
+
+ A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/create-for-team-discussion-in-org
@@ -12072,7 +13322,9 @@ paths:
description: |-
**Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`.
- Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Delete a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/delete-for-team-discussion
@@ -12415,7 +13667,7 @@ paths:
what permission to grant the team on this project. Note that,
if you choose not to pass any parameters, you''ll need to set
`Content-Length` to zero when calling this endpoint. For more
- information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."'
+ information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."'
enum:
- read
- write
@@ -12522,6 +13774,8 @@ paths:
If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.
+ If the repository is private, you must have at least `read` permission for that repository, and your token must have the `repo` or `admin:org` scope. Otherwise, you will receive a `404 Not Found` response status.
+
**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
tags:
- teams
@@ -12558,7 +13812,7 @@ paths:
put:
summary: Add or update team repository permissions
description: |-
- To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
**Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
@@ -12672,14 +13926,11 @@ paths:
post:
summary: Enable or disable a security feature for an organization
description: |-
- Enables or disables the specified security feature for all eligible repositories in an organization.
+ Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
- To use this endpoint, you must be an organization owner or be member of a team with the security manager role.
- A token with the 'write:org' scope is also required.
+ The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.
- GitHub Apps must have the `organization_administration:write` permission to use this endpoint.
-
- For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."
+ OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
tags:
- orgs
operationId: orgs/enable-or-disable-security-product-on-all-org-repos
@@ -12706,8 +13957,7 @@ paths:
- extended
examples:
default:
- value:
- query_suite: default
+ value:
responses:
'204':
description: Action started
@@ -13744,7 +14994,7 @@ paths:
Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:
* The `core` object provides your rate limit status for all non-search-related resources in the REST API.
- * The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/rest/search)."
+ * The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/rest/search/search)."
* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/rest/search/search#search-code)."
* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/graphql/overview/resource-limitations#rate-limit)."
* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."
@@ -14071,10 +15321,12 @@ paths:
delete:
summary: Delete a repository
description: |-
- Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.
+ Deleting a repository requires admin access.
If an organization owner has configured the organization to prevent members from deleting organization-owned
repositories, you will get a `403 Forbidden` response.
+
+ OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint.
tags:
- repos
operationId: repos/delete
@@ -14117,10 +15369,12 @@ paths:
"/repos/{owner}/{repo}/actions/artifacts":
get:
summary: List artifacts for a repository
- description: Lists all artifacts for a repository. Anyone with read access to
- the repository can use this endpoint. If the repository is private you must
- use an access token with the `repo` scope. GitHub Apps must have the `actions:read`
- permission to use this endpoint.
+ description: |-
+ Lists all artifacts for a repository.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-artifacts-for-repo
@@ -14164,10 +15418,12 @@ paths:
"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}":
get:
summary: Get an artifact
- description: Gets a specific artifact for a workflow run. Anyone with read access
- to the repository can use this endpoint. If the repository is private you
- must use an access token with the `repo` scope. GitHub Apps must have the
- `actions:read` permission to use this endpoint.
+ description: |-
+ Gets a specific artifact for a workflow run.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-artifact
@@ -14195,9 +15451,9 @@ paths:
subcategory: artifacts
delete:
summary: Delete an artifact
- description: Deletes an artifact for a workflow run. You must authenticate using
- an access token with the `repo` scope to use this endpoint. GitHub Apps must
- have the `actions:write` permission to use this endpoint.
+ description: |-
+ Deletes an artifact for a workflow run.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-artifact
@@ -14223,8 +15479,7 @@ paths:
Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in
the response header to find the URL for the download. The `:archive_format` must be `zip`.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `actions:read` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/download-artifact
@@ -14259,7 +15514,10 @@ paths:
description: |-
Gets GitHub Actions cache usage for a repository.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
- Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-actions-cache-usage
@@ -14289,8 +15547,8 @@ paths:
summary: List GitHub Actions caches for a repository
description: |-
Lists the GitHub Actions caches for a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `actions:read` permission to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-actions-cache-list
@@ -14330,9 +15588,7 @@ paths:
description: |-
Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
-
- GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-actions-cache-by-key
@@ -14365,9 +15621,7 @@ paths:
description: |-
Deletes a GitHub Actions cache for a repository, using a cache ID.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
-
- GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-actions-cache-by-id
@@ -14389,10 +15643,12 @@ paths:
"/repos/{owner}/{repo}/actions/jobs/{job_id}":
get:
summary: Get a job for a workflow run
- description: Gets a specific job in a workflow run. Anyone with read access
- to the repository can use this endpoint. If the repository is private you
- must use an access token with the `repo` scope. GitHub Apps must have the
- `actions:read` permission to use this endpoint.
+ description: |-
+ Gets a specific job in a workflow run.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-job-for-workflow-run
@@ -14423,9 +15679,11 @@ paths:
summary: Download job logs for a workflow run
description: |-
Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look
- for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can
- use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must
- have the `actions:read` permission to use this endpoint.
+ for `Location:` in the response header to find the URL for the download.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/download-job-logs-for-workflow-run
@@ -14455,9 +15713,7 @@ paths:
description: |-
Re-run a job and its dependent jobs in a workflow run.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/re-run-job-for-workflow-run
@@ -14505,8 +15761,8 @@ paths:
summary: Get the customization template for an OIDC subject claim for a repository
description: |-
Gets the customization template for an OpenID Connect (OIDC) subject claim.
- You must authenticate using an access token with the `repo` scope to use this
- endpoint. GitHub Apps must have the `organization_administration:read` permission to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-custom-oidc-sub-claim-for-repo
@@ -14539,8 +15795,8 @@ paths:
summary: Set the customization template for an OIDC subject claim for a repository
description: |-
Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository.
- You must authenticate using an access token with the `repo` scope to use this
- endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/set-custom-oidc-sub-claim-for-repo
@@ -14606,9 +15862,9 @@ paths:
Lists all organization secrets shared with a repository without revealing their encrypted
values.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-repo-organization-secrets
@@ -14652,12 +15908,11 @@ paths:
get:
summary: List repository organization variables
description: |-
- Lists all organiation variables shared with a repository.
+ Lists all organization variables shared with a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:read` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-repo-organization-variables
@@ -14703,7 +15958,7 @@ paths:
description: |-
Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/get-github-actions-permissions-repository
tags:
- actions
@@ -14733,7 +15988,7 @@ paths:
description: |-
Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/set-github-actions-permissions-repository
tags:
- actions
@@ -14777,8 +16032,7 @@ paths:
This endpoint only applies to private repositories.
For more information, see "[Allowing access to components in a private repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the
- repository `administration` permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-workflow-access-to-repository
@@ -14811,8 +16065,7 @@ paths:
This endpoint only applies to private repositories.
For more information, see "[Allowing access to components in a private repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)".
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the
- repository `administration` permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/set-workflow-access-to-repository
@@ -14846,7 +16099,7 @@ paths:
description: |-
Gets the settings for selected actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/get-allowed-actions-repository
tags:
- actions
@@ -14876,7 +16129,7 @@ paths:
description: |-
Sets the actions and reusable workflows that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/set-allowed-actions-repository
tags:
- actions
@@ -14911,7 +16164,7 @@ paths:
as well as if GitHub Actions can submit approving pull request reviews.
For more information, see "[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the repository `administration` permission to use this API.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-github-actions-default-workflow-permissions-repository
@@ -14943,7 +16196,7 @@ paths:
can submit approving pull request reviews.
For more information, see "[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the repository `administration` permission to use this API.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/set-github-actions-default-workflow-permissions-repository
@@ -14979,10 +16232,9 @@ paths:
description: |-
Lists all self-hosted runners configured in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-self-hosted-runners-for-repo
@@ -15033,10 +16285,9 @@ paths:
description: |-
Lists binaries for the runner application that you can download and run.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-runner-applications-for-repo
@@ -15069,10 +16320,9 @@ paths:
description: |-
Generates a configuration that can be passed to the runner application at startup.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ The authenticated user must have admin access to the repository.
+
+ OAuth tokens and personal access tokens (classic) need the`repo` scope to use this endpoint.
tags:
- actions
operationId: actions/generate-runner-jitconfig-for-repo
@@ -15138,17 +16388,18 @@ paths:
"/repos/{owner}/{repo}/actions/runners/registration-token":
post:
summary: Create a registration token for a repository
- description: "Returns a token that you can pass to the `config` script. The
- token\nexpires after one hour.\n\nYou must authenticate using an access token
- with the `repo` scope to use this endpoint.\nIf the repository is private,
- you must use an access token with the `repo` scope.\nGitHub Apps must have
- the `administration` permission for repositories and the `organization_self_hosted_runners`
- permission for organizations.\nAuthenticated users must have admin access
- to repositories or organizations, or the `manage_runners:enterprise` scope
- for enterprises, to use these endpoints.\n\nExample using registration token:
- \n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration
- token provided\nby this endpoint.\n\n```config.sh --url https://github.com/octo-org/octo-repo-artifacts
- --token TOKEN```"
+ description: |-
+ Returns a token that you can pass to the `config` script. The token expires after one hour.
+
+ For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to configure your self-hosted runner:
+
+ ```
+ ./config.sh --url https://github.com/octo-org --token TOKEN
+ ```
+
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-registration-token-for-repo
@@ -15177,20 +16428,17 @@ paths:
post:
summary: Create a remove token for a repository
description: |-
- Returns a token that you can pass to remove a self-hosted runner from
- a repository. The token expires after one hour.
+ Returns a token that you can pass to the `config` script to remove a self-hosted runner from an repository. The token expires after one hour.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ For example, you can replace `TOKEN` in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:
- Example using remove token:
+ ```
+ ./config.sh remove --token TOKEN
+ ```
- To remove your self-hosted runner from a repository, replace TOKEN with
- the remove token provided by this endpoint.
+ Authenticated users must have admin access to the repository to use this endpoint.
- ```config.sh remove --token TOKEN```
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-remove-token-for-repo
@@ -15221,10 +16469,9 @@ paths:
description: |-
Gets a specific self-hosted runner configured in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-self-hosted-runner-for-repo
@@ -15255,10 +16502,9 @@ paths:
description: |-
Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-self-hosted-runner-from-repo
@@ -15283,10 +16529,9 @@ paths:
description: |-
Lists all labels for a self-hosted runner configured in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-labels-for-self-hosted-runner-for-repo
@@ -15310,12 +16555,11 @@ paths:
post:
summary: Add custom labels to a self-hosted runner for a repository
description: |-
- Add custom labels to a self-hosted runner configured in a repository.
+ Adds custom labels to a self-hosted runner configured in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the organization to use this endpoint.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/add-custom-labels-to-self-hosted-runner-for-repo
@@ -15366,10 +16610,9 @@ paths:
Remove all previous custom labels and set the new custom labels for a specific
self-hosted runner configured in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/set-custom-labels-for-self-hosted-runner-for-repo
@@ -15421,10 +16664,9 @@ paths:
Remove all custom labels from a self-hosted runner configured in a
repository. Returns the remaining read-only labels from the runner.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/remove-all-custom-labels-from-self-hosted-runner-for-repo
@@ -15455,10 +16697,9 @@ paths:
This endpoint returns a `404 Not Found` status if the custom label is not
present on the runner.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
- Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.
+ Authenticated users must have admin access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/remove-custom-label-from-self-hosted-runner-for-repo
@@ -15486,9 +16727,13 @@ paths:
get:
summary: List workflow runs for a repository
description: |-
- Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).
+ Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).
- Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
+
+ This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`.
tags:
- actions
operationId: actions/list-workflow-runs-for-repo
@@ -15539,10 +16784,12 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}":
get:
summary: Get a workflow run
- description: Gets a specific workflow run. Anyone with read access to the repository
- can use this endpoint. If the repository is private you must use an access
- token with the `repo` scope. GitHub Apps must have the `actions:read` permission
- to use this endpoint.
+ description: |-
+ Gets a specific workflow run.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-workflow-run
@@ -15572,9 +16819,11 @@ paths:
delete:
summary: Delete a workflow run
description: |-
- Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. If the repository is
- private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:write` permission to use
- this endpoint.
+ Deletes a specific workflow run.
+
+ Anyone with write access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/delete-workflow-run
tags:
- actions
@@ -15596,9 +16845,10 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}/approvals":
get:
summary: Get the review history for a workflow run
- description: Anyone with read access to the repository can use this endpoint.
- If the repository is private, you must use an access token with the `repo`
- scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ description: |-
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-reviews-for-run
@@ -15632,7 +16882,7 @@ paths:
description: |-
Approves a workflow run for a pull request from a public fork of a first time contributor. For more information, see ["Approving workflow runs from public forks](https://docs.github.com/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/approve-workflow-run
@@ -15665,10 +16915,12 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts":
get:
summary: List workflow run artifacts
- description: Lists artifacts for a workflow run. Anyone with read access to
- the repository can use this endpoint. If the repository is private you must
- use an access token with the `repo` scope. GitHub Apps must have the `actions:read`
- permission to use this endpoint.
+ description: |-
+ Lists artifacts for a workflow run.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-workflow-run-artifacts
@@ -15714,10 +16966,11 @@ paths:
get:
summary: Get a workflow run attempt
description: |-
- Gets a specific workflow run attempt. Anyone with read access to the repository
- can use this endpoint. If the repository is private you must use an access token
- with the `repo` scope. GitHub Apps must have the `actions:read` permission to
- use this endpoint.
+ Gets a specific workflow run attempt.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-workflow-run-attempt
@@ -15748,12 +17001,13 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs":
get:
summary: List jobs for a workflow run attempt
- description: Lists jobs for a specific workflow run attempt. Anyone with read
- access to the repository can use this endpoint. If the repository is private
- you must use an access token with the `repo` scope. GitHub Apps must have
- the `actions:read` permission to use this endpoint. You can use parameters
- to narrow the list of results. For more information about using parameters,
- see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).
+ description: |-
+ Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more information
+ about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-jobs-for-workflow-run-attempt
@@ -15802,9 +17056,11 @@ paths:
summary: Download workflow run attempt logs
description: |-
Gets a redirect URL to download an archive of log files for a specific workflow run attempt. This link expires after
- 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to
- the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions:read` permission to use this endpoint.
+ 1 minute. Look for `Location:` in the response header to find the URL for the download.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/download-workflow-run-attempt-logs
@@ -15835,9 +17091,7 @@ paths:
description: |-
Cancels a workflow run using its `id`.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/cancel-workflow-run
@@ -15874,8 +17128,7 @@ paths:
**Note:** GitHub Apps can only review their own custom deployment protection rules.
To approve or reject pending deployments that are waiting for review from a specific person or team, see [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`](/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run).
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have read and write permission for **Deployments** to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/review-custom-gates-for-run
@@ -15909,14 +17162,51 @@ paths:
previews: []
category: actions
subcategory: workflow-runs
+ "/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel":
+ post:
+ summary: Force cancel a workflow run
+ description: |-
+ Cancels a workflow run and bypasses conditions that would otherwise cause a workflow execution to continue, such as an `always()` condition on a job.
+ You should only use this endpoint to cancel a workflow run when the workflow run is not responding to [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`](/rest/actions/workflow-runs#cancel-a-workflow-run).
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/force-cancel-workflow-run
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/workflow-runs#force-cancel-a-workflow-run
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/run-id"
+ responses:
+ '202':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/empty-object"
+ examples:
+ default:
+ value:
+ '409':
+ "$ref": "#/components/responses/conflict"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: workflow-runs
"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs":
get:
summary: List jobs for a workflow run
- description: Lists jobs for a workflow run. Anyone with read access to the repository
- can use this endpoint. If the repository is private you must use an access
- token with the `repo` scope. GitHub Apps must have the `actions:read` permission
- to use this endpoint. You can use parameters to narrow the list of results.
- For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).
+ description: |-
+ Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information
+ about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-jobs-for-workflow-run
@@ -15974,9 +17264,11 @@ paths:
summary: Download workflow run logs
description: |-
Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for
- `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use
- this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have
- the `actions:read` permission to use this endpoint.
+ `Location:` in the response header to find the URL for the download.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/download-workflow-run-logs
@@ -16002,9 +17294,10 @@ paths:
subcategory: workflow-runs
delete:
summary: Delete workflow run logs
- description: Deletes all logs for a workflow run. You must authenticate using
- an access token with the `repo` scope to use this endpoint. GitHub Apps must
- have the `actions:write` permission to use this endpoint.
+ description: |-
+ Deletes all logs for a workflow run.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-workflow-run-logs
@@ -16033,7 +17326,9 @@ paths:
description: |-
Get all deployment environments for a workflow run that are waiting for protection rules to pass.
- Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-pending-deployments-for-run
@@ -16066,7 +17361,9 @@ paths:
description: |-
Approve or reject pending deployments that are waiting on approval by a required reviewer.
- Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.
+ Required reviewers with read access to the repository contents and deployments can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/review-pending-deployments-for-run
@@ -16136,9 +17433,10 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun":
post:
summary: Re-run a workflow
- description: Re-runs your workflow run using its `id`. You must authenticate
- using an access token with the `repo` scope to use this endpoint. GitHub Apps
- must have the `actions:write` permission to use this endpoint.
+ description: |-
+ Re-runs your workflow run using its `id`.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/re-run-workflow
@@ -16182,9 +17480,10 @@ paths:
"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs":
post:
summary: Re-run failed jobs from a workflow run
- description: Re-run all of the failed jobs and their dependent jobs in a workflow
- run using the `id` of the workflow run. You must authenticate using an access
- token with the `repo` scope to use this endpoint.
+ description: |-
+ Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/re-run-workflow-failed-jobs
@@ -16231,7 +17530,9 @@ paths:
description: |-
Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
- Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-workflow-run-usage
@@ -16264,9 +17565,9 @@ paths:
Lists all secrets available in a repository without revealing their encrypted
values.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-repo-secrets
@@ -16314,9 +17615,8 @@ paths:
encrypt a secret before you can create or update secrets.
Anyone with read access to the repository can use this endpoint.
- If the repository is private you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-repo-public-key
@@ -16347,9 +17647,9 @@ paths:
description: |-
Gets a single repository secret without revealing its encrypted value.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+ The authenticated user must have collaborator access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-repo-secret
@@ -16381,9 +17681,9 @@ paths:
Creates or updates a repository secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-or-update-repo-secret
@@ -16438,9 +17738,9 @@ paths:
description: |-
Deletes a secret in a repository using the secret name.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-repo-secret
@@ -16464,10 +17764,10 @@ paths:
summary: List repository variables
description: |-
Lists all repository variables.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:read` repository permission to use this endpoint.
+
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/list-repo-variables
@@ -16512,10 +17812,9 @@ paths:
description: |-
Creates a repository variable that you can reference in a GitHub Actions workflow.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:write` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/create-repo-variable
@@ -16567,10 +17866,9 @@ paths:
description: |-
Gets a specific variable in a repository.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:read` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
+ The authenticated user must have collaborator access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/get-repo-variable
@@ -16601,10 +17899,9 @@ paths:
description: |-
Updates a repository variable that you can reference in a GitHub Actions workflow.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:write` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/update-repo-variable
@@ -16646,10 +17943,9 @@ paths:
description: |-
Deletes a repository variable using the variable name.
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `actions_variables:write` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/delete-repo-variable
@@ -16671,10 +17967,12 @@ paths:
"/repos/{owner}/{repo}/actions/workflows":
get:
summary: List repository workflows
- description: Lists the workflows in a repository. Anyone with read access to
- the repository can use this endpoint. If the repository is private you must
- use an access token with the `repo` scope. GitHub Apps must have the `actions:read`
- permission to use this endpoint.
+ description: |-
+ Lists the workflows in a repository.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-repo-workflows
@@ -16717,11 +18015,13 @@ paths:
"/repos/{owner}/{repo}/actions/workflows/{workflow_id}":
get:
summary: Get a workflow
- description: Gets a specific workflow. You can replace `workflow_id` with the
- workflow file name. For example, you could use `main.yaml`. Anyone with read
- access to the repository can use this endpoint. If the repository is private
- you must use an access token with the `repo` scope. GitHub Apps must have
- the `actions:read` permission to use this endpoint.
+ description: |-
+ Gets a specific workflow. You can replace `workflow_id` with the workflow
+ file name. For example, you could use `main.yaml`.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-workflow
@@ -16753,7 +18053,7 @@ paths:
description: |-
Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/disable-workflow
@@ -16780,7 +18080,7 @@ paths:
You must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see "[Creating a personal access token for the command line](https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line)."
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
operationId: actions/create-workflow-dispatch
tags:
- actions
@@ -16833,7 +18133,7 @@ paths:
description: |-
Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- actions
operationId: actions/enable-workflow
@@ -16856,9 +18156,11 @@ paths:
get:
summary: List workflow runs for a workflow
description: |-
- List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).
+ List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).
- Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.
+ Anyone with read access to the repository can use this endpoint
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/list-workflow-runs
@@ -16913,7 +18215,11 @@ paths:
description: |-
Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
- You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- actions
operationId: actions/get-workflow-usage
@@ -16946,7 +18252,7 @@ paths:
Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.
For more information about viewing repository activity,
- see "[Viewing repository activity](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/viewing-repository-activity)."
+ see "[Viewing activity and data for your repository](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository)."
tags:
- repos
operationId: repos/list-activities
@@ -17107,9 +18413,9 @@ paths:
subcategory: assignees
"/repos/{owner}/{repo}/autolinks":
get:
- summary: List all autolinks of a repository
+ summary: Get all autolinks of a repository
description: |-
- This returns a list of autolinks configured for the given repository.
+ Gets all autolinks that are configured for a repository.
Information about autolinks are only available to repository administrators.
tags:
@@ -17117,11 +18423,10 @@ paths:
operationId: repos/list-autolinks
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/repos/autolinks#list-all-autolinks-of-a-repository
+ url: https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
- - "$ref": "#/components/parameters/page"
responses:
'200':
description: Response
@@ -18590,7 +19895,7 @@ paths:
description: |-
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
- Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.
+ Lists the GitHub Apps that have push access to this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch.
tags:
- repos
operationId: repos/get-apps-with-access-to-protected-branch
@@ -18625,7 +19930,7 @@ paths:
description: |-
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
- Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.
+ Grants the specified apps push access for this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch.
tags:
- repos
operationId: repos/add-app-access-restrictions
@@ -18689,7 +19994,7 @@ paths:
description: |-
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
- Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.
+ Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch.
tags:
- repos
operationId: repos/set-app-access-restrictions
@@ -18753,7 +20058,7 @@ paths:
description: |-
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
- Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.
+ Removes the ability of an app to push to this branch. Only GitHub Apps that are installed on the repository and that have been granted write access to the repository contents can be added as authorized actors on a protected branch.
tags:
- repos
operationId: repos/remove-app-access-restrictions
@@ -19282,17 +20587,9 @@ paths:
**Note:** Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see "[Renaming a branch](https://docs.github.com/github/administering-a-repository/renaming-a-branch)".
- The permissions required to use this endpoint depends on whether you are renaming the default branch.
-
- To rename a non-default branch:
+ The authenticated user must have push access to the branch. If the branch is the default branch, the authenticated user must also have admin or owner permissions.
- * Users must have push access.
- * GitHub Apps must have the `contents:write` repository permission.
-
- To rename the default branch:
-
- * Users must have admin or owner permissions.
- * GitHub Apps must have the `administration:write` repository permission.
+ In order to rename the default branch, fine-grained access tokens also need the `administration:write` repository permission.
tags:
- repos
operationId: repos/rename-branch
@@ -19344,11 +20641,13 @@ paths:
post:
summary: Create a check run
description: |-
- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+ Creates a new check run for a specific commit in a repository.
- Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.
+ To create a check run, you must use a GitHub App. OAuth apps and authenticated users are not able to create a check suite.
In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.
+
+ **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
tags:
- checks
operationId: checks/create
@@ -19381,11 +20680,15 @@ paths:
description: A reference for the run on the integrator's system.
status:
type: string
- description: The current status.
+ description: The current status of the check run. Only GitHub Actions
+ can set a status of `waiting`, `pending`, or `requested`.
enum:
- queued
- in_progress
- completed
+ - waiting
+ - requested
+ - pending
default: queued
started_at:
type: string
@@ -19646,9 +20949,11 @@ paths:
get:
summary: Get a check run
description: |-
+ Gets a single check run using its `id`.
+
**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
- Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/get
@@ -19677,9 +20982,11 @@ paths:
patch:
summary: Update a check run
description: |-
- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+ Updates a check run for a specific commit in a repository.
- Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.
+ **Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+
+ OAuth apps and personal access tokens (classic) cannot use this endpoint.
tags:
- checks
operationId: checks/update
@@ -19714,11 +21021,15 @@ paths:
format: `YYYY-MM-DDTHH:MM:SSZ`.'
status:
type: string
- description: The current status.
+ description: The current status of the check run. Only GitHub Actions
+ can set a status of `waiting`, `pending`, or `requested`.
enum:
- queued
- in_progress
- completed
+ - waiting
+ - requested
+ - pending
conclusion:
type: string
description: "**Required if you provide `completed_at` or a `status`
@@ -19938,11 +21249,10 @@ paths:
"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations":
get:
summary: List check run annotations
- description: Lists annotations for a check run using the annotation `id`. GitHub
- Apps must have the `checks:read` permission on a private repository or pull
- access to a public repository to get annotations for a check run. OAuth apps
- and authenticated users must have the `repo` scope to get annotations for
- a check run in a private repository.
+ description: |-
+ Lists annotations for a check run using the annotation `id`.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/list-annotations
@@ -19981,9 +21291,9 @@ paths:
description: |-
Triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.
- To rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.
-
For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
+
+ OAuth apps and personal access tokens (classic) cannot use this endpoint.
tags:
- checks
operationId: checks/rerequest-run
@@ -20028,9 +21338,11 @@ paths:
post:
summary: Create a check suite
description: |-
+ Creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)".
+
**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
- By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)". Your GitHub App must have the `checks:write` permission to create check suites.
+ OAuth apps and personal access tokens (classic) cannot use this endpoint.
tags:
- checks
operationId: checks/create-suite
@@ -20083,12 +21395,9 @@ paths:
"/repos/{owner}/{repo}/check-suites/preferences":
patch:
summary: Update repository preferences for check suites
- description: Changes the default automatic flow when creating check suites.
- By default, a check suite is automatically created each time code is pushed
- to a repository. When you disable the automatic creation of check suites,
- you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite).
- You must have admin permissions in the repository to set preferences for check
- suites.
+ description: |-
+ Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite).
+ You must have admin permissions in the repository to set preferences for check suites.
tags:
- checks
operationId: checks/set-suites-preferences
@@ -20149,9 +21458,11 @@ paths:
get:
summary: Get a check suite
description: |-
+ Gets a single check suite using its `id`.
+
**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
- Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/get-suite
@@ -20181,9 +21492,11 @@ paths:
get:
summary: List check runs in a check suite
description: |-
- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+ Lists check runs for a check suite using its `id`.
- Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.
+ **Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/list-for-suite
@@ -20243,7 +21556,7 @@ paths:
description: |-
Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.
- To rerequest a check suite, your GitHub App must have the `checks:write` permission on a private repository or pull access to a public repository.
+ OAuth apps and personal access tokens (classic) cannot use this endpoint.
tags:
- checks
operationId: checks/rerequest-suite
@@ -20275,14 +21588,11 @@ paths:
description: |-
Lists code scanning alerts.
- To use this endpoint, you must use an access token with the `security_events` scope or, for alerts from public repositories only, an access token with the `public_repo` scope.
-
- GitHub Apps must have the `security_events` read
- permission to use this endpoint.
-
The response includes a `most_recent_instance` object.
This provides details of the most recent instance of this alert
for the default branch (or for the specified Git reference if you used `ref` in the request).
+
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/list-alerts-for-repo
@@ -20350,11 +21660,10 @@ paths:
"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}":
get:
summary: Get a code scanning alert
- description: Gets a single code scanning alert. You must use an access token
- with the `security_events` scope to use this endpoint with private repos,
- the `public_repo` scope also grants permission to read security events on
- public repos only. GitHub Apps must have the `security_events` read permission
- to use this endpoint.
+ description: |-
+ Gets a single code scanning alert.
+
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/get-alert
@@ -20390,11 +21699,9 @@ paths:
subcategory: code-scanning
patch:
summary: Update a code scanning alert
- description: Updates the status of a single code scanning alert. You must use
- an access token with the `security_events` scope to use this endpoint with
- private repositories. You can also use tokens with the `public_repo` scope
- for public repositories only. GitHub Apps must have the `security_events`
- write permission to use this endpoint.
+ description: |-
+ Updates the status of a single code scanning alert.
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
operationId: code-scanning/update-alert
tags:
- code-scanning
@@ -20453,9 +21760,8 @@ paths:
summary: List instances of a code scanning alert
description: |-
Lists all instances of the specified code scanning alert.
- You must use an access token with the `security_events` scope to use this endpoint with private repos,
- the `public_repo` scope also grants permission to read security events on public repos only.
- GitHub Apps must have the `security_events` read permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/list-alert-instances
@@ -20507,12 +21813,10 @@ paths:
For very old analyses this data is not available,
and `0` is returned in this field.
- You must use an access token with the `security_events` scope to use this endpoint with private repos,
- the `public_repo` scope also grants permission to read security events on public repos only.
- GitHub Apps must have the `security_events` read permission to use this endpoint.
-
**Deprecation notice**:
The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.
+
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
operationId: code-scanning/list-recent-analyses
tags:
- code-scanning
@@ -20578,9 +21882,6 @@ paths:
summary: Get a code scanning analysis for a repository
description: |-
Gets a specified code scanning analysis for a repository.
- You must use an access token with the `security_events` scope to use this endpoint with private repos,
- the `public_repo` scope also grants permission to read security events on public repos only.
- GitHub Apps must have the `security_events` read permission to use this endpoint.
The default JSON response contains fields that describe the analysis.
This includes the Git reference and commit SHA to which the analysis relates,
@@ -20592,10 +21893,11 @@ paths:
For very old analyses this data is not available,
and `0` is returned in this field.
- If you use the Accept header `application/sarif+json`,
- the response contains the analysis data that was uploaded.
- This is formatted as
- [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html).
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.
+
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
operationId: code-scanning/get-analysis
tags:
- code-scanning
@@ -20643,10 +21945,7 @@ paths:
delete:
summary: Delete a code scanning analysis from a repository
description: |-
- Deletes a specified code scanning analysis from a repository. For
- private repositories, you must use an access token with the `repo` scope. For public repositories,
- you must use an access token with `public_repo` scope.
- GitHub Apps must have the `security_events` write permission to use this endpoint.
+ Deletes a specified code scanning analysis from a repository.
You can delete one analysis at a time.
To delete a series of analyses, start with the most recent analysis and work backwards.
@@ -20708,6 +22007,8 @@ paths:
* Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.
The above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
operationId: code-scanning/delete-analysis
tags:
- code-scanning
@@ -20764,9 +22065,7 @@ paths:
description: |-
Lists the CodeQL databases that are available in a repository.
- For private repositories, you must use an access token with the `security_events` scope.
- For public repositories, you can use tokens with the `security_events` or `public_repo` scope.
- GitHub Apps must have the `contents` read permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/list-codeql-databases
@@ -20812,9 +22111,7 @@ paths:
your HTTP client is configured to follow redirects or use the `Location` header
to make a second request to get the redirect URL.
- For private repositories, you must use an access token with the `security_events` scope.
- For public repositories, you can use tokens with the `security_events` or `public_repo` scope.
- GitHub Apps must have the `contents` read permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/get-codeql-database
@@ -20859,8 +22156,8 @@ paths:
summary: Get a code scanning default setup configuration
description: |-
Gets a code scanning default setup configuration.
- You must use an access token with the `repo` scope to use this endpoint with private repos or the `public_repo`
- scope for public repos. GitHub Apps must have the `repo` write permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/get-default-setup
@@ -20895,8 +22192,8 @@ paths:
summary: Update a code scanning default setup configuration
description: |-
Updates a code scanning default setup configuration.
- You must use an access token with the `repo` scope to use this endpoint with private repos or the `public_repo`
- scope for public repos. GitHub Apps must have the `repo` write permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
tags:
- code-scanning
operationId: code-scanning/update-default-setup
@@ -20935,7 +22232,7 @@ paths:
default:
"$ref": "#/components/examples/code-scanning-default-setup-update-response"
'403':
- "$ref": "#/components/responses/code_scanning_forbidden_read"
+ "$ref": "#/components/responses/code_scanning_forbidden_write"
'404':
"$ref": "#/components/responses/not_found"
'409':
@@ -20951,12 +22248,8 @@ paths:
post:
summary: Upload an analysis as SARIF data
description: "Uploads SARIF data containing the results of a code scanning analysis
- to make the results available in a repository. You must use an access token
- with the `security_events` scope to use this endpoint for private repositories.
- You can also use tokens with the `public_repo` scope for public repositories
- only. GitHub Apps must have the `security_events` write permission to use
- this endpoint. For troubleshooting information, see \"[Troubleshooting SARIF
- uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif).\"\n\nThere
+ to make the results available in a repository. For troubleshooting information,
+ see \"[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif).\"\n\nThere
are two places where you can upload code scanning results.\n - If you upload
to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`,
then the results appear as alerts in a pull request check. For more information,
@@ -20966,7 +22259,7 @@ paths:
see \"[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository).\"\n\nYou
must compress the SARIF-formatted analysis data that you want to upload, using
`gzip`, and then encode it as a Base64 format string. For example:\n\n```\ngzip
- -c analysis-data.sarif | base64 -w0\n```\n
\nSARIF upload supports a maximum
+ -c analysis-data.sarif | base64 -w0\n```\n\nSARIF upload supports a maximum
number of entries per the following data objects, and an analysis will be
rejected if any of these objects is above its maximum value. For some objects,
there are additional values over which the entries will be ignored while keeping
@@ -20989,7 +22282,10 @@ paths:
\ | 20 | Only 10 tags will be included. |\n\n\nThe
`202 Accepted` response includes an `id` value.\nYou can use this ID to check
the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.\nFor
- more information, see \"[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload).\""
+ more information, see \"[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload).\"\n\nOAuth
+ app tokens and personal access tokens (classic) need the `security_events`
+ scope to use this endpoint with private or public repositories, or the `public_repo`
+ scope to use this endpoint with only public repositories."
operationId: code-scanning/upload-sarif
tags:
- code-scanning
@@ -21009,7 +22305,7 @@ paths:
commit_sha:
"$ref": "#/components/schemas/code-scanning-analysis-commit-sha"
ref:
- "$ref": "#/components/schemas/code-scanning-ref"
+ "$ref": "#/components/schemas/code-scanning-ref-full"
sarif:
"$ref": "#/components/schemas/code-scanning-analysis-sarif-file"
checkout_uri:
@@ -21037,6 +22333,7 @@ paths:
Whether the SARIF file will be validated according to the code scanning specifications.
This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.
type: boolean
+ additionalProperties: false
required:
- commit_sha
- ref
@@ -21075,14 +22372,9 @@ paths:
"/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}":
get:
summary: Get information about a SARIF upload
- description: Gets information about a SARIF upload, including the status and
- the URL of the analysis that was uploaded so that you can retrieve details
- of the analysis. For more information, see "[Get a code scanning analysis
- for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)."
- You must use an access token with the `security_events` scope to use this
- endpoint with private repos, the `public_repo` scope also grants permission
- to read security events on public repos only. GitHub Apps must have the `security_events`
- read permission to use this endpoint.
+ description: |-
+ Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)."
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
operationId: code-scanning/get-sarif
tags:
- code-scanning
@@ -21169,9 +22461,7 @@ paths:
description: |-
Lists the codespaces associated to a specified repository and the authenticated user.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-in-repository-for-authenticated-user
@@ -21221,9 +22511,7 @@ paths:
description: |-
Creates a codespace owned by the authenticated user in the specified repository.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-with-repo-for-authenticated-user
@@ -21333,9 +22621,7 @@ paths:
Lists the devcontainer.json files associated with a specified repository and the authenticated user. These files
specify launchpoint configurations for codespaces created within the repository.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces_metadata` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-devcontainers-in-repository-for-authenticated-user
@@ -21397,9 +22683,7 @@ paths:
description: |-
List the machine types available for a given repository based on its configuration.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces_metadata` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/repo-machines-for-authenticated-user
@@ -21469,9 +22753,7 @@ paths:
description: |-
Gets the default attributes for codespaces created by the user with the repository.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/pre-flight-with-repo-for-authenticated-user
@@ -21531,13 +22813,75 @@ paths:
enabledForGitHubApps: true
category: codespaces
subcategory: codespaces
+ "/repos/{owner}/{repo}/codespaces/permissions_check":
+ get:
+ summary: Check if permissions defined by a devcontainer have been accepted by
+ the authenticated user
+ description: |-
+ Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.
+
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
+ tags:
+ - codespaces
+ operationId: codespaces/check-permissions-for-devcontainer
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/codespaces/codespaces#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - name: ref
+ description: The git reference that points to the location of the devcontainer
+ configuration to use for the permission check. The value of `ref` will typically
+ be a branch name (`heads/BRANCH_NAME`). For more information, see "[Git
+ References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)"
+ in the Git documentation.
+ in: query
+ required: true
+ schema:
+ type: string
+ example: master
+ - name: devcontainer_path
+ description: Path to the devcontainer.json configuration to use for the permission
+ check.
+ in: query
+ required: true
+ schema:
+ type: string
+ example: ".devcontainer/example/devcontainer.json"
+ responses:
+ '200':
+ description: Response when the permission check is successful
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/codespaces-permissions-check-for-devcontainer"
+ examples:
+ default:
+ "$ref": "#/components/examples/codespaces-permissions-check-for-devcontainer"
+ '401':
+ "$ref": "#/components/responses/requires_authentication"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ '503':
+ "$ref": "#/components/responses/service_unavailable"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: codespaces
+ subcategory: codespaces
"/repos/{owner}/{repo}/codespaces/secrets":
get:
summary: List repository secrets
- description: Lists all secrets available in a repository without revealing their
- encrypted values. You must authenticate using an access token with the `repo`
- scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
- repository permission to use this endpoint.
+ description: |-
+ Lists all development environment secrets available in a repository without revealing their encrypted
+ values.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-repo-secrets
@@ -21580,12 +22924,13 @@ paths:
"/repos/{owner}/{repo}/codespaces/secrets/public-key":
get:
summary: Get a repository public key
- description: Gets your public key, which you need to encrypt secrets. You need
- to encrypt a secret before you can create or update secrets. Anyone with read
- access to the repository can use this endpoint. If the repository is private
- you must use an access token with the `repo` scope. GitHub Apps must have
- write access to the `codespaces_secrets` repository permission to use this
- endpoint.
+ description: |-
+ Gets your public key, which you need to encrypt secrets. You need to
+ encrypt a secret before you can create or update secrets.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-repo-public-key
@@ -21613,10 +22958,10 @@ paths:
"/repos/{owner}/{repo}/codespaces/secrets/{secret_name}":
get:
summary: Get a repository secret
- description: Gets a single repository secret without revealing its encrypted
- value. You must authenticate using an access token with the `repo` scope to
- use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
- repository permission to use this endpoint.
+ description: |-
+ Gets a single repository development environment secret without revealing its encrypted value.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-repo-secret
@@ -21645,12 +22990,10 @@ paths:
put:
summary: Create or update a repository secret
description: |-
- Creates or updates a repository secret with an encrypted value. Encrypt your secret using
+ Creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access
- token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`
- repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-or-update-repo-secret
@@ -21702,10 +23045,10 @@ paths:
subcategory: repository-secrets
delete:
summary: Delete a repository secret
- description: Deletes a secret in a repository using the secret name. You must
- authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have write access to the `codespaces_secrets` repository
- permission to use this endpoint.
+ description: |-
+ Deletes a development environment secret in a repository using the secret name.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-repo-secret
@@ -21733,9 +23076,9 @@ paths:
Team members will include the members of child teams.
- You must authenticate using an access token with the `read:org` and `repo` scopes with push access to use this
- endpoint. GitHub Apps must have the `members` organization permission and `metadata` repository permission to use this
- endpoint.
+ The authenticated user must have push access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:org` and `repo` scopes to use this endpoint.
tags:
- repos
operationId: repos/list-collaborators
@@ -21805,9 +23148,9 @@ paths:
Team members will include the members of child teams.
- You must authenticate using an access token with the `read:org` and `repo` scopes with push access to use this
- endpoint. GitHub Apps must have the `members` organization permission and `metadata` repository permission to use this
- endpoint.
+ The authenticated user must have push access to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:org` and `repo` scopes to use this endpoint.
tags:
- repos
operationId: repos/check-collaborator
@@ -21831,7 +23174,7 @@ paths:
put:
summary: Add a repository collaborator
description: |-
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
Adding an outside collaborator may be restricted by enterprise administrators. For more information, see "[Enforcing repository management policies in your enterprise](https://docs.github.com/admin/policies/enforcing-policies-for-your-enterprise/enforcing-repository-management-policies-in-your-enterprise#enforcing-a-policy-for-inviting-outside-collaborators-to-repositories)."
@@ -21841,7 +23184,7 @@ paths:
Cannot assign {member} permission of {role name}
```
- Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [API](https://docs.github.com/rest/collaborators/invitations).
@@ -21996,9 +23339,14 @@ paths:
get:
summary: List commit comments for a repository
description: |-
- Commit Comments use [these custom media types](https://docs.github.com/rest/overview/media-types). You can read more about the use of media types in the API [here](https://docs.github.com/rest/overview/media-types/).
+ Lists the commit comments for a specified repository. Comments are ordered by ascending ID.
- Comments are ordered by ascending ID.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- repos
operationId: repos/list-commit-comments-for-repo
@@ -22033,7 +23381,15 @@ paths:
"/repos/{owner}/{repo}/comments/{comment_id}":
get:
summary: Get a commit comment
- description: ''
+ description: |-
+ Gets a specified commit comment.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- repos
operationId: repos/get-commit-comment
@@ -22063,7 +23419,15 @@ paths:
subcategory: comments
patch:
summary: Update a commit comment
- description: ''
+ description: |-
+ Updates the contents of a specified commit comment.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- repos
operationId: repos/update-commit-comment
@@ -22413,6 +23777,8 @@ paths:
"$ref": "#/components/examples/branch-short-items"
'422':
"$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -22421,8 +23787,15 @@ paths:
"/repos/{owner}/{repo}/commits/{commit_sha}/comments":
get:
summary: List commit comments
- description: Use the `:commit_sha` to specify the commit that will have its
- comments listed.
+ description: |-
+ Lists the comments for a specified commit.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- repos
operationId: repos/list-comments-for-commit
@@ -22460,7 +23833,14 @@ paths:
description: |-
Create a comment for a commit using its `:commit_sha`.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- repos
operationId: repos/create-commit-comment
@@ -22559,6 +23939,8 @@ paths:
headers:
Link:
"$ref": "#/components/headers/link"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -22570,11 +23952,13 @@ paths:
description: |-
Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.
- **Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.
+ **Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.
- You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.
- To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.
+ - **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.
+ - **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.
+ - **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.
**Signature verification object**
@@ -22634,6 +24018,8 @@ paths:
"$ref": "#/components/responses/internal_error"
'503':
"$ref": "#/components/responses/service_unavailable"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -22643,9 +24029,13 @@ paths:
get:
summary: List check runs for a Git reference
description: |-
- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+ Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.
+
+ **Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
- Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.
+ If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/list-for-ref
@@ -22708,9 +24098,11 @@ paths:
get:
summary: List check suites for a Git reference
description: |-
- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+ Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.
- Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.
+ **Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint on a private repository.
tags:
- checks
operationId: checks/list-suites-for-ref
@@ -22852,10 +24244,8 @@ paths:
README, and CONTRIBUTING files.
The `health_percentage` score is defined as a percentage of how many of
- these four documents are present: README, CONTRIBUTING, LICENSE, and
- CODE_OF_CONDUCT. For example, if all four documents are present, then
- the `health_percentage` is `100`. If only one is present, then the
- `health_percentage` is `25`.
+ the recommended community health files are present. For more information, see
+ "[About community profiles for public repositories](https://docs.github.com/communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories)."
`content_reports_enabled` is only returned for organization-owned repositories.
tags:
@@ -22886,9 +24276,14 @@ paths:
get:
summary: Compare two commits
description: |-
- Compares two commits against one another. You can compare branches in the same repository, or you can compare branches that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."
+ Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."
+
+ This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.
- This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order. You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.diff`**: Returns the diff of the commit.
+ - **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.
The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.
@@ -22976,44 +24371,32 @@ paths:
"/repos/{owner}/{repo}/contents/{path}":
get:
summary: Get repository content
- description: "Gets the contents of a file or directory in a repository. Specify
- the file path or directory in `:path`. If you omit\n`:path`, you will receive
- the contents of the repository's root directory. See the description below
- regarding what the API response includes for directories. \n\nFiles and symlinks
- support [a custom media type](https://docs.github.com/rest/overview/media-types)
- for\nretrieving the raw content or rendered HTML (when supported). All content
- types support [a custom media\ntype](https://docs.github.com/rest/overview/media-types)
- to ensure the content is returned in a consistent\nobject format.\n\n**Notes**:\n*
- \ To get a repository's contents recursively, you can [recursively get the
- tree](https://docs.github.com/rest/git/trees#get-a-tree).\n* This API has
- an upper limit of 1,000 files for a directory. If you need to retrieve more
- files, use the [Git Trees\nAPI](https://docs.github.com/rest/git/trees#get-a-tree).\n
- * Download URLs expire and are meant to be used just once. To ensure the
- download URL does not expire, please use the contents API to obtain a fresh
- download URL for each download.\n Size limits:\nIf the requested file's size
- is:\n* 1 MB or smaller: All features of this endpoint are supported.\n* Between
- 1-100 MB: Only the `raw` or `object` [custom media types](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents)
- are supported. Both will work as normal, except that when using the `object`
- media type, the `content` field will be an empty string and the `encoding`
- field will be `\"none\"`. To get the contents of these larger files, use the
- `raw` media type.\n * Greater than 100 MB: This endpoint is not supported.\n\n
- If the content is a directory:\nThe response will be an array of objects,
- one object for each item in the directory.\nWhen listing the contents of a
- directory, submodules have their \"type\" specified as \"file\". Logically,
- the value\n_should_ be \"submodule\". This behavior exists in API v3 [for
- backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major
- version of the API, the type will be returned as \"submodule\".\n\n If the
- content is a symlink: \nIf the requested `:path` points to a symlink, and
- the symlink's target is a normal file in the repository, then the\nAPI responds
- with the content of the file (in the format shown in the example. Otherwise,
- the API responds with an object \ndescribing the symlink itself.\n\n If the
- content is a submodule:\nThe `submodule_git_url` identifies the location of
- the submodule repository, and the `sha` identifies a specific\ncommit within
- the submodule repository. Git uses the given URL when cloning the submodule
- repository, and checks out\nthe submodule at that specific commit.\n\nIf the
- submodule repository is not hosted on github.com, the Git URLs (`git_url`
- and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`)
- will have null values."
+ description: |-
+ Gets the contents of a file or directory in a repository. Specify the file path or directory with the `path` parameter. If you omit the `path` parameter, you will receive the contents of the repository's root directory.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw file contents for files and symlinks.
+ - **`application/vnd.github.html+json`**: Returns the file contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
+ - **`application/vnd.github.object+json`**: Returns the contents in a consistent object format regardless of the content type. For example, instead of an array of objects for a directory, the response will be an object with an `entries` attribute containing the array of objects.
+
+ If the content is a directory, the response will be an array of objects, one object for each item in the directory. When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule".
+
+ If the content is a symlink and the symlink's target is a normal file in the repository, then the API responds with the content of the file. Otherwise, the API responds with an object describing the symlink itself.
+
+ If the content is a submodule, the `submodule_git_url` field identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values.
+
+ **Notes**:
+
+ - To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/git/trees#get-a-tree).
+ - This API has an upper limit of 1,000 files for a directory. If you need to retrieve
+ more files, use the [Git Trees API](https://docs.github.com/rest/git/trees#get-a-tree).
+ - Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download.
+ - If the requested file's size is:
+ - 1 MB or smaller: All features of this endpoint are supported.
+ - Between 1-100 MB: Only the `raw` or `object` custom media types are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty
+ string and the `encoding` field will be `"none"`. To get the contents of these larger files, use the `raw` media type.
+ - Greater than 100 MB: This endpoint is not supported.
tags:
- repos
operationId: repos/get-content
@@ -23079,9 +24462,11 @@ paths:
put:
summary: Create or update file contents
description: |-
- Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. If you want to modify files in the `.github/workflows` directory, you must authenticate using an access token with the `workflow` scope.
+ Creates a new file or replaces an existing file in a repository.
**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory.
tags:
- repos
operationId: repos/create-or-update-file-contents
@@ -23360,10 +24745,9 @@ paths:
"/repos/{owner}/{repo}/dependabot/alerts":
get:
summary: List Dependabot alerts for a repository
- description: |-
- You must use an access token with the `security_events` scope to use this endpoint with private repositories.
- You can also use tokens with the `public_repo` scope for public repositories only.
- GitHub Apps must have **Dependabot alerts** read permission to use this endpoint.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `security_events` scope to use this endpoint. If this endpoint is only used
+ with public repositories, the token can use the `public_repo` scope instead.
tags:
- dependabot
operationId: dependabot/list-alerts-for-repo
@@ -23390,7 +24774,8 @@ paths:
type: integer
default: 1
- name: per_page
- description: The number of results per page (max 100).
+ description: The number of results per page (max 100). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
deprecated: true
in: query
schema:
@@ -23431,10 +24816,9 @@ paths:
"/repos/{owner}/{repo}/dependabot/alerts/{alert_number}":
get:
summary: Get a Dependabot alert
- description: |-
- You must use an access token with the `security_events` scope to use this endpoint with private repositories.
- You can also use tokens with the `public_repo` scope for public repositories only.
- GitHub Apps must have **Dependabot alerts** read permission to use this endpoint.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `security_events` scope to use this endpoint. If this endpoint is only used
+ with public repositories, the token can use the `public_repo` scope instead.
tags:
- dependabot
operationId: dependabot/get-alert
@@ -23470,11 +24854,9 @@ paths:
patch:
summary: Update a Dependabot alert
description: |-
- You must use an access token with the `security_events` scope to use this endpoint with private repositories.
- You can also use tokens with the `public_repo` scope for public repositories only.
- GitHub Apps must have **Dependabot alerts** write permission to use this endpoint.
+ The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see "[Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)."
- To use this endpoint, you must have access to security alerts for the repository. For more information, see "[Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)."
+ OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- dependabot
operationId: dependabot/update-alert
@@ -23553,10 +24935,11 @@ paths:
"/repos/{owner}/{repo}/dependabot/secrets":
get:
summary: List repository secrets
- description: Lists all secrets available in a repository without revealing their
- encrypted values. You must authenticate using an access token with the `repo`
- scope to use this endpoint. GitHub Apps must have the `dependabot_secrets`
- repository permission to use this endpoint.
+ description: |-
+ Lists all secrets available in a repository without revealing their encrypted
+ values.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/list-repo-secrets
@@ -23599,11 +24982,12 @@ paths:
"/repos/{owner}/{repo}/dependabot/secrets/public-key":
get:
summary: Get a repository public key
- description: Gets your public key, which you need to encrypt secrets. You need
- to encrypt a secret before you can create or update secrets. Anyone with read
- access to the repository can use this endpoint. If the repository is private
- you must use an access token with the `repo` scope. GitHub Apps must have
- the `dependabot_secrets` repository permission to use this endpoint.
+ description: |-
+ Gets your public key, which you need to encrypt secrets. You need to
+ encrypt a secret before you can create or update secrets. Anyone with read access
+ to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint if the repository is private.
tags:
- dependabot
operationId: dependabot/get-repo-public-key
@@ -23631,10 +25015,10 @@ paths:
"/repos/{owner}/{repo}/dependabot/secrets/{secret_name}":
get:
summary: Get a repository secret
- description: Gets a single repository secret without revealing its encrypted
- value. You must authenticate using an access token with the `repo` scope to
- use this endpoint. GitHub Apps must have the `dependabot_secrets` repository
- permission to use this endpoint.
+ description: |-
+ Gets a single repository secret without revealing its encrypted value.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/get-repo-secret
@@ -23666,9 +25050,7 @@ paths:
Creates or updates a repository secret with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access
- token with the `repo` scope to use this endpoint. GitHub Apps must have the `dependabot_secrets` repository
- permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/create-or-update-repo-secret
@@ -23720,10 +25102,10 @@ paths:
subcategory: secrets
delete:
summary: Delete a repository secret
- description: Deletes a secret in a repository using the secret name. You must
- authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `dependabot_secrets` repository permission to use
- this endpoint.
+ description: |-
+ Deletes a secret in a repository using the secret name.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- dependabot
operationId: dependabot/delete-repo-secret
@@ -23826,9 +25208,12 @@ paths:
"/repos/{owner}/{repo}/dependency-graph/snapshots":
post:
summary: Create a snapshot of dependencies for a repository
- description: Create a new snapshot of a repository's dependencies. You must
- authenticate using an access token with the `repo` scope to use this endpoint
- for a repository that the requesting user has access to.
+ description: |-
+ Create a new snapshot of a repository's dependencies.
+
+ The authenticated user must have access to the repository.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- dependency-graph
operationId: dependency-graph/create-repository-snapshot
@@ -23980,8 +25365,6 @@ paths:
be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an
application with debugging enabled.
- Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref.
-
Merged branch response:
You will see this response when GitHub automatically merges the base branch into the topic branch instead of creating
@@ -24002,6 +25385,8 @@ paths:
This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success`
status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint.
tags:
- repos
operationId: repos/create-deployment
@@ -24153,7 +25538,7 @@ paths:
delete:
summary: Delete a deployment
description: |-
- If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment. Anyone with `repo` or `repo_deployment` scopes can delete a deployment.
+ If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment.
To set a deployment as inactive, you must:
@@ -24161,6 +25546,8 @@ paths:
* Mark the active deployment as inactive by adding any non-successful deployment status.
For more information, see "[Create a deployment](https://docs.github.com/rest/deployments/deployments/#create-a-deployment)" and "[Create a deployment status](https://docs.github.com/rest/deployments/statuses#create-a-deployment-status)."
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint.
tags:
- repos
operationId: repos/delete-deployment
@@ -24226,7 +25613,7 @@ paths:
description: |-
Users with `push` access can create deployment statuses for a given deployment.
- GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope.
+ OAuth app tokens and personal access tokens (classic) need the `repo_deployment` scope to use this endpoint.
tags:
- repos
operationId: repos/create-deployment-status
@@ -24372,12 +25759,9 @@ paths:
The `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow.
- This endpoint requires write access to the repository by providing either:
-
- - Personal access tokens with `repo` scope. For more information, see "[Creating a personal access token for the command line](https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help documentation.
- - GitHub Apps with both `metadata:read` and `contents:read&write` permissions.
-
This input example shows how you can use the `client_payload` as a test to debug your workflow.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/create-dispatch-event
@@ -24419,6 +25803,8 @@ paths:
responses:
'204':
description: Response
+ '404':
+ "$ref": "#/components/responses/not_found"
'422':
"$ref": "#/components/responses/validation_failed"
x-github:
@@ -24432,7 +25818,9 @@ paths:
description: |-
Lists the environments for a repository.
- Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/get-all-environments
@@ -24474,9 +25862,9 @@ paths:
description: |-
**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see "[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy)."
- Anyone with read access to the repository can use this endpoint. If the
- repository is private, you must use an access token with the `repo` scope. GitHub
- Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/get-environment
@@ -24511,7 +25899,7 @@ paths:
**Note:** To create or update secrets for an environment, see "[GitHub Actions secrets](/rest/actions/secrets)."
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/create-or-update-environment
@@ -24532,6 +25920,8 @@ paths:
properties:
wait_timer:
"$ref": "#/components/schemas/wait-timer"
+ prevent_self_review:
+ "$ref": "#/components/schemas/prevent-self-review"
reviewers:
type: array
nullable: true
@@ -24557,6 +25947,7 @@ paths:
default:
value:
wait_timer: 30
+ prevent_self_review: false
reviewers:
- type: User
id: 1
@@ -24590,8 +25981,8 @@ paths:
subcategory: environments
delete:
summary: Delete an environment
- description: You must authenticate using an access token with the repo scope
- to use this endpoint.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/delete-an-environment
@@ -24616,7 +26007,9 @@ paths:
description: |-
Lists the deployment branch policies for an environment.
- Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/list-deployment-branch-policies
@@ -24660,9 +26053,9 @@ paths:
post:
summary: Create a deployment branch policy
description: |-
- Creates a deployment branch policy for an environment.
+ Creates a deployment branch or tag policy for an environment.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/create-deployment-branch-policy
@@ -24678,7 +26071,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern-with-type"
examples:
example-wildcard:
summary: Example of a wildcard name pattern
@@ -24688,6 +26081,12 @@ paths:
summary: Example of a single branch name pattern
value:
name: main
+ type: branch
+ example-single-tag:
+ summary: Example of a single tag name pattern
+ value:
+ name: v1
+ type: tag
responses:
'200':
description: Response
@@ -24700,6 +26099,8 @@ paths:
"$ref": "#/components/examples/deployment-branch-policy-wildcard"
example-single-branch:
"$ref": "#/components/examples/deployment-branch-policy-single-branch"
+ example-single-tag:
+ "$ref": "#/components/examples/deployment-branch-policy-single-tag"
'404':
description: Not Found or `deployment_branch_policy.custom_branch_policies`
property for the environment is set to false
@@ -24714,9 +26115,11 @@ paths:
get:
summary: Get a deployment branch policy
description: |-
- Gets a deployment branch policy for an environment.
+ Gets a deployment branch or tag policy for an environment.
- Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
+ Anyone with read access to the repository can use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/get-deployment-branch-policy
@@ -24746,9 +26149,9 @@ paths:
put:
summary: Update a deployment branch policy
description: |-
- Updates a deployment branch policy for an environment.
+ Updates a deployment branch or tag policy for an environment.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/update-deployment-branch-policy
@@ -24788,9 +26191,9 @@ paths:
delete:
summary: Delete a deployment branch policy
description: |-
- Deletes a deployment branch policy for an environment.
+ Deletes a deployment branch or tag policy for an environment.
- You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/delete-deployment-branch-policy
@@ -24814,9 +26217,11 @@ paths:
get:
summary: Get all deployment protection rules for an environment
description: |-
- Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
+ Gets all custom deployment protection rules that are enabled for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/rest/apps/apps#get-an-app).
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/get-all-deployment-protection-rules
@@ -24877,9 +26282,11 @@ paths:
description: |-
Enable a custom deployment protection rule for an environment.
- You must authenticate using an access token with the `repo` scope to use this endpoint. Enabling a custom protection rule requires admin or owner permissions to the repository. GitHub Apps must have the `actions:write` permission to use this endpoint.
+ The authenticated user must have admin or owner permissions to the repository to use this endpoint.
For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/rest/apps/apps#get-an-app).
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/create-deployment-protection-rule
@@ -24924,11 +26331,13 @@ paths:
get:
summary: List custom deployment rule integrations available for an environment
description: |-
- Gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint.
+ Gets all custom deployment protection rule integrations that are available for an environment. Anyone with read access to the repository can use this endpoint.
- For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
+ For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
For more information about the app that is providing this custom deployment rule, see "[GET an app](https://docs.github.com/rest/apps/apps#get-an-app)".
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/list-custom-deployment-rule-integrations
@@ -24971,9 +26380,11 @@ paths:
get:
summary: Get a custom deployment protection rule
description: |-
- Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. If the repository is private and you want to use a personal access token (classic), you must use an access token with the `repo` scope. GitHub Apps and fine-grained personal access tokens must have the `actions:read` permission to use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
+ Gets an enabled custom deployment protection rule for an environment. Anyone with read access to the repository can use this endpoint. For more information about environments, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
For more information about the app that is providing this custom deployment rule, see [`GET /apps/{app_slug}`](https://docs.github.com/rest/apps/apps#get-an-app).
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/get-custom-deployment-protection-rule
@@ -25005,7 +26416,9 @@ paths:
description: |-
Disables a custom deployment protection rule for an environment.
- You must authenticate using an access token with the `repo` scope to use this endpoint. Removing a custom protection rule requires admin or owner permissions to the repository. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see "[Get an app](https://docs.github.com/rest/apps/apps#get-an-app)".
+ The authenticated user must have admin or owner permissions to the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/disable-deployment-protection-rule
@@ -25025,6 +26438,425 @@ paths:
enabledForGitHubApps: true
category: deployments
subcategory: protection-rules
+ "/repos/{owner}/{repo}/environments/{environment_name}/secrets":
+ get:
+ summary: List environment secrets
+ description: |-
+ Lists all secrets available in an environment without revealing their
+ encrypted values.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/list-environment-secrets
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/secrets#list-environment-secrets
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - total_count
+ - secrets
+ properties:
+ total_count:
+ type: integer
+ secrets:
+ type: array
+ items:
+ "$ref": "#/components/schemas/actions-secret"
+ examples:
+ default:
+ "$ref": "#/components/examples/actions-secret-paginated"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: secrets
+ "/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key":
+ get:
+ summary: Get an environment public key
+ description: |-
+ Get the public key for an environment, which you need to encrypt environment
+ secrets. You need to encrypt a secret before you can create or update secrets.
+
+ Anyone with read access to the repository can use this endpoint.
+
+ If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/get-environment-public-key
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/secrets#get-an-environment-public-key
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/actions-public-key"
+ examples:
+ default:
+ "$ref": "#/components/examples/actions-public-key"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: secrets
+ "/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}":
+ get:
+ summary: Get an environment secret
+ description: |-
+ Gets a single environment secret without revealing its encrypted value.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/get-environment-secret
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/secrets#get-an-environment-secret
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/secret-name"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/actions-secret"
+ examples:
+ default:
+ "$ref": "#/components/examples/actions-secret"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: secrets
+ put:
+ summary: Create or update an environment secret
+ description: |-
+ Creates or updates an environment secret with an encrypted value. Encrypt your secret using
+ [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
+
+ Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/create-or-update-environment-secret
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/secret-name"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ encrypted_value:
+ type: string
+ description: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages)
+ using the public key retrieved from the [Get an environment public
+ key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key)
+ endpoint.
+ pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
+ key_id:
+ type: string
+ description: ID of the key you used to encrypt the secret.
+ required:
+ - encrypted_value
+ - key_id
+ examples:
+ default:
+ value:
+ encrypted_value: c2VjcmV0
+ key_id: '012345678912345678'
+ responses:
+ '201':
+ description: Response when creating a secret
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/empty-object"
+ examples:
+ default:
+ value:
+ '204':
+ description: Response when updating a secret
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: secrets
+ delete:
+ summary: Delete an environment secret
+ description: |-
+ Deletes a secret in an environment using the secret name.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read secrets.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/delete-environment-secret
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/secrets#delete-an-environment-secret
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/secret-name"
+ responses:
+ '204':
+ description: Default response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: secrets
+ "/repos/{owner}/{repo}/environments/{environment_name}/variables":
+ get:
+ summary: List environment variables
+ description: |-
+ Lists all environment variables.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/list-environment-variables
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/variables#list-environment-variables
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/variables-per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - total_count
+ - variables
+ properties:
+ total_count:
+ type: integer
+ variables:
+ type: array
+ items:
+ "$ref": "#/components/schemas/actions-variable"
+ examples:
+ default:
+ "$ref": "#/components/examples/actions-variables-paginated"
+ headers:
+ Link:
+ "$ref": "#/components/headers/link"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: variables
+ post:
+ summary: Create an environment variable
+ description: |-
+ Create an environment variable that you can reference in a GitHub Actions workflow.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/create-environment-variable
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/variables#create-an-environment-variable
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the variable.
+ value:
+ type: string
+ description: The value of the variable.
+ required:
+ - name
+ - value
+ examples:
+ default:
+ value:
+ name: USERNAME
+ value: octocat
+ responses:
+ '201':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/empty-object"
+ examples:
+ default:
+ value:
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: variables
+ "/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}":
+ get:
+ summary: Get an environment variable
+ description: |-
+ Gets a specific variable in an environment.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/get-environment-variable
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/variables#get-an-environment-variable
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/environment-name"
+ - "$ref": "#/components/parameters/variable-name"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/actions-variable"
+ examples:
+ default:
+ "$ref": "#/components/examples/actions-variable"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: variables
+ patch:
+ summary: Update an environment variable
+ description: |-
+ Updates an environment variable that you can reference in a GitHub Actions workflow.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/update-environment-variable
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/variables#update-an-environment-variable
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/variable-name"
+ - "$ref": "#/components/parameters/environment-name"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the variable.
+ value:
+ type: string
+ description: The value of the variable.
+ examples:
+ default:
+ value:
+ name: USERNAME
+ value: octocat
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: variables
+ delete:
+ summary: Delete an environment variable
+ description: |-
+ Deletes an environment variable using the variable name.
+
+ Authenticated users must have collaborator access to a repository to create, update, or read variables.
+
+ OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
+ tags:
+ - actions
+ operationId: actions/delete-environment-variable
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/actions/variables#delete-an-environment-variable
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/variable-name"
+ - "$ref": "#/components/parameters/environment-name"
+ responses:
+ '204':
+ description: Response
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: actions
+ subcategory: variables
"/repos/{owner}/{repo}/events":
get:
summary: List repository events
@@ -25242,7 +27074,12 @@ paths:
description: |-
The `content` in the response will always be Base64 encoded.
- _Note_: This API supports blobs up to 100 megabytes in size.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw blob data.
+ - **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
+
+ **Note** This endpoint supports blobs up to 100 megabytes in size.
tags:
- git
operationId: git/get-blob
@@ -25273,6 +27110,8 @@ paths:
"$ref": "#/components/responses/validation_failed"
'403':
"$ref": "#/components/responses/forbidden"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25442,6 +27281,8 @@ paths:
"$ref": "#/components/responses/validation_failed"
'404':
"$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25505,6 +27346,8 @@ paths:
"$ref": "#/components/examples/git-commit-2"
'404':
"$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25530,7 +27373,7 @@ paths:
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
- - "$ref": "#/components/parameters/commit-ref"
+ - "$ref": "#/components/parameters/git-ref-only"
responses:
'200':
description: Response
@@ -25546,6 +27389,8 @@ paths:
headers:
Link:
"$ref": "#/components/headers/link"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25567,7 +27412,7 @@ paths:
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
- - "$ref": "#/components/parameters/commit-ref"
+ - "$ref": "#/components/parameters/git-ref-only"
responses:
'200':
description: Response
@@ -25580,6 +27425,8 @@ paths:
"$ref": "#/components/examples/git-ref"
'404':
"$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25640,6 +27487,8 @@ paths:
type: string
'422':
"$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25648,7 +27497,9 @@ paths:
"/repos/{owner}/{repo}/git/refs/{ref}":
patch:
summary: Update a reference
- description: ''
+ description: Updates the provided reference to point to a new SHA. For more
+ information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)"
+ in the Git documentation.
tags:
- git
operationId: git/update-ref
@@ -25658,17 +27509,7 @@ paths:
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
- - name: ref
- description: The name of the reference to update (for example, `heads/featureA`).
- Can be a branch name (`heads/BRANCH_NAME`) or tag name (`tags/TAG_NAME`).
- For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)"
- in the Git documentation.
- in: path
- required: true
- example: heads/featureA
- schema:
- type: string
- x-multi-segment: true
+ - "$ref": "#/components/parameters/git-ref-only"
requestBody:
required: true
content:
@@ -25704,6 +27545,8 @@ paths:
"$ref": "#/components/examples/git-ref"
'422':
"$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25711,7 +27554,7 @@ paths:
subcategory: refs
delete:
summary: Delete a reference
- description: ''
+ description: Deletes the provided reference.
tags:
- git
operationId: git/delete-ref
@@ -25721,12 +27564,14 @@ paths:
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
- - "$ref": "#/components/parameters/commit-ref"
+ - "$ref": "#/components/parameters/git-ref-only"
responses:
'204':
description: Response
'422':
"$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25853,6 +27698,8 @@ paths:
type: string
'422':
"$ref": "#/components/responses/validation_failed"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -25916,6 +27763,8 @@ paths:
"$ref": "#/components/examples/git-tag"
'404':
"$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -26027,6 +27876,8 @@ paths:
"$ref": "#/components/responses/not_found"
'403':
"$ref": "#/components/responses/forbidden"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -26084,6 +27935,8 @@ paths:
"$ref": "#/components/responses/validation_failed"
'404':
"$ref": "#/components/responses/not_found"
+ '409':
+ "$ref": "#/components/responses/conflict"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -26099,7 +27952,7 @@ paths:
operationId: repos/list-webhooks
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#list-repository-webhooks
+ url: https://docs.github.com/rest/repos/webhooks#list-repository-webhooks
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26125,8 +27978,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
post:
summary: Create a repository webhook
description: |-
@@ -26137,7 +27990,7 @@ paths:
operationId: repos/create-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#create-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#create-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26165,12 +28018,6 @@ paths:
"$ref": "#/components/schemas/webhook-config-secret"
insecure_ssl:
"$ref": "#/components/schemas/webhook-config-insecure-ssl"
- token:
- type: string
- example: '"abc"'
- digest:
- type: string
- example: '"sha256"'
events:
type: array
description: Determines what [events](https://docs.github.com/webhooks/event-payloads)
@@ -26221,8 +28068,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}":
get:
summary: Get a repository webhook
@@ -26233,7 +28080,7 @@ paths:
operationId: repos/get-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#get-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#get-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26253,8 +28100,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
patch:
summary: Update a repository webhook
description: Updates a webhook configured in a repository. If you previously
@@ -26266,7 +28113,7 @@ paths:
operationId: repos/update-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#update-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#update-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26279,25 +28126,7 @@ paths:
type: object
properties:
config:
- type: object
- description: Key/value pairs to provide settings for this webhook.
- properties:
- url:
- "$ref": "#/components/schemas/webhook-config-url"
- content_type:
- "$ref": "#/components/schemas/webhook-config-content-type"
- secret:
- "$ref": "#/components/schemas/webhook-config-secret"
- insecure_ssl:
- "$ref": "#/components/schemas/webhook-config-insecure-ssl"
- address:
- type: string
- example: '"bar@example.com"'
- room:
- type: string
- example: '"The Serious Room"'
- required:
- - url
+ "$ref": "#/components/schemas/webhook-config"
events:
type: array
description: Determines what [events](https://docs.github.com/webhooks/event-payloads)
@@ -26346,8 +28175,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
delete:
summary: Delete a repository webhook
description: ''
@@ -26356,7 +28185,7 @@ paths:
operationId: repos/delete-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#delete-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#delete-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26369,21 +28198,21 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/config":
get:
summary: Get a webhook configuration for a repository
description: |-
Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/webhooks/repos#get-a-repository-webhook)."
- Access tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:read` permission.
+ OAuth app tokens and personal access tokens (classic) need the `read:repo_hook` or `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/get-webhook-config-for-repo
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repo-config#get-a-webhook-configuration-for-a-repository
+ url: https://docs.github.com/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26401,20 +28230,20 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repo-config
+ category: repos
+ subcategory: webhooks
patch:
summary: Update a webhook configuration for a repository
description: |-
Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](/rest/webhooks/repos#update-a-repository-webhook)."
- Access tokens must have the `write:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:write` permission.
+ OAuth app tokens and personal access tokens (classic) need the `write:repo_hook` or `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/update-webhook-config-for-repo
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository
+ url: https://docs.github.com/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26454,8 +28283,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repo-config
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries":
get:
summary: List deliveries for a repository webhook
@@ -26466,7 +28295,7 @@ paths:
operationId: repos/list-webhook-deliveries
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#list-deliveries-for-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26497,8 +28326,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repo-deliveries
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}":
get:
summary: Get a delivery for a repository webhook
@@ -26508,7 +28337,7 @@ paths:
operationId: repos/get-webhook-delivery
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26531,8 +28360,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repo-deliveries
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts":
post:
summary: Redeliver a delivery for a repository webhook
@@ -26542,7 +28371,7 @@ paths:
operationId: repos/redeliver-webhook-delivery
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repo-deliveries#redeliver-a-delivery-for-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26558,8 +28387,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repo-deliveries
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/pings":
post:
summary: Ping a repository webhook
@@ -26570,7 +28399,7 @@ paths:
operationId: repos/ping-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#ping-a-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#ping-a-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26583,8 +28412,8 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/hooks/{hook_id}/tests":
post:
summary: Test the push repository webhook
@@ -26597,7 +28426,7 @@ paths:
operationId: repos/test-push-webhook
externalDocs:
description: API method documentation
- url: https://docs.github.com/rest/webhooks/repos#test-the-push-repository-webhook
+ url: https://docs.github.com/rest/repos/webhooks#test-the-push-repository-webhook
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
@@ -26610,17 +28439,15 @@ paths:
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
- category: webhooks
- subcategory: repos
+ category: repos
+ subcategory: webhooks
"/repos/{owner}/{repo}/import":
get:
summary: Get an import status
description: |-
View the progress of an import.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
**Import status**
@@ -26682,11 +28509,17 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
put:
summary: Start an import
- description: |-
- Start a source import to a GitHub repository using GitHub Importer. Importing into a GitHub repository with GitHub Actions enabled is not supported and will return a status `422 Unprocessable Entity` response.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ description: |
+ Start a source import to a GitHub repository using GitHub Importer.
+ Importing into a GitHub repository with GitHub Actions enabled is not supported and will
+ return a status `422 Unprocessable Entity` response.
+
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/start-import
@@ -26764,6 +28597,9 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
patch:
summary: Update an import
description: |-
@@ -26774,9 +28610,7 @@ paths:
have the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.
You can select the project to import by providing one of the objects in the `project_choices` array in the update request.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/update-import
@@ -26850,14 +28684,15 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
delete:
summary: Cancel an import
description: |
Stop an import for a repository.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/cancel-import
@@ -26877,6 +28712,9 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
"/repos/{owner}/{repo}/import/authors":
get:
summary: Get commit authors
@@ -26885,9 +28723,7 @@ paths:
This endpoint and the [Map a commit author](https://docs.github.com/rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/get-commit-authors
@@ -26919,6 +28755,9 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
"/repos/{owner}/{repo}/import/authors/{author_id}":
patch:
summary: Map a commit author
@@ -26926,9 +28765,7 @@ paths:
Update an author's identity for the import. Your application can continue updating authors any time before you push
new commits to the repository.
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/map-commit-author
@@ -26983,15 +28820,16 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
"/repos/{owner}/{repo}/import/large_files":
get:
summary: Get large files
description: |
List files larger than 100MB found during the import
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/get-large-files
@@ -27020,6 +28858,9 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
"/repos/{owner}/{repo}/import/lfs":
patch:
summary: Update Git LFS preference
@@ -27030,9 +28871,7 @@ paths:
You can learn more about our LFS feature and working with large files [on our help
site](https://docs.github.com/repositories/working-with-files/managing-large-files).
- **Warning:** Support for importing Mercurial, Subversion and Team Foundation Version Control repositories will end
- on October 17, 2023. For more details, see [changelog](https://gh.io/github-importer-non-git-eol). In the coming weeks, we will update
- these docs to reflect relevant changes to the API and will contact all integrators using the "Source imports" API.
+ **Warning:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).
tags:
- migrations
operationId: migrations/set-lfs-preference
@@ -27082,6 +28921,9 @@ paths:
enabledForGitHubApps: true
category: migrations
subcategory: source-imports
+ deprecationDate: '2023-10-12'
+ removalDate: '2024-04-12'
+ deprecated: true
"/repos/{owner}/{repo}/installation":
get:
summary: Get a repository installation for the authenticated app
@@ -27342,6 +29184,13 @@ paths:
reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list-for-repo
@@ -27437,7 +29286,15 @@ paths:
description: |-
Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://docs.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/create
@@ -27556,6 +29413,13 @@ paths:
You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.
By default, issue comments are ordered by ascending ID.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list-comments-for-repo
@@ -27605,8 +29469,15 @@ paths:
"/repos/{owner}/{repo}/issues/comments/{comment_id}":
get:
summary: Get an issue comment
- description: You can use the REST API to get comments on issues and pull requests.
- Every pull request is an issue, but not every issue is a pull request.
+ description: |-
+ You can use the REST API to get comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/get-comment
@@ -27636,8 +29507,15 @@ paths:
subcategory: comments
patch:
summary: Update an issue comment
- description: You can use the REST API to update comments on issues and pull
- requests. Every pull request is an issue, but not every issue is a pull request.
+ description: |-
+ You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/update-comment
@@ -27930,7 +29808,7 @@ paths:
get:
summary: Get an issue
description: |-
- The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-redirects-redirects) if the issue was
+ The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api#follow-redirects) if the issue was
[transferred](https://docs.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If
the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API
returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read
@@ -27941,6 +29819,13 @@ paths:
reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/get
@@ -27976,7 +29861,15 @@ paths:
subcategory: issues
patch:
summary: Update an issue
- description: Issue owners and users with push access can edit an issue.
+ description: |-
+ Issue owners and users with push access can edit an issue.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/update
@@ -28244,6 +30137,13 @@ paths:
You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
Issue comments are ordered by ascending ID.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list-comments
@@ -28283,15 +30183,20 @@ paths:
subcategory: comments
post:
summary: Create an issue comment
- description: |2-
-
+ description: |-
You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).
Creating content too quickly using this endpoint may result in secondary rate limiting.
- See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)"
- and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)"
- for details.
+ For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/create-comment
@@ -28684,7 +30589,7 @@ paths:
description: |-
Users with push access can lock an issue or pull request's conversation.
- Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- issues
operationId: issues/lock
@@ -29360,7 +31265,10 @@ paths:
description: |-
This method returns the contents of the repository's license file, if one is detected.
- Similar to [Get repository content](https://docs.github.com/rest/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw contents of the license.
+ - **`application/vnd.github.html+json`**: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
tags:
- licenses
operationId: licenses/get-for-repo
@@ -29370,6 +31278,7 @@ paths:
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/git-ref"
responses:
'200':
description: Response
@@ -29380,6 +31289,8 @@ paths:
examples:
default:
"$ref": "#/components/examples/license-content"
+ '404':
+ "$ref": "#/components/responses/not_found"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -29895,7 +31806,7 @@ paths:
description: |-
Gets information about a GitHub Pages site.
- A token with the `repo` scope is required. GitHub Apps must have the `pages:read` permission.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/get-pages
@@ -29927,7 +31838,9 @@ paths:
description: |-
Configures a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)."
- To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the `repo` scope or Pages write permission is required. GitHub Apps must have the `administration:write` and `pages:write` permissions.
+ The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/create-pages-site
@@ -30009,7 +31922,9 @@ paths:
description: |-
Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages).
- To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the `repo` scope or Pages write permission is required. GitHub Apps must have the `administration:write` and `pages:write` permissions.
+ The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/update-information-about-pages-site
@@ -30110,7 +32025,9 @@ paths:
description: |-
Deletes a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages).
- To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the `repo` scope or Pages write permission is required. GitHub Apps must have the `administration:write` and `pages:write` permissions.
+ The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/delete-pages-site
@@ -30140,7 +32057,7 @@ paths:
description: |-
Lists builts of a GitHub Pages site.
- A token with the `repo` scope is required. GitHub Apps must have the `pages:read` permission.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/list-pages-builds
@@ -30208,7 +32125,7 @@ paths:
description: |-
Gets information about the single most recent build of a GitHub Pages site.
- A token with the `repo` scope is required. GitHub Apps must have the `pages:read` permission.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/get-latest-pages-build
@@ -30239,7 +32156,7 @@ paths:
description: |-
Gets information about a GitHub Pages build.
- A token with the `repo` scope is required. GitHub Apps must have the `pages:read` permission.
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/get-pages-build
@@ -30269,13 +32186,13 @@ paths:
enabledForGitHubApps: true
category: pages
subcategory: pages
- "/repos/{owner}/{repo}/pages/deployment":
+ "/repos/{owner}/{repo}/pages/deployments":
post:
summary: Create a GitHub Pages deployment
description: |-
Create a GitHub Pages deployment for a repository.
- Users must have write permissions. GitHub Apps must have the `pages:write` permission to use this endpoint.
+ The authenticated user must have write permission to the repository.
tags:
- repos
operationId: repos/create-pages-deployment
@@ -30293,10 +32210,16 @@ paths:
type: object
description: The object used to create GitHub Pages deployment
properties:
+ artifact_id:
+ type: number
+ description: The ID of an artifact that contains the .zip or .tar
+ of static assets to deploy. The artifact belongs to the repository.
+ Either `artifact_id` or `artifact_url` are required.
artifact_url:
type: string
description: The URL of an artifact that contains the .zip or .tar
of static assets to deploy. The artifact belongs to the repository.
+ Either `artifact_id` or `artifact_url` are required.
environment:
type: string
description: The target environment for this GitHub Pages deployment.
@@ -30311,7 +32234,6 @@ paths:
description: The OIDC token issued by GitHub Actions certifying
the origin of the deployment.
required:
- - artifact_url
- pages_build_version
- oidc_token
examples:
@@ -30343,6 +32265,67 @@ paths:
enabledForGitHubApps: true
category: pages
subcategory: pages
+ "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}":
+ get:
+ summary: Get the status of a GitHub Pages deployment
+ description: |-
+ Gets the current status of a GitHub Pages deployment.
+
+ The authenticated user must have read permission for the GitHub Pages site.
+ tags:
+ - repos
+ operationId: repos/get-pages-deployment
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/pages/pages#get-the-status-of-a-github-pages-deployment
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/pages-deployment-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/pages-deployment-status"
+ examples:
+ default:
+ "$ref": "#/components/examples/pages-deployment-status"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: pages
+ subcategory: pages
+ "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel":
+ post:
+ summary: Cancel a GitHub Pages deployment
+ description: |-
+ Cancels a GitHub Pages deployment.
+
+ The authenticated user must have write permissions for the GitHub Pages site.
+ tags:
+ - repos
+ operationId: repos/cancel-pages-deployment
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/pages/pages#cancel-a-github-pages-deployment
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/pages-deployment-id"
+ responses:
+ '204':
+ "$ref": "#/components/responses/no_content"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: pages
+ subcategory: pages
"/repos/{owner}/{repo}/pages/health":
get:
summary: Get a DNS health check for GitHub Pages
@@ -30351,7 +32334,9 @@ paths:
The first request to this endpoint returns a `202 Accepted` status and starts an asynchronous background task to get the results for the domain. After the background task completes, subsequent requests to this endpoint return a `200 OK` status with the health check results in the response.
- To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the `repo` scope or Pages write permission is required. GitHub Apps must have the `administrative:write` and `pages:write` permissions.
+ The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- repos
operationId: repos/get-pages-health-check
@@ -30392,6 +32377,45 @@ paths:
category: pages
subcategory: pages
"/repos/{owner}/{repo}/private-vulnerability-reporting":
+ get:
+ summary: Check if private vulnerability reporting is enabled for a repository
+ description: Returns a boolean indicating whether or not private vulnerability
+ reporting is enabled for the repository. For more information, see "[Evaluating
+ the security settings of a repository](https://docs.github.com/code-security/security-advisories/working-with-repository-security-advisories/evaluating-the-security-settings-of-a-repository)".
+ tags:
+ - repos
+ operationId: repos/check-private-vulnerability-reporting
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ responses:
+ '200':
+ description: Private vulnerability reporting status
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ enabled:
+ type: boolean
+ description: Whether or not private vulnerability reporting is
+ enabled for the repository.
+ required:
+ - enabled
+ examples:
+ default:
+ value:
+ enabled: true
+ '422':
+ "$ref": "#/components/responses/bad_request"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: repos
+ subcategory: repos
put:
summary: Enable private vulnerability reporting for a repository
description: Enables private vulnerability reporting for a repository. The authenticated
@@ -30559,14 +32583,111 @@ paths:
enabledForGitHubApps: true
category: projects
subcategory: projects
+ "/repos/{owner}/{repo}/properties/values":
+ get:
+ summary: Get all custom property values for a repository
+ description: |-
+ Gets all custom property values that are set for a repository.
+ Users with read access to the repository can use this endpoint.
+ tags:
+ - repos
+ operationId: repos/get-custom-properties-values
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ examples:
+ default:
+ "$ref": "#/components/examples/custom-property-values"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: repos
+ subcategory: custom-properties
+ patch:
+ summary: Create or update custom property values for a repository
+ description: |-
+ Create new or update existing custom property values for a repository.
+ Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.
+
+ Repository admins and other users with the repository-level "edit custom property values" fine-grained permission can use this endpoint.
+ tags:
+ - repos
+ operationId: repos/create-or-update-custom-properties-values
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ properties:
+ type: array
+ description: A list of custom property names and associated values
+ to apply to the repositories.
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ required:
+ - properties
+ examples:
+ default:
+ "$ref": "#/components/examples/create-or-update-custom-properties-values"
+ responses:
+ '204':
+ description: No Content when custom property values are successfully created
+ or updated
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: repos
+ subcategory: custom-properties
"/repos/{owner}/{repo}/pulls":
get:
summary: List pull requests
- description: Draft pull requests are available in public repositories with GitHub
- Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository
- billing plans, and in public and private repositories with GitHub Team and
- GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)
+ description: |-
+ Lists pull requests in a specified repository.
+
+ Draft pull requests are available in public repositories with GitHub
+ Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing
+ plans, and in public and private repositories with GitHub Team and GitHub Enterprise
+ Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)
in the GitHub Help documentation.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
+ - **`application/vnd.github.patch`**: For more information, see "[git-format-patch](https://git-scm.com/docs/git-format-patch)" in the Git documentation.
tags:
- pulls
operationId: pulls/list
@@ -30659,7 +32780,15 @@ paths:
To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
tags:
- pulls
operationId: pulls/create
@@ -30756,8 +32885,16 @@ paths:
"/repos/{owner}/{repo}/pulls/comments":
get:
summary: List review comments in a repository
- description: Lists review comments for all pull requests in a repository. By
- default, review comments are in ascending order by ID.
+ description: |-
+ Lists review comments for all pull requests in a repository. By default,
+ review comments are in ascending order by ID.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/list-review-comments-for-repo
@@ -30811,7 +32948,15 @@ paths:
"/repos/{owner}/{repo}/pulls/comments/{comment_id}":
get:
summary: Get a review comment for a pull request
- description: Provides details for a review comment.
+ description: |-
+ Provides details for a specified review comment.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/get-review-comment
@@ -30841,7 +32986,15 @@ paths:
subcategory: comments
patch:
summary: Update a review comment for a pull request
- description: Enables you to edit a review comment.
+ description: |-
+ Edits the content of a specified review comment.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/update-review-comment
@@ -30909,7 +33062,7 @@ paths:
"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions":
get:
summary: List reactions for a pull request review comment
- description: List the reactions to a [pull request review comment](https://docs.github.com/pulls/comments#get-a-review-comment-for-a-pull-request).
+ description: List the reactions to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request).
tags:
- reactions
operationId: reactions/list-for-pull-request-review-comment
@@ -31072,6 +33225,14 @@ paths:
* If [rebased](https://docs.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.
Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
tags:
- pulls
operationId: pulls/get
@@ -31097,6 +33258,8 @@ paths:
"$ref": "#/components/responses/not_modified"
'404':
"$ref": "#/components/responses/not_found"
+ '406':
+ "$ref": "#/components/responses/unacceptable"
'500':
"$ref": "#/components/responses/internal_error"
'503':
@@ -31112,6 +33275,14 @@ paths:
Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.
To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
tags:
- pulls
operationId: pulls/update
@@ -31183,9 +33354,7 @@ paths:
description: |-
Creates a codespace owned by the authenticated user for the specified pull request.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-with-pr-for-authenticated-user
@@ -31286,8 +33455,16 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/comments":
get:
summary: List review comments on a pull request
- description: Lists all review comments for a pull request. By default, review
- comments are in ascending order by ID.
+ description: |-
+ Lists all review comments for a specified pull request. By default, review comments
+ are in ascending order by ID.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/list-review-comments
@@ -31333,15 +33510,22 @@ paths:
subcategory: comments
post:
summary: Create a review comment for a pull request
- description: |2-
+ description: |-
+ Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)."
- Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff.
+ If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.
The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.
- **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/create-review-comment
@@ -31372,10 +33556,15 @@ paths:
description: The relative path to the file that necessitates a comment.
position:
type: integer
- description: "**This parameter is deprecated. Use `line` instead**.
+ description: '**This parameter is deprecated. Use `line` instead**.
The position in the diff where you want to add a review comment.
Note this value is not the same as the line number in the file.
- For help finding the position value, read the note above."
+ The position value equals the number of lines down from the first
+ "@@" hunk header in the file you want to add a comment. The line
+ just below the "@@" line is position 1, the next line is position
+ 2, and so on. The position in the diff continues to increase through
+ lines of whitespace and additional hunks until the beginning of
+ a new file.'
deprecated: true
x-github:
deprecationDate: '2022-11-01'
@@ -31477,7 +33666,15 @@ paths:
description: |-
Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"
+ and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/create-reply-for-review-comment
@@ -31531,10 +33728,18 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/commits":
get:
summary: List commits on a pull request
- description: Lists a maximum of 250 commits for a pull request. To receive a
- complete commit list for pull requests with more than 250 commits, use the
- [List commits](https://docs.github.com/rest/commits/commits#list-commits)
+ description: |-
+ Lists a maximum of 250 commits for a pull request. To receive a complete
+ commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/commits/commits#list-commits)
endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
tags:
- pulls
operationId: pulls/list-commits
@@ -31570,8 +33775,19 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/files":
get:
summary: List pull requests files
- description: "**Note:** Responses include a maximum of 3000 files. The paginated
- response returns 30 files per page by default."
+ description: |-
+ Lists the files in a specified pull request.
+
+ **Note:** Responses include a maximum of 3000 files. The paginated response
+ returns 30 files per page by default.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
+ - **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message.
tags:
- pulls
operationId: pulls/list-files
@@ -31640,7 +33856,7 @@ paths:
summary: Merge a pull request
description: |-
Merges a pull request into the base branch.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
tags:
- pulls
operationId: pulls/merge
@@ -31773,7 +33989,7 @@ paths:
summary: Request reviewers for a pull request
description: |-
Requests reviews for a pull request from a given set of users and/or teams.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
tags:
- pulls
operationId: pulls/request-reviewers
@@ -31897,7 +34113,15 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews":
get:
summary: List reviews for a pull request
- description: The list of reviews returns in chronological order.
+ description: |-
+ Lists all reviews for a specified pull request. The list of reviews returns in chronological order.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/list-reviews
@@ -31933,13 +34157,22 @@ paths:
post:
summary: Create a review for a pull request
description: |-
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ Creates a review on a specified pull request.
+
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
Pull request reviews created in the `PENDING` state are not submitted and therefore do not include the `submitted_at` property in the response. To create a pending review for a pull request, leave the `event` parameter blank. For more information about submitting a `PENDING` review, see "[Submit a review for a pull request](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request)."
- **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) endpoint.
+ **Note:** To comment on a specific line in a file, you need to first determine the position of that line in the diff. To see a pull request diff, add the `application/vnd.github.v3.diff` media type to the `Accept` header of a call to the [Get a pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) endpoint.
The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/create-review
@@ -31994,8 +34227,13 @@ paths:
type: integer
description: The position in the diff where you want to add
a review comment. Note this value is not the same as the
- line number in the file. For help finding the position value,
- read the note below.
+ line number in the file. The `position` value equals the
+ number of lines down from the first "@@" hunk header in
+ the file you want to add a comment. The line just below
+ the "@@" line is position 1, the next line is position 2,
+ and so on. The position in the diff continues to increase
+ through lines of whitespace and additional hunks until the
+ beginning of a new file.
body:
type: string
description: Text of the review comment.
@@ -32048,7 +34286,15 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}":
get:
summary: Get a review for a pull request
- description: Retrieves a pull request review by its ID.
+ description: |-
+ Retrieves a pull request review by its ID.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/get-review
@@ -32079,7 +34325,15 @@ paths:
subcategory: reviews
put:
summary: Update a review for a pull request
- description: Update the review summary comment with new text.
+ description: |-
+ Updates the contents of a specified review summary comment.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/update-review
@@ -32127,8 +34381,15 @@ paths:
subcategory: reviews
delete:
summary: Delete a pending review for a pull request
- description: Deletes a pull request review that has not been submitted. Submitted
- reviews cannot be deleted.
+ description: |-
+ Deletes a pull request review that has not been submitted. Submitted reviews cannot be deleted.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/delete-pending-review
@@ -32162,7 +34423,15 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments":
get:
summary: List comments for a pull request review
- description: List comments for a specific pull request review.
+ description: |-
+ Lists comments for a specific pull request review.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/list-comments-for-review
@@ -32201,9 +34470,19 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals":
put:
summary: Dismiss a review for a pull request
- description: "**Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/branches/branch-protection),
- you must be a repository administrator or be included in the list of people
- or teams who can dismiss pull request reviews."
+ description: |-
+ Dismisses a specified review on a pull request.
+
+ **Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/branches/branch-protection),
+ you must be a repository administrator or be included in the list of people or teams
+ who can dismiss pull request reviews.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/dismiss-review
@@ -32259,9 +34538,15 @@ paths:
"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events":
post:
summary: Submit a review for a pull request
- description: Submits a pending review for a pull request. For more information
- about creating a pending review for a pull request, see "[Create a review
- for a pull request](https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request)."
+ description: |-
+ Submits a pending review for a pull request. For more information about creating a pending review for a pull request, see "[Create a review for a pull request](https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request)."
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- pulls
operationId: pulls/submit-review
@@ -32391,7 +34676,10 @@ paths:
description: |-
Gets the preferred README for a repository.
- READMEs support [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw content or rendered HTML.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw file contents. This is the default if you do not specify a media type.
+ - **`application/vnd.github.html+json`**: Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
tags:
- repos
operationId: repos/get-readme
@@ -32433,7 +34721,10 @@ paths:
description: |-
Gets the README from a repository directory.
- READMEs support [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw content or rendered HTML.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw file contents. This is the default if you do not specify a media type.
+ - **`application/vnd.github.html+json`**: Returns the README in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
tags:
- repos
operationId: repos/get-readme-in-directory
@@ -32521,7 +34812,7 @@ paths:
description: |-
Users with push access to the repository can create a release.
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
tags:
- repos
operationId: repos/create-release
@@ -32880,8 +35171,12 @@ paths:
"/repos/{owner}/{repo}/releases/{release_id}":
get:
summary: Get a release
- description: "**Note:** This returns an `upload_url` key corresponding to the
- endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)."
+ description: |-
+ Gets a public release with the specified release ID.
+
+ **Note:** This returns an `upload_url` key corresponding to the endpoint
+ for uploading release assets. This key is a hypermedia resource. For more information, see
+ "[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
tags:
- repos
operationId: repos/get-release
@@ -32894,8 +35189,9 @@ paths:
- "$ref": "#/components/parameters/release-id"
responses:
'200':
- description: "**Note:** This returns an `upload_url` key corresponding to
- the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)."
+ description: '**Note:** This returns an `upload_url` key corresponding to
+ the endpoint for uploading release assets. This key is a hypermedia resource.
+ For more information, see "[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."'
content:
application/json:
schema:
@@ -33061,7 +35357,7 @@ paths:
subcategory: assets
post:
summary: Upload a release asset
- description: "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)
+ description: "This endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)
to determine which URL to access. The endpoint you call to upload release
assets is specific to your release. Use the `upload_url` returned in\nthe
response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release)
@@ -33449,6 +35745,81 @@ paths:
"$ref": "#/components/responses/not_found"
'500':
"$ref": "#/components/responses/internal_error"
+ "/repos/{owner}/{repo}/rulesets/rule-suites":
+ get:
+ summary: List repository rule suites
+ description: |-
+ Lists suites of rule evaluations at the repository level.
+ For more information, see "[Managing rulesets for a repository](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository#viewing-insights-for-rulesets)."
+ tags:
+ - repos
+ operationId: repos/get-repo-rule-suites
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/ref-in-query"
+ - "$ref": "#/components/parameters/time-period"
+ - "$ref": "#/components/parameters/actor-name-in-query"
+ - "$ref": "#/components/parameters/rule-suite-result"
+ - "$ref": "#/components/parameters/per-page"
+ - "$ref": "#/components/parameters/page"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/rule-suites"
+ examples:
+ default:
+ "$ref": "#/components/examples/rule-suite-items"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '500':
+ "$ref": "#/components/responses/internal_error"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: repos
+ subcategory: rule-suites
+ "/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}":
+ get:
+ summary: Get a repository rule suite
+ description: |-
+ Gets information about a suite of rule evaluations from within a repository.
+ For more information, see "[Managing rulesets for a repository](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository#viewing-insights-for-rulesets)."
+ tags:
+ - repos
+ operationId: repos/get-repo-rule-suite
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/repos/rule-suites#get-a-repository-rule-suite
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/rule-suite-id"
+ responses:
+ '200':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/rule-suite"
+ examples:
+ default:
+ "$ref": "#/components/examples/rule-suite"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ '500':
+ "$ref": "#/components/responses/internal_error"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: repos
+ subcategory: rule-suites
"/repos/{owner}/{repo}/rulesets/{ruleset_id}":
get:
summary: Get a repository ruleset
@@ -33620,10 +35991,10 @@ paths:
summary: List secret scanning alerts for a repository
description: |-
Lists secret scanning alerts for an eligible repository, from newest to oldest.
- To use this endpoint, you must be an administrator for the repository or for the organization that owns the repository, and you must use a personal access token with the `repo` scope or `security_events` scope.
- For public repositories, you may instead use the `public_repo` scope.
- GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint.
+ The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- secret-scanning
operationId: secret-scanning/list-alerts-for-repo
@@ -33642,6 +36013,7 @@ paths:
- "$ref": "#/components/parameters/per-page"
- "$ref": "#/components/parameters/secret-scanning-pagination-before-org-repo"
- "$ref": "#/components/parameters/secret-scanning-pagination-after-org-repo"
+ - "$ref": "#/components/parameters/secret-scanning-alert-validity"
responses:
'200':
description: Response
@@ -33669,10 +36041,10 @@ paths:
summary: Get a secret scanning alert
description: |-
Gets a single secret scanning alert detected in an eligible repository.
- To use this endpoint, you must be an administrator for the repository or for the organization that owns the repository, and you must use a personal access token with the `repo` scope or `security_events` scope.
- For public repositories, you may instead use the `public_repo` scope.
- GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint.
+ The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- secret-scanning
operationId: secret-scanning/get-alert
@@ -33709,10 +36081,10 @@ paths:
summary: Update a secret scanning alert
description: |-
Updates the status of a secret scanning alert in an eligible repository.
- To use this endpoint, you must be an administrator for the repository or for the organization that owns the repository, and you must use a personal access token with the `repo` scope or `security_events` scope.
- For public repositories, you may instead use the `public_repo` scope.
- GitHub Apps must have the `secret_scanning_alerts` write permission to use this endpoint.
+ The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
operationId: secret-scanning/update-alert
tags:
- secret-scanning
@@ -33773,10 +36145,10 @@ paths:
summary: List locations for a secret scanning alert
description: |-
Lists all locations for a given secret scanning alert for an eligible repository.
- To use this endpoint, you must be an administrator for the repository or for the organization that owns the repository, and you must use a personal access token with the `repo` scope or `security_events` scope.
- For public repositories, you may instead use the `public_repo` scope.
- GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint.
+ The authenticated user must be an administrator for the repository or for the organization that owns the repository to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
tags:
- secret-scanning
operationId: secret-scanning/list-locations-for-alert
@@ -33820,10 +36192,10 @@ paths:
summary: List repository security advisories
description: |-
Lists security advisories in a repository.
- You must authenticate using an access token with the `repo` scope or `repository_advisories:read` permission
- in order to get published security advisories in a private repository, or any unpublished security advisories that you have access to.
- You can access unpublished security advisories from a repository if you are a security manager or administrator of that repository, or if you are a collaborator on any security advisory.
+ The authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
tags:
- security-advisories
operationId: security-advisories/list-repository-advisories
@@ -33848,7 +36220,8 @@ paths:
- "$ref": "#/components/parameters/pagination-before"
- "$ref": "#/components/parameters/pagination-after"
- name: per_page
- description: Number of advisories to return per page.
+ description: The number of advisories to return per page. For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
required: false
schema:
@@ -33893,9 +36266,10 @@ paths:
summary: Create a repository security advisory
description: |-
Creates a new repository security advisory.
- You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
- In order to create a draft repository security advisory, you must be a security manager or administrator of that repository.
+ In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
tags:
- security-advisories
operationId: security-advisories/create-repository-advisory
@@ -34047,12 +36421,13 @@ paths:
summary: Get a repository security advisory
description: |-
Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
- You can access any published security advisory on a public repository.
- You must authenticate using an access token with the `repo` scope or `repository_advisories:read` permission
- in order to get a published security advisory in a private repository, or any unpublished security advisory that you have access to.
- You can access an unpublished security advisory from a repository if you are a security manager or administrator of that repository, or if you are a
+ Anyone can access any published security advisory on a public repository.
+
+ The authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a
collaborator on the security advisory.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
tags:
- security-advisories
operationId: security-advisories/get-repository-advisory
@@ -34086,10 +36461,11 @@ paths:
summary: Update a repository security advisory
description: |-
Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
- You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
- In order to update any security advisory, you must be a security manager or administrator of that repository,
+ In order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,
or a collaborator on the repository security advisory.
+
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
tags:
- security-advisories
operationId: security-advisories/update-repository-advisory
@@ -34113,15 +36489,14 @@ paths:
severity: critical
state: published
add_credit:
- summary: When adding a credit to an advisory, you must send the whole
- array of values.
+ summary: To add a credit to an advisory, send the whole array of values.
value:
credits:
- login: monauser
type: remediation_developer
update_vvrs:
- summary: When adding vulnerable versions, you must include existing
- vulnerable versions in the array.
+ summary: To add vulnerable versions, include existing versions in
+ the array.
value:
- package:
ecosystem: pip
@@ -34138,8 +36513,8 @@ paths:
vulnerable_functions:
- function2
invalid_state_transition:
- summary: Some state transitions are invalid, such as changing the
- state from `published` to `draft`
+ summary: Example of an invalid state transition, from `published`
+ to `draft`.
value:
state: draft
update_severity_with_cvss_set:
@@ -34188,9 +36563,9 @@ paths:
You may request a CVE for public repositories, but cannot do so for private repositories.
- You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
+ In order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
- In order to request a CVE for a repository security advisory, you must be a security manager or administrator of that repository.
+ OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
tags:
- security-advisories
operationId: security-advisories/create-repository-advisory-cve-request
@@ -34217,13 +36592,55 @@ paths:
enabledForGitHubApps: true
category: security-advisories
subcategory: repository-advisories
+ "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks":
+ post:
+ summary: Create a temporary private fork
+ description: |-
+ Create a temporary private fork to collaborate on fixing a security vulnerability in your repository.
+
+ **Note**: Forking a repository happens asynchronously. You may have to wait up to 5 minutes before you can access the fork.
+ tags:
+ - security-advisories
+ operationId: security-advisories/create-fork
+ externalDocs:
+ description: API method documentation
+ url: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork
+ parameters:
+ - "$ref": "#/components/parameters/owner"
+ - "$ref": "#/components/parameters/repo"
+ - "$ref": "#/components/parameters/ghsa_id"
+ responses:
+ '202':
+ description: Response
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/full-repository"
+ examples:
+ default:
+ "$ref": "#/components/examples/full-repository"
+ '400':
+ "$ref": "#/components/responses/bad_request"
+ '422':
+ "$ref": "#/components/responses/validation_failed"
+ '403':
+ "$ref": "#/components/responses/forbidden"
+ '404':
+ "$ref": "#/components/responses/not_found"
+ x-github:
+ githubCloudOnly: false
+ enabledForGitHubApps: true
+ category: security-advisories
+ subcategory: repository-advisories
"/repos/{owner}/{repo}/stargazers":
get:
summary: List stargazers
description: |-
Lists the people that have starred the repository.
- You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
tags:
- activity
operationId: activity/list-stargazers-for-repo
@@ -34266,8 +36683,12 @@ paths:
"/repos/{owner}/{repo}/stats/code_frequency":
get:
summary: Get the weekly commit activity
- description: Returns a weekly aggregate of the number of additions and deletions
- pushed to a repository.
+ description: |2
+
+ Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
+
+ **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
+ 10,000 or more commits, a 422 status code will be returned.
tags:
- repos
operationId: repos/get-code-frequency-stats
@@ -34294,6 +36715,8 @@ paths:
"$ref": "#/components/responses/accepted"
'204':
"$ref": "#/components/responses/no_content"
+ '422':
+ description: Repository contains more than 10,000 commits
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
@@ -34341,10 +36764,12 @@ paths:
Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
- * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
+ * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
* `a` - Number of additions
* `d` - Number of deletions
* `c` - Number of commits
+
+ **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
tags:
- repos
operationId: repos/get-contributors-stats
@@ -34870,11 +37295,7 @@ paths:
For a public repository, a team is listed only if that team added the public repository explicitly.
- Personal access tokens require the following scopes:
- * `public_repo` to call this endpoint on a public repository
- * `repo` to call this endpoint on a private repository (this scope also includes public repositories)
-
- This endpoint is not compatible with fine-grained personal access tokens.
+ OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to use this endpoint with a public repository, and `repo` scope to use this endpoint with a private repository.
tags:
- repos
operationId: repos/list-teams
@@ -35129,9 +37550,11 @@ paths:
"/repos/{owner}/{repo}/transfer":
post:
summary: Transfer a repository
- description: |-
- A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://docs.github.com/articles/about-repository-transfers/).
- You must use a personal access token (classic) or an OAuth token for this endpoint. An installation access token or a fine-grained personal access token cannot be used because they are only granted access to a single account.
+ description: A transfer request will need to be accepted by the new owner when
+ transferring a personal repository to another user. The response will contain
+ the original `owner`, and the transfer will continue asynchronously. For more
+ details on the requirements to transfer personal and organization-owned repositories,
+ see [about repository transfers](https://docs.github.com/articles/about-repository-transfers/).
tags:
- repos
operationId: repos/transfer
@@ -35299,12 +37722,7 @@ paths:
description: |-
Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. If the repository is not public, the authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/rest/repos/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.
- **OAuth scope requirements**
-
- When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:
-
- * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use `repo` scope to create an internal repository.
- * `repo` scope to create a private repository
+ OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository.
tags:
- repos
operationId: repos/create-using-template
@@ -35371,10 +37789,10 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/repository"
+ "$ref": "#/components/schemas/full-repository"
examples:
default:
- "$ref": "#/components/examples/repository-3"
+ "$ref": "#/components/examples/full-repository"
headers:
Location:
example: https://api.github.com/repos/octocat/Hello-World
@@ -35428,426 +37846,11 @@ paths:
enabledForGitHubApps: true
category: repos
subcategory: repos
- "/repositories/{repository_id}/environments/{environment_name}/secrets":
- get:
- summary: List environment secrets
- description: |-
- Lists all secrets available in an environment without revealing their
- encrypted values.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
- tags:
- - actions
- operationId: actions/list-environment-secrets
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/secrets#list-environment-secrets
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/per-page"
- - "$ref": "#/components/parameters/page"
- responses:
- '200':
- description: Response
- content:
- application/json:
- schema:
- type: object
- required:
- - total_count
- - secrets
- properties:
- total_count:
- type: integer
- secrets:
- type: array
- items:
- "$ref": "#/components/schemas/actions-secret"
- examples:
- default:
- "$ref": "#/components/examples/actions-secret-paginated"
- headers:
- Link:
- "$ref": "#/components/headers/link"
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: secrets
- "/repositories/{repository_id}/environments/{environment_name}/secrets/public-key":
- get:
- summary: Get an environment public key
- description: |-
- Get the public key for an environment, which you need to encrypt environment
- secrets. You need to encrypt a secret before you can create or update secrets.
-
- Anyone with read access to the repository can use this endpoint.
- If the repository is private you must use an access token with the `repo` scope.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
- tags:
- - actions
- operationId: actions/get-environment-public-key
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/secrets#get-an-environment-public-key
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- responses:
- '200':
- description: Response
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/actions-public-key"
- examples:
- default:
- "$ref": "#/components/examples/actions-public-key"
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: secrets
- "/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}":
- get:
- summary: Get an environment secret
- description: |-
- Gets a single environment secret without revealing its encrypted value.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
- tags:
- - actions
- operationId: actions/get-environment-secret
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/secrets#get-an-environment-secret
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/secret-name"
- responses:
- '200':
- description: Response
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/actions-secret"
- examples:
- default:
- "$ref": "#/components/examples/actions-secret"
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: secrets
- put:
- summary: Create or update an environment secret
- description: |-
- Creates or updates an environment secret with an encrypted value. Encrypt your secret using
- [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
- tags:
- - actions
- operationId: actions/create-or-update-environment-secret
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/secret-name"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- encrypted_value:
- type: string
- description: Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages)
- using the public key retrieved from the [Get an environment public
- key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key)
- endpoint.
- pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
- key_id:
- type: string
- description: ID of the key you used to encrypt the secret.
- required:
- - encrypted_value
- - key_id
- examples:
- default:
- value:
- encrypted_value: c2VjcmV0
- key_id: '012345678912345678'
- responses:
- '201':
- description: Response when creating a secret
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/empty-object"
- examples:
- default:
- value:
- '204':
- description: Response when updating a secret
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: secrets
- delete:
- summary: Delete an environment secret
- description: |-
- Deletes a secret in an environment using the secret name.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- GitHub Apps must have the `secrets` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read secrets.
- tags:
- - actions
- operationId: actions/delete-environment-secret
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/secrets#delete-an-environment-secret
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/secret-name"
- responses:
- '204':
- description: Default response
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: secrets
- "/repositories/{repository_id}/environments/{environment_name}/variables":
- get:
- summary: List environment variables
- description: |-
- Lists all environment variables.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `environments:read` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
- tags:
- - actions
- operationId: actions/list-environment-variables
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/variables#list-environment-variables
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/variables-per-page"
- - "$ref": "#/components/parameters/page"
- responses:
- '200':
- description: Response
- content:
- application/json:
- schema:
- type: object
- required:
- - total_count
- - variables
- properties:
- total_count:
- type: integer
- variables:
- type: array
- items:
- "$ref": "#/components/schemas/actions-variable"
- examples:
- default:
- "$ref": "#/components/examples/actions-variables-paginated"
- headers:
- Link:
- "$ref": "#/components/headers/link"
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: variables
- post:
- summary: Create an environment variable
- description: |-
- Create an environment variable that you can reference in a GitHub Actions workflow.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `environment:write` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
- tags:
- - actions
- operationId: actions/create-environment-variable
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/variables#create-an-environment-variable
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- name:
- type: string
- description: The name of the variable.
- value:
- type: string
- description: The value of the variable.
- required:
- - name
- - value
- examples:
- default:
- value:
- name: USERNAME
- value: octocat
- responses:
- '201':
- description: Response
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/empty-object"
- examples:
- default:
- value:
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: variables
- "/repositories/{repository_id}/environments/{environment_name}/variables/{name}":
- get:
- summary: Get an environment variable
- description: |-
- Gets a specific variable in an environment.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `environments:read` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
- tags:
- - actions
- operationId: actions/get-environment-variable
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/variables#get-an-environment-variable
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/environment-name"
- - "$ref": "#/components/parameters/variable-name"
- responses:
- '200':
- description: Response
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/actions-variable"
- examples:
- default:
- "$ref": "#/components/examples/actions-variable"
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: variables
- patch:
- summary: Update an environment variable
- description: |-
- Updates an environment variable that you can reference in a GitHub Actions workflow.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `environment:write` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
- tags:
- - actions
- operationId: actions/update-environment-variable
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/variables#update-an-environment-variable
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/variable-name"
- - "$ref": "#/components/parameters/environment-name"
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- name:
- type: string
- description: The name of the variable.
- value:
- type: string
- description: The value of the variable.
- examples:
- default:
- value:
- name: USERNAME
- value: octocat
- responses:
- '204':
- description: Response
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: variables
- delete:
- summary: Delete an environment variable
- description: |-
- Deletes an environment variable using the variable name.
-
- You must authenticate using an access token with the `repo` scope to use this endpoint.
- If the repository is private, you must use an access token with the `repo` scope.
- GitHub Apps must have the `environment:write` repository permission to use this endpoint.
- Authenticated users must have collaborator access to a repository to create, update, or read variables.
- tags:
- - actions
- operationId: actions/delete-environment-variable
- externalDocs:
- description: API method documentation
- url: https://docs.github.com/rest/actions/variables#delete-an-environment-variable
- parameters:
- - "$ref": "#/components/parameters/repository-id"
- - "$ref": "#/components/parameters/variable-name"
- - "$ref": "#/components/parameters/environment-name"
- responses:
- '204':
- description: Response
- x-github:
- githubCloudOnly: false
- enabledForGitHubApps: true
- category: actions
- subcategory: variables
"/search/code":
get:
summary: Search code
description: |-
- Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -35951,7 +37954,7 @@ paths:
get:
summary: Search commits
description: |-
- Find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match
metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36024,7 +38027,7 @@ paths:
get:
summary: Search issues and pull requests
description: |-
- Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted
search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36119,7 +38122,7 @@ paths:
get:
summary: Search labels
description: |-
- Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36202,7 +38205,7 @@ paths:
get:
summary: Search repositories
description: |-
- Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36283,7 +38286,7 @@ paths:
get:
summary: Search topics
description: |-
- Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.
+ Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.
When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36344,7 +38347,7 @@ paths:
get:
summary: Search users
description: |-
- Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).
+ Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
When searching for users, you can get text match metadata for the issue **login**, public **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
@@ -36599,7 +38602,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint.
- List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List all discussions on a team's page.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/list-discussions-legacy
@@ -36639,9 +38644,11 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint.
- Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Creates a new discussion post on a team's page.
+
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/create-discussion-legacy
@@ -36703,7 +38710,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint.
- Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Get a specific discussion on a team's page.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/get-discussion-legacy
@@ -36736,7 +38745,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint.
- Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Edits the title and body text of a discussion post. Only the parameters you provide are updated.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/update-discussion-legacy
@@ -36786,7 +38797,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint.
- Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Delete a discussion from a team's page.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/delete-discussion-legacy
@@ -36813,7 +38826,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint.
- List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List all comments on a team discussion.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/list-discussion-comments-legacy
@@ -36854,9 +38869,11 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint.
- Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Creates a new comment on a team discussion.
+
+ This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."
- This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details.
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/create-discussion-comment-legacy
@@ -36907,7 +38924,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint.
- Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Get a specific comment on a team discussion.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/get-discussion-comment-legacy
@@ -36941,7 +38960,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint.
- Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Edits the body text of a discussion comment.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/update-discussion-comment-legacy
@@ -36991,7 +39012,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.
- Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ Deletes a comment on a team discussion.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- teams
operationId: teams/delete-discussion-comment-legacy
@@ -37019,7 +39042,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.
- List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/list-for-team-discussion-comment-legacy
@@ -37076,7 +39101,11 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.
- Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
+ Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment).
+
+ A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/create-for-team-discussion-comment-legacy
@@ -37137,7 +39166,9 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.
- List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
+
+ OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/list-for-team-discussion-legacy
@@ -37193,7 +39224,11 @@ paths:
description: |-
**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.
- Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
+ Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion).
+
+ A response with an HTTP `200` status means that you already added the reaction type to this team discussion.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.
tags:
- reactions
operationId: reactions/create-for-team-discussion-legacy
@@ -37384,7 +39419,7 @@ paths:
**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)."
- Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- teams
operationId: teams/add-member-legacy
@@ -37696,7 +39731,7 @@ paths:
what permission to grant the team on this project. Note that,
if you choose not to pass any parameters, you''ll need to set
`Content-Length` to zero when calling this endpoint. For more
- information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."'
+ information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."'
enum:
- read
- write
@@ -37857,7 +39892,7 @@ paths:
To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.
- Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- teams
operationId: teams/add-or-update-repo-permissions-legacy
@@ -37981,10 +40016,8 @@ paths:
"/user":
get:
summary: Get the authenticated user
- description: |-
- If the authenticated user is authenticated with an OAuth token with the `user` scope, then the response lists public and private profile information.
-
- If the authenticated user is authenticated through OAuth without the `user` scope, then the response lists only public profile information.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `user` scope in order for the response to include private profile information.
tags:
- users
operationId: users/get-authenticated
@@ -38234,9 +40267,7 @@ paths:
description: |-
Lists the authenticated user's codespaces.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-for-authenticated-user
@@ -38289,9 +40320,7 @@ paths:
This endpoint requires either a `repository_id` OR a `pull_request` but not both.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-for-authenticated-user
@@ -38444,12 +40473,12 @@ paths:
get:
summary: List secrets for the authenticated user
description: |-
- Lists all secrets available for a user's Codespaces without revealing their
+ Lists all development environment secrets available for a user's codespaces without revealing their
encrypted values.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have read access to the `codespaces_user_secrets` user permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-secrets-for-authenticated-user
@@ -38493,9 +40522,9 @@ paths:
description: |-
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have read access to the `codespaces_user_secrets` user permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-public-key-for-authenticated-user
@@ -38521,11 +40550,11 @@ paths:
get:
summary: Get a secret for the authenticated user
description: |-
- Gets a secret available to a user's codespaces without revealing its encrypted value.
+ Gets a development environment secret available to a user's codespaces without revealing its encrypted value.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have read access to the `codespaces_user_secrets` user permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-secret-for-authenticated-user
@@ -38552,12 +40581,12 @@ paths:
put:
summary: Create or update a secret for the authenticated user
description: |-
- Creates or updates a secret for a user's codespace with an encrypted value. Encrypt your secret using
+ Creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using
[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must also have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have write access to the `codespaces_user_secrets` user permission and `codespaces_secrets` repository permission on all referenced repositories to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/create-or-update-secret-for-authenticated-user
@@ -38629,11 +40658,11 @@ paths:
delete:
summary: Delete a secret for the authenticated user
description: |-
- Deletes a secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret.
+ Deletes a development environment secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have write access to the `codespaces_user_secrets` user permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-secret-for-authenticated-user
@@ -38654,11 +40683,11 @@ paths:
get:
summary: List selected repositories for a user secret
description: |-
- List the repositories that have been granted the ability to use a user's codespace secret.
+ List the repositories that have been granted the ability to use a user's development environment secret.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have read access to the `codespaces_user_secrets` user permission and write access to the `codespaces_secrets` repository permission on all referenced repositories to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/list-repositories-for-secret-for-authenticated-user
@@ -38703,11 +40732,11 @@ paths:
put:
summary: Set selected repositories for a user secret
description: |-
- Select the repositories that will use a user's codespace secret.
+ Select the repositories that will use a user's development environment secret.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
+ The authenticated user must have Codespaces access to use this endpoint.
- GitHub Apps must have write access to the `codespaces_user_secrets` user permission and write access to the `codespaces_secrets` repository permission on all referenced repositories to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/set-repositories-for-secret-for-authenticated-user
@@ -38761,9 +40790,11 @@ paths:
put:
summary: Add a selected repository to a user secret
description: |-
- Adds a repository to the selected repositories for a user's codespace secret.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
- GitHub Apps must have write access to the `codespaces_user_secrets` user permission and write access to the `codespaces_secrets` repository permission on the referenced repository to use this endpoint.
+ Adds a repository to the selected repositories for a user's development environment secret.
+
+ The authenticated user must have Codespaces access to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/add-repository-for-secret-for-authenticated-user
@@ -38796,9 +40827,11 @@ paths:
delete:
summary: Remove a selected repository from a user secret
description: |-
- Removes a repository from the selected repositories for a user's codespace secret.
- You must authenticate using an access token with the `codespace` or `codespace:secrets` scope to use this endpoint. User must have Codespaces access to use this endpoint.
- GitHub Apps must have write access to the `codespaces_user_secrets` user permission to use this endpoint.
+ Removes a repository from the selected repositories for a user's development environment secret.
+
+ The authenticated user must have Codespaces access to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/remove-repository-for-secret-for-authenticated-user
@@ -38834,9 +40867,7 @@ paths:
description: |-
Gets information about a user's codespace.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-for-authenticated-user
@@ -38877,9 +40908,7 @@ paths:
If you specify a new machine type it will be applied the next time your codespace is started.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/update-for-authenticated-user
@@ -38938,9 +40967,7 @@ paths:
description: |-
Deletes a user's codespace.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/delete-for-authenticated-user
@@ -38975,9 +41002,7 @@ paths:
If changes cannot be pushed to the codespace's repository, they will be pushed to a new or previously-existing fork instead.
- You must authenticate using a personal access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces_lifecycle_admin` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/export-for-authenticated-user
@@ -39017,9 +41042,7 @@ paths:
description: |-
Gets information about an export of a codespace.
- You must authenticate using a personal access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces_lifecycle_admin` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/get-export-details-for-authenticated-user
@@ -39052,9 +41075,7 @@ paths:
description: |-
List the machine types a codespace can transition to use.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have read access to the `codespaces_metadata` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/codespace-machines-for-authenticated-user
@@ -39108,9 +41129,7 @@ paths:
This will fail for a codespace that is already published, meaning it has an associated repository.
- You must authenticate using a personal access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/publish-for-authenticated-user
@@ -39166,9 +41185,7 @@ paths:
description: |-
Starts a user's codespace.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces_lifecycle_admin` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/start-for-authenticated-user
@@ -39218,9 +41235,7 @@ paths:
description: |-
Stops a user's codespace.
- You must authenticate using an access token with the `codespace` scope to use this endpoint.
-
- GitHub Apps must have write access to the `codespaces_lifecycle_admin` repository permission to use this endpoint.
+ OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.
tags:
- codespaces
operationId: codespaces/stop-for-authenticated-user
@@ -39257,7 +41272,8 @@ paths:
summary: Get list of conflicting packages during Docker migration for authenticated-user
description: |-
Lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
tags:
- packages
operationId: packages/list-docker-migration-conflicting-packages-for-authenticated-user
@@ -39342,8 +41358,11 @@ paths:
"/user/emails":
get:
summary: List email addresses for the authenticated user
- description: Lists all of your email addresses, and specifies which one is visible
- to the public. This endpoint is accessible with the `user:email` scope.
+ description: |-
+ Lists all of your email addresses, and specifies which one is visible
+ to the public.
+
+ OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.
tags:
- users
operationId: users/list-emails-for-authenticated-user
@@ -39383,7 +41402,8 @@ paths:
subcategory: emails
post:
summary: Add an email address for the authenticated user
- description: This endpoint is accessible with the `user` scope.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `user` scope to use this endpoint.
tags:
- users
operationId: users/add-email-for-authenticated-user
@@ -39460,7 +41480,8 @@ paths:
subcategory: emails
delete:
summary: Delete an email address for the authenticated user
- description: This endpoint is accessible with the `user` scope.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `user` scope to use this endpoint.
tags:
- users
operationId: users/delete-email-for-authenticated-user
@@ -39637,9 +41658,9 @@ paths:
put:
summary: Follow a user
description: |-
- Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
- Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.
+ OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint.
tags:
- users
operationId: users/follow
@@ -39666,8 +41687,8 @@ paths:
subcategory: followers
delete:
summary: Unfollow a user
- description: Unfollowing a user requires the user to be logged in and authenticated
- with basic auth or OAuth with the `user:follow` scope.
+ description: OAuth app tokens and personal access tokens (classic) need the
+ `user:follow` scope to use this endpoint.
tags:
- users
operationId: users/unfollow
@@ -39695,8 +41716,10 @@ paths:
"/user/gpg_keys":
get:
summary: List GPG keys for the authenticated user
- description: Lists the current user's GPG keys. Requires that you are authenticated
- via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Lists the current user's GPG keys.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.
tags:
- users
operationId: users/list-gpg-keys-for-authenticated-user
@@ -39736,9 +41759,10 @@ paths:
subcategory: gpg-keys
post:
summary: Create a GPG key for the authenticated user
- description: Adds a GPG key to the authenticated user's GitHub account. Requires
- that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key`
- [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Adds a GPG key to the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint.
operationId: users/create-gpg-key-for-authenticated-user
tags:
- users
@@ -39799,8 +41823,10 @@ paths:
"/user/gpg_keys/{gpg_key_id}":
get:
summary: Get a GPG key for the authenticated user
- description: View extended details for a single GPG key. Requires that you are
- authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ View extended details for a single GPG key.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.
tags:
- users
operationId: users/get-gpg-key-for-authenticated-user
@@ -39834,9 +41860,10 @@ paths:
subcategory: gpg-keys
delete:
summary: Delete a GPG key for the authenticated user
- description: Removes a GPG key from the authenticated user's GitHub account.
- Requires that you are authenticated via Basic Auth or via OAuth with at least
- `admin:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Removes a GPG key from the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:gpg_key` scope to use this endpoint.
tags:
- users
operationId: users/delete-gpg-key-for-authenticated-user
@@ -39869,8 +41896,6 @@ paths:
description: |-
Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.
- You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.
-
The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
You can find the permissions for the installation under the `permissions` key.
@@ -39926,8 +41951,6 @@ paths:
The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
- You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.
-
The access the user has to each repository is included in the hash under the `permissions` key.
tags:
- apps
@@ -39979,10 +42002,8 @@ paths:
"/user/installations/{installation_id}/repositories/{repository_id}":
put:
summary: Add a repository to an app installation
- description: |-
- Add a single repository to an installation. The authenticated user must have admin access to the repository.
-
- You must use a personal access token (which you can create via the [command line](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint.
+ description: Add a single repository to an installation. The authenticated user
+ must have admin access to the repository.
tags:
- apps
operationId: apps/add-repo-to-installation-for-authenticated-user
@@ -40008,10 +42029,9 @@ paths:
subcategory: installations
delete:
summary: Remove a repository from an app installation
- description: |-
- Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`.
-
- You must use a personal access token (which you can create via the [command line](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint.
+ description: Remove a single repository from an installation. The authenticated
+ user must have admin access to the repository. The installation must have
+ the `repository_selection` of `selected`.
tags:
- apps
operationId: apps/remove-repo-from-installation-for-authenticated-user
@@ -40138,6 +42158,13 @@ paths:
reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by
the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull
request id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.
+
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
+ - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
+ - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
+ - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.
tags:
- issues
operationId: issues/list-for-authenticated-user
@@ -40217,9 +42244,10 @@ paths:
"/user/keys":
get:
summary: List public SSH keys for the authenticated user
- description: Lists the public SSH keys for the authenticated user's GitHub account.
- Requires that you are authenticated via Basic Auth or via OAuth with at least
- `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Lists the public SSH keys for the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.
tags:
- users
operationId: users/list-public-ssh-keys-for-authenticated-user
@@ -40259,9 +42287,10 @@ paths:
subcategory: keys
post:
summary: Create a public SSH key for the authenticated user
- description: Adds a public SSH key to the authenticated user's GitHub account.
- Requires that you are authenticated via Basic Auth, or OAuth with at least
- `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Adds a public SSH key to the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint.
operationId: users/create-public-ssh-key-for-authenticated-user
tags:
- users
@@ -40319,9 +42348,10 @@ paths:
"/user/keys/{key_id}":
get:
summary: Get a public SSH key for the authenticated user
- description: View extended details for a single public SSH key. Requires that
- you are authenticated via Basic Auth or via OAuth with at least `read:public_key`
- [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ View extended details for a single public SSH key.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.
tags:
- users
operationId: users/get-public-ssh-key-for-authenticated-user
@@ -40355,9 +42385,10 @@ paths:
subcategory: keys
delete:
summary: Delete a public SSH key for the authenticated user
- description: Removes a public SSH key from the authenticated user's GitHub account.
- Requires that you are authenticated via Basic Auth or via OAuth with at least
- `admin:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).
+ description: |-
+ Removes a public SSH key from the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:public_key` scope to use this endpoint.
tags:
- users
operationId: users/delete-public-ssh-key-for-authenticated-user
@@ -40385,10 +42416,7 @@ paths:
"/user/marketplace_purchases":
get:
summary: List subscriptions for the authenticated user
- description: Lists the active subscriptions for the authenticated user. GitHub
- Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app),
- created for a user who has authorized your GitHub App, to access this endpoint.
- OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps).
+ description: Lists the active subscriptions for the authenticated user.
tags:
- apps
operationId: apps/list-subscriptions-for-authenticated-user
@@ -40427,10 +42455,7 @@ paths:
"/user/marketplace_purchases/stubbed":
get:
summary: List subscriptions for the authenticated user (stubbed)
- description: Lists the active subscriptions for the authenticated user. GitHub
- Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app),
- created for a user who has authorized your GitHub App, to access this endpoint.
- OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps).
+ description: Lists the active subscriptions for the authenticated user.
tags:
- apps
operationId: apps/list-subscriptions-for-authenticated-user-stubbed
@@ -40954,9 +42979,7 @@ paths:
description: |-
List organizations for the authenticated user.
- **OAuth scope requirements**
-
- This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.
+ For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.
tags:
- orgs
operationId: orgs/list-for-authenticated-user
@@ -40998,7 +43021,7 @@ paths:
description: |-
Lists packages owned by the authenticated user within the user's namespace.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/list-packages-for-authenticated-user
@@ -41051,7 +43074,7 @@ paths:
description: |-
Gets a specific package for a package owned by the authenticated user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-for-authenticated-user
@@ -41081,8 +43104,7 @@ paths:
description: |-
Deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `delete:packages` scopes.
- If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, `repo` scope is also required. For the list these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-for-authenticated-user
@@ -41116,7 +43138,7 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `write:packages` scopes. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-for-authenticated-user
@@ -41152,7 +43174,7 @@ paths:
description: |-
Lists package versions for a package owned by the authenticated user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-all-package-versions-for-package-owned-by-authenticated-user
@@ -41203,7 +43225,7 @@ paths:
description: |-
Gets a specific package version for a package owned by the authenticated user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-version-for-authenticated-user
@@ -41234,8 +43256,9 @@ paths:
description: |-
Deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must have admin permissions in the organization and authenticate using an access token with the `read:packages` and `delete:packages` scopes.
- If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ The authenticated user must have admin permissions in the organization to use this endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-version-for-authenticated-user
@@ -41270,7 +43293,7 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `write:packages` scopes. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-version-for-authenticated-user
@@ -41360,9 +43383,12 @@ paths:
"/user/public_emails":
get:
summary: List public email addresses for the authenticated user
- description: Lists your publicly visible email address, which you can set with
- the [Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)
- endpoint. This endpoint is accessible with the `user:email` scope.
+ description: |-
+ Lists your publicly visible email address, which you can set with the
+ [Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)
+ endpoint.
+
+ OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.
tags:
- users
operationId: users/list-public-emails-for-authenticated-user
@@ -41506,12 +43532,7 @@ paths:
description: |-
Creates a new repository for the authenticated user.
- **OAuth scope requirements**
-
- When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:
-
- * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use `repo` scope to create an internal repository.
- * `repo` scope to create a private repository.
+ OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository.
tags:
- repos
operationId: repos/create-for-authenticated-user
@@ -41676,10 +43697,10 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/repository"
+ "$ref": "#/components/schemas/full-repository"
examples:
default:
- "$ref": "#/components/examples/repository"
+ "$ref": "#/components/examples/full-repository"
headers:
Location:
example: https://api.github.com/repos/octocat/Hello-World
@@ -41842,8 +43863,10 @@ paths:
subcategory: social-accounts
post:
summary: Add social accounts for the authenticated user
- description: Add one or more social accounts to the authenticated user's profile.
- This endpoint is accessible with the `user` scope.
+ description: |-
+ Add one or more social accounts to the authenticated user's profile.
+
+ OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
tags:
- users
operationId: users/add-social-account-for-authenticated-user
@@ -41907,8 +43930,10 @@ paths:
subcategory: social-accounts
delete:
summary: Delete social accounts for the authenticated user
- description: Deletes one or more social accounts from the authenticated user's
- profile. This endpoint is accessible with the `user` scope.
+ description: |-
+ Deletes one or more social accounts from the authenticated user's profile.
+
+ OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
tags:
- users
operationId: users/delete-social-account-for-authenticated-user
@@ -41964,10 +43989,10 @@ paths:
"/user/ssh_signing_keys":
get:
summary: List SSH signing keys for the authenticated user
- description: Lists the SSH signing keys for the authenticated user's GitHub
- account. You must authenticate with Basic Authentication, or you must authenticate
- with OAuth with at least `read:ssh_signing_key` scope. For more information,
- see "[Understanding scopes for OAuth apps](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/)."
+ description: |-
+ Lists the SSH signing keys for the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.
tags:
- users
operationId: users/list-ssh-signing-keys-for-authenticated-user
@@ -42008,10 +44033,10 @@ paths:
subcategory: ssh-signing-keys
post:
summary: Create a SSH signing key for the authenticated user
- description: Creates an SSH signing key for the authenticated user's GitHub
- account. You must authenticate with Basic Authentication, or you must authenticate
- with OAuth with at least `write:ssh_signing_key` scope. For more information,
- see "[Understanding scopes for OAuth apps](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/)."
+ description: |-
+ Creates an SSH signing key for the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint.
operationId: users/create-ssh-signing-key-for-authenticated-user
tags:
- users
@@ -42071,10 +44096,10 @@ paths:
"/user/ssh_signing_keys/{ssh_signing_key_id}":
get:
summary: Get an SSH signing key for the authenticated user
- description: Gets extended details for an SSH signing key. You must authenticate
- with Basic Authentication, or you must authenticate with OAuth with at least
- `read:ssh_signing_key` scope. For more information, see "[Understanding scopes
- for OAuth apps](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/)."
+ description: |-
+ Gets extended details for an SSH signing key.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.
tags:
- users
operationId: users/get-ssh-signing-key-for-authenticated-user
@@ -42108,10 +44133,10 @@ paths:
subcategory: ssh-signing-keys
delete:
summary: Delete an SSH signing key for the authenticated user
- description: Deletes an SSH signing key from the authenticated user's GitHub
- account. You must authenticate with Basic Authentication, or you must authenticate
- with OAuth with at least `admin:ssh_signing_key` scope. For more information,
- see "[Understanding scopes for OAuth apps](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/)."
+ description: |-
+ Deletes an SSH signing key from the authenticated user's GitHub account.
+
+ OAuth app tokens and personal access tokens (classic) need the `admin:ssh_signing_key` scope to use this endpoint.
tags:
- users
operationId: users/delete-ssh-signing-key-for-authenticated-user
@@ -42142,7 +44167,9 @@ paths:
description: |-
Lists repositories the authenticated user has starred.
- You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
tags:
- activity
operationId: activity/list-repos-starred-by-authenticated-user
@@ -42224,7 +44251,7 @@ paths:
put:
summary: Star a repository for the authenticated user
description: Note that you'll need to set `Content-Length` to zero when calling
- out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)."
+ out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- activity
operationId: activity/star-repo-for-authenticated-user
@@ -42321,15 +44348,13 @@ paths:
"/user/teams":
get:
summary: List teams for the authenticated user
- description: List all of the teams across all of the organizations to which
- the authenticated user belongs. This method requires `user`, `repo`, or `read:org`
- [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/)
- when authenticating via [OAuth](https://docs.github.com/apps/building-oauth-apps/).
- When using a fine-grained personal access token, the resource owner of the
- token [must be a single organization](https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#fine-grained-personal-access-tokens),
- and have at least read-only member organization permissions. The response
- payload only contains the teams from a single organization when using a fine-grained
- personal access token.
+ description: |-
+ List all of the teams across all of the organizations to which the authenticated
+ user belongs.
+
+ OAuth app tokens and personal access tokens (classic) need the `user`, `repo`, or `read:org` scope to use this endpoint.
+
+ When using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.
tags:
- teams
operationId: teams/list-for-authenticated-user
@@ -42411,9 +44436,7 @@ paths:
description: |-
Provides publicly available information about someone with a GitHub account.
- GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details about authentication. For an example response, see 'Response with GitHub plan information' below"
-
- The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/overview/resources-in-the-rest-api#authentication).
+ The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication).
The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)".
tags:
@@ -42450,7 +44473,8 @@ paths:
summary: Get list of conflicting packages during Docker migration for user
description: |-
Lists all packages that are in a specific user's namespace, that the requesting user has access to, and that encountered a conflict during Docker migration.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope.
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint.
tags:
- packages
operationId: packages/list-docker-migration-conflicting-packages-for-user
@@ -42747,14 +44771,11 @@ paths:
get:
summary: Get contextual information for a user
description: |-
- Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.
+ Provides hovercard information. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.
- The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:
+ The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository, you would use a `subject_type` value of `repository` and a `subject_id` value of `1300192` (the ID of the `Spoon-Knife` repository).
- ```shell
- curl -u username:token
- https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192
- ```
+ OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
tags:
- users
operationId: users/get-context-for-user
@@ -42910,7 +44931,7 @@ paths:
description: |-
Lists all packages in a user's namespace for which the requesting user has access.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/list-packages-for-user
@@ -42968,7 +44989,7 @@ paths:
description: |-
Gets a specific package metadata for a public package owned by a user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-for-user
@@ -42999,9 +45020,9 @@ paths:
description: |-
Deletes an entire package for a user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `delete:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package you want to delete. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-for-user
@@ -43036,9 +45057,9 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `write:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package you want to restore. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-for-user
@@ -43075,7 +45096,7 @@ paths:
description: |-
Lists package versions for a public package owned by a specified user.
- To use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-all-package-versions-for-package-owned-by-user
@@ -43115,7 +45136,7 @@ paths:
description: |-
Gets a specific package version for a public package owned by a specified user.
- At this time, to use this endpoint, you must authenticate using an access token with the `read:packages` scope. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of GitHub Packages registries that only support repository-scoped permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/get-package-version-for-user
@@ -43147,9 +45168,9 @@ paths:
description: |-
Deletes a specific package version for a user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `delete:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package whose version you want to delete. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/delete-package-version-for-user
@@ -43185,9 +45206,9 @@ paths:
- The package was deleted within the last 30 days.
- The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.
- To use this endpoint, you must authenticate using an access token with the `read:packages` and `write:packages` scopes. In addition:
- - If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, your token must also include the `repo` scope. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
- - If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, you must have admin permissions to the package whose version you want to restore. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+ If the `package_type` belongs to a GitHub Packages registry that supports granular permissions, the authenticated user must have admin permissions to the package. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
+
+ OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."
tags:
- packages
operationId: packages/restore-package-version-for-user
@@ -43263,9 +45284,9 @@ paths:
"/users/{username}/received_events":
get:
summary: List events received by the authenticated user
- description: These are events that you've received by watching repos and following
- users. If you are authenticated as the given user, you will see private events.
- Otherwise, you'll only see public events.
+ description: These are events that you've received by watching repositories
+ and following users. If you are authenticated as the given user, you will
+ see private events. Otherwise, you'll only see public events.
tags:
- activity
operationId: activity/list-received-events-for-user
@@ -43327,8 +45348,7 @@ paths:
"/users/{username}/repos":
get:
summary: List repositories for a user
- description: 'Lists public repositories for the specified user. Note: For GitHub
- AE, this endpoint will list internal repositories for the specified user.'
+ description: Lists public repositories for the specified user.
tags:
- repos
operationId: repos/list-for-user
@@ -43400,7 +45420,7 @@ paths:
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)".
- Access tokens must have the `user` scope.
+ OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
operationId: billing/get-github-actions-billing-user
tags:
- billing
@@ -43432,7 +45452,7 @@ paths:
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
- Access tokens must have the `user` scope.
+ OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
operationId: billing/get-github-packages-billing-user
tags:
- billing
@@ -43464,7 +45484,7 @@ paths:
Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)."
- Access tokens must have the `user` scope.
+ OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
operationId: billing/get-shared-storage-billing-user
tags:
- billing
@@ -43564,7 +45584,9 @@ paths:
description: |-
Lists repositories a user has starred.
- You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.
+ This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
+
+ - **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.
tags:
- activity
operationId: activity/list-repos-starred-by-user
@@ -45082,18 +47104,18 @@ x-webhooks:
- repository
- organization
- app
- delete:
+ custom-property-created:
post:
summary: |-
- This event occurs when a Git branch or tag is deleted. To subscribe to all pushes to a repository, including
- branch and tag deletions, use the [`push`](#push) webhook event.
+ This event occurs when there is activity relating to a custom property.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.
+ For more information, see "[Managing custom properties for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)". For information about the APIs to manage custom properties, see "[Custom properties](https://docs.github.com/rest/orgs/custom-properties)" in the REST API documentation.
- **Note**: This event will not occur when more than three tags are deleted at once.
- operationId: delete
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.
+ description: A new custom property was created.
+ operationId: custom-property/created
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#delete
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#custom_property
parameters:
- name: User-Agent
in: header
@@ -45135,7 +47157,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-delete"
+ "$ref": "#/components/schemas/webhook-custom-property-created"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45143,25 +47165,22 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: delete
+ subcategory: custom_property
supported-webhook-types:
- - repository
- organization
- app
- dependabot-alert-auto-dismissed:
+ custom-property-deleted:
post:
summary: |-
- This event occurs when there is activity relating to Dependabot alerts.
-
- For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+ This event occurs when there is activity relating to a custom property.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+ For more information, see "[Managing custom properties for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)". For information about the APIs to manage custom properties, see "[Custom properties](https://docs.github.com/rest/orgs/custom-properties)" in the REST API documentation.
- **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A Dependabot alert was automatically closed.
- operationId: dependabot-alert/auto-dismissed
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.
+ description: A custom property was deleted.
+ operationId: custom-property/deleted
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#custom_property
parameters:
- name: User-Agent
in: header
@@ -45203,7 +47222,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-auto-dismissed"
+ "$ref": "#/components/schemas/webhook-custom-property-deleted"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45211,25 +47230,22 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: dependabot_alert
+ subcategory: custom_property
supported-webhook-types:
- - repository
- organization
- app
- dependabot-alert-auto-reopened:
+ custom-property-updated:
post:
summary: |-
- This event occurs when there is activity relating to Dependabot alerts.
-
- For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+ This event occurs when there is activity relating to a custom property.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+ For more information, see "[Managing custom properties for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)". For information about the APIs to manage custom properties, see "[Custom properties](https://docs.github.com/rest/orgs/custom-properties)" in the REST API documentation.
- **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A Dependabot alert was automatically reopened.
- operationId: dependabot-alert/auto-reopened
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.
+ description: A custom property was updated.
+ operationId: custom-property/updated
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#custom_property
parameters:
- name: User-Agent
in: header
@@ -45271,7 +47287,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-auto-reopened"
+ "$ref": "#/components/schemas/webhook-custom-property-updated"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45279,27 +47295,22 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: dependabot_alert
+ subcategory: custom_property
supported-webhook-types:
- - repository
- organization
- app
- dependabot-alert-created:
+ custom-property-values-updated:
post:
summary: |-
- This event occurs when there is activity relating to Dependabot alerts.
-
- For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+ This event occurs when there is activity relating to custom property values for a repository.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+ For more information, see "[Managing custom properties for repositories in your organization](https://docs.github.com/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)". For information about the APIs to manage custom properties for a repository, see "[Custom properties](https://docs.github.com/rest/repos/custom-properties)" in the REST API documentation.
- **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A manifest file change introduced a vulnerable dependency, or a
- GitHub Security Advisory was published and an existing dependency was found
- to be vulnerable.
- operationId: dependabot-alert/created
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Custom properties" organization permission.
+ description: The custom property values of a repository were updated.
+ operationId: custom-property-values/updated
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#custom-property-values
parameters:
- name: User-Agent
in: header
@@ -45341,7 +47352,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-created"
+ "$ref": "#/components/schemas/webhook-custom-property-values-updated"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45349,25 +47360,23 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: dependabot_alert
+ subcategory: custom-property-values
supported-webhook-types:
- repository
- organization
- app
- dependabot-alert-dismissed:
+ delete:
post:
summary: |-
- This event occurs when there is activity relating to Dependabot alerts.
-
- For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+ This event occurs when a Git branch or tag is deleted. To subscribe to all pushes to a repository, including
+ branch and tag deletions, use the [`push`](#push) webhook event.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.
- **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A Dependabot alert was manually closed.
- operationId: dependabot-alert/dismissed
+ **Note**: This event will not occur when more than three tags are deleted at once.
+ operationId: delete
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#delete
parameters:
- name: User-Agent
in: header
@@ -45409,7 +47418,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-dismissed"
+ "$ref": "#/components/schemas/webhook-delete"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45417,12 +47426,12 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: dependabot_alert
+ subcategory: delete
supported-webhook-types:
- repository
- organization
- app
- dependabot-alert-fixed:
+ dependabot-alert-auto-dismissed:
post:
summary: |-
This event occurs when there is activity relating to Dependabot alerts.
@@ -45432,8 +47441,9 @@ x-webhooks:
To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
**Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A manifest file change removed a vulnerability.
- operationId: dependabot-alert/fixed
+ description: A Dependabot alert was automatically closed by a Dependabot auto-triage
+ rule.
+ operationId: dependabot-alert/auto-dismissed
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
@@ -45477,7 +47487,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-fixed"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-auto-dismissed"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45490,7 +47500,7 @@ x-webhooks:
- repository
- organization
- app
- dependabot-alert-reintroduced:
+ dependabot-alert-auto-reopened:
post:
summary: |-
This event occurs when there is activity relating to Dependabot alerts.
@@ -45500,9 +47510,10 @@ x-webhooks:
To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
**Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A manifest file change introduced a vulnerable dependency that
- had previously been fixed.
- operationId: dependabot-alert/reintroduced
+ description: A Dependabot alert, that had been automatically closed by a Dependabot
+ auto-triage rule, was automatically reopened because the alert metadata or
+ rule changed.
+ operationId: dependabot-alert/auto-reopened
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
@@ -45546,7 +47557,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-reintroduced"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-auto-reopened"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45559,7 +47570,7 @@ x-webhooks:
- repository
- organization
- app
- dependabot-alert-reopened:
+ dependabot-alert-created:
post:
summary: |-
This event occurs when there is activity relating to Dependabot alerts.
@@ -45569,8 +47580,10 @@ x-webhooks:
To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
**Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
- description: A Dependabot alert was manually reopened.
- operationId: dependabot-alert/reopened
+ description: A manifest file change introduced a vulnerable dependency, or a
+ GitHub Security Advisory was published and an existing dependency was found
+ to be vulnerable.
+ operationId: dependabot-alert/created
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
@@ -45614,7 +47627,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-dependabot-alert-reopened"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-created"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45627,16 +47640,20 @@ x-webhooks:
- repository
- organization
- app
- deploy-key-created:
+ dependabot-alert-dismissed:
post:
summary: |-
- This event occurs when there is activity relating to deploy keys. For more information, see "[Managing deploy keys](https://docs.github.com/developers/overview/managing-deploy-keys)." For information about the APIs to manage deploy keys, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deploykey) or "[Deploy keys](https://docs.github.com/rest/deploy-keys)" in the REST API documentation.
+ This event occurs when there is activity relating to Dependabot alerts.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
- description: A deploy key was created.
- operationId: deploy-key/created
+ For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+
+ **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
+ description: A Dependabot alert was manually closed.
+ operationId: dependabot-alert/dismissed
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#deploy_key
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
- name: User-Agent
in: header
@@ -45678,7 +47695,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-deploy-key-created"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-dismissed"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45686,21 +47703,25 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: deploy_key
+ subcategory: dependabot_alert
supported-webhook-types:
- repository
- organization
- app
- deploy-key-deleted:
+ dependabot-alert-fixed:
post:
summary: |-
- This event occurs when there is activity relating to deploy keys. For more information, see "[Managing deploy keys](https://docs.github.com/developers/overview/managing-deploy-keys)." For information about the APIs to manage deploy keys, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deploykey) or "[Deploy keys](https://docs.github.com/rest/deploy-keys)" in the REST API documentation.
+ This event occurs when there is activity relating to Dependabot alerts.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
- description: A deploy key was deleted.
- operationId: deploy-key/deleted
+ For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+
+ **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
+ description: A manifest file change removed a vulnerability.
+ operationId: dependabot-alert/fixed
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#deploy_key
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
- name: User-Agent
in: header
@@ -45742,7 +47763,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-deploy-key-deleted"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-fixed"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45750,23 +47771,26 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: deploy_key
+ subcategory: dependabot_alert
supported-webhook-types:
- repository
- organization
- app
- deployment-created:
+ dependabot-alert-reintroduced:
post:
summary: |-
- This event occurs when there is activity relating to deployments. For more information, see "[About deployments](https://docs.github.com/actions/deployment/about-deployments)." For information about the APIs to manage deployments, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deployment) or "[Deployments](https://docs.github.com/rest/deployments/deployments)" in the REST API documentation.
+ This event occurs when there is activity relating to Dependabot alerts.
- For activity relating to deployment status, use the `deployment_status` event.
+ For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
- description: A deployment was created.
- operationId: deployment/created
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+
+ **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
+ description: A manifest file change introduced a vulnerable dependency that
+ had previously been fixed.
+ operationId: dependabot-alert/reintroduced
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#deployment
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
parameters:
- name: User-Agent
in: header
@@ -45808,7 +47832,7 @@ x-webhooks:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook-deployment-created"
+ "$ref": "#/components/schemas/webhook-dependabot-alert-reintroduced"
responses:
'200':
description: Return a 200 status to indicate that the data was received
@@ -45816,21 +47840,283 @@ x-webhooks:
x-github:
githubCloudOnly: false
category: webhooks
- subcategory: deployment
+ subcategory: dependabot_alert
supported-webhook-types:
- repository
- organization
- app
- deployment-protection-rule-requested:
+ dependabot-alert-reopened:
post:
summary: |-
- This event occurs when there is activity relating to deployment protection rules. For more information, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-protection-rules)." For information about the API to manage deployment protection rules, see [the REST API documentation](https://docs.github.com/rest/deployments/environments).
+ This event occurs when there is activity relating to Dependabot alerts.
- To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
- description: A deployment protection rule was requested for an environment.
- operationId: deployment-protection-rule/requested
+ For more information about Dependabot alerts, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)." For information about the API to manage Dependabot alerts, see "[Dependabot alerts](https://docs.github.com/rest/dependabot/alerts)" in the REST API documentation.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Dependabot alerts" repository permission.
+
+ **Note**: Webhook events for Dependabot alerts are currently in beta and subject to change.
+ description: A Dependabot alert was manually reopened.
+ operationId: dependabot-alert/reopened
externalDocs:
- url: https://docs.github.com/webhooks/webhook-events-and-payloads#deployment_protection_rule
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#dependabot_alert
+ parameters:
+ - name: User-Agent
+ in: header
+ example: GitHub-Hookshot/123abc
+ schema:
+ type: string
+ - name: X-Github-Hook-Id
+ in: header
+ example: 12312312
+ schema:
+ type: string
+ - name: X-Github-Event
+ in: header
+ example: issues
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Id
+ in: header
+ example: 123123
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Type
+ in: header
+ example: repository
+ schema:
+ type: string
+ - name: X-GitHub-Delivery
+ in: header
+ example: 0b989ba4-242f-11e5-81e1-c7b6966d2516
+ schema:
+ type: string
+ - name: X-Hub-Signature-256
+ in: header
+ example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook-dependabot-alert-reopened"
+ responses:
+ '200':
+ description: Return a 200 status to indicate that the data was received
+ successfully
+ x-github:
+ githubCloudOnly: false
+ category: webhooks
+ subcategory: dependabot_alert
+ supported-webhook-types:
+ - repository
+ - organization
+ - app
+ deploy-key-created:
+ post:
+ summary: |-
+ This event occurs when there is activity relating to deploy keys. For more information, see "[Managing deploy keys](https://docs.github.com/developers/overview/managing-deploy-keys)." For information about the APIs to manage deploy keys, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deploykey) or "[Deploy keys](https://docs.github.com/rest/deploy-keys)" in the REST API documentation.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
+ description: A deploy key was created.
+ operationId: deploy-key/created
+ externalDocs:
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#deploy_key
+ parameters:
+ - name: User-Agent
+ in: header
+ example: GitHub-Hookshot/123abc
+ schema:
+ type: string
+ - name: X-Github-Hook-Id
+ in: header
+ example: 12312312
+ schema:
+ type: string
+ - name: X-Github-Event
+ in: header
+ example: issues
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Id
+ in: header
+ example: 123123
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Type
+ in: header
+ example: repository
+ schema:
+ type: string
+ - name: X-GitHub-Delivery
+ in: header
+ example: 0b989ba4-242f-11e5-81e1-c7b6966d2516
+ schema:
+ type: string
+ - name: X-Hub-Signature-256
+ in: header
+ example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook-deploy-key-created"
+ responses:
+ '200':
+ description: Return a 200 status to indicate that the data was received
+ successfully
+ x-github:
+ githubCloudOnly: false
+ category: webhooks
+ subcategory: deploy_key
+ supported-webhook-types:
+ - repository
+ - organization
+ - app
+ deploy-key-deleted:
+ post:
+ summary: |-
+ This event occurs when there is activity relating to deploy keys. For more information, see "[Managing deploy keys](https://docs.github.com/developers/overview/managing-deploy-keys)." For information about the APIs to manage deploy keys, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deploykey) or "[Deploy keys](https://docs.github.com/rest/deploy-keys)" in the REST API documentation.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
+ description: A deploy key was deleted.
+ operationId: deploy-key/deleted
+ externalDocs:
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#deploy_key
+ parameters:
+ - name: User-Agent
+ in: header
+ example: GitHub-Hookshot/123abc
+ schema:
+ type: string
+ - name: X-Github-Hook-Id
+ in: header
+ example: 12312312
+ schema:
+ type: string
+ - name: X-Github-Event
+ in: header
+ example: issues
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Id
+ in: header
+ example: 123123
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Type
+ in: header
+ example: repository
+ schema:
+ type: string
+ - name: X-GitHub-Delivery
+ in: header
+ example: 0b989ba4-242f-11e5-81e1-c7b6966d2516
+ schema:
+ type: string
+ - name: X-Hub-Signature-256
+ in: header
+ example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook-deploy-key-deleted"
+ responses:
+ '200':
+ description: Return a 200 status to indicate that the data was received
+ successfully
+ x-github:
+ githubCloudOnly: false
+ category: webhooks
+ subcategory: deploy_key
+ supported-webhook-types:
+ - repository
+ - organization
+ - app
+ deployment-created:
+ post:
+ summary: |-
+ This event occurs when there is activity relating to deployments. For more information, see "[About deployments](https://docs.github.com/actions/deployment/about-deployments)." For information about the APIs to manage deployments, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#deployment) or "[Deployments](https://docs.github.com/rest/deployments/deployments)" in the REST API documentation.
+
+ For activity relating to deployment status, use the `deployment_status` event.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
+ description: A deployment was created.
+ operationId: deployment/created
+ externalDocs:
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#deployment
+ parameters:
+ - name: User-Agent
+ in: header
+ example: GitHub-Hookshot/123abc
+ schema:
+ type: string
+ - name: X-Github-Hook-Id
+ in: header
+ example: 12312312
+ schema:
+ type: string
+ - name: X-Github-Event
+ in: header
+ example: issues
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Id
+ in: header
+ example: 123123
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Type
+ in: header
+ example: repository
+ schema:
+ type: string
+ - name: X-GitHub-Delivery
+ in: header
+ example: 0b989ba4-242f-11e5-81e1-c7b6966d2516
+ schema:
+ type: string
+ - name: X-Hub-Signature-256
+ in: header
+ example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook-deployment-created"
+ responses:
+ '200':
+ description: Return a 200 status to indicate that the data was received
+ successfully
+ x-github:
+ githubCloudOnly: false
+ category: webhooks
+ subcategory: deployment
+ supported-webhook-types:
+ - repository
+ - organization
+ - app
+ deployment-protection-rule-requested:
+ post:
+ summary: |-
+ This event occurs when there is activity relating to deployment protection rules. For more information, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-protection-rules)." For information about the API to manage deployment protection rules, see [the REST API documentation](https://docs.github.com/rest/deployments/environments).
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.
+ description: A deployment protection rule was requested for an environment.
+ operationId: deployment-protection-rule/requested
+ externalDocs:
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#deployment_protection_rule
parameters:
- name: User-Agent
in: header
@@ -51685,12 +53971,14 @@ x-webhooks:
project-card-converted:
post:
summary: |-
- This event occurs when there is activity relating to a card on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a card on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a project or a column on a project, use the `project` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a project (classic) or a column on a project (classic), use the `project` and `project_column` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A note in a classic project was converted to an issue.
+ description: A note in a project (classic) was converted to an issue.
operationId: project-card/converted
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_card
@@ -51751,12 +54039,14 @@ x-webhooks:
project-card-created:
post:
summary: |-
- This event occurs when there is activity relating to a card on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a card on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a project (classic) or a column on a project (classic), use the `project` and `project_column` event.
- For activity relating to a project or a column on a project, use the `project` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A card was added to a classic project.
+ description: A card was added to a project (classic).
operationId: project-card/created
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_card
@@ -51817,12 +54107,14 @@ x-webhooks:
project-card-deleted:
post:
summary: |-
- This event occurs when there is activity relating to a card on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a card on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a project or a column on a project, use the `project` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a project (classic) or a column on a project (classic), use the `project` and `project_column` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A card on a classic project was deleted.
+ description: A card on a project (classic) was deleted.
operationId: project-card/deleted
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_card
@@ -51883,12 +54175,14 @@ x-webhooks:
project-card-edited:
post:
summary: |-
- This event occurs when there is activity relating to a card on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a card on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a project (classic) or a column on a project (classic), use the `project` and `project_column` event.
- For activity relating to a project or a column on a project, use the `project` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A note on a classic project was edited.
+ description: A note on a project (classic) was edited.
operationId: project-card/edited
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_card
@@ -51949,13 +54243,15 @@ x-webhooks:
project-card-moved:
post:
summary: |-
- This event occurs when there is activity relating to a card on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a card on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a project or a column on a project, use the `project` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a project (classic) or a column on a project (classic), use the `project` and `project_column` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A card on a classic project was moved to another column or to another
- position in its column.
+ description: A card on a project (classic) was moved to another column or to
+ another position in its column.
operationId: project-card/moved
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_card
@@ -52016,12 +54312,14 @@ x-webhooks:
project-closed:
post:
summary: |-
- This event occurs when there is activity relating to a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a card or column on a project (classic), use the `project_card` and `project_column` event.
- For activity relating to a card or column on a project, use the `project_card` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A classic project was closed.
+ description: A project (classic) was closed.
operationId: project/closed
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project
@@ -52082,12 +54380,14 @@ x-webhooks:
project-column-created:
post:
summary: |-
- This event occurs when there is activity relating to a column on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a column on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a project (classic) or a card on a project (classic), use the `project` and `project_card` event.
- For activity relating to a project or a card on a project, use the `project` and `project_card` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A column was added to a classic project.
+ description: A column was added to a project (classic).
operationId: project-column/created
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_column
@@ -52148,12 +54448,14 @@ x-webhooks:
project-column-deleted:
post:
summary: |-
- This event occurs when there is activity relating to a column on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a column on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a project or a card on a project, use the `project` and `project_card` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a project (classic) or a card on a project (classic), use the `project` and `project_card` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A column was deleted from a classic project.
+ description: A column was deleted from a project (classic).
operationId: project-column/deleted
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_column
@@ -52214,12 +54516,14 @@ x-webhooks:
project-column-edited:
post:
summary: |-
- This event occurs when there is activity relating to a column on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a column on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a project (classic) or a card on a project (classic), use the `project` and `project_card` event.
- For activity relating to a project or a card on a project, use the `project` and `project_card` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: The name of a column on a classic project was changed.
+ description: The name of a column on a project (classic) was changed.
operationId: project-column/edited
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_column
@@ -52280,12 +54584,14 @@ x-webhooks:
project-column-moved:
post:
summary: |-
- This event occurs when there is activity relating to a column on a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a column on a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a project (classic) or a card on a project (classic), use the `project` and `project_card` event.
- For activity relating to a project or a card on a project, use the `project` and `project_card` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A column was moved to a new position on a classic project.
+ description: A column was moved to a new position on a project (classic).
operationId: project-column/moved
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project_column
@@ -52346,12 +54652,14 @@ x-webhooks:
project-created:
post:
summary: |-
- This event occurs when there is activity relating to a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a card or column on a project, use the `project_card` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a card or column on a project (classic), use the `project_card` and `project_column` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A classic project was created.
+ description: A project (classic) was created.
operationId: project/created
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project
@@ -52412,12 +54720,14 @@ x-webhooks:
project-deleted:
post:
summary: |-
- This event occurs when there is activity relating to a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a card or column on a project (classic), use the `project_card` and `project_column` event.
- For activity relating to a card or column on a project, use the `project_card` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A classic project was deleted.
+ description: A project (classic) was deleted.
operationId: project/deleted
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project
@@ -52478,12 +54788,14 @@ x-webhooks:
project-edited:
post:
summary: |-
- This event occurs when there is activity relating to a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+
+ For activity relating to a card or column on a project (classic), use the `project_card` and `project_column` event.
- For activity relating to a card or column on a project, use the `project_card` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: The name or description of a classic project was changed.
+ description: The name or description of a project (classic) was changed.
operationId: project/edited
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project
@@ -52544,12 +54856,14 @@ x-webhooks:
project-reopened:
post:
summary: |-
- This event occurs when there is activity relating to a classic project. For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
+ This event occurs when there is activity relating to a project (classic). For more information, see "[About projects (classic)](https://docs.github.com/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards)." For information about the API to manage classic projects, see [the GraphQL API documentation](https://docs.github.com/graphql/reference/objects#project) or "[Projects (classic)](https://docs.github.com/rest/projects)" in the REST API documentation.
- For activity relating to a card or column on a project, use the `project_card` and `project_column` event. For activity relating to Projects instead of Projects (classic), use the `projects_v2` event instead.
+ For activity relating to a card or column on a project (classic), use the `project_card` and `project_column` event.
+
+ This event relates to projects (classic) only. For activity relating to the new Projects experience, use the `projects_v2` event instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Projects" repository or organization permission.
- description: A classic project was closed.
+ description: A project (classic) was closed.
operationId: project/reopened
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#project
@@ -53956,7 +56270,8 @@ x-webhooks:
For activity related to pull request reviews, pull request review comments, pull request comments, or pull request review threads, use the `pull_request_review`, `pull_request_review_comment`, `issue_comment`, or `pull_request_review_thread` events instead.
To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.
- description: The title or body of a pull request was edited.
+ description: The title or body of a pull request was edited, or the base branch
+ of a pull request was changed.
operationId: pull-request/edited
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#pull_request
@@ -56385,11 +58700,9 @@ x-webhooks:
repository-dispatch-sample.collected:
post:
summary: |-
- This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event).
+ This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.
To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.
- description: The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches`
- request body.
operationId: repository-dispatch/sample.collected
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#repository_dispatch
@@ -56774,7 +59087,7 @@ x-webhooks:
For more information about repository rulesets, see "[Managing rulesets](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets)."
For more information on managing rulesets via the APIs, see [Repository ruleset](https://docs.github.com/graphql/reference/objects#repositoryruleset) in the GraphQL documentation or "[Repository rules](https://docs.github.com/rest/repos/rules)" and "[Organization rules](https://docs.github.com/rest/orgs/rules) in the REST API documentation."
- To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository or organization permission.
description: A repository ruleset was created.
operationId: repository-ruleset/created
externalDocs:
@@ -56840,7 +59153,7 @@ x-webhooks:
For more information about repository rulesets, see "[Managing rulesets](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets)."
For more information on managing rulesets via the APIs, see [Repository ruleset](https://docs.github.com/graphql/reference/objects#repositoryruleset) in the GraphQL documentation or "[Repository rules](https://docs.github.com/rest/repos/rules)" and "[Organization rules](https://docs.github.com/rest/orgs/rules) in the REST API documentation."
- To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository or organization permission.
description: A repository ruleset was deleted.
operationId: repository-ruleset/deleted
externalDocs:
@@ -56906,7 +59219,7 @@ x-webhooks:
For more information about repository rulesets, see "[Managing rulesets](https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets)."
For more information on managing rulesets via the APIs, see [Repository ruleset](https://docs.github.com/graphql/reference/objects#repositoryruleset) in the GraphQL documentation or "[Repository rules](https://docs.github.com/rest/repos/rules)" and "[Organization rules](https://docs.github.com/rest/orgs/rules) in the REST API documentation."
- To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission.
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository or organization permission.
description: A repository ruleset was edited.
operationId: repository-ruleset/edited
externalDocs:
@@ -57695,10 +60008,76 @@ x-webhooks:
- repository
- organization
- app
+ secret-scanning-alert-validated:
+ post:
+ summary: |-
+ This event occurs when there is activity relating to a secret scanning alert. For more information about secret scanning, see "[About secret scanning](https://docs.github.com/code-security/secret-scanning/about-secret-scanning)." For information about the API to manage secret scanning alerts, see "[Secret scanning](https://docs.github.com/rest/secret-scanning)" in the REST API documentation.
+
+ For activity relating to secret scanning alert locations, use the `secret_scanning_alert_location` event.
+
+ To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.
+ description: A secret scanning alert was validated.
+ operationId: secret-scanning-alert/validated
+ externalDocs:
+ url: https://docs.github.com/webhooks/webhook-events-and-payloads#secret_scanning_alert
+ parameters:
+ - name: User-Agent
+ in: header
+ example: GitHub-Hookshot/123abc
+ schema:
+ type: string
+ - name: X-Github-Hook-Id
+ in: header
+ example: 12312312
+ schema:
+ type: string
+ - name: X-Github-Event
+ in: header
+ example: issues
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Id
+ in: header
+ example: 123123
+ schema:
+ type: string
+ - name: X-Github-Hook-Installation-Target-Type
+ in: header
+ example: repository
+ schema:
+ type: string
+ - name: X-GitHub-Delivery
+ in: header
+ example: 0b989ba4-242f-11e5-81e1-c7b6966d2516
+ schema:
+ type: string
+ - name: X-Hub-Signature-256
+ in: header
+ example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook-secret-scanning-alert-validated"
+ responses:
+ '200':
+ description: Return a 200 status to indicate that the data was received
+ successfully
+ x-github:
+ githubCloudOnly: false
+ category: webhooks
+ subcategory: secret_scanning_alert
+ supported-webhook-types:
+ - repository
+ - organization
+ - app
security-advisory-published:
post:
summary: |-
- This event occurs when there is activity relating to a security advisory that was reviewed by GitHub. A GitHub-reviewed security advisory provides information about security-related vulnerabilities in software on GitHub. For more information about security advisories, see "[About GitHub Security Advisories for repositories](https://docs.github.com/code-security/repository-security-advisories/about-github-security-advisories-for-repositories)." For information about the API to manage security advisories, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
+ This event occurs when there is activity relating to a global security advisory that was reviewed by GitHub. A GitHub-reviewed global security advisory provides information about security vulnerabilities or malware that have been mapped to packages in ecosystems we support. For more information about global security advisories, see "[About global security advisories](https://docs.github.com/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-global-security-advisories)." For information about the API to manage security advisories, see [the REST API documentation](https://docs.github.com/rest/security-advisories/global-advisories) or [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
GitHub Dependabot alerts are also powered by the security advisory dataset. For more information, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."
description: A security advisory was published to the GitHub community.
@@ -57760,11 +60139,10 @@ x-webhooks:
security-advisory-updated:
post:
summary: |-
- This event occurs when there is activity relating to a security advisory that was reviewed by GitHub. A GitHub-reviewed security advisory provides information about security-related vulnerabilities in software on GitHub. For more information about security advisories, see "[About GitHub Security Advisories for repositories](https://docs.github.com/code-security/repository-security-advisories/about-github-security-advisories-for-repositories)." For information about the API to manage security advisories, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
+ This event occurs when there is activity relating to a global security advisory that was reviewed by GitHub. A GitHub-reviewed global security advisory provides information about security vulnerabilities or malware that have been mapped to packages in ecosystems we support. For more information about global security advisories, see "[About global security advisories](https://docs.github.com/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-global-security-advisories)." For information about the API to manage security advisories, see [the REST API documentation](https://docs.github.com/rest/security-advisories/global-advisories) or [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
GitHub Dependabot alerts are also powered by the security advisory dataset. For more information, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."
- description: The metadata or description of a security advisory was changed,
- or the security advisory was withdrawn.
+ description: The metadata or description of a security advisory was changed.
operationId: security-advisory/updated
externalDocs:
url: https://docs.github.com/webhooks/webhook-events-and-payloads#security_advisory
@@ -57823,7 +60201,7 @@ x-webhooks:
security-advisory-withdrawn:
post:
summary: |-
- This event occurs when there is activity relating to a security advisory that was reviewed by GitHub. A GitHub-reviewed security advisory provides information about security-related vulnerabilities in software on GitHub. For more information about security advisories, see "[About GitHub Security Advisories for repositories](https://docs.github.com/code-security/repository-security-advisories/about-github-security-advisories-for-repositories)." For information about the API to manage security advisories, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
+ This event occurs when there is activity relating to a global security advisory that was reviewed by GitHub. A GitHub-reviewed global security advisory provides information about security vulnerabilities or malware that have been mapped to packages in ecosystems we support. For more information about global security advisories, see "[About global security advisories](https://docs.github.com/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-global-security-advisories)." For information about the API to manage security advisories, see [the REST API documentation](https://docs.github.com/rest/security-advisories/global-advisories) or [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#securityadvisory).
GitHub Dependabot alerts are also powered by the security advisory dataset. For more information, see "[About Dependabot alerts](https://docs.github.com/code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."
description: A previously published security advisory was withdrawn.
@@ -59555,6 +61933,7 @@ components:
hub_url:
type: string
format: uri-template
+ deprecated: true
issue_search_url:
type: string
format: uri-template
@@ -59628,7 +62007,6 @@ components:
- followers_url
- following_url
- gists_url
- - hub_url
- issue_search_url
- issues_url
- keys_url
@@ -60614,6 +62992,13 @@ components:
enum:
- read
- write
+ codespaces:
+ type: string
+ description: The level of permission to grant the access token to create,
+ edit, delete, and list Codespaces.
+ enum:
+ - read
+ - write
contents:
type: string
description: The level of permission to grant the access token for repository
@@ -60621,6 +63006,13 @@ components:
enum:
- read
- write
+ dependabot_secrets:
+ type: string
+ description: The leve of permission to grant the access token to manage
+ Dependabot secrets.
+ enum:
+ - read
+ - write
deployments:
type: string
description: The level of permission to grant the access token for deployments
@@ -60670,6 +63062,13 @@ components:
enum:
- read
- write
+ repository_custom_properties:
+ type: string
+ description: The level of permission to grant the access token to view and
+ edit custom properties for a repository, when allowed by the property.
+ enum:
+ - read
+ - write
repository_hooks:
type: string
description: The level of permission to grant the access token to manage
@@ -60750,11 +63149,32 @@ components:
organization_custom_roles:
type: string
description: The level of permission to grant the access token for custom
- repository roles management. This property is in beta and is subject to
- change.
+ repository roles management.
+ enum:
+ - read
+ - write
+ organization_custom_org_roles:
+ type: string
+ description: The level of permission to grant the access token for custom
+ organization roles management.
+ enum:
+ - read
+ - write
+ organization_custom_properties:
+ type: string
+ description: The level of permission to grant the access token for custom
+ property management.
enum:
- read
- write
+ - admin
+ organization_copilot_seat_management:
+ type: string
+ description: The level of permission to grant the access token for managing
+ access to GitHub Copilot for members of an organization with a Copilot
+ Business subscription. This property is in beta and is subject to change.
+ enum:
+ - write
organization_announcement_banners:
type: string
description: The level of permission to grant the access token to view and
@@ -60762,6 +63182,12 @@ components:
enum:
- read
- write
+ organization_events:
+ type: string
+ description: The level of permission to grant the access token to view events
+ triggered by an activity in an organization.
+ enum:
+ - read
organization_hooks:
type: string
description: The level of permission to grant the access token to manage
@@ -60833,6 +63259,54 @@ components:
enum:
- read
- write
+ email_addresses:
+ type: string
+ description: The level of permission to grant the access token to manage
+ the email addresses belonging to a user.
+ enum:
+ - read
+ - write
+ followers:
+ type: string
+ description: The level of permission to grant the access token to manage
+ the followers belonging to a user.
+ enum:
+ - read
+ - write
+ git_ssh_keys:
+ type: string
+ description: The level of permission to grant the access token to manage
+ git SSH keys.
+ enum:
+ - read
+ - write
+ gpg_keys:
+ type: string
+ description: The level of permission to grant the access token to view and
+ manage GPG keys belonging to a user.
+ enum:
+ - read
+ - write
+ interaction_limits:
+ type: string
+ description: The level of permission to grant the access token to view and
+ manage interaction limits on a repository.
+ enum:
+ - read
+ - write
+ profile:
+ type: string
+ description: The level of permission to grant the access token to manage
+ the profile settings belonging to a user.
+ enum:
+ - write
+ starring:
+ type: string
+ description: The level of permission to grant the access token to list and
+ manage repositories a user is starring.
+ enum:
+ - read
+ - write
example:
contents: read
issues: read
@@ -60992,8 +63466,6 @@ components:
example: octocat/Hello-World
license:
"$ref": "#/components/schemas/nullable-license-simple"
- organization:
- "$ref": "#/components/schemas/nullable-simple-user"
forks:
type: integer
permissions:
@@ -61190,8 +63662,8 @@ components:
type: integer
example: 80
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
type: integer
example: 108
default_branch:
@@ -61270,270 +63742,6 @@ components:
default: true
type: boolean
example: true
- template_repository:
- nullable: true
- type: object
- properties:
- id:
- type: integer
- node_id:
- type: string
- name:
- type: string
- full_name:
- type: string
- owner:
- type: object
- properties:
- login:
- type: string
- id:
- type: integer
- node_id:
- type: string
- avatar_url:
- type: string
- gravatar_id:
- type: string
- url:
- type: string
- html_url:
- type: string
- followers_url:
- type: string
- following_url:
- type: string
- gists_url:
- type: string
- starred_url:
- type: string
- subscriptions_url:
- type: string
- organizations_url:
- type: string
- repos_url:
- type: string
- events_url:
- type: string
- received_events_url:
- type: string
- type:
- type: string
- site_admin:
- type: boolean
- private:
- type: boolean
- html_url:
- type: string
- description:
- type: string
- fork:
- type: boolean
- url:
- type: string
- archive_url:
- type: string
- assignees_url:
- type: string
- blobs_url:
- type: string
- branches_url:
- type: string
- collaborators_url:
- type: string
- comments_url:
- type: string
- commits_url:
- type: string
- compare_url:
- type: string
- contents_url:
- type: string
- contributors_url:
- type: string
- deployments_url:
- type: string
- downloads_url:
- type: string
- events_url:
- type: string
- forks_url:
- type: string
- git_commits_url:
- type: string
- git_refs_url:
- type: string
- git_tags_url:
- type: string
- git_url:
- type: string
- issue_comment_url:
- type: string
- issue_events_url:
- type: string
- issues_url:
- type: string
- keys_url:
- type: string
- labels_url:
- type: string
- languages_url:
- type: string
- merges_url:
- type: string
- milestones_url:
- type: string
- notifications_url:
- type: string
- pulls_url:
- type: string
- releases_url:
- type: string
- ssh_url:
- type: string
- stargazers_url:
- type: string
- statuses_url:
- type: string
- subscribers_url:
- type: string
- subscription_url:
- type: string
- tags_url:
- type: string
- teams_url:
- type: string
- trees_url:
- type: string
- clone_url:
- type: string
- mirror_url:
- type: string
- hooks_url:
- type: string
- svn_url:
- type: string
- homepage:
- type: string
- language:
- type: string
- forks_count:
- type: integer
- stargazers_count:
- type: integer
- watchers_count:
- type: integer
- size:
- type: integer
- default_branch:
- type: string
- open_issues_count:
- type: integer
- is_template:
- type: boolean
- topics:
- type: array
- items:
- type: string
- has_issues:
- type: boolean
- has_projects:
- type: boolean
- has_wiki:
- type: boolean
- has_pages:
- type: boolean
- has_downloads:
- type: boolean
- archived:
- type: boolean
- disabled:
- type: boolean
- visibility:
- type: string
- pushed_at:
- type: string
- created_at:
- type: string
- updated_at:
- type: string
- permissions:
- type: object
- properties:
- admin:
- type: boolean
- maintain:
- type: boolean
- push:
- type: boolean
- triage:
- type: boolean
- pull:
- type: boolean
- allow_rebase_merge:
- type: boolean
- temp_clone_token:
- type: string
- allow_squash_merge:
- type: boolean
- allow_auto_merge:
- type: boolean
- delete_branch_on_merge:
- type: boolean
- allow_update_branch:
- type: boolean
- use_squash_pr_title_as_default:
- type: boolean
- squash_merge_commit_title:
- type: string
- enum:
- - PR_TITLE
- - COMMIT_OR_PR_TITLE
- description: |-
- The default value for a squash merge commit title:
-
- - `PR_TITLE` - default to the pull request's title.
- - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).
- squash_merge_commit_message:
- type: string
- enum:
- - PR_BODY
- - COMMIT_MESSAGES
- - BLANK
- description: |-
- The default value for a squash merge commit message:
-
- - `PR_BODY` - default to the pull request's body.
- - `COMMIT_MESSAGES` - default to the branch's commit messages.
- - `BLANK` - default to a blank commit message.
- merge_commit_title:
- type: string
- enum:
- - PR_TITLE
- - MERGE_MESSAGE
- description: |-
- The default value for a merge commit title.
-
- - `PR_TITLE` - default to the pull request's title.
- - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
- merge_commit_message:
- type: string
- enum:
- - PR_BODY
- - PR_TITLE
- - BLANK
- description: |-
- The default value for a merge commit message.
-
- - `PR_TITLE` - default to the pull request's title.
- - `PR_BODY` - default to the pull request's body.
- - `BLANK` - default to a blank commit message.
- allow_merge_commit:
- type: boolean
- subscribers_count:
- type: integer
- network_count:
- type: integer
temp_clone_token:
type: string
allow_squash_merge:
@@ -61621,10 +63829,6 @@ components:
description: Whether to require contributors to sign off on web-based commits
default: false
type: boolean
- subscribers_count:
- type: integer
- network_count:
- type: integer
open_issues:
type: integer
watchers:
@@ -62373,10 +64577,7 @@ components:
## Attribution
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
-
- [homepage]: http://contributor-covenant.org
- [version]: http://contributor-covenant.org/version/1/4/
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).
html_url:
type: string
format: uri
@@ -63084,6 +65285,13 @@ components:
type: string
description: The comment that was optionally added when this alert was closed
nullable: true
+ validity:
+ type: string
+ description: The token status as of the latest validity check.
+ enum:
+ - active
+ - inactive
+ - unknown
actor:
title: Actor
description: Actor
@@ -64671,6 +66879,12 @@ components:
type: string
example:
- example.com
+ actions:
+ type: array
+ items:
+ type: string
+ example:
+ - example.com
required:
- verifiable_password_authentication
security-and-analysis:
@@ -64892,8 +67106,8 @@ components:
watchers_count:
type: integer
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
type: integer
default_branch:
type: string
@@ -65864,7 +68078,7 @@ components:
description: The dismissal comment associated with the dismissal of the alert.
nullable: true
maxLength: 280
- code-scanning-alert-rule:
+ code-scanning-alert-rule-summary:
type: object
properties:
id:
@@ -65874,6 +68088,12 @@ components:
name:
type: string
description: The name of the rule used to detect the alert.
+ tags:
+ nullable: true
+ type: array
+ description: A set of tags applicable for the rule.
+ items:
+ type: string
severity:
nullable: true
type: string
@@ -65895,24 +68115,6 @@ components:
description:
type: string
description: A short description of the rule used to detect the alert.
- full_description:
- type: string
- description: description of the rule used to detect the alert.
- tags:
- nullable: true
- type: array
- description: A set of tags applicable for the rule.
- items:
- type: string
- help:
- nullable: true
- type: string
- description: Detailed documentation for the rule as GitHub Flavored Markdown.
- help_uri:
- nullable: true
- type: string
- description: A link to the documentation for the rule used to detect the
- alert.
code-scanning-analysis-tool-version:
nullable: true
type: string
@@ -65929,8 +68131,8 @@ components:
code-scanning-ref:
type: string
description: |-
- The full Git reference, formatted as `refs/heads/`,
- `refs/pull//merge`, or `refs/pull//head`.
+ The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,
+ `refs/heads/` or simply ``.
code-scanning-analysis-analysis-key:
type: string
description: Identifies the configuration under which the analysis was executed.
@@ -66028,7 +68230,7 @@ components:
dismissed_comment:
"$ref": "#/components/schemas/code-scanning-alert-dismissed-comment"
rule:
- "$ref": "#/components/schemas/code-scanning-alert-rule"
+ "$ref": "#/components/schemas/code-scanning-alert-rule-summary"
tool:
"$ref": "#/components/schemas/code-scanning-analysis-tool"
most_recent_instance:
@@ -66387,8 +68589,8 @@ components:
- key_id
- key
copilot-seat-breakdown:
- title: Copilot for Business Seat Breakdown
- description: The breakdown of Copilot for Business seats for the organization.
+ title: Copilot Business Seat Breakdown
+ description: The breakdown of Copilot Business seats for the organization.
type: object
properties:
total:
@@ -66415,9 +68617,9 @@ components:
description: The number of seats that have not used Copilot during the current
billing cycle.
copilot-organization-details:
- title: Copilot for Business Organization Details
+ title: Copilot Business Organization Details
description: Information about the seat breakdown and policies set for an organization
- with a Copilot for Business subscription.
+ with a Copilot Business subscription.
type: object
properties:
seat_breakdown:
@@ -66431,6 +68633,30 @@ components:
- block
- unconfigured
- unknown
+ ide_chat:
+ type: string
+ description: The organization policy for allowing or disallowing organization
+ members to use Copilot Chat within their editor.
+ enum:
+ - enabled
+ - disabled
+ - unconfigured
+ platform_chat:
+ type: string
+ description: The organization policy for allowing or disallowing organization
+ members to use Copilot features within github.com.
+ enum:
+ - enabled
+ - disabled
+ - unconfigured
+ cli:
+ type: string
+ description: The organization policy for allowing or disallowing organization
+ members to use Copilot within their CLI.
+ enum:
+ - enabled
+ - disabled
+ - unconfigured
seat_management_setting:
type: string
description: The mode of assigning new seats.
@@ -66705,16 +68931,16 @@ components:
- created_at
- updated_at
copilot-seat-details:
- title: Copilot for Business Seat Detail
- description: Information about a Copilot for Business seat assignment for a
- user, team, or organization.
+ title: Copilot Business Seat Detail
+ description: Information about a Copilot Business seat assignment for a user,
+ team, or organization.
type: object
properties:
assignee:
type: object
description: The assignee that has been granted access to GitHub Copilot.
additionalProperties: true
- enum:
+ oneOf:
- "$ref": "#/components/schemas/simple-user"
- "$ref": "#/components/schemas/team"
- "$ref": "#/components/schemas/organization"
@@ -66984,8 +69210,8 @@ components:
watchers_count:
type: integer
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
type: integer
default_branch:
type: string
@@ -67483,6 +69709,56 @@ components:
- url
- created_at
- updated_at
+ organization-fine-grained-permission:
+ title: Organization Fine-Grained Permission
+ description: A fine-grained permission that protects organization resources.
+ type: object
+ properties:
+ name:
+ type: string
+ description:
+ type: string
+ required:
+ - name
+ - description
+ organization-role:
+ title: Organization Role
+ description: Organization roles
+ type: object
+ properties:
+ id:
+ description: The unique identifier of the role.
+ type: integer
+ name:
+ description: The name of the role.
+ type: string
+ description:
+ description: A short description about who this role is for or what permissions
+ it grants.
+ type: string
+ nullable: true
+ permissions:
+ description: A list of permissions included in this role.
+ type: array
+ items:
+ type: string
+ organization:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ created_at:
+ description: The date and time the role was created.
+ type: string
+ format: date-time
+ updated_at:
+ description: The date and time the role was last updated.
+ type: string
+ format: date-time
+ required:
+ - id
+ - name
+ - permissions
+ - organization
+ - created_at
+ - updated_at
package-version:
title: Package Version
description: A version of a software package
@@ -67785,2225 +70061,894 @@ components:
- columns_url
- created_at
- updated_at
- repository-rule-enforcement:
- type: string
- description: The enforcement level of the ruleset. `evaluate` allows admins
- to test rules before enforcing them. Admins can view insights on the Rule
- Insights page (`evaluate` is only available with GitHub Enterprise).
- enum:
- - disabled
- - active
- - evaluate
- repository-ruleset-bypass-actor:
- title: Repository Ruleset Bypass Actor
+ org-custom-property:
+ title: Organization Custom Property
+ description: Custom property defined on an organization
type: object
- description: An actor that can bypass rules in a ruleset
- required:
- - actor_id
- - actor_type
- - bypass_mode
properties:
- actor_id:
- type: integer
- description: The ID of the actor that can bypass a ruleset
- actor_type:
+ property_name:
+ type: string
+ description: The name of the property
+ value_type:
type: string
+ example: single_select
enum:
- - RepositoryRole
- - Team
- - Integration
- - OrganizationAdmin
- description: The type of actor that can bypass a ruleset
- bypass_mode:
+ - string
+ - single_select
+ description: The type of the value for the property
+ required:
+ type: boolean
+ description: Whether the property is required.
+ default_value:
+ oneOf:
+ - type: string
+ - type: array
+ items:
+ type: string
+ nullable: true
+ description: Default value of the property
+ description:
type: string
- description: When the specified actor can bypass the ruleset. `pull_request`
- means that an actor can only bypass rules on pull requests.
+ nullable: true
+ description: Short description of the property
+ allowed_values:
+ type: array
+ items:
+ type: string
+ maxLength: 75
+ maxItems: 200
+ nullable: true
+ description: |-
+ An ordered list of the allowed values of the property.
+ The property can have up to 200 allowed values.
+ values_editable_by:
+ type: string
+ nullable: true
enum:
- - always
- - pull_request
- repository-ruleset-conditions:
- title: Repository ruleset conditions for ref names
- type: object
- description: Parameters for a repository ruleset ref name condition
- properties:
- ref_name:
- type: object
- properties:
- include:
- type: array
- description: Array of ref names or patterns to include. One of these
- patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH`
- to include the default branch or `~ALL` to include all branches.
- items:
- type: string
- exclude:
- type: array
- description: Array of ref names or patterns to exclude. The condition
- will not pass if any of these patterns match.
- items:
- type: string
- repository-ruleset-conditions-repository-name-target:
- title: Repository ruleset conditions for repository names
- type: object
- description: Parameters for a repository name condition
- properties:
- repository_name:
- type: object
- properties:
- include:
- type: array
- description: Array of repository names or patterns to include. One of
- these patterns must match for the condition to pass. Also accepts
- `~ALL` to include all repositories.
- items:
- type: string
- exclude:
- type: array
- description: Array of repository names or patterns to exclude. The condition
- will not pass if any of these patterns match.
- items:
- type: string
- protected:
- type: boolean
- description: Whether renaming of target repositories is prevented.
- required:
- - repository_name
- repository-ruleset-conditions-repository-id-target:
- title: Repository ruleset conditions for repository IDs
- type: object
- description: Parameters for a repository ID condition
- properties:
- repository_id:
- type: object
- properties:
- repository_ids:
- type: array
- description: The repository IDs that the ruleset applies to. One of
- these IDs must match for the condition to pass.
- items:
- type: integer
+ - org_actors
+ - org_and_repo_actors
+ example: org_actors
+ description: Who can edit the values of the property
required:
- - repository_id
- org-ruleset-conditions:
- title: Organization ruleset conditions
- type: object
- description: 'Conditions for an organization ruleset. The conditions object
- should contain both `repository_name` and `ref_name` properties or both `repository_id`
- and `ref_name` properties.
-
-'
- oneOf:
- - type: object
- title: repository_name_and_ref_name
- description: Conditions to target repositories by name and refs by name
- allOf:
- - "$ref": "#/components/schemas/repository-ruleset-conditions"
- - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target"
- - type: object
- title: repository_id_and_ref_name
- description: Conditions to target repositories by id and refs by name
- allOf:
- - "$ref": "#/components/schemas/repository-ruleset-conditions"
- - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-id-target"
- repository-rule-creation:
- title: creation
- description: Only allow users with bypass permission to create matching refs.
+ - property_name
+ - value_type
+ custom-property-value:
+ title: Custom Property Value
+ description: Custom property name and associated value
type: object
- required:
- - type
properties:
- type:
+ property_name:
type: string
- enum:
- - creation
- repository-rule-update:
- title: update
- description: Only allow users with bypass permission to update matching refs.
- type: object
+ description: The name of the property
+ value:
+ oneOf:
+ - type: string
+ - type: array
+ items:
+ type: string
+ description: The value assigned to the property
+ nullable: true
required:
- - type
- properties:
- type:
- type: string
- enum:
- - update
- parameters:
- type: object
- properties:
- update_allows_fetch_and_merge:
- type: boolean
- description: Branch can pull changes from its upstream repository
- required:
- - update_allows_fetch_and_merge
- repository-rule-deletion:
- title: deletion
- description: Only allow users with bypass permissions to delete matching refs.
+ - property_name
+ - value
+ org-repo-custom-property-values:
+ title: Organization Repository Custom Property Values
+ description: List of custom property values for a repository
type: object
- required:
- - type
properties:
- type:
+ repository_id:
+ type: integer
+ example: 1296269
+ repository_name:
type: string
- enum:
- - deletion
- repository-rule-required-linear-history:
- title: required_linear_history
- description: Prevent merge commits from being pushed to matching branches.
- type: object
- required:
- - type
- properties:
- type:
+ example: Hello-World
+ repository_full_name:
type: string
- enum:
- - required_linear_history
- repository-rule-required-deployments:
- title: required_deployments
- description: Choose which environments must be successfully deployed to before
- branches can be merged into a branch that matches this rule.
- type: object
+ example: octocat/Hello-World
+ properties:
+ type: array
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ description: List of custom property names and associated values
required:
- - type
- properties:
- type:
- type: string
- enum:
- - required_deployments
- parameters:
- type: object
- properties:
- required_deployment_environments:
- type: array
- description: The environments that must be successfully deployed to
- before branches can be merged.
- items:
- type: string
- required:
- - required_deployment_environments
- repository-rule-required-signatures:
- title: required_signatures
- description: Commits pushed to matching branches must have verified signatures.
+ - repository_id
+ - repository_name
+ - repository_full_name
+ - properties
+ nullable-repository:
+ title: Repository
+ description: A repository on GitHub.
type: object
- required:
- - type
properties:
- type:
+ id:
+ description: Unique identifier of the repository
+ example: 42
+ type: integer
+ node_id:
type: string
- enum:
- - required_signatures
- repository-rule-pull-request:
- title: pull_request
- description: Require all commits be made to a non-target branch and submitted
- via a pull request before they can be merged.
- type: object
- required:
- - type
- properties:
- type:
+ example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name:
+ description: The name of the repository.
type: string
- enum:
- - pull_request
- parameters:
+ example: Team Environment
+ full_name:
+ type: string
+ example: octocat/Hello-World
+ license:
+ "$ref": "#/components/schemas/nullable-license-simple"
+ forks:
+ type: integer
+ permissions:
type: object
properties:
- dismiss_stale_reviews_on_push:
+ admin:
type: boolean
- description: New, reviewable commits pushed will dismiss previous pull
- request review approvals.
- require_code_owner_review:
+ pull:
type: boolean
- description: Require an approving review in pull requests that modify
- files that have a designated code owner.
- require_last_push_approval:
+ triage:
type: boolean
- description: Whether the most recent reviewable push must be approved
- by someone other than the person who pushed it.
- required_approving_review_count:
- type: integer
- description: The number of approving reviews that are required before
- a pull request can be merged.
- minimum: 0
- maximum: 10
- required_review_thread_resolution:
+ push:
+ type: boolean
+ maintain:
type: boolean
- description: All conversations on code must be resolved before a pull
- request can be merged.
required:
- - dismiss_stale_reviews_on_push
- - require_code_owner_review
- - require_last_push_approval
- - required_approving_review_count
- - required_review_thread_resolution
- repository-rule-params-status-check-configuration:
- title: StatusCheckConfiguration
- description: Required status check
- type: object
- properties:
- context:
+ - admin
+ - pull
+ - push
+ owner:
+ "$ref": "#/components/schemas/simple-user"
+ private:
+ description: Whether the repository is private or public.
+ default: false
+ type: boolean
+ html_url:
type: string
- description: The status check context name that must be present on the commit.
- integration_id:
- type: integer
- description: The optional integration ID that this status check must originate
- from.
- required:
- - context
- repository-rule-required-status-checks:
- title: required_status_checks
- description: Choose which status checks must pass before branches can be merged
- into a branch that matches this rule. When enabled, commits must first be
- pushed to another branch, then merged or pushed directly to a branch that
- matches this rule after status checks have passed.
- type: object
- required:
- - type
- properties:
- type:
+ format: uri
+ example: https://github.com/octocat/Hello-World
+ description:
type: string
- enum:
- - required_status_checks
- parameters:
- type: object
- properties:
- required_status_checks:
- type: array
- description: Status checks that are required.
- items:
- "$ref": "#/components/schemas/repository-rule-params-status-check-configuration"
- strict_required_status_checks_policy:
- type: boolean
- description: Whether pull requests targeting a matching branch must
- be tested with the latest code. This setting will not take effect
- unless at least one status check is enabled.
- required:
- - required_status_checks
- - strict_required_status_checks_policy
- repository-rule-non-fast-forward:
- title: non_fast_forward
- description: Prevent users with push access from force pushing to branches.
- type: object
- required:
- - type
- properties:
- type:
+ example: This your first repo!
+ nullable: true
+ fork:
+ type: boolean
+ url:
type: string
- enum:
- - non_fast_forward
- repository-rule-commit-message-pattern:
- title: commit_message_pattern
- description: Parameters to be used for the commit_message_pattern rule
- type: object
- required:
- - type
- properties:
- type:
+ format: uri
+ example: https://api.github.com/repos/octocat/Hello-World
+ archive_url:
type: string
- enum:
- - commit_message_pattern
- parameters:
- type: object
- properties:
- name:
- type: string
- description: How this rule will appear to users.
- negate:
- type: boolean
- description: If true, the rule will fail if the pattern matches.
- operator:
- type: string
- description: The operator to use for matching.
- enum:
- - starts_with
- - ends_with
- - contains
- - regex
- pattern:
- type: string
- description: The pattern to match with.
- required:
- - operator
- - pattern
- repository-rule-commit-author-email-pattern:
- title: commit_author_email_pattern
- description: Parameters to be used for the commit_author_email_pattern rule
- type: object
- required:
- - type
- properties:
- type:
+ example: http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
+ assignees_url:
type: string
- enum:
- - commit_author_email_pattern
- parameters:
- type: object
- properties:
- name:
- type: string
- description: How this rule will appear to users.
- negate:
- type: boolean
- description: If true, the rule will fail if the pattern matches.
- operator:
- type: string
- description: The operator to use for matching.
- enum:
- - starts_with
- - ends_with
- - contains
- - regex
- pattern:
- type: string
- description: The pattern to match with.
- required:
- - operator
- - pattern
- repository-rule-committer-email-pattern:
- title: committer_email_pattern
- description: Parameters to be used for the committer_email_pattern rule
- type: object
- required:
- - type
- properties:
- type:
+ example: http://api.github.com/repos/octocat/Hello-World/assignees{/user}
+ blobs_url:
type: string
- enum:
- - committer_email_pattern
- parameters:
- type: object
- properties:
- name:
- type: string
- description: How this rule will appear to users.
- negate:
- type: boolean
- description: If true, the rule will fail if the pattern matches.
- operator:
- type: string
- description: The operator to use for matching.
- enum:
- - starts_with
- - ends_with
- - contains
- - regex
- pattern:
- type: string
- description: The pattern to match with.
- required:
- - operator
- - pattern
- repository-rule-branch-name-pattern:
- title: branch_name_pattern
- description: Parameters to be used for the branch_name_pattern rule
- type: object
- required:
- - type
- properties:
- type:
+ example: http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
+ branches_url:
type: string
- enum:
- - branch_name_pattern
- parameters:
- type: object
- properties:
- name:
- type: string
- description: How this rule will appear to users.
- negate:
- type: boolean
- description: If true, the rule will fail if the pattern matches.
- operator:
- type: string
- description: The operator to use for matching.
- enum:
- - starts_with
- - ends_with
- - contains
- - regex
- pattern:
- type: string
- description: The pattern to match with.
- required:
- - operator
- - pattern
- repository-rule-tag-name-pattern:
- title: tag_name_pattern
- description: Parameters to be used for the tag_name_pattern rule
- type: object
- required:
- - type
- properties:
- type:
+ example: http://api.github.com/repos/octocat/Hello-World/branches{/branch}
+ collaborators_url:
type: string
- enum:
- - tag_name_pattern
- parameters:
- type: object
- properties:
- name:
- type: string
- description: How this rule will appear to users.
- negate:
- type: boolean
- description: If true, the rule will fail if the pattern matches.
- operator:
- type: string
- description: The operator to use for matching.
- enum:
- - starts_with
- - ends_with
- - contains
- - regex
- pattern:
- type: string
- description: The pattern to match with.
- required:
- - operator
- - pattern
- repository-rule:
- title: Repository Rule
- type: object
- description: A repository rule.
- oneOf:
- - "$ref": "#/components/schemas/repository-rule-creation"
- - "$ref": "#/components/schemas/repository-rule-update"
- - "$ref": "#/components/schemas/repository-rule-deletion"
- - "$ref": "#/components/schemas/repository-rule-required-linear-history"
- - "$ref": "#/components/schemas/repository-rule-required-deployments"
- - "$ref": "#/components/schemas/repository-rule-required-signatures"
- - "$ref": "#/components/schemas/repository-rule-pull-request"
- - "$ref": "#/components/schemas/repository-rule-required-status-checks"
- - "$ref": "#/components/schemas/repository-rule-non-fast-forward"
- - "$ref": "#/components/schemas/repository-rule-commit-message-pattern"
- - "$ref": "#/components/schemas/repository-rule-commit-author-email-pattern"
- - "$ref": "#/components/schemas/repository-rule-committer-email-pattern"
- - "$ref": "#/components/schemas/repository-rule-branch-name-pattern"
- - "$ref": "#/components/schemas/repository-rule-tag-name-pattern"
- repository-ruleset:
- title: Repository ruleset
- type: object
- description: A set of rules to apply when specified conditions are met.
- required:
- - id
- - name
- - source
- - enforcement
- properties:
- id:
- type: integer
- description: The ID of the ruleset
- name:
+ example: http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
+ comments_url:
type: string
- description: The name of the ruleset
- target:
+ example: http://api.github.com/repos/octocat/Hello-World/comments{/number}
+ commits_url:
type: string
- description: The target of the ruleset
- enum:
- - branch
- - tag
- source_type:
+ example: http://api.github.com/repos/octocat/Hello-World/commits{/sha}
+ compare_url:
type: string
- description: The type of the source of the ruleset
- enum:
- - Repository
- - Organization
- source:
+ example: http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
+ contents_url:
type: string
- description: The name of the source
- enforcement:
- "$ref": "#/components/schemas/repository-rule-enforcement"
- bypass_actors:
- type: array
- description: The actors that can bypass the rules in this ruleset
- items:
- "$ref": "#/components/schemas/repository-ruleset-bypass-actor"
- current_user_can_bypass:
+ example: http://api.github.com/repos/octocat/Hello-World/contents/{+path}
+ contributors_url:
type: string
- description: |-
- The bypass type of the user making the API request for this ruleset. This field is only returned when
- querying the repository-level endpoint.
- enum:
- - always
- - pull_requests_only
- - never
- node_id:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/contributors
+ deployments_url:
type: string
- _links:
- type: object
- properties:
- self:
- type: object
- properties:
- href:
- type: string
- description: The URL of the ruleset
- html:
- type: object
- properties:
- href:
- type: string
- description: The html URL of the ruleset
- conditions:
- anyOf:
- - "$ref": "#/components/schemas/repository-ruleset-conditions"
- - "$ref": "#/components/schemas/org-ruleset-conditions"
- rules:
- type: array
- items:
- "$ref": "#/components/schemas/repository-rule"
- created_at:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/deployments
+ downloads_url:
type: string
- format: date-time
- updated_at:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/downloads
+ events_url:
type: string
- format: date-time
- repository-advisory-vulnerability:
- description: A product affected by the vulnerability detailed in a repository
- security advisory.
- type: object
- properties:
- package:
- description: The name of the package affected by the vulnerability.
- type: object
- nullable: true
- properties:
- ecosystem:
- "$ref": "#/components/schemas/security-advisory-ecosystems"
- name:
- type: string
- description: The unique package name within its ecosystem.
- nullable: true
- required:
- - ecosystem
- - name
- vulnerable_version_range:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/events
+ forks_url:
type: string
- description: The range of the package versions affected by the vulnerability.
- nullable: true
- patched_versions:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/forks
+ git_commits_url:
type: string
- description: The package version(s) that resolve the vulnerability.
- nullable: true
- vulnerable_functions:
- type: array
- description: The functions in the package that are affected.
- nullable: true
- items:
- type: string
- required:
- - package
- - vulnerable_version_range
- - patched_versions
- - vulnerable_functions
- additionalProperties: false
- repository-advisory-credit:
- description: A credit given to a user for a repository security advisory.
- type: object
- properties:
- user:
- "$ref": "#/components/schemas/simple-user"
- type:
- "$ref": "#/components/schemas/security-advisory-credit-types"
- state:
+ example: http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
+ git_refs_url:
type: string
- description: The state of the user's acceptance of the credit.
- enum:
- - accepted
- - declined
- - pending
- required:
- - user
- - type
- - state
- additionalProperties: false
- repository-advisory:
- description: A repository security advisory.
- type: object
- properties:
- ghsa_id:
+ example: http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
+ git_tags_url:
type: string
- description: The GitHub Security Advisory ID.
- readOnly: true
- cve_id:
+ example: http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
+ git_url:
type: string
- description: The Common Vulnerabilities and Exposures (CVE) ID.
- nullable: true
- url:
+ example: git:github.com/octocat/Hello-World.git
+ issue_comment_url:
type: string
- description: The API URL for the advisory.
- html_url:
+ example: http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
+ issue_events_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ issues_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/issues{/number}
+ keys_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
+ labels_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/labels{/name}
+ languages_url:
type: string
format: uri
- description: The URL for the advisory.
- readOnly: true
- summary:
+ example: http://api.github.com/repos/octocat/Hello-World/languages
+ merges_url:
type: string
- description: A short summary of the advisory.
- maxLength: 1024
- description:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/merges
+ milestones_url:
type: string
- description: A detailed description of what the advisory entails.
- maxLength: 65535
- nullable: true
- severity:
+ example: http://api.github.com/repos/octocat/Hello-World/milestones{/number}
+ notifications_url:
type: string
- description: The severity of the advisory.
+ example: http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
+ pulls_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/pulls{/number}
+ releases_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/releases{/id}
+ ssh_url:
+ type: string
+ example: git@github.com:octocat/Hello-World.git
+ stargazers_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/stargazers
+ statuses_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
+ subscribers_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/subscribers
+ subscription_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/subscription
+ tags_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/tags
+ teams_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/teams
+ trees_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
+ clone_url:
+ type: string
+ example: https://github.com/octocat/Hello-World.git
+ mirror_url:
+ type: string
+ format: uri
+ example: git:git.example.com/octocat/Hello-World
nullable: true
- enum:
- - critical
- - high
- - medium
- - low
- author:
- readOnly: true
+ hooks_url:
+ type: string
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/hooks
+ svn_url:
+ type: string
+ format: uri
+ example: https://svn.github.com/octocat/Hello-World
+ homepage:
+ type: string
+ format: uri
+ example: https://github.com
nullable: true
- description: The author of the advisory.
- allOf:
- - "$ref": "#/components/schemas/simple-user"
- publisher:
- readOnly: true
+ language:
+ type: string
nullable: true
- description: The publisher of the advisory.
- allOf:
- - "$ref": "#/components/schemas/simple-user"
- identifiers:
+ forks_count:
+ type: integer
+ example: 9
+ stargazers_count:
+ type: integer
+ example: 80
+ watchers_count:
+ type: integer
+ example: 80
+ size:
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
+ type: integer
+ example: 108
+ default_branch:
+ description: The default branch of the repository.
+ type: string
+ example: master
+ open_issues_count:
+ type: integer
+ example: 0
+ is_template:
+ description: Whether this repository acts as a template that can be used
+ to generate new repositories.
+ default: false
+ type: boolean
+ example: true
+ topics:
type: array
items:
- type: object
- properties:
- type:
- type: string
- description: The type of identifier.
- enum:
- - CVE
- - GHSA
- value:
- type: string
- description: The identifier value.
- required:
- - type
- - value
- readOnly: true
- state:
+ type: string
+ has_issues:
+ description: Whether issues are enabled.
+ default: true
+ type: boolean
+ example: true
+ has_projects:
+ description: Whether projects are enabled.
+ default: true
+ type: boolean
+ example: true
+ has_wiki:
+ description: Whether the wiki is enabled.
+ default: true
+ type: boolean
+ example: true
+ has_pages:
+ type: boolean
+ has_downloads:
+ description: Whether downloads are enabled.
+ default: true
+ type: boolean
+ example: true
+ deprecated: true
+ has_discussions:
+ description: Whether discussions are enabled.
+ default: false
+ type: boolean
+ example: true
+ archived:
+ description: Whether the repository is archived.
+ default: false
+ type: boolean
+ disabled:
+ type: boolean
+ description: Returns whether or not this repository disabled.
+ visibility:
+ description: 'The repository visibility: public, private, or internal.'
+ default: public
type: string
- description: The state of the advisory.
- enum:
- - published
- - closed
- - withdrawn
- - draft
- - triage
- created_at:
+ pushed_at:
type: string
format: date-time
- description: The date and time of when the advisory was created, in ISO
- 8601 format.
- readOnly: true
+ example: '2011-01-26T19:06:43Z'
nullable: true
- updated_at:
+ created_at:
type: string
format: date-time
- description: The date and time of when the advisory was last updated, in
- ISO 8601 format.
- readOnly: true
+ example: '2011-01-26T19:01:12Z'
nullable: true
- published_at:
+ updated_at:
type: string
format: date-time
- description: The date and time of when the advisory was published, in ISO
- 8601 format.
- readOnly: true
+ example: '2011-01-26T19:14:43Z'
nullable: true
- closed_at:
- type: string
- format: date-time
- description: The date and time of when the advisory was closed, in ISO 8601
- format.
- readOnly: true
- nullable: true
- withdrawn_at:
+ allow_rebase_merge:
+ description: Whether to allow rebase merges for pull requests.
+ default: true
+ type: boolean
+ example: true
+ temp_clone_token:
type: string
- format: date-time
- description: The date and time of when the advisory was withdrawn, in ISO
- 8601 format.
- readOnly: true
- nullable: true
- submission:
- type: object
- nullable: true
- readOnly: true
- properties:
- accepted:
- type: boolean
- description: Whether a private vulnerability report was accepted by
- the repository's administrators.
- readOnly: true
- required:
- - accepted
- vulnerabilities:
- type: array
- nullable: true
- items:
- "$ref": "#/components/schemas/repository-advisory-vulnerability"
- cvss:
- type: object
- nullable: true
- properties:
- vector_string:
- type: string
- description: The CVSS vector.
- nullable: true
- score:
- type: number
- description: The CVSS score.
- minimum: 0
- maximum: 10
- nullable: true
- readOnly: true
- required:
- - vector_string
- - score
- cwes:
- type: array
- nullable: true
- items:
- type: object
- properties:
- cwe_id:
- type: string
- description: The Common Weakness Enumeration (CWE) identifier.
- name:
- type: string
- description: The name of the CWE.
- readOnly: true
- required:
- - cwe_id
- - name
- readOnly: true
- cwe_ids:
- type: array
- description: A list of only the CWE IDs.
- nullable: true
- items:
- type: string
- credits:
- type: array
- nullable: true
- items:
- type: object
- properties:
- login:
- type: string
- description: The username of the user credited.
- type:
- "$ref": "#/components/schemas/security-advisory-credit-types"
- credits_detailed:
- type: array
- nullable: true
- items:
- "$ref": "#/components/schemas/repository-advisory-credit"
- readOnly: true
- collaborating_users:
- type: array
- description: A list of users that collaborate on the advisory.
- nullable: true
- items:
- "$ref": "#/components/schemas/simple-user"
- collaborating_teams:
- type: array
- description: A list of teams that collaborate on the advisory.
- nullable: true
- items:
- "$ref": "#/components/schemas/team"
- private_fork:
- readOnly: true
- nullable: true
- description: A temporary private fork of the advisory's repository for collaborating
- on a fix.
- allOf:
- - "$ref": "#/components/schemas/simple-repository"
+ allow_squash_merge:
+ description: Whether to allow squash merges for pull requests.
+ default: true
+ type: boolean
+ example: true
+ allow_auto_merge:
+ description: Whether to allow Auto-merge to be used on pull requests.
+ default: false
+ type: boolean
+ example: false
+ delete_branch_on_merge:
+ description: Whether to delete head branches when pull requests are merged
+ default: false
+ type: boolean
+ example: false
+ allow_update_branch:
+ description: Whether or not a pull request head branch that is behind its
+ base branch can always be updated even if it is not required to be up
+ to date before merging.
+ default: false
+ type: boolean
+ example: false
+ use_squash_pr_title_as_default:
+ type: boolean
+ description: Whether a squash merge commit can use the pull request title
+ as default. **This property has been deprecated. Please use `squash_merge_commit_title`
+ instead.
+ default: false
+ deprecated: true
+ squash_merge_commit_title:
+ type: string
+ enum:
+ - PR_TITLE
+ - COMMIT_OR_PR_TITLE
+ description: |-
+ The default value for a squash merge commit title:
+
+ - `PR_TITLE` - default to the pull request's title.
+ - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).
+ squash_merge_commit_message:
+ type: string
+ enum:
+ - PR_BODY
+ - COMMIT_MESSAGES
+ - BLANK
+ description: |-
+ The default value for a squash merge commit message:
+
+ - `PR_BODY` - default to the pull request's body.
+ - `COMMIT_MESSAGES` - default to the branch's commit messages.
+ - `BLANK` - default to a blank commit message.
+ merge_commit_title:
+ type: string
+ enum:
+ - PR_TITLE
+ - MERGE_MESSAGE
+ description: |-
+ The default value for a merge commit title.
+
+ - `PR_TITLE` - default to the pull request's title.
+ - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
+ merge_commit_message:
+ type: string
+ enum:
+ - PR_BODY
+ - PR_TITLE
+ - BLANK
+ description: |-
+ The default value for a merge commit message.
+
+ - `PR_TITLE` - default to the pull request's title.
+ - `PR_BODY` - default to the pull request's body.
+ - `BLANK` - default to a blank commit message.
+ allow_merge_commit:
+ description: Whether to allow merge commits for pull requests.
+ default: true
+ type: boolean
+ example: true
+ allow_forking:
+ description: Whether to allow forking this repo
+ type: boolean
+ web_commit_signoff_required:
+ description: Whether to require contributors to sign off on web-based commits
+ default: false
+ type: boolean
+ open_issues:
+ type: integer
+ watchers:
+ type: integer
+ master_branch:
+ type: string
+ starred_at:
+ type: string
+ example: '"2020-07-09T00:17:42Z"'
+ anonymous_access_enabled:
+ type: boolean
+ description: Whether anonymous git access is enabled for this repository
required:
- - ghsa_id
- - cve_id
- - url
- - html_url
- - summary
+ - archive_url
+ - assignees_url
+ - blobs_url
+ - branches_url
+ - collaborators_url
+ - comments_url
+ - commits_url
+ - compare_url
+ - contents_url
+ - contributors_url
+ - deployments_url
- description
- - severity
- - author
- - publisher
- - identifiers
- - state
+ - downloads_url
+ - events_url
+ - fork
+ - forks_url
+ - full_name
+ - git_commits_url
+ - git_refs_url
+ - git_tags_url
+ - hooks_url
+ - html_url
+ - id
+ - node_id
+ - issue_comment_url
+ - issue_events_url
+ - issues_url
+ - keys_url
+ - labels_url
+ - languages_url
+ - merges_url
+ - milestones_url
+ - name
+ - notifications_url
+ - owner
+ - private
+ - pulls_url
+ - releases_url
+ - stargazers_url
+ - statuses_url
+ - subscribers_url
+ - subscription_url
+ - tags_url
+ - teams_url
+ - trees_url
+ - url
+ - clone_url
+ - default_branch
+ - forks
+ - forks_count
+ - git_url
+ - has_downloads
+ - has_issues
+ - has_projects
+ - has_wiki
+ - has_pages
+ - homepage
+ - language
+ - archived
+ - disabled
+ - mirror_url
+ - open_issues
+ - open_issues_count
+ - license
+ - pushed_at
+ - size
+ - ssh_url
+ - stargazers_count
+ - svn_url
+ - watchers
+ - watchers_count
- created_at
- updated_at
- - published_at
- - closed_at
- - withdrawn_at
- - submission
- - vulnerabilities
- - cvss
- - cwes
- - cwe_ids
- - credits
- - credits_detailed
- - collaborating_users
- - collaborating_teams
- - private_fork
- additionalProperties: false
- team-simple:
- title: Team Simple
- description: Groups of organization members that gives permissions on specified
- repositories.
+ nullable: true
+ code-of-conduct-simple:
+ title: Code Of Conduct Simple
+ description: Code of Conduct Simple
type: object
properties:
- id:
- description: Unique identifier of the team
- type: integer
- example: 1
- node_id:
- type: string
- example: MDQ6VGVhbTE=
url:
- description: URL for the team
type: string
format: uri
- example: https://api.github.com/organizations/1/team/1
- members_url:
+ example: https://api.github.com/repos/github/docs/community/code_of_conduct
+ key:
type: string
- example: https://api.github.com/organizations/1/team/1/members{/member}
+ example: citizen_code_of_conduct
name:
- description: Name of the team
- type: string
- example: Justice League
- description:
- description: Description of the team
- type: string
- nullable: true
- example: A great team.
- permission:
- description: Permission that the team will have for its repositories
- type: string
- example: admin
- privacy:
- description: The level of privacy this team should have
- type: string
- example: closed
- notification_setting:
- description: The notification setting the team has set
type: string
- example: notifications_enabled
+ example: Citizen Code of Conduct
html_url:
type: string
+ nullable: true
format: uri
- example: https://github.com/orgs/rails/teams/core
- repositories_url:
- type: string
- format: uri
- example: https://api.github.com/organizations/1/team/1/repos
- slug:
- type: string
- example: justice-league
- ldap_dn:
- description: Distinguished Name (DN) that team maps to within LDAP environment
- example: uid=example,ou=users,dc=github,dc=com
- type: string
+ example: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
required:
- - id
- - node_id
- url
- - members_url
+ - key
- name
- - description
- - permission
- html_url
- - repositories_url
- - slug
- actions-billing-usage:
- type: object
- properties:
- total_minutes_used:
- type: integer
- description: The sum of the free and paid GitHub Actions minutes used.
- total_paid_minutes_used:
- type: integer
- description: The total paid GitHub Actions minutes used.
- included_minutes:
- type: integer
- description: The amount of free GitHub Actions minutes available.
- minutes_used_breakdown:
- type: object
- properties:
- UBUNTU:
- type: integer
- description: Total minutes used on Ubuntu runner machines.
- MACOS:
- type: integer
- description: Total minutes used on macOS runner machines.
- WINDOWS:
- type: integer
- description: Total minutes used on Windows runner machines.
- ubuntu_4_core:
- type: integer
- description: Total minutes used on Ubuntu 4 core runner machines.
- ubuntu_8_core:
- type: integer
- description: Total minutes used on Ubuntu 8 core runner machines.
- ubuntu_16_core:
- type: integer
- description: Total minutes used on Ubuntu 16 core runner machines.
- ubuntu_32_core:
- type: integer
- description: Total minutes used on Ubuntu 32 core runner machines.
- ubuntu_64_core:
- type: integer
- description: Total minutes used on Ubuntu 64 core runner machines.
- windows_4_core:
- type: integer
- description: Total minutes used on Windows 4 core runner machines.
- windows_8_core:
- type: integer
- description: Total minutes used on Windows 8 core runner machines.
- windows_16_core:
- type: integer
- description: Total minutes used on Windows 16 core runner machines.
- windows_32_core:
- type: integer
- description: Total minutes used on Windows 32 core runner machines.
- windows_64_core:
- type: integer
- description: Total minutes used on Windows 64 core runner machines.
- macos_12_core:
- type: integer
- description: Total minutes used on macOS 12 core runner machines.
- total:
- type: integer
- description: Total minutes used on all runner machines.
- required:
- - total_minutes_used
- - total_paid_minutes_used
- - included_minutes
- - minutes_used_breakdown
- packages-billing-usage:
- type: object
- properties:
- total_gigabytes_bandwidth_used:
- type: integer
- description: Sum of the free and paid storage space (GB) for GitHuub Packages.
- total_paid_gigabytes_bandwidth_used:
- type: integer
- description: Total paid storage space (GB) for GitHuub Packages.
- included_gigabytes_bandwidth:
- type: integer
- description: Free storage space (GB) for GitHub Packages.
- required:
- - total_gigabytes_bandwidth_used
- - total_paid_gigabytes_bandwidth_used
- - included_gigabytes_bandwidth
- combined-billing-usage:
- type: object
- properties:
- days_left_in_billing_cycle:
- type: integer
- description: Numbers of days left in billing cycle.
- estimated_paid_storage_for_month:
- type: integer
- description: Estimated storage space (GB) used in billing cycle.
- estimated_storage_for_month:
- type: integer
- description: Estimated sum of free and paid storage space (GB) used in billing
- cycle.
- required:
- - days_left_in_billing_cycle
- - estimated_paid_storage_for_month
- - estimated_storage_for_month
- team-organization:
- title: Team Organization
- description: Team Organization
+ full-repository:
+ title: Full Repository
+ description: Full Repository
type: object
properties:
- login:
- type: string
- example: github
id:
type: integer
- example: 1
+ example: 1296269
node_id:
type: string
- example: MDEyOk9yZ2FuaXphdGlvbjE=
- url:
+ example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name:
type: string
- format: uri
- example: https://api.github.com/orgs/github
- repos_url:
+ example: Hello-World
+ full_name:
+ type: string
+ example: octocat/Hello-World
+ owner:
+ "$ref": "#/components/schemas/simple-user"
+ private:
+ type: boolean
+ html_url:
type: string
format: uri
- example: https://api.github.com/orgs/github/repos
- events_url:
+ example: https://github.com/octocat/Hello-World
+ description:
+ type: string
+ example: This your first repo!
+ nullable: true
+ fork:
+ type: boolean
+ url:
type: string
format: uri
- example: https://api.github.com/orgs/github/events
- hooks_url:
+ example: https://api.github.com/repos/octocat/Hello-World
+ archive_url:
type: string
- example: https://api.github.com/orgs/github/hooks
- issues_url:
+ example: http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
+ assignees_url:
type: string
- example: https://api.github.com/orgs/github/issues
- members_url:
+ example: http://api.github.com/repos/octocat/Hello-World/assignees{/user}
+ blobs_url:
type: string
- example: https://api.github.com/orgs/github/members{/member}
- public_members_url:
+ example: http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
+ branches_url:
type: string
- example: https://api.github.com/orgs/github/public_members{/member}
- avatar_url:
+ example: http://api.github.com/repos/octocat/Hello-World/branches{/branch}
+ collaborators_url:
type: string
- example: https://github.com/images/error/octocat_happy.gif
- description:
+ example: http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
+ comments_url:
type: string
- example: A great organization
- nullable: true
- name:
+ example: http://api.github.com/repos/octocat/Hello-World/comments{/number}
+ commits_url:
type: string
- example: github
- company:
+ example: http://api.github.com/repos/octocat/Hello-World/commits{/sha}
+ compare_url:
type: string
- example: GitHub
- blog:
+ example: http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
+ contents_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/contents/{+path}
+ contributors_url:
type: string
format: uri
- example: https://github.com/blog
- location:
+ example: http://api.github.com/repos/octocat/Hello-World/contributors
+ deployments_url:
type: string
- example: San Francisco
- email:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/deployments
+ downloads_url:
type: string
- format: email
- example: octocat@github.com
- twitter_username:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/downloads
+ events_url:
type: string
- example: github
- nullable: true
- is_verified:
- type: boolean
- example: true
- has_organization_projects:
- type: boolean
- example: true
- has_repository_projects:
- type: boolean
- example: true
- public_repos:
- type: integer
- example: 2
- public_gists:
- type: integer
- example: 1
- followers:
- type: integer
- example: 20
- following:
- type: integer
- example: 0
- html_url:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/events
+ forks_url:
type: string
format: uri
- example: https://github.com/octocat
- created_at:
+ example: http://api.github.com/repos/octocat/Hello-World/forks
+ git_commits_url:
type: string
- format: date-time
- example: '2008-01-14T04:33:35Z'
- type:
+ example: http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
+ git_refs_url:
type: string
- example: Organization
- total_private_repos:
- type: integer
- example: 100
- owned_private_repos:
- type: integer
- example: 100
- private_gists:
- type: integer
- example: 81
- nullable: true
- disk_usage:
- type: integer
- example: 10000
- nullable: true
- collaborators:
- type: integer
- example: 8
- nullable: true
- billing_email:
+ example: http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
+ git_tags_url:
type: string
- format: email
- example: org@example.com
- nullable: true
- plan:
- type: object
- properties:
- name:
- type: string
- space:
- type: integer
- private_repos:
- type: integer
- filled_seats:
- type: integer
- seats:
- type: integer
- required:
- - name
- - space
- - private_repos
- default_repository_permission:
+ example: http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
+ git_url:
type: string
- nullable: true
- members_can_create_repositories:
- type: boolean
- example: true
- nullable: true
- two_factor_requirement_enabled:
- type: boolean
- example: true
- nullable: true
- members_allowed_repository_creation_type:
+ example: git:github.com/octocat/Hello-World.git
+ issue_comment_url:
type: string
- example: all
- members_can_create_public_repositories:
- type: boolean
- example: true
- members_can_create_private_repositories:
- type: boolean
- example: true
- members_can_create_internal_repositories:
- type: boolean
- example: true
- members_can_create_pages:
- type: boolean
- example: true
- members_can_create_public_pages:
- type: boolean
- example: true
- members_can_create_private_pages:
- type: boolean
- example: true
- members_can_fork_private_repositories:
- type: boolean
- example: false
- nullable: true
- web_commit_signoff_required:
- type: boolean
- example: false
- updated_at:
+ example: http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
+ issue_events_url:
type: string
- format: date-time
- archived_at:
+ example: http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ issues_url:
type: string
- format: date-time
- nullable: true
- required:
- - login
- - url
- - id
- - node_id
- - repos_url
- - events_url
- - hooks_url
- - issues_url
- - members_url
- - public_members_url
- - avatar_url
- - description
- - html_url
- - has_organization_projects
- - has_repository_projects
- - public_repos
- - public_gists
- - followers
- - following
- - type
- - created_at
- - updated_at
- - archived_at
- team-full:
- title: Full Team
- description: Groups of organization members that gives permissions on specified
- repositories.
- type: object
- properties:
- id:
- description: Unique identifier of the team
- example: 42
- type: integer
- node_id:
+ example: http://api.github.com/repos/octocat/Hello-World/issues{/number}
+ keys_url:
type: string
- example: MDQ6VGVhbTE=
- url:
- description: URL for the team
- example: https://api.github.com/organizations/1/team/1
+ example: http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
+ labels_url:
+ type: string
+ example: http://api.github.com/repos/octocat/Hello-World/labels{/name}
+ languages_url:
type: string
format: uri
- html_url:
+ example: http://api.github.com/repos/octocat/Hello-World/languages
+ merges_url:
type: string
format: uri
- example: https://github.com/orgs/rails/teams/core
- name:
- description: Name of the team
- example: Developers
+ example: http://api.github.com/repos/octocat/Hello-World/merges
+ milestones_url:
type: string
- slug:
+ example: http://api.github.com/repos/octocat/Hello-World/milestones{/number}
+ notifications_url:
type: string
- example: justice-league
- description:
+ example: http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
+ pulls_url:
type: string
- example: A great team.
- nullable: true
- privacy:
- description: The level of privacy this team should have
+ example: http://api.github.com/repos/octocat/Hello-World/pulls{/number}
+ releases_url:
type: string
- enum:
- - closed
- - secret
- example: closed
- notification_setting:
- description: The notification setting the team has set
+ example: http://api.github.com/repos/octocat/Hello-World/releases{/id}
+ ssh_url:
type: string
- enum:
- - notifications_enabled
- - notifications_disabled
- example: notifications_enabled
- permission:
- description: Permission that the team will have for its repositories
- example: push
+ example: git@github.com:octocat/Hello-World.git
+ stargazers_url:
type: string
- members_url:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/stargazers
+ statuses_url:
type: string
- example: https://api.github.com/organizations/1/team/1/members{/member}
- repositories_url:
+ example: http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
+ subscribers_url:
type: string
format: uri
- example: https://api.github.com/organizations/1/team/1/repos
- parent:
- "$ref": "#/components/schemas/nullable-team-simple"
- members_count:
- type: integer
- example: 3
- repos_count:
- type: integer
- example: 10
- created_at:
+ example: http://api.github.com/repos/octocat/Hello-World/subscribers
+ subscription_url:
type: string
- format: date-time
- example: '2017-07-14T16:53:42Z'
- updated_at:
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/subscription
+ tags_url:
type: string
- format: date-time
- example: '2017-08-17T12:37:15Z'
- organization:
- "$ref": "#/components/schemas/team-organization"
- ldap_dn:
- description: Distinguished Name (DN) that team maps to within LDAP environment
- example: uid=example,ou=users,dc=github,dc=com
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/tags
+ teams_url:
type: string
- required:
- - id
- - node_id
- - url
- - members_url
- - name
- - description
- - permission
- - html_url
- - repositories_url
- - slug
- - created_at
- - updated_at
- - members_count
- - repos_count
- - organization
- team-discussion:
- title: Team Discussion
- description: A team discussion is a persistent record of a free-form conversation
- within a team.
- type: object
- properties:
- author:
- "$ref": "#/components/schemas/nullable-simple-user"
- body:
- description: The main text of the discussion.
- example: Please suggest improvements to our workflow in comments.
+ format: uri
+ example: http://api.github.com/repos/octocat/Hello-World/teams
+ trees_url:
type: string
- body_html:
+ example: http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
+ clone_url:
type: string
- example: "Hi! This is an area for us to collaborate as a team
"
- body_version:
- description: The current version of the body content. If provided, this
- update operation will be rejected if the given version does not match
- the latest version on the server.
- example: 0307116bbf7ced493b8d8a346c650b71
+ example: https://github.com/octocat/Hello-World.git
+ mirror_url:
type: string
- comments_count:
- type: integer
- example: 0
- comments_url:
+ format: uri
+ example: git:git.example.com/octocat/Hello-World
+ nullable: true
+ hooks_url:
type: string
format: uri
- example: https://api.github.com/organizations/1/team/2343027/discussions/1/comments
- created_at:
+ example: http://api.github.com/repos/octocat/Hello-World/hooks
+ svn_url:
type: string
- format: date-time
- example: '2018-01-25T18:56:31Z'
- last_edited_at:
+ format: uri
+ example: https://svn.github.com/octocat/Hello-World
+ homepage:
type: string
- format: date-time
+ format: uri
+ example: https://github.com
nullable: true
- html_url:
+ language:
type: string
- format: uri
- example: https://github.com/orgs/github/teams/justice-league/discussions/1
- node_id:
+ nullable: true
+ forks_count:
+ type: integer
+ example: 9
+ stargazers_count:
+ type: integer
+ example: 80
+ watchers_count:
+ type: integer
+ example: 80
+ size:
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
+ type: integer
+ example: 108
+ default_branch:
type: string
- example: MDE0OlRlYW1EaXNjdXNzaW9uMQ==
- number:
- description: The unique sequence number of a team discussion.
- example: 42
+ example: master
+ open_issues_count:
type: integer
- pinned:
- description: Whether or not this discussion should be pinned for easy retrieval.
+ example: 0
+ is_template:
+ type: boolean
example: true
+ topics:
+ type: array
+ items:
+ type: string
+ example:
+ - octocat
+ - atom
+ - electron
+ - API
+ has_issues:
type: boolean
- private:
- description: Whether or not this discussion should be restricted to team
- members and organization administrators.
example: true
+ has_projects:
type: boolean
- team_url:
- type: string
- format: uri
- example: https://api.github.com/organizations/1/team/2343027
- title:
- description: The title of the discussion.
- example: How can we improve our workflow?
+ example: true
+ has_wiki:
+ type: boolean
+ example: true
+ has_pages:
+ type: boolean
+ has_downloads:
+ type: boolean
+ example: true
+ has_discussions:
+ type: boolean
+ example: true
+ archived:
+ type: boolean
+ disabled:
+ type: boolean
+ description: Returns whether or not this repository disabled.
+ visibility:
+ description: 'The repository visibility: public, private, or internal.'
type: string
- updated_at:
+ example: public
+ pushed_at:
type: string
format: date-time
- example: '2018-01-25T18:56:31Z'
- url:
- type: string
- format: uri
- example: https://api.github.com/organizations/1/team/2343027/discussions/1
- reactions:
- "$ref": "#/components/schemas/reaction-rollup"
- required:
- - author
- - body
- - body_html
- - body_version
- - comments_count
- - comments_url
- - created_at
- - last_edited_at
- - html_url
- - pinned
- - private
- - node_id
- - number
- - team_url
- - title
- - updated_at
- - url
- team-discussion-comment:
- title: Team Discussion Comment
- description: A reply to a discussion within a team.
- type: object
- properties:
- author:
- "$ref": "#/components/schemas/nullable-simple-user"
- body:
- description: The main text of the comment.
- example: I agree with this suggestion.
- type: string
- body_html:
- type: string
- example: "Do you like apples?
"
- body_version:
- description: The current version of the body content. If provided, this
- update operation will be rejected if the given version does not match
- the latest version on the server.
- example: 0307116bbf7ced493b8d8a346c650b71
- type: string
+ example: '2011-01-26T19:06:43Z'
created_at:
type: string
format: date-time
- example: '2018-01-15T23:53:58Z'
- last_edited_at:
- type: string
- format: date-time
- nullable: true
- discussion_url:
- type: string
- format: uri
- example: https://api.github.com/organizations/1/team/2403582/discussions/1
- html_url:
- type: string
- format: uri
- example: https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
- node_id:
- type: string
- example: MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
- number:
- description: The unique sequence number of a team discussion comment.
- example: 42
- type: integer
+ example: '2011-01-26T19:01:12Z'
updated_at:
type: string
format: date-time
- example: '2018-01-15T23:53:58Z'
- url:
- type: string
- format: uri
- example: https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
- reactions:
- "$ref": "#/components/schemas/reaction-rollup"
- required:
- - author
- - body
- - body_html
- - body_version
- - created_at
- - last_edited_at
- - discussion_url
- - html_url
- - node_id
- - number
- - updated_at
- - url
- reaction:
- title: Reaction
- description: Reactions to conversations provide a way to help people express
- their feelings more simply and effectively.
- type: object
- properties:
- id:
- type: integer
- example: 1
- node_id:
- type: string
- example: MDg6UmVhY3Rpb24x
- user:
- "$ref": "#/components/schemas/nullable-simple-user"
- content:
- description: The reaction to use
- example: heart
- type: string
- enum:
- - "+1"
- - "-1"
- - laugh
- - confused
- - heart
- - hooray
- - rocket
- - eyes
- created_at:
- type: string
- format: date-time
- example: '2016-05-20T20:09:31Z'
- required:
- - id
- - node_id
- - user
- - content
- - created_at
- team-membership:
- title: Team Membership
- description: Team Membership
- type: object
- properties:
- url:
- type: string
- format: uri
- role:
- description: The role of the user in the team.
- enum:
- - member
- - maintainer
- default: member
- example: member
- type: string
- state:
- description: The state of the user's membership in the team.
- type: string
- enum:
- - active
- - pending
- required:
- - role
- - state
- - url
- team-project:
- title: Team Project
- description: A team's access to a project.
- type: object
- properties:
- owner_url:
- type: string
- url:
- type: string
- html_url:
- type: string
- columns_url:
- type: string
- id:
- type: integer
- node_id:
- type: string
- name:
- type: string
- body:
- type: string
- nullable: true
- number:
- type: integer
- state:
- type: string
- creator:
- "$ref": "#/components/schemas/simple-user"
- created_at:
- type: string
- updated_at:
- type: string
- organization_permission:
- description: The organization permission for this project. Only present
- when owner is an organization.
- type: string
- private:
- description: Whether the project is private or not. Only present when owner
- is an organization.
- type: boolean
+ example: '2011-01-26T19:14:43Z'
permissions:
type: object
properties:
- read:
- type: boolean
- write:
- type: boolean
admin:
type: boolean
- required:
- - read
- - write
- - admin
- required:
- - owner_url
- - url
- - html_url
- - columns_url
- - id
- - node_id
- - name
- - body
- - number
- - state
- - creator
- - created_at
- - updated_at
- - permissions
- nullable-repository:
- title: Repository
- description: A repository on GitHub.
- type: object
- properties:
- id:
- description: Unique identifier of the repository
- example: 42
- type: integer
- node_id:
- type: string
- example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name:
- description: The name of the repository.
- type: string
- example: Team Environment
- full_name:
- type: string
- example: octocat/Hello-World
- license:
- "$ref": "#/components/schemas/nullable-license-simple"
- organization:
- "$ref": "#/components/schemas/nullable-simple-user"
- forks:
- type: integer
- permissions:
- type: object
- properties:
- admin:
+ maintain:
type: boolean
- pull:
+ push:
type: boolean
triage:
type: boolean
- push:
- type: boolean
- maintain:
+ pull:
type: boolean
required:
- admin
- pull
- push
- owner:
- "$ref": "#/components/schemas/simple-user"
- private:
- description: Whether the repository is private or public.
- default: false
- type: boolean
- html_url:
- type: string
- format: uri
- example: https://github.com/octocat/Hello-World
- description:
- type: string
- example: This your first repo!
- nullable: true
- fork:
- type: boolean
- url:
- type: string
- format: uri
- example: https://api.github.com/repos/octocat/Hello-World
- archive_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/downloads
- events_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/events
- forks_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url:
- type: string
- example: git:github.com/octocat/Hello-World.git
- issue_comment_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/languages
- merges_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/merges
- milestones_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url:
- type: string
- example: git@github.com:octocat/Hello-World.git
- stargazers_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/subscription
- tags_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/tags
- teams_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/teams
- trees_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url:
- type: string
- example: https://github.com/octocat/Hello-World.git
- mirror_url:
- type: string
- format: uri
- example: git:git.example.com/octocat/Hello-World
- nullable: true
- hooks_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/hooks
- svn_url:
- type: string
- format: uri
- example: https://svn.github.com/octocat/Hello-World
- homepage:
- type: string
- format: uri
- example: https://github.com
- nullable: true
- language:
- type: string
- nullable: true
- forks_count:
- type: integer
- example: 9
- stargazers_count:
- type: integer
- example: 80
- watchers_count:
- type: integer
- example: 80
- size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
- type: integer
- example: 108
- default_branch:
- description: The default branch of the repository.
- type: string
- example: master
- open_issues_count:
- type: integer
- example: 0
- is_template:
- description: Whether this repository acts as a template that can be used
- to generate new repositories.
- default: false
- type: boolean
- example: true
- topics:
- type: array
- items:
- type: string
- has_issues:
- description: Whether issues are enabled.
- default: true
- type: boolean
- example: true
- has_projects:
- description: Whether projects are enabled.
- default: true
- type: boolean
- example: true
- has_wiki:
- description: Whether the wiki is enabled.
- default: true
- type: boolean
- example: true
- has_pages:
- type: boolean
- has_downloads:
- description: Whether downloads are enabled.
- default: true
- type: boolean
- example: true
- deprecated: true
- has_discussions:
- description: Whether discussions are enabled.
- default: false
- type: boolean
- example: true
- archived:
- description: Whether the repository is archived.
- default: false
- type: boolean
- disabled:
- type: boolean
- description: Returns whether or not this repository disabled.
- visibility:
- description: 'The repository visibility: public, private, or internal.'
- default: public
- type: string
- pushed_at:
- type: string
- format: date-time
- example: '2011-01-26T19:06:43Z'
- nullable: true
- created_at:
- type: string
- format: date-time
- example: '2011-01-26T19:01:12Z'
- nullable: true
- updated_at:
- type: string
- format: date-time
- example: '2011-01-26T19:14:43Z'
- nullable: true
allow_rebase_merge:
- description: Whether to allow rebase merges for pull requests.
- default: true
type: boolean
example: true
template_repository:
- nullable: true
- type: object
- properties:
- id:
- type: integer
- node_id:
- type: string
- name:
- type: string
- full_name:
- type: string
- owner:
- type: object
- properties:
- login:
- type: string
- id:
- type: integer
- node_id:
- type: string
- avatar_url:
- type: string
- gravatar_id:
- type: string
- url:
- type: string
- html_url:
- type: string
- followers_url:
- type: string
- following_url:
- type: string
- gists_url:
- type: string
- starred_url:
- type: string
- subscriptions_url:
- type: string
- organizations_url:
- type: string
- repos_url:
- type: string
- events_url:
- type: string
- received_events_url:
- type: string
- type:
- type: string
- site_admin:
- type: boolean
- private:
- type: boolean
- html_url:
- type: string
- description:
- type: string
- fork:
- type: boolean
- url:
- type: string
- archive_url:
- type: string
- assignees_url:
- type: string
- blobs_url:
- type: string
- branches_url:
- type: string
- collaborators_url:
- type: string
- comments_url:
- type: string
- commits_url:
- type: string
- compare_url:
- type: string
- contents_url:
- type: string
- contributors_url:
- type: string
- deployments_url:
- type: string
- downloads_url:
- type: string
- events_url:
- type: string
- forks_url:
- type: string
- git_commits_url:
- type: string
- git_refs_url:
- type: string
- git_tags_url:
- type: string
- git_url:
- type: string
- issue_comment_url:
- type: string
- issue_events_url:
- type: string
- issues_url:
- type: string
- keys_url:
- type: string
- labels_url:
- type: string
- languages_url:
- type: string
- merges_url:
- type: string
- milestones_url:
- type: string
- notifications_url:
- type: string
- pulls_url:
- type: string
- releases_url:
- type: string
- ssh_url:
- type: string
- stargazers_url:
- type: string
- statuses_url:
- type: string
- subscribers_url:
- type: string
- subscription_url:
- type: string
- tags_url:
- type: string
- teams_url:
- type: string
- trees_url:
- type: string
- clone_url:
- type: string
- mirror_url:
- type: string
- hooks_url:
- type: string
- svn_url:
- type: string
- homepage:
- type: string
- language:
- type: string
- forks_count:
- type: integer
- stargazers_count:
- type: integer
- watchers_count:
- type: integer
- size:
- type: integer
- default_branch:
- type: string
- open_issues_count:
- type: integer
- is_template:
- type: boolean
- topics:
- type: array
- items:
- type: string
- has_issues:
- type: boolean
- has_projects:
- type: boolean
- has_wiki:
- type: boolean
- has_pages:
- type: boolean
- has_downloads:
- type: boolean
- archived:
- type: boolean
- disabled:
- type: boolean
- visibility:
- type: string
- pushed_at:
- type: string
- created_at:
- type: string
- updated_at:
- type: string
- permissions:
- type: object
- properties:
- admin:
- type: boolean
- maintain:
- type: boolean
- push:
- type: boolean
- triage:
- type: boolean
- pull:
- type: boolean
- allow_rebase_merge:
- type: boolean
- temp_clone_token:
- type: string
- allow_squash_merge:
- type: boolean
- allow_auto_merge:
- type: boolean
- delete_branch_on_merge:
- type: boolean
- allow_update_branch:
- type: boolean
- use_squash_pr_title_as_default:
- type: boolean
- squash_merge_commit_title:
- type: string
- enum:
- - PR_TITLE
- - COMMIT_OR_PR_TITLE
- description: |-
- The default value for a squash merge commit title:
-
- - `PR_TITLE` - default to the pull request's title.
- - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).
- squash_merge_commit_message:
- type: string
- enum:
- - PR_BODY
- - COMMIT_MESSAGES
- - BLANK
- description: |-
- The default value for a squash merge commit message:
-
- - `PR_BODY` - default to the pull request's body.
- - `COMMIT_MESSAGES` - default to the branch's commit messages.
- - `BLANK` - default to a blank commit message.
- merge_commit_title:
- type: string
- enum:
- - PR_TITLE
- - MERGE_MESSAGE
- description: |-
- The default value for a merge commit title.
-
- - `PR_TITLE` - default to the pull request's title.
- - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
- merge_commit_message:
- type: string
- enum:
- - PR_BODY
- - PR_TITLE
- - BLANK
- description: |-
- The default value for a merge commit message.
-
- - `PR_TITLE` - default to the pull request's title.
- - `PR_BODY` - default to the pull request's body.
- - `BLANK` - default to a blank commit message.
- allow_merge_commit:
- type: boolean
- subscribers_count:
- type: integer
- network_count:
- type: integer
+ "$ref": "#/components/schemas/nullable-repository"
temp_clone_token:
type: string
+ nullable: true
allow_squash_merge:
- description: Whether to allow squash merges for pull requests.
- default: true
type: boolean
example: true
allow_auto_merge:
- description: Whether to allow Auto-merge to be used on pull requests.
- default: false
type: boolean
example: false
delete_branch_on_merge:
- description: Whether to delete head branches when pull requests are merged
- default: false
type: boolean
example: false
+ allow_merge_commit:
+ type: boolean
+ example: true
allow_update_branch:
- description: Whether or not a pull request head branch that is behind its
- base branch can always be updated even if it is not required to be up
- to date before merging.
- default: false
type: boolean
- example: false
+ example: true
use_squash_pr_title_as_default:
type: boolean
- description: Whether a squash merge commit can use the pull request title
- as default. **This property has been deprecated. Please use `squash_merge_commit_title`
- instead.
- default: false
- deprecated: true
+ example: false
squash_merge_commit_title:
type: string
+ example: PR_TITLE
enum:
- PR_TITLE
- COMMIT_OR_PR_TITLE
@@ -70014,6 +70959,7 @@ components:
- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).
squash_merge_commit_message:
type: string
+ example: PR_BODY
enum:
- PR_BODY
- COMMIT_MESSAGES
@@ -70026,16 +70972,18 @@ components:
- `BLANK` - default to a blank commit message.
merge_commit_title:
type: string
+ example: PR_TITLE
enum:
- PR_TITLE
- MERGE_MESSAGE
description: |-
The default value for a merge commit title.
- - `PR_TITLE` - default to the pull request's title.
- - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
+ - `PR_TITLE` - default to the pull request's title.
+ - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
merge_commit_message:
type: string
+ example: PR_BODY
enum:
- PR_BODY
- PR_TITLE
@@ -70046,34 +70994,48 @@ components:
- `PR_TITLE` - default to the pull request's title.
- `PR_BODY` - default to the pull request's body.
- `BLANK` - default to a blank commit message.
- allow_merge_commit:
- description: Whether to allow merge commits for pull requests.
- default: true
- type: boolean
- example: true
allow_forking:
- description: Whether to allow forking this repo
type: boolean
+ example: true
web_commit_signoff_required:
- description: Whether to require contributors to sign off on web-based commits
- default: false
type: boolean
+ example: false
subscribers_count:
type: integer
+ example: 42
network_count:
type: integer
+ example: 0
+ license:
+ "$ref": "#/components/schemas/nullable-license-simple"
+ organization:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ parent:
+ "$ref": "#/components/schemas/repository"
+ source:
+ "$ref": "#/components/schemas/repository"
+ forks:
+ type: integer
+ master_branch:
+ type: string
open_issues:
type: integer
watchers:
type: integer
- master_branch:
- type: string
- starred_at:
- type: string
- example: '"2020-07-09T00:17:42Z"'
anonymous_access_enabled:
+ description: Whether anonymous git access is allowed.
+ default: true
type: boolean
- description: Whether anonymous git access is enabled for this repository
+ code_of_conduct:
+ "$ref": "#/components/schemas/code-of-conduct-simple"
+ security_and_analysis:
+ "$ref": "#/components/schemas/security-and-analysis"
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
required:
- archive_url
- assignees_url
@@ -70126,11 +71088,11 @@ components:
- forks
- forks_count
- git_url
- - has_downloads
- has_issues
- has_projects
- has_wiki
- has_pages
+ - has_discussions
- homepage
- language
- archived
@@ -70148,632 +71110,1957 @@ components:
- watchers_count
- created_at
- updated_at
- nullable: true
- team-repository:
- title: Team Repository
- description: A team's access to a repository.
+ - network_count
+ - subscribers_count
+ repository-rule-enforcement:
+ type: string
+ description: The enforcement level of the ruleset. `evaluate` allows admins
+ to test rules before enforcing them. Admins can view insights on the Rule
+ Insights page (`evaluate` is only available with GitHub Enterprise).
+ enum:
+ - disabled
+ - active
+ - evaluate
+ repository-ruleset-bypass-actor:
+ title: Repository Ruleset Bypass Actor
type: object
+ description: An actor that can bypass rules in a ruleset
+ required:
+ - actor_id
+ - actor_type
+ - bypass_mode
properties:
- id:
- description: Unique identifier of the repository
- example: 42
+ actor_id:
type: integer
- node_id:
+ description: The ID of the actor that can bypass a ruleset. If `actor_type`
+ is `OrganizationAdmin`, this should be `1`.
+ actor_type:
type: string
- example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ enum:
+ - RepositoryRole
+ - Team
+ - Integration
+ - OrganizationAdmin
+ description: The type of actor that can bypass a ruleset
+ bypass_mode:
+ type: string
+ description: When the specified actor can bypass the ruleset. `pull_request`
+ means that an actor can only bypass rules on pull requests.
+ enum:
+ - always
+ - pull_request
+ repository-ruleset-conditions:
+ title: Repository ruleset conditions for ref names
+ type: object
+ description: Parameters for a repository ruleset ref name condition
+ properties:
+ ref_name:
+ type: object
+ properties:
+ include:
+ type: array
+ description: Array of ref names or patterns to include. One of these
+ patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH`
+ to include the default branch or `~ALL` to include all branches.
+ items:
+ type: string
+ exclude:
+ type: array
+ description: Array of ref names or patterns to exclude. The condition
+ will not pass if any of these patterns match.
+ items:
+ type: string
+ repository-ruleset-conditions-repository-name-target:
+ title: Repository ruleset conditions for repository names
+ type: object
+ description: Parameters for a repository name condition
+ properties:
+ repository_name:
+ type: object
+ properties:
+ include:
+ type: array
+ description: Array of repository names or patterns to include. One of
+ these patterns must match for the condition to pass. Also accepts
+ `~ALL` to include all repositories.
+ items:
+ type: string
+ exclude:
+ type: array
+ description: Array of repository names or patterns to exclude. The condition
+ will not pass if any of these patterns match.
+ items:
+ type: string
+ protected:
+ type: boolean
+ description: Whether renaming of target repositories is prevented.
+ required:
+ - repository_name
+ repository-ruleset-conditions-repository-id-target:
+ title: Repository ruleset conditions for repository IDs
+ type: object
+ description: Parameters for a repository ID condition
+ properties:
+ repository_id:
+ type: object
+ properties:
+ repository_ids:
+ type: array
+ description: The repository IDs that the ruleset applies to. One of
+ these IDs must match for the condition to pass.
+ items:
+ type: integer
+ required:
+ - repository_id
+ repository-ruleset-conditions-repository-property-spec:
+ title: Repository ruleset property targeting definition
+ type: object
+ description: Parameters for a targeting a repository property
+ properties:
name:
- description: The name of the repository.
type: string
- example: Team Environment
- full_name:
+ description: The name of the repository property to target
+ property_values:
+ type: array
+ description: The values to match for the repository property
+ items:
+ type: string
+ required:
+ - name
+ - property_values
+ repository-ruleset-conditions-repository-property-target:
+ title: Repository ruleset conditions for repository properties
+ type: object
+ description: Parameters for a repository property condition
+ properties:
+ repository_property:
+ type: object
+ properties:
+ include:
+ type: array
+ description: The repository properties and values to include. All of
+ these properties must match for the condition to pass.
+ items:
+ "$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-spec"
+ exclude:
+ type: array
+ description: The repository properties and values to exclude. The condition
+ will not pass if any of these properties match.
+ items:
+ "$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-spec"
+ required:
+ - repository_property
+ org-ruleset-conditions:
+ title: Organization ruleset conditions
+ type: object
+ description: 'Conditions for an organization ruleset. The conditions object
+ should contain both `repository_name` and `ref_name` properties or both `repository_id`
+ and `ref_name` properties.
+
+ '
+ oneOf:
+ - type: object
+ title: repository_name_and_ref_name
+ description: Conditions to target repositories by name and refs by name
+ allOf:
+ - "$ref": "#/components/schemas/repository-ruleset-conditions"
+ - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target"
+ - type: object
+ title: repository_id_and_ref_name
+ description: Conditions to target repositories by id and refs by name
+ allOf:
+ - "$ref": "#/components/schemas/repository-ruleset-conditions"
+ - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-id-target"
+ - type: object
+ title: repository_property_and_ref_name
+ description: Conditions to target repositories by property and refs by name
+ allOf:
+ - "$ref": "#/components/schemas/repository-ruleset-conditions"
+ - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-property-target"
+ repository-rule-creation:
+ title: creation
+ description: Only allow users with bypass permission to create matching refs.
+ type: object
+ required:
+ - type
+ properties:
+ type:
type: string
- example: octocat/Hello-World
- license:
- "$ref": "#/components/schemas/nullable-license-simple"
- forks:
+ enum:
+ - creation
+ repository-rule-update:
+ title: update
+ description: Only allow users with bypass permission to update matching refs.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - update
+ parameters:
+ type: object
+ properties:
+ update_allows_fetch_and_merge:
+ type: boolean
+ description: Branch can pull changes from its upstream repository
+ required:
+ - update_allows_fetch_and_merge
+ repository-rule-deletion:
+ title: deletion
+ description: Only allow users with bypass permissions to delete matching refs.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - deletion
+ repository-rule-required-linear-history:
+ title: required_linear_history
+ description: Prevent merge commits from being pushed to matching refs.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - required_linear_history
+ repository-rule-required-deployments:
+ title: required_deployments
+ description: Choose which environments must be successfully deployed to before
+ refs can be pushed into a ref that matches this rule.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - required_deployments
+ parameters:
+ type: object
+ properties:
+ required_deployment_environments:
+ type: array
+ description: The environments that must be successfully deployed to
+ before branches can be merged.
+ items:
+ type: string
+ required:
+ - required_deployment_environments
+ repository-rule-required-signatures:
+ title: required_signatures
+ description: Commits pushed to matching refs must have verified signatures.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - required_signatures
+ repository-rule-pull-request:
+ title: pull_request
+ description: Require all commits be made to a non-target branch and submitted
+ via a pull request before they can be merged.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - pull_request
+ parameters:
+ type: object
+ properties:
+ dismiss_stale_reviews_on_push:
+ type: boolean
+ description: New, reviewable commits pushed will dismiss previous pull
+ request review approvals.
+ require_code_owner_review:
+ type: boolean
+ description: Require an approving review in pull requests that modify
+ files that have a designated code owner.
+ require_last_push_approval:
+ type: boolean
+ description: Whether the most recent reviewable push must be approved
+ by someone other than the person who pushed it.
+ required_approving_review_count:
+ type: integer
+ description: The number of approving reviews that are required before
+ a pull request can be merged.
+ minimum: 0
+ maximum: 10
+ required_review_thread_resolution:
+ type: boolean
+ description: All conversations on code must be resolved before a pull
+ request can be merged.
+ required:
+ - dismiss_stale_reviews_on_push
+ - require_code_owner_review
+ - require_last_push_approval
+ - required_approving_review_count
+ - required_review_thread_resolution
+ repository-rule-params-status-check-configuration:
+ title: StatusCheckConfiguration
+ description: Required status check
+ type: object
+ properties:
+ context:
+ type: string
+ description: The status check context name that must be present on the commit.
+ integration_id:
type: integer
- permissions:
+ description: The optional integration ID that this status check must originate
+ from.
+ required:
+ - context
+ repository-rule-required-status-checks:
+ title: required_status_checks
+ description: Choose which status checks must pass before the ref is updated.
+ When enabled, commits must first be pushed to another ref where the checks
+ pass.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - required_status_checks
+ parameters:
type: object
properties:
- admin:
+ required_status_checks:
+ type: array
+ description: Status checks that are required.
+ items:
+ "$ref": "#/components/schemas/repository-rule-params-status-check-configuration"
+ strict_required_status_checks_policy:
type: boolean
- pull:
+ description: Whether pull requests targeting a matching branch must
+ be tested with the latest code. This setting will not take effect
+ unless at least one status check is enabled.
+ required:
+ - required_status_checks
+ - strict_required_status_checks_policy
+ repository-rule-non-fast-forward:
+ title: non_fast_forward
+ description: Prevent users with push access from force pushing to refs.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - non_fast_forward
+ repository-rule-commit-message-pattern:
+ title: commit_message_pattern
+ description: Parameters to be used for the commit_message_pattern rule
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - commit_message_pattern
+ parameters:
+ type: object
+ properties:
+ name:
+ type: string
+ description: How this rule will appear to users.
+ negate:
type: boolean
- triage:
+ description: If true, the rule will fail if the pattern matches.
+ operator:
+ type: string
+ description: The operator to use for matching.
+ enum:
+ - starts_with
+ - ends_with
+ - contains
+ - regex
+ pattern:
+ type: string
+ description: The pattern to match with.
+ required:
+ - operator
+ - pattern
+ repository-rule-commit-author-email-pattern:
+ title: commit_author_email_pattern
+ description: Parameters to be used for the commit_author_email_pattern rule
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - commit_author_email_pattern
+ parameters:
+ type: object
+ properties:
+ name:
+ type: string
+ description: How this rule will appear to users.
+ negate:
type: boolean
- push:
+ description: If true, the rule will fail if the pattern matches.
+ operator:
+ type: string
+ description: The operator to use for matching.
+ enum:
+ - starts_with
+ - ends_with
+ - contains
+ - regex
+ pattern:
+ type: string
+ description: The pattern to match with.
+ required:
+ - operator
+ - pattern
+ repository-rule-committer-email-pattern:
+ title: committer_email_pattern
+ description: Parameters to be used for the committer_email_pattern rule
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - committer_email_pattern
+ parameters:
+ type: object
+ properties:
+ name:
+ type: string
+ description: How this rule will appear to users.
+ negate:
type: boolean
- maintain:
+ description: If true, the rule will fail if the pattern matches.
+ operator:
+ type: string
+ description: The operator to use for matching.
+ enum:
+ - starts_with
+ - ends_with
+ - contains
+ - regex
+ pattern:
+ type: string
+ description: The pattern to match with.
+ required:
+ - operator
+ - pattern
+ repository-rule-branch-name-pattern:
+ title: branch_name_pattern
+ description: Parameters to be used for the branch_name_pattern rule
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - branch_name_pattern
+ parameters:
+ type: object
+ properties:
+ name:
+ type: string
+ description: How this rule will appear to users.
+ negate:
type: boolean
+ description: If true, the rule will fail if the pattern matches.
+ operator:
+ type: string
+ description: The operator to use for matching.
+ enum:
+ - starts_with
+ - ends_with
+ - contains
+ - regex
+ pattern:
+ type: string
+ description: The pattern to match with.
required:
- - admin
- - pull
- - push
- role_name:
+ - operator
+ - pattern
+ repository-rule-tag-name-pattern:
+ title: tag_name_pattern
+ description: Parameters to be used for the tag_name_pattern rule
+ type: object
+ required:
+ - type
+ properties:
+ type:
type: string
- example: admin
- owner:
- "$ref": "#/components/schemas/nullable-simple-user"
- private:
- description: Whether the repository is private or public.
- default: false
- type: boolean
+ enum:
+ - tag_name_pattern
+ parameters:
+ type: object
+ properties:
+ name:
+ type: string
+ description: How this rule will appear to users.
+ negate:
+ type: boolean
+ description: If true, the rule will fail if the pattern matches.
+ operator:
+ type: string
+ description: The operator to use for matching.
+ enum:
+ - starts_with
+ - ends_with
+ - contains
+ - regex
+ pattern:
+ type: string
+ description: The pattern to match with.
+ required:
+ - operator
+ - pattern
+ repository-rule-params-restricted-commits:
+ title: RestrictedCommits
+ description: Restricted commit
+ type: object
+ properties:
+ oid:
+ type: string
+ description: Full or abbreviated commit hash to reject
+ reason:
+ type: string
+ description: Reason for restriction
+ required:
+ - oid
+ repository-rule-params-workflow-file-reference:
+ title: WorkflowFileReference
+ description: A workflow that must run for this rule to pass
+ type: object
+ properties:
+ path:
+ type: string
+ description: The path to the workflow file
+ ref:
+ type: string
+ description: The ref (branch or tag) of the workflow file to use
+ repository_id:
+ type: integer
+ description: The ID of the repository where the workflow is defined
+ sha:
+ type: string
+ description: The commit SHA of the workflow file to use
+ required:
+ - path
+ - repository_id
+ repository-rule-workflows:
+ title: workflows
+ description: Require all changes made to a targeted branch to pass the specified
+ workflows before they can be merged.
+ type: object
+ required:
+ - type
+ properties:
+ type:
+ type: string
+ enum:
+ - workflows
+ parameters:
+ type: object
+ properties:
+ workflows:
+ type: array
+ description: Workflows that must pass for this rule to pass.
+ items:
+ "$ref": "#/components/schemas/repository-rule-params-workflow-file-reference"
+ required:
+ - workflows
+ repository-rule-params-code-scanning-tool:
+ title: CodeScanningTool
+ description: A tool that must provide code scanning results for this rule to
+ pass.
+ type: object
+ properties:
+ alerts_threshold:
+ type: string
+ description: The severity level at which code scanning results that raise
+ alerts block a reference update. For more information on alert severity
+ levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
+ enum:
+ - none
+ - errors
+ - errors_and_warnings
+ - all
+ security_alerts_threshold:
+ type: string
+ description: The severity level at which code scanning results that raise
+ security alerts block a reference update. For more information on security
+ severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
+ enum:
+ - none
+ - critical
+ - high_or_higher
+ - medium_or_higher
+ - all
+ tool:
+ type: string
+ description: The name of a code scanning tool
+ required:
+ - alerts_threshold
+ - security_alerts_threshold
+ - tool
+ repository-rule:
+ title: Repository Rule
+ type: object
+ description: A repository rule.
+ oneOf:
+ - "$ref": "#/components/schemas/repository-rule-creation"
+ - "$ref": "#/components/schemas/repository-rule-update"
+ - "$ref": "#/components/schemas/repository-rule-deletion"
+ - "$ref": "#/components/schemas/repository-rule-required-linear-history"
+ - "$ref": "#/components/schemas/repository-rule-required-deployments"
+ - "$ref": "#/components/schemas/repository-rule-required-signatures"
+ - "$ref": "#/components/schemas/repository-rule-pull-request"
+ - "$ref": "#/components/schemas/repository-rule-required-status-checks"
+ - "$ref": "#/components/schemas/repository-rule-non-fast-forward"
+ - "$ref": "#/components/schemas/repository-rule-commit-message-pattern"
+ - "$ref": "#/components/schemas/repository-rule-commit-author-email-pattern"
+ - "$ref": "#/components/schemas/repository-rule-committer-email-pattern"
+ - "$ref": "#/components/schemas/repository-rule-branch-name-pattern"
+ - "$ref": "#/components/schemas/repository-rule-tag-name-pattern"
+ - "$ref": "#/components/schemas/repository-rule-workflows"
+ repository-ruleset:
+ title: Repository ruleset
+ type: object
+ description: A set of rules to apply when specified conditions are met.
+ required:
+ - id
+ - name
+ - source
+ - enforcement
+ properties:
+ id:
+ type: integer
+ description: The ID of the ruleset
+ name:
+ type: string
+ description: The name of the ruleset
+ target:
+ type: string
+ description: The target of the ruleset
+ enum:
+ - branch
+ - tag
+ source_type:
+ type: string
+ description: The type of the source of the ruleset
+ enum:
+ - Repository
+ - Organization
+ source:
+ type: string
+ description: The name of the source
+ enforcement:
+ "$ref": "#/components/schemas/repository-rule-enforcement"
+ bypass_actors:
+ type: array
+ description: The actors that can bypass the rules in this ruleset
+ items:
+ "$ref": "#/components/schemas/repository-ruleset-bypass-actor"
+ current_user_can_bypass:
+ type: string
+ description: |-
+ The bypass type of the user making the API request for this ruleset. This field is only returned when
+ querying the repository-level endpoint.
+ enum:
+ - always
+ - pull_requests_only
+ - never
+ node_id:
+ type: string
+ _links:
+ type: object
+ properties:
+ self:
+ type: object
+ properties:
+ href:
+ type: string
+ description: The URL of the ruleset
+ html:
+ type: object
+ properties:
+ href:
+ type: string
+ description: The html URL of the ruleset
+ conditions:
+ nullable: true
+ anyOf:
+ - "$ref": "#/components/schemas/repository-ruleset-conditions"
+ - "$ref": "#/components/schemas/org-ruleset-conditions"
+ rules:
+ type: array
+ items:
+ "$ref": "#/components/schemas/repository-rule"
+ created_at:
+ type: string
+ format: date-time
+ updated_at:
+ type: string
+ format: date-time
+ rule-suites:
+ title: Rule Suites
+ description: Response
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: integer
+ description: The unique identifier of the rule insight.
+ actor_id:
+ type: integer
+ description: The number that identifies the user.
+ actor_name:
+ type: string
+ description: The handle for the GitHub user account.
+ before_sha:
+ type: string
+ description: The first commit sha before the push evaluation.
+ after_sha:
+ type: string
+ description: The last commit sha in the push evaluation.
+ ref:
+ type: string
+ description: The ref name that the evaluation ran on.
+ repository_id:
+ type: integer
+ description: The ID of the repository associated with the rule evaluation.
+ repository_name:
+ type: string
+ description: The name of the repository without the `.git` extension.
+ pushed_at:
+ type: string
+ format: date-time
+ example: '2011-01-26T19:06:43Z'
+ result:
+ type: string
+ enum:
+ - pass
+ - fail
+ - bypass
+ description: The result of the rule evaluations for rules with the `active`
+ enforcement status.
+ evaluation_result:
+ type: string
+ enum:
+ - pass
+ - fail
+ description: The result of the rule evaluations for rules with the `active`
+ and `evaluate` enforcement statuses, demonstrating whether rules would
+ pass or fail if all rules in the rule suite were `active`.
+ rule-suite:
+ title: Rule Suite
+ description: Response
+ type: object
+ properties:
+ id:
+ type: integer
+ description: The unique identifier of the rule insight.
+ actor_id:
+ type: integer
+ description: The number that identifies the user.
+ nullable: true
+ actor_name:
+ type: string
+ description: The handle for the GitHub user account.
+ nullable: true
+ before_sha:
+ type: string
+ description: The first commit sha before the push evaluation.
+ after_sha:
+ type: string
+ description: The last commit sha in the push evaluation.
+ ref:
+ type: string
+ description: The ref name that the evaluation ran on.
+ repository_id:
+ type: integer
+ description: The ID of the repository associated with the rule evaluation.
+ repository_name:
+ type: string
+ description: The name of the repository without the `.git` extension.
+ pushed_at:
+ type: string
+ format: date-time
+ example: '2011-01-26T19:06:43Z'
+ result:
+ type: string
+ enum:
+ - pass
+ - fail
+ - bypass
+ description: The result of the rule evaluations for rules with the `active`
+ enforcement status.
+ evaluation_result:
+ type: string
+ enum:
+ - pass
+ - fail
+ description: The result of the rule evaluations for rules with the `active`
+ and `evaluate` enforcement statuses, demonstrating whether rules would
+ pass or fail if all rules in the rule suite were `active`.
+ rule_evaluations:
+ type: array
+ description: Details on the evaluated rules.
+ items:
+ type: object
+ properties:
+ rule_source:
+ type: object
+ properties:
+ type:
+ type: string
+ description: The type of rule source.
+ id:
+ type: integer
+ nullable: true
+ description: The ID of the rule source.
+ name:
+ type: string
+ nullable: true
+ description: The name of the rule source.
+ enforcement:
+ type: string
+ enum:
+ - active
+ - evaluate
+ - deleted ruleset
+ description: The enforcement level of this rule source.
+ result:
+ type: string
+ enum:
+ - pass
+ - fail
+ description: The result of the evaluation of the individual rule.
+ rule_type:
+ type: string
+ description: The type of rule.
+ details:
+ type: string
+ description: Any associated details with the rule evaluation.
+ repository-advisory-vulnerability:
+ description: A product affected by the vulnerability detailed in a repository
+ security advisory.
+ type: object
+ properties:
+ package:
+ description: The name of the package affected by the vulnerability.
+ type: object
+ nullable: true
+ properties:
+ ecosystem:
+ "$ref": "#/components/schemas/security-advisory-ecosystems"
+ name:
+ type: string
+ description: The unique package name within its ecosystem.
+ nullable: true
+ required:
+ - ecosystem
+ - name
+ vulnerable_version_range:
+ type: string
+ description: The range of the package versions affected by the vulnerability.
+ nullable: true
+ patched_versions:
+ type: string
+ description: The package version(s) that resolve the vulnerability.
+ nullable: true
+ vulnerable_functions:
+ type: array
+ description: The functions in the package that are affected.
+ nullable: true
+ items:
+ type: string
+ required:
+ - package
+ - vulnerable_version_range
+ - patched_versions
+ - vulnerable_functions
+ additionalProperties: false
+ repository-advisory-credit:
+ description: A credit given to a user for a repository security advisory.
+ type: object
+ properties:
+ user:
+ "$ref": "#/components/schemas/simple-user"
+ type:
+ "$ref": "#/components/schemas/security-advisory-credit-types"
+ state:
+ type: string
+ description: The state of the user's acceptance of the credit.
+ enum:
+ - accepted
+ - declined
+ - pending
+ required:
+ - user
+ - type
+ - state
+ additionalProperties: false
+ repository-advisory:
+ description: A repository security advisory.
+ type: object
+ properties:
+ ghsa_id:
+ type: string
+ description: The GitHub Security Advisory ID.
+ readOnly: true
+ cve_id:
+ type: string
+ description: The Common Vulnerabilities and Exposures (CVE) ID.
+ nullable: true
+ url:
+ type: string
+ format: uri
+ description: The API URL for the advisory.
+ readOnly: true
html_url:
type: string
format: uri
- example: https://github.com/octocat/Hello-World
+ description: The URL for the advisory.
+ readOnly: true
+ summary:
+ type: string
+ description: A short summary of the advisory.
+ maxLength: 1024
description:
type: string
- example: This your first repo!
+ description: A detailed description of what the advisory entails.
+ maxLength: 65535
nullable: true
- fork:
- type: boolean
+ severity:
+ type: string
+ description: The severity of the advisory.
+ nullable: true
+ enum:
+ - critical
+ - high
+ - medium
+ - low
+ author:
+ readOnly: true
+ nullable: true
+ description: The author of the advisory.
+ allOf:
+ - "$ref": "#/components/schemas/simple-user"
+ publisher:
+ readOnly: true
+ nullable: true
+ description: The publisher of the advisory.
+ allOf:
+ - "$ref": "#/components/schemas/simple-user"
+ identifiers:
+ type: array
+ items:
+ type: object
+ properties:
+ type:
+ type: string
+ description: The type of identifier.
+ enum:
+ - CVE
+ - GHSA
+ value:
+ type: string
+ description: The identifier value.
+ required:
+ - type
+ - value
+ readOnly: true
+ state:
+ type: string
+ description: The state of the advisory.
+ enum:
+ - published
+ - closed
+ - withdrawn
+ - draft
+ - triage
+ created_at:
+ type: string
+ format: date-time
+ description: The date and time of when the advisory was created, in ISO
+ 8601 format.
+ readOnly: true
+ nullable: true
+ updated_at:
+ type: string
+ format: date-time
+ description: The date and time of when the advisory was last updated, in
+ ISO 8601 format.
+ readOnly: true
+ nullable: true
+ published_at:
+ type: string
+ format: date-time
+ description: The date and time of when the advisory was published, in ISO
+ 8601 format.
+ readOnly: true
+ nullable: true
+ closed_at:
+ type: string
+ format: date-time
+ description: The date and time of when the advisory was closed, in ISO 8601
+ format.
+ readOnly: true
+ nullable: true
+ withdrawn_at:
+ type: string
+ format: date-time
+ description: The date and time of when the advisory was withdrawn, in ISO
+ 8601 format.
+ readOnly: true
+ nullable: true
+ submission:
+ type: object
+ nullable: true
+ readOnly: true
+ properties:
+ accepted:
+ type: boolean
+ description: Whether a private vulnerability report was accepted by
+ the repository's administrators.
+ readOnly: true
+ required:
+ - accepted
+ vulnerabilities:
+ type: array
+ nullable: true
+ items:
+ "$ref": "#/components/schemas/repository-advisory-vulnerability"
+ cvss:
+ type: object
+ nullable: true
+ properties:
+ vector_string:
+ type: string
+ description: The CVSS vector.
+ nullable: true
+ score:
+ type: number
+ description: The CVSS score.
+ minimum: 0
+ maximum: 10
+ nullable: true
+ readOnly: true
+ required:
+ - vector_string
+ - score
+ cwes:
+ type: array
+ nullable: true
+ items:
+ type: object
+ properties:
+ cwe_id:
+ type: string
+ description: The Common Weakness Enumeration (CWE) identifier.
+ name:
+ type: string
+ description: The name of the CWE.
+ readOnly: true
+ required:
+ - cwe_id
+ - name
+ readOnly: true
+ cwe_ids:
+ type: array
+ description: A list of only the CWE IDs.
+ nullable: true
+ items:
+ type: string
+ credits:
+ type: array
+ nullable: true
+ items:
+ type: object
+ properties:
+ login:
+ type: string
+ description: The username of the user credited.
+ type:
+ "$ref": "#/components/schemas/security-advisory-credit-types"
+ credits_detailed:
+ type: array
+ nullable: true
+ items:
+ "$ref": "#/components/schemas/repository-advisory-credit"
+ readOnly: true
+ collaborating_users:
+ type: array
+ description: A list of users that collaborate on the advisory.
+ nullable: true
+ items:
+ "$ref": "#/components/schemas/simple-user"
+ collaborating_teams:
+ type: array
+ description: A list of teams that collaborate on the advisory.
+ nullable: true
+ items:
+ "$ref": "#/components/schemas/team"
+ private_fork:
+ readOnly: true
+ nullable: true
+ description: A temporary private fork of the advisory's repository for collaborating
+ on a fix.
+ allOf:
+ - "$ref": "#/components/schemas/simple-repository"
+ required:
+ - ghsa_id
+ - cve_id
+ - url
+ - html_url
+ - summary
+ - description
+ - severity
+ - author
+ - publisher
+ - identifiers
+ - state
+ - created_at
+ - updated_at
+ - published_at
+ - closed_at
+ - withdrawn_at
+ - submission
+ - vulnerabilities
+ - cvss
+ - cwes
+ - cwe_ids
+ - credits
+ - credits_detailed
+ - collaborating_users
+ - collaborating_teams
+ - private_fork
+ additionalProperties: false
+ team-simple:
+ title: Team Simple
+ description: Groups of organization members that gives permissions on specified
+ repositories.
+ type: object
+ properties:
+ id:
+ description: Unique identifier of the team
+ type: integer
+ example: 1
+ node_id:
+ type: string
+ example: MDQ6VGVhbTE=
url:
+ description: URL for the team
type: string
format: uri
- example: https://api.github.com/repos/octocat/Hello-World
- archive_url:
+ example: https://api.github.com/organizations/1/team/1
+ members_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url:
+ example: https://api.github.com/organizations/1/team/1/members{/member}
+ name:
+ description: Name of the team
type: string
- example: http://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url:
+ example: Justice League
+ description:
+ description: Description of the team
type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url:
+ nullable: true
+ example: A great team.
+ permission:
+ description: Permission that the team will have for its repositories
type: string
- example: http://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url:
+ example: admin
+ privacy:
+ description: The level of privacy this team should have
type: string
- example: http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url:
+ example: closed
+ notification_setting:
+ description: The notification setting the team has set
type: string
- example: http://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url:
+ example: notifications_enabled
+ html_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url:
+ format: uri
+ example: https://github.com/orgs/rails/teams/core
+ repositories_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url:
+ format: uri
+ example: https://api.github.com/organizations/1/team/1/repos
+ slug:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url:
+ example: justice-league
+ ldap_dn:
+ description: Distinguished Name (DN) that team maps to within LDAP environment
+ example: uid=example,ou=users,dc=github,dc=com
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url:
+ required:
+ - id
+ - node_id
+ - url
+ - members_url
+ - name
+ - description
+ - permission
+ - html_url
+ - repositories_url
+ - slug
+ actions-billing-usage:
+ type: object
+ properties:
+ total_minutes_used:
+ type: integer
+ description: The sum of the free and paid GitHub Actions minutes used.
+ total_paid_minutes_used:
+ type: integer
+ description: The total paid GitHub Actions minutes used.
+ included_minutes:
+ type: integer
+ description: The amount of free GitHub Actions minutes available.
+ minutes_used_breakdown:
+ type: object
+ properties:
+ UBUNTU:
+ type: integer
+ description: Total minutes used on Ubuntu runner machines.
+ MACOS:
+ type: integer
+ description: Total minutes used on macOS runner machines.
+ WINDOWS:
+ type: integer
+ description: Total minutes used on Windows runner machines.
+ ubuntu_4_core:
+ type: integer
+ description: Total minutes used on Ubuntu 4 core runner machines.
+ ubuntu_8_core:
+ type: integer
+ description: Total minutes used on Ubuntu 8 core runner machines.
+ ubuntu_16_core:
+ type: integer
+ description: Total minutes used on Ubuntu 16 core runner machines.
+ ubuntu_32_core:
+ type: integer
+ description: Total minutes used on Ubuntu 32 core runner machines.
+ ubuntu_64_core:
+ type: integer
+ description: Total minutes used on Ubuntu 64 core runner machines.
+ windows_4_core:
+ type: integer
+ description: Total minutes used on Windows 4 core runner machines.
+ windows_8_core:
+ type: integer
+ description: Total minutes used on Windows 8 core runner machines.
+ windows_16_core:
+ type: integer
+ description: Total minutes used on Windows 16 core runner machines.
+ windows_32_core:
+ type: integer
+ description: Total minutes used on Windows 32 core runner machines.
+ windows_64_core:
+ type: integer
+ description: Total minutes used on Windows 64 core runner machines.
+ macos_12_core:
+ type: integer
+ description: Total minutes used on macOS 12 core runner machines.
+ total:
+ type: integer
+ description: Total minutes used on all runner machines.
+ required:
+ - total_minutes_used
+ - total_paid_minutes_used
+ - included_minutes
+ - minutes_used_breakdown
+ packages-billing-usage:
+ type: object
+ properties:
+ total_gigabytes_bandwidth_used:
+ type: integer
+ description: Sum of the free and paid storage space (GB) for GitHuub Packages.
+ total_paid_gigabytes_bandwidth_used:
+ type: integer
+ description: Total paid storage space (GB) for GitHuub Packages.
+ included_gigabytes_bandwidth:
+ type: integer
+ description: Free storage space (GB) for GitHub Packages.
+ required:
+ - total_gigabytes_bandwidth_used
+ - total_paid_gigabytes_bandwidth_used
+ - included_gigabytes_bandwidth
+ combined-billing-usage:
+ type: object
+ properties:
+ days_left_in_billing_cycle:
+ type: integer
+ description: Numbers of days left in billing cycle.
+ estimated_paid_storage_for_month:
+ type: integer
+ description: Estimated storage space (GB) used in billing cycle.
+ estimated_storage_for_month:
+ type: integer
+ description: Estimated sum of free and paid storage space (GB) used in billing
+ cycle.
+ required:
+ - days_left_in_billing_cycle
+ - estimated_paid_storage_for_month
+ - estimated_storage_for_month
+ team-organization:
+ title: Team Organization
+ description: Team Organization
+ type: object
+ properties:
+ login:
+ type: string
+ example: github
+ id:
+ type: integer
+ example: 1
+ node_id:
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url:
+ example: MDEyOk9yZ2FuaXphdGlvbjE=
+ url:
type: string
format: uri
- example: http://api.github.com/repos/octocat/Hello-World/downloads
- events_url:
+ example: https://api.github.com/orgs/github
+ repos_url:
type: string
format: uri
- example: http://api.github.com/repos/octocat/Hello-World/events
- forks_url:
+ example: https://api.github.com/orgs/github/repos
+ events_url:
type: string
format: uri
- example: http://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url:
- type: string
- example: git:github.com/octocat/Hello-World.git
- issue_comment_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url:
+ example: https://api.github.com/orgs/github/events
+ hooks_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ example: https://api.github.com/orgs/github/hooks
issues_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/languages
- merges_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/merges
- milestones_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url:
- type: string
- example: http://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url:
+ example: https://api.github.com/orgs/github/issues
+ members_url:
type: string
- example: git@github.com:octocat/Hello-World.git
- stargazers_url:
+ example: https://api.github.com/orgs/github/members{/member}
+ public_members_url:
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url:
+ example: https://api.github.com/orgs/github/public_members{/member}
+ avatar_url:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url:
+ example: https://github.com/images/error/octocat_happy.gif
+ description:
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url:
+ example: A great organization
+ nullable: true
+ name:
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/subscription
- tags_url:
+ example: github
+ company:
type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/tags
- teams_url:
+ example: GitHub
+ blog:
type: string
format: uri
- example: http://api.github.com/repos/octocat/Hello-World/teams
- trees_url:
+ example: https://github.com/blog
+ location:
type: string
- example: http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url:
+ example: San Francisco
+ email:
type: string
- example: https://github.com/octocat/Hello-World.git
- mirror_url:
+ format: email
+ example: octocat@github.com
+ twitter_username:
type: string
- format: uri
- example: git:git.example.com/octocat/Hello-World
+ example: github
nullable: true
- hooks_url:
- type: string
- format: uri
- example: http://api.github.com/repos/octocat/Hello-World/hooks
- svn_url:
+ is_verified:
+ type: boolean
+ example: true
+ has_organization_projects:
+ type: boolean
+ example: true
+ has_repository_projects:
+ type: boolean
+ example: true
+ public_repos:
+ type: integer
+ example: 2
+ public_gists:
+ type: integer
+ example: 1
+ followers:
+ type: integer
+ example: 20
+ following:
+ type: integer
+ example: 0
+ html_url:
type: string
format: uri
- example: https://svn.github.com/octocat/Hello-World
- homepage:
+ example: https://github.com/octocat
+ created_at:
type: string
- format: uri
- example: https://github.com
- nullable: true
- language:
+ format: date-time
+ example: '2008-01-14T04:33:35Z'
+ type:
type: string
- nullable: true
- forks_count:
+ example: Organization
+ total_private_repos:
type: integer
- example: 9
- stargazers_count:
+ example: 100
+ owned_private_repos:
type: integer
- example: 80
- watchers_count:
+ example: 100
+ private_gists:
type: integer
- example: 80
- size:
+ example: 81
+ nullable: true
+ disk_usage:
type: integer
- example: 108
- default_branch:
- description: The default branch of the repository.
- type: string
- example: master
- open_issues_count:
+ example: 10000
+ nullable: true
+ collaborators:
type: integer
- example: 0
- is_template:
- description: Whether this repository acts as a template that can be used
- to generate new repositories.
- default: false
+ example: 8
+ nullable: true
+ billing_email:
+ type: string
+ format: email
+ example: org@example.com
+ nullable: true
+ plan:
+ type: object
+ properties:
+ name:
+ type: string
+ space:
+ type: integer
+ private_repos:
+ type: integer
+ filled_seats:
+ type: integer
+ seats:
+ type: integer
+ required:
+ - name
+ - space
+ - private_repos
+ default_repository_permission:
+ type: string
+ nullable: true
+ members_can_create_repositories:
type: boolean
example: true
- topics:
- type: array
- items:
- type: string
- has_issues:
- description: Whether issues are enabled.
- default: true
+ nullable: true
+ two_factor_requirement_enabled:
type: boolean
example: true
- has_projects:
- description: Whether projects are enabled.
- default: true
+ nullable: true
+ members_allowed_repository_creation_type:
+ type: string
+ example: all
+ members_can_create_public_repositories:
type: boolean
example: true
- has_wiki:
- description: Whether the wiki is enabled.
- default: true
+ members_can_create_private_repositories:
type: boolean
example: true
- has_pages:
- type: boolean
- has_downloads:
- description: Whether downloads are enabled.
- default: true
+ members_can_create_internal_repositories:
type: boolean
example: true
- archived:
- description: Whether the repository is archived.
- default: false
- type: boolean
- disabled:
- type: boolean
- description: Returns whether or not this repository disabled.
- visibility:
- description: 'The repository visibility: public, private, or internal.'
- default: public
- type: string
- pushed_at:
- type: string
- format: date-time
- example: '2011-01-26T19:06:43Z'
- nullable: true
- created_at:
- type: string
- format: date-time
- example: '2011-01-26T19:01:12Z'
- nullable: true
- updated_at:
- type: string
- format: date-time
- example: '2011-01-26T19:14:43Z'
- nullable: true
- allow_rebase_merge:
- description: Whether to allow rebase merges for pull requests.
- default: true
+ members_can_create_pages:
type: boolean
example: true
- template_repository:
- "$ref": "#/components/schemas/nullable-repository"
- temp_clone_token:
- type: string
- allow_squash_merge:
- description: Whether to allow squash merges for pull requests.
- default: true
+ members_can_create_public_pages:
type: boolean
example: true
- allow_auto_merge:
- description: Whether to allow Auto-merge to be used on pull requests.
- default: false
- type: boolean
- example: false
- delete_branch_on_merge:
- description: Whether to delete head branches when pull requests are merged
- default: false
- type: boolean
- example: false
- allow_merge_commit:
- description: Whether to allow merge commits for pull requests.
- default: true
+ members_can_create_private_pages:
type: boolean
example: true
- allow_forking:
- description: Whether to allow forking this repo
- default: false
+ members_can_fork_private_repositories:
type: boolean
example: false
+ nullable: true
web_commit_signoff_required:
- description: Whether to require contributors to sign off on web-based commits
- default: false
type: boolean
example: false
- subscribers_count:
- type: integer
- network_count:
- type: integer
- open_issues:
- type: integer
- watchers:
- type: integer
- master_branch:
+ updated_at:
+ type: string
+ format: date-time
+ archived_at:
type: string
+ format: date-time
+ nullable: true
required:
- - archive_url
- - assignees_url
- - blobs_url
- - branches_url
- - collaborators_url
- - comments_url
- - commits_url
- - compare_url
- - contents_url
- - contributors_url
- - deployments_url
- - description
- - downloads_url
- - events_url
- - fork
- - forks_url
- - full_name
- - git_commits_url
- - git_refs_url
- - git_tags_url
- - hooks_url
- - html_url
+ - login
+ - url
- id
- node_id
- - issue_comment_url
- - issue_events_url
+ - repos_url
+ - events_url
+ - hooks_url
- issues_url
- - keys_url
- - labels_url
- - languages_url
- - merges_url
- - milestones_url
- - name
- - notifications_url
- - owner
- - private
- - pulls_url
- - releases_url
- - stargazers_url
- - statuses_url
- - subscribers_url
- - subscription_url
- - tags_url
- - teams_url
- - trees_url
- - url
- - clone_url
- - default_branch
- - forks
- - forks_count
- - git_url
- - has_downloads
- - has_issues
- - has_projects
- - has_wiki
- - has_pages
- - homepage
- - language
- - archived
- - disabled
- - mirror_url
- - open_issues
- - open_issues_count
- - license
- - pushed_at
- - size
- - ssh_url
- - stargazers_count
- - svn_url
- - watchers
- - watchers_count
+ - members_url
+ - public_members_url
+ - avatar_url
+ - description
+ - html_url
+ - has_organization_projects
+ - has_repository_projects
+ - public_repos
+ - public_gists
+ - followers
+ - following
+ - type
- created_at
- updated_at
- project-card:
- title: Project Card
- description: Project cards represent a scope of work.
+ - archived_at
+ team-full:
+ title: Full Team
+ description: Groups of organization members that gives permissions on specified
+ repositories.
type: object
properties:
- url:
- type: string
- format: uri
- example: https://api.github.com/projects/columns/cards/1478
id:
- description: The project card's ID
+ description: Unique identifier of the team
example: 42
type: integer
node_id:
type: string
- example: MDExOlByb2plY3RDYXJkMTQ3OA==
- note:
+ example: MDQ6VGVhbTE=
+ url:
+ description: URL for the team
+ example: https://api.github.com/organizations/1/team/1
type: string
- example: Add payload for delete Project column
+ format: uri
+ html_url:
+ type: string
+ format: uri
+ example: https://github.com/orgs/rails/teams/core
+ name:
+ description: Name of the team
+ example: Developers
+ type: string
+ slug:
+ type: string
+ example: justice-league
+ description:
+ type: string
+ example: A great team.
nullable: true
- creator:
- "$ref": "#/components/schemas/nullable-simple-user"
- created_at:
+ privacy:
+ description: The level of privacy this team should have
type: string
- format: date-time
- example: '2016-09-05T14:21:06Z'
- updated_at:
+ enum:
+ - closed
+ - secret
+ example: closed
+ notification_setting:
+ description: The notification setting the team has set
type: string
- format: date-time
- example: '2016-09-05T14:20:22Z'
- archived:
- description: Whether or not the card is archived
- example: false
- type: boolean
- column_name:
+ enum:
+ - notifications_enabled
+ - notifications_disabled
+ example: notifications_enabled
+ permission:
+ description: Permission that the team will have for its repositories
+ example: push
type: string
- project_id:
+ members_url:
type: string
- column_url:
+ example: https://api.github.com/organizations/1/team/1/members{/member}
+ repositories_url:
type: string
format: uri
- example: https://api.github.com/projects/columns/367
- content_url:
+ example: https://api.github.com/organizations/1/team/1/repos
+ parent:
+ "$ref": "#/components/schemas/nullable-team-simple"
+ members_count:
+ type: integer
+ example: 3
+ repos_count:
+ type: integer
+ example: 10
+ created_at:
type: string
- format: uri
- example: https://api.github.com/repos/api-playground/projects-test/issues/3
- project_url:
+ format: date-time
+ example: '2017-07-14T16:53:42Z'
+ updated_at:
+ type: string
+ format: date-time
+ example: '2017-08-17T12:37:15Z'
+ organization:
+ "$ref": "#/components/schemas/team-organization"
+ ldap_dn:
+ description: Distinguished Name (DN) that team maps to within LDAP environment
+ example: uid=example,ou=users,dc=github,dc=com
type: string
- format: uri
- example: https://api.github.com/projects/120
required:
- id
- node_id
- - note
- url
- - column_url
- - project_url
- - creator
+ - members_url
+ - name
+ - description
+ - permission
+ - html_url
+ - repositories_url
+ - slug
- created_at
- updated_at
- project-column:
- title: Project Column
- description: Project columns contain cards of work.
+ - members_count
+ - repos_count
+ - organization
+ team-discussion:
+ title: Team Discussion
+ description: A team discussion is a persistent record of a free-form conversation
+ within a team.
type: object
properties:
- url:
+ author:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ body:
+ description: The main text of the discussion.
+ example: Please suggest improvements to our workflow in comments.
type: string
- format: uri
- example: https://api.github.com/projects/columns/367
- project_url:
+ body_html:
+ type: string
+ example: "Hi! This is an area for us to collaborate as a team
"
+ body_version:
+ description: The current version of the body content. If provided, this
+ update operation will be rejected if the given version does not match
+ the latest version on the server.
+ example: 0307116bbf7ced493b8d8a346c650b71
+ type: string
+ comments_count:
+ type: integer
+ example: 0
+ comments_url:
type: string
format: uri
- example: https://api.github.com/projects/120
- cards_url:
+ example: https://api.github.com/organizations/1/team/2343027/discussions/1/comments
+ created_at:
+ type: string
+ format: date-time
+ example: '2018-01-25T18:56:31Z'
+ last_edited_at:
+ type: string
+ format: date-time
+ nullable: true
+ html_url:
type: string
format: uri
- example: https://api.github.com/projects/columns/367/cards
- id:
- description: The unique identifier of the project column
+ example: https://github.com/orgs/github/teams/justice-league/discussions/1
+ node_id:
+ type: string
+ example: MDE0OlRlYW1EaXNjdXNzaW9uMQ==
+ number:
+ description: The unique sequence number of a team discussion.
example: 42
type: integer
- node_id:
+ pinned:
+ description: Whether or not this discussion should be pinned for easy retrieval.
+ example: true
+ type: boolean
+ private:
+ description: Whether or not this discussion should be restricted to team
+ members and organization owners.
+ example: true
+ type: boolean
+ team_url:
type: string
- example: MDEzOlByb2plY3RDb2x1bW4zNjc=
- name:
- description: Name of the project column
- example: Remaining tasks
+ format: uri
+ example: https://api.github.com/organizations/1/team/2343027
+ title:
+ description: The title of the discussion.
+ example: How can we improve our workflow?
+ type: string
+ updated_at:
+ type: string
+ format: date-time
+ example: '2018-01-25T18:56:31Z'
+ url:
+ type: string
+ format: uri
+ example: https://api.github.com/organizations/1/team/2343027/discussions/1
+ reactions:
+ "$ref": "#/components/schemas/reaction-rollup"
+ required:
+ - author
+ - body
+ - body_html
+ - body_version
+ - comments_count
+ - comments_url
+ - created_at
+ - last_edited_at
+ - html_url
+ - pinned
+ - private
+ - node_id
+ - number
+ - team_url
+ - title
+ - updated_at
+ - url
+ team-discussion-comment:
+ title: Team Discussion Comment
+ description: A reply to a discussion within a team.
+ type: object
+ properties:
+ author:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ body:
+ description: The main text of the comment.
+ example: I agree with this suggestion.
+ type: string
+ body_html:
+ type: string
+ example: "Do you like apples?
"
+ body_version:
+ description: The current version of the body content. If provided, this
+ update operation will be rejected if the given version does not match
+ the latest version on the server.
+ example: 0307116bbf7ced493b8d8a346c650b71
type: string
created_at:
type: string
format: date-time
- example: '2016-09-05T14:18:44Z'
+ example: '2018-01-15T23:53:58Z'
+ last_edited_at:
+ type: string
+ format: date-time
+ nullable: true
+ discussion_url:
+ type: string
+ format: uri
+ example: https://api.github.com/organizations/1/team/2403582/discussions/1
+ html_url:
+ type: string
+ format: uri
+ example: https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
+ node_id:
+ type: string
+ example: MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
+ number:
+ description: The unique sequence number of a team discussion comment.
+ example: 42
+ type: integer
updated_at:
type: string
format: date-time
- example: '2016-09-05T14:22:28Z'
+ example: '2018-01-15T23:53:58Z'
+ url:
+ type: string
+ format: uri
+ example: https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
+ reactions:
+ "$ref": "#/components/schemas/reaction-rollup"
required:
- - id
- - node_id
- - url
- - project_url
- - cards_url
- - name
+ - author
+ - body
+ - body_html
+ - body_version
- created_at
+ - last_edited_at
+ - discussion_url
+ - html_url
+ - node_id
+ - number
- updated_at
- project-collaborator-permission:
- title: Project Collaborator Permission
- description: Project Collaborator Permission
+ - url
+ reaction:
+ title: Reaction
+ description: Reactions to conversations provide a way to help people express
+ their feelings more simply and effectively.
type: object
properties:
- permission:
+ id:
+ type: integer
+ example: 1
+ node_id:
type: string
+ example: MDg6UmVhY3Rpb24x
user:
"$ref": "#/components/schemas/nullable-simple-user"
+ content:
+ description: The reaction to use
+ example: heart
+ type: string
+ enum:
+ - "+1"
+ - "-1"
+ - laugh
+ - confused
+ - heart
+ - hooray
+ - rocket
+ - eyes
+ created_at:
+ type: string
+ format: date-time
+ example: '2016-05-20T20:09:31Z'
required:
- - permission
+ - id
+ - node_id
- user
- rate-limit:
- title: Rate Limit
- type: object
- properties:
- limit:
- type: integer
- remaining:
- type: integer
- reset:
- type: integer
- used:
- type: integer
- required:
- - limit
- - remaining
- - reset
- - used
- rate-limit-overview:
- title: Rate Limit Overview
- description: Rate Limit Overview
+ - content
+ - created_at
+ team-membership:
+ title: Team Membership
+ description: Team Membership
type: object
properties:
- resources:
- type: object
- properties:
- core:
- "$ref": "#/components/schemas/rate-limit"
- graphql:
- "$ref": "#/components/schemas/rate-limit"
- search:
- "$ref": "#/components/schemas/rate-limit"
- code_search:
- "$ref": "#/components/schemas/rate-limit"
- source_import:
- "$ref": "#/components/schemas/rate-limit"
- integration_manifest:
- "$ref": "#/components/schemas/rate-limit"
- code_scanning_upload:
- "$ref": "#/components/schemas/rate-limit"
- actions_runner_registration:
- "$ref": "#/components/schemas/rate-limit"
- scim:
- "$ref": "#/components/schemas/rate-limit"
- dependency_snapshots:
- "$ref": "#/components/schemas/rate-limit"
- required:
- - core
- - search
- rate:
- "$ref": "#/components/schemas/rate-limit"
+ url:
+ type: string
+ format: uri
+ role:
+ description: The role of the user in the team.
+ enum:
+ - member
+ - maintainer
+ default: member
+ example: member
+ type: string
+ state:
+ description: The state of the user's membership in the team.
+ type: string
+ enum:
+ - active
+ - pending
required:
- - rate
- - resources
- code-of-conduct-simple:
- title: Code Of Conduct Simple
- description: Code of Conduct Simple
+ - role
+ - state
+ - url
+ team-project:
+ title: Team Project
+ description: A team's access to a project.
type: object
properties:
+ owner_url:
+ type: string
url:
type: string
- format: uri
- example: https://api.github.com/repos/github/docs/community/code_of_conduct
- key:
+ html_url:
+ type: string
+ columns_url:
+ type: string
+ id:
+ type: integer
+ node_id:
type: string
- example: citizen_code_of_conduct
name:
type: string
- example: Citizen Code of Conduct
- html_url:
+ body:
type: string
nullable: true
- format: uri
- example: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
+ number:
+ type: integer
+ state:
+ type: string
+ creator:
+ "$ref": "#/components/schemas/simple-user"
+ created_at:
+ type: string
+ updated_at:
+ type: string
+ organization_permission:
+ description: The organization permission for this project. Only present
+ when owner is an organization.
+ type: string
+ private:
+ description: Whether the project is private or not. Only present when owner
+ is an organization.
+ type: boolean
+ permissions:
+ type: object
+ properties:
+ read:
+ type: boolean
+ write:
+ type: boolean
+ admin:
+ type: boolean
+ required:
+ - read
+ - write
+ - admin
required:
+ - owner_url
- url
- - key
- - name
- html_url
- full-repository:
- title: Full Repository
- description: Full Repository
+ - columns_url
+ - id
+ - node_id
+ - name
+ - body
+ - number
+ - state
+ - creator
+ - created_at
+ - updated_at
+ - permissions
+ team-repository:
+ title: Team Repository
+ description: A team's access to a repository.
type: object
properties:
id:
+ description: Unique identifier of the repository
+ example: 42
type: integer
- example: 1296269
node_id:
type: string
example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
name:
+ description: The name of the repository.
type: string
- example: Hello-World
+ example: Team Environment
full_name:
type: string
example: octocat/Hello-World
+ license:
+ "$ref": "#/components/schemas/nullable-license-simple"
+ forks:
+ type: integer
+ permissions:
+ type: object
+ properties:
+ admin:
+ type: boolean
+ pull:
+ type: boolean
+ triage:
+ type: boolean
+ push:
+ type: boolean
+ maintain:
+ type: boolean
+ required:
+ - admin
+ - pull
+ - push
+ role_name:
+ type: string
+ example: admin
owner:
- "$ref": "#/components/schemas/simple-user"
+ "$ref": "#/components/schemas/nullable-simple-user"
private:
+ description: Whether the repository is private or public.
+ default: false
type: boolean
html_url:
type: string
@@ -70946,193 +73233,120 @@ components:
type: integer
example: 80
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
type: integer
example: 108
default_branch:
+ description: The default branch of the repository.
type: string
example: master
open_issues_count:
type: integer
example: 0
is_template:
+ description: Whether this repository acts as a template that can be used
+ to generate new repositories.
+ default: false
type: boolean
example: true
topics:
type: array
items:
type: string
- example:
- - octocat
- - atom
- - electron
- - API
has_issues:
+ description: Whether issues are enabled.
+ default: true
type: boolean
example: true
has_projects:
+ description: Whether projects are enabled.
+ default: true
type: boolean
example: true
has_wiki:
+ description: Whether the wiki is enabled.
+ default: true
type: boolean
example: true
has_pages:
type: boolean
has_downloads:
- type: boolean
- example: true
- has_discussions:
+ description: Whether downloads are enabled.
+ default: true
type: boolean
example: true
archived:
+ description: Whether the repository is archived.
+ default: false
type: boolean
disabled:
type: boolean
description: Returns whether or not this repository disabled.
visibility:
description: 'The repository visibility: public, private, or internal.'
+ default: public
type: string
- example: public
pushed_at:
type: string
format: date-time
example: '2011-01-26T19:06:43Z'
+ nullable: true
created_at:
type: string
format: date-time
example: '2011-01-26T19:01:12Z'
+ nullable: true
updated_at:
type: string
format: date-time
example: '2011-01-26T19:14:43Z'
- permissions:
- type: object
- properties:
- admin:
- type: boolean
- maintain:
- type: boolean
- push:
- type: boolean
- triage:
- type: boolean
- pull:
- type: boolean
- required:
- - admin
- - pull
- - push
+ nullable: true
allow_rebase_merge:
+ description: Whether to allow rebase merges for pull requests.
+ default: true
type: boolean
example: true
- template_repository:
- "$ref": "#/components/schemas/nullable-repository"
temp_clone_token:
type: string
- nullable: true
allow_squash_merge:
+ description: Whether to allow squash merges for pull requests.
+ default: true
type: boolean
example: true
allow_auto_merge:
+ description: Whether to allow Auto-merge to be used on pull requests.
+ default: false
type: boolean
example: false
delete_branch_on_merge:
+ description: Whether to delete head branches when pull requests are merged
+ default: false
type: boolean
example: false
allow_merge_commit:
+ description: Whether to allow merge commits for pull requests.
+ default: true
type: boolean
example: true
- allow_update_branch:
- type: boolean
- example: true
- use_squash_pr_title_as_default:
- type: boolean
- example: false
- squash_merge_commit_title:
- type: string
- example: PR_TITLE
- enum:
- - PR_TITLE
- - COMMIT_OR_PR_TITLE
- description: |-
- The default value for a squash merge commit title:
-
- - `PR_TITLE` - default to the pull request's title.
- - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).
- squash_merge_commit_message:
- type: string
- example: PR_BODY
- enum:
- - PR_BODY
- - COMMIT_MESSAGES
- - BLANK
- description: |-
- The default value for a squash merge commit message:
-
- - `PR_BODY` - default to the pull request's body.
- - `COMMIT_MESSAGES` - default to the branch's commit messages.
- - `BLANK` - default to a blank commit message.
- merge_commit_title:
- type: string
- example: PR_TITLE
- enum:
- - PR_TITLE
- - MERGE_MESSAGE
- description: |-
- The default value for a merge commit title.
-
- - `PR_TITLE` - default to the pull request's title.
- - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
- merge_commit_message:
- type: string
- example: PR_BODY
- enum:
- - PR_BODY
- - PR_TITLE
- - BLANK
- description: |-
- The default value for a merge commit message.
-
- - `PR_TITLE` - default to the pull request's title.
- - `PR_BODY` - default to the pull request's body.
- - `BLANK` - default to a blank commit message.
allow_forking:
+ description: Whether to allow forking this repo
+ default: false
type: boolean
- example: true
+ example: false
web_commit_signoff_required:
+ description: Whether to require contributors to sign off on web-based commits
+ default: false
type: boolean
example: false
subscribers_count:
type: integer
- example: 42
network_count:
type: integer
- example: 0
- license:
- "$ref": "#/components/schemas/nullable-license-simple"
- organization:
- "$ref": "#/components/schemas/nullable-simple-user"
- parent:
- "$ref": "#/components/schemas/repository"
- source:
- "$ref": "#/components/schemas/repository"
- forks:
- type: integer
- master_branch:
- type: string
open_issues:
type: integer
watchers:
type: integer
- anonymous_access_enabled:
- description: Whether anonymous git access is allowed.
- default: true
- type: boolean
- code_of_conduct:
- "$ref": "#/components/schemas/code-of-conduct-simple"
- security_and_analysis:
- "$ref": "#/components/schemas/security-and-analysis"
+ master_branch:
+ type: string
required:
- archive_url
- assignees_url
@@ -71190,7 +73404,6 @@ components:
- has_projects
- has_wiki
- has_pages
- - has_discussions
- homepage
- language
- archived
@@ -71208,8 +73421,176 @@ components:
- watchers_count
- created_at
- updated_at
- - network_count
- - subscribers_count
+ project-card:
+ title: Project Card
+ description: Project cards represent a scope of work.
+ type: object
+ properties:
+ url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/columns/cards/1478
+ id:
+ description: The project card's ID
+ example: 42
+ type: integer
+ node_id:
+ type: string
+ example: MDExOlByb2plY3RDYXJkMTQ3OA==
+ note:
+ type: string
+ example: Add payload for delete Project column
+ nullable: true
+ creator:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ created_at:
+ type: string
+ format: date-time
+ example: '2016-09-05T14:21:06Z'
+ updated_at:
+ type: string
+ format: date-time
+ example: '2016-09-05T14:20:22Z'
+ archived:
+ description: Whether or not the card is archived
+ example: false
+ type: boolean
+ column_name:
+ type: string
+ project_id:
+ type: string
+ column_url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/columns/367
+ content_url:
+ type: string
+ format: uri
+ example: https://api.github.com/repos/api-playground/projects-test/issues/3
+ project_url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/120
+ required:
+ - id
+ - node_id
+ - note
+ - url
+ - column_url
+ - project_url
+ - creator
+ - created_at
+ - updated_at
+ project-column:
+ title: Project Column
+ description: Project columns contain cards of work.
+ type: object
+ properties:
+ url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/columns/367
+ project_url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/120
+ cards_url:
+ type: string
+ format: uri
+ example: https://api.github.com/projects/columns/367/cards
+ id:
+ description: The unique identifier of the project column
+ example: 42
+ type: integer
+ node_id:
+ type: string
+ example: MDEzOlByb2plY3RDb2x1bW4zNjc=
+ name:
+ description: Name of the project column
+ example: Remaining tasks
+ type: string
+ created_at:
+ type: string
+ format: date-time
+ example: '2016-09-05T14:18:44Z'
+ updated_at:
+ type: string
+ format: date-time
+ example: '2016-09-05T14:22:28Z'
+ required:
+ - id
+ - node_id
+ - url
+ - project_url
+ - cards_url
+ - name
+ - created_at
+ - updated_at
+ project-collaborator-permission:
+ title: Project Collaborator Permission
+ description: Project Collaborator Permission
+ type: object
+ properties:
+ permission:
+ type: string
+ user:
+ "$ref": "#/components/schemas/nullable-simple-user"
+ required:
+ - permission
+ - user
+ rate-limit:
+ title: Rate Limit
+ type: object
+ properties:
+ limit:
+ type: integer
+ remaining:
+ type: integer
+ reset:
+ type: integer
+ used:
+ type: integer
+ required:
+ - limit
+ - remaining
+ - reset
+ - used
+ rate-limit-overview:
+ title: Rate Limit Overview
+ description: Rate Limit Overview
+ type: object
+ properties:
+ resources:
+ type: object
+ properties:
+ core:
+ "$ref": "#/components/schemas/rate-limit"
+ graphql:
+ "$ref": "#/components/schemas/rate-limit"
+ search:
+ "$ref": "#/components/schemas/rate-limit"
+ code_search:
+ "$ref": "#/components/schemas/rate-limit"
+ source_import:
+ "$ref": "#/components/schemas/rate-limit"
+ integration_manifest:
+ "$ref": "#/components/schemas/rate-limit"
+ code_scanning_upload:
+ "$ref": "#/components/schemas/rate-limit"
+ actions_runner_registration:
+ "$ref": "#/components/schemas/rate-limit"
+ scim:
+ "$ref": "#/components/schemas/rate-limit"
+ dependency_snapshots:
+ "$ref": "#/components/schemas/rate-limit"
+ required:
+ - core
+ - search
+ rate:
+ "$ref": "#/components/schemas/rate-limit"
+ required:
+ - rate
+ - resources
artifact:
title: Artifact
description: An artifact
@@ -71364,6 +73745,9 @@ components:
- queued
- in_progress
- completed
+ - waiting
+ - requested
+ - pending
conclusion:
description: The outcome of the job.
example: success
@@ -71598,7 +73982,7 @@ components:
Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the
repository.
- `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repos only. `organization` level access allows sharing across the organization.
+ `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization.
enum:
- none
- user
@@ -73396,12 +75780,17 @@ components:
nullable: true
status:
description: The phase of the lifecycle that the check is currently in.
+ Statuses of waiting, requested, and pending are reserved for GitHub Actions
+ check runs.
example: queued
type: string
enum:
- queued
- in_progress
- completed
+ - waiting
+ - requested
+ - pending
conclusion:
type: string
example: neutral
@@ -73621,11 +76010,17 @@ components:
type: string
status:
type: string
+ description: The phase of the lifecycle that the check suite is currently
+ in. Statuses of waiting, requested, and pending are reserved for GitHub
+ Actions check suites.
example: completed
enum:
- queued
- in_progress
- completed
+ - waiting
+ - requested
+ - pending
nullable: true
conclusion:
type: string
@@ -73724,34 +76119,6 @@ components:
- setting
repository:
"$ref": "#/components/schemas/minimal-repository"
- code-scanning-alert-rule-summary:
- type: object
- properties:
- id:
- nullable: true
- type: string
- description: A unique identifier for the rule used to detect the alert.
- name:
- type: string
- description: The name of the rule used to detect the alert.
- tags:
- nullable: true
- type: array
- description: A set of tags applicable for the rule.
- items:
- type: string
- severity:
- nullable: true
- type: string
- description: The severity of the alert.
- enum:
- - none
- - note
- - warning
- - error
- description:
- type: string
- description: A short description of the rule used to detect the alert.
code-scanning-alert-items:
type: object
properties:
@@ -73798,6 +76165,55 @@ components:
- rule
- tool
- most_recent_instance
+ code-scanning-alert-rule:
+ type: object
+ properties:
+ id:
+ nullable: true
+ type: string
+ description: A unique identifier for the rule used to detect the alert.
+ name:
+ type: string
+ description: The name of the rule used to detect the alert.
+ severity:
+ nullable: true
+ type: string
+ description: The severity of the alert.
+ enum:
+ - none
+ - note
+ - warning
+ - error
+ security_severity_level:
+ nullable: true
+ type: string
+ description: The security severity of the alert.
+ enum:
+ - low
+ - medium
+ - high
+ - critical
+ description:
+ type: string
+ description: A short description of the rule used to detect the alert.
+ full_description:
+ type: string
+ description: description of the rule used to detect the alert.
+ tags:
+ nullable: true
+ type: array
+ description: A set of tags applicable for the rule.
+ items:
+ type: string
+ help:
+ nullable: true
+ type: string
+ description: Detailed documentation for the rule as GitHub Flavored Markdown.
+ help_uri:
+ nullable: true
+ type: string
+ description: A link to the documentation for the rule used to detect the
+ alert.
code-scanning-alert:
type: object
properties:
@@ -73988,6 +76404,11 @@ components:
format: uri
description: The URL at which to download the CodeQL database. The `Accept`
header must be set to the value of the `content_type` property.
+ commit_oid:
+ type: string
+ description: The commit SHA of the repository at the time the CodeQL database
+ was created.
+ nullable: true
required:
- id
- name
@@ -74009,7 +76430,7 @@ components:
- configured
- not-configured
languages:
- description: Languages to be analysed.
+ description: Languages to be analyzed.
type: array
items:
type: string
@@ -74047,8 +76468,7 @@ components:
type: object
properties:
state:
- description: Whether code scanning default setup has been configured or
- not.
+ description: The desired state of code scanning default setup.
type: string
enum:
- configured
@@ -74060,9 +76480,7 @@ components:
- default
- extended
languages:
- description: 'CodeQL languages to be analyzed. Supported values are: `c-cpp`,
- `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, `ruby`,
- and `swift`.'
+ description: CodeQL languages to be analyzed.
type: array
items:
type: string
@@ -74075,8 +76493,7 @@ components:
- python
- ruby
- swift
- required:
- - state
+ additionalProperties: false
code-scanning-default-setup-update-response:
description: |-
You can use `run_url` to track the status of the run. This includes a property status and conclusion.
@@ -74089,6 +76506,13 @@ components:
run_url:
description: URL of the corresponding run.
type: string
+ code-scanning-ref-full:
+ type: string
+ description: |-
+ The full Git reference, formatted as `refs/heads/`,
+ `refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.
+ pattern: "^refs/(heads|tags|pull)/.*$"
+ example: refs/heads/main
code-scanning-analysis-sarif-file:
description: A Base64 string representing the SARIF file to upload. You must
first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html)
@@ -74238,6 +76662,18 @@ components:
- memory_in_bytes
- cpus
- prebuild_availability
+ codespaces-permissions-check-for-devcontainer:
+ title: Codespaces Permissions Check
+ description: Permission check result for a given devcontainer config.
+ type: object
+ properties:
+ accepted:
+ description: Whether the user has accepted the permissions defined by the
+ devcontainer config
+ example: true
+ type: boolean
+ required:
+ - accepted
repo-codespaces-secret:
title: Codespaces Secret
description: Set repository secrets for GitHub Codespaces.
@@ -76408,6 +78844,11 @@ components:
node_id:
type: string
example: MDQ6R2F0ZTM3NTU=
+ prevent_self_review:
+ type: boolean
+ example: false
+ description: Whether deployments to this environment can be approved
+ by the user who created the deployment.
type:
type: string
example: required_reviewers
@@ -76456,23 +78897,56 @@ components:
- html_url
- created_at
- updated_at
+ prevent-self-review:
+ type: boolean
+ example: false
+ description: Whether or not a user who created the job is prevented from approving
+ their own job.
deployment-branch-policy:
title: Deployment branch policy
- description: Details of a deployment branch policy.
+ description: Details of a deployment branch or tag policy.
type: object
properties:
id:
- description: The unique identifier of the branch policy.
+ description: The unique identifier of the branch or tag policy.
type: integer
example: 361471
node_id:
type: string
example: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=
name:
- description: The name pattern that branches must match in order to deploy
- to the environment.
+ description: The name pattern that branches or tags must match in order
+ to deploy to the environment.
+ type: string
+ example: release/*
+ type:
+ description: Whether this rule targets a branch or tag.
+ type: string
+ example: branch
+ enum:
+ - branch
+ - tag
+ deployment-branch-policy-name-pattern-with-type:
+ title: Deployment branch and tag policy name pattern
+ type: object
+ properties:
+ name:
+ description: |-
+ The name pattern that branches or tags must match in order to deploy to the environment.
+
+ Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.
+ For more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).
type: string
example: release/*
+ type:
+ description: Whether this rule targets a branch or tag
+ type: string
+ example: branch
+ enum:
+ - branch
+ - tag
+ required:
+ - name
deployment-branch-policy-name-pattern:
title: Deployment branch policy name pattern
type: object
@@ -76911,34 +79385,7 @@ components:
- push
- pull_request
config:
- type: object
- properties:
- email:
- type: string
- example: '"foo@bar.com"'
- password:
- type: string
- example: '"foo"'
- room:
- type: string
- example: '"roomer"'
- subdomain:
- type: string
- example: '"foo"'
- url:
- "$ref": "#/components/schemas/webhook-config-url"
- insecure_ssl:
- "$ref": "#/components/schemas/webhook-config-insecure-ssl"
- content_type:
- "$ref": "#/components/schemas/webhook-config-content-type"
- digest:
- type: string
- example: '"sha256"'
- secret:
- "$ref": "#/components/schemas/webhook-config-secret"
- token:
- type: string
- example: '"abc"'
+ "$ref": "#/components/schemas/webhook-config"
updated_at:
type: string
format: date-time
@@ -79270,11 +81717,17 @@ components:
description: The GitHub Pages deployment status.
type: object
properties:
+ id:
+ oneOf:
+ - type: integer
+ - type: string
+ description: The ID of the GitHub Pages deployment. This is the Git SHA
+ of the deployed commit.
status_url:
type: string
description: The URI to monitor GitHub Pages deployment status.
format: uri
- example: https://api.github.com/repos/github/hello-world/pages/deployments/4fd754f7e594640989b406850d0bc8f06a121251/status
+ example: https://api.github.com/repos/github/hello-world/pages/deployments/4fd754f7e594640989b406850d0bc8f06a121251
page_url:
type: string
description: The URI to the deployed GitHub Pages.
@@ -79286,8 +81739,28 @@ components:
format: uri
example: monalisa-1231a2312sa32-23sda74.drafts.github.io
required:
+ - id
- status_url
- page_url
+ pages-deployment-status:
+ title: GitHub Pages deployment status
+ type: object
+ properties:
+ status:
+ type: string
+ description: The current status of the deployment.
+ enum:
+ - deployment_in_progress
+ - syncing_files
+ - finished_file_sync
+ - updating_pages
+ - purging_cdn
+ - deployment_cancelled
+ - deployment_failed
+ - deployment_content_failed
+ - deployment_attempt_error
+ - deployment_lost
+ - succeed
pages-health-check:
title: Pages Health Check Status
description: Pages Health Check Status
@@ -81088,6 +83561,9 @@ components:
- allOf:
- "$ref": "#/components/schemas/repository-rule-tag-name-pattern"
- "$ref": "#/components/schemas/repository-rule-ruleset-info"
+ - allOf:
+ - "$ref": "#/components/schemas/repository-rule-workflows"
+ - "$ref": "#/components/schemas/repository-rule-ruleset-info"
secret-scanning-alert:
type: object
properties:
@@ -81143,6 +83619,13 @@ components:
description: 'The time that push protection was bypassed in ISO 8601 format:
`YYYY-MM-DDTHH:MM:SSZ`.'
nullable: true
+ validity:
+ type: string
+ description: The token status as of the latest validity check.
+ enum:
+ - active
+ - inactive
+ - unknown
secret-scanning-alert-resolution-comment:
description: An optional comment when closing an alert. Cannot be updated or
deleted. Must be `null` when changing `state` to `open`.
@@ -81195,6 +83678,56 @@ components:
- blob_url
- commit_sha
- commit_url
+ secret-scanning-location-wiki-commit:
+ description: Represents a 'wiki_commit' secret scanning location type. This
+ location type shows that a secret was detected inside a commit to a repository
+ wiki.
+ type: object
+ properties:
+ path:
+ type: string
+ description: The file path of the wiki page
+ example: "/example/Home.md"
+ start_line:
+ type: number
+ description: Line number at which the secret starts in the file
+ end_line:
+ type: number
+ description: Line number at which the secret ends in the file
+ start_column:
+ type: number
+ description: The column at which the secret starts within the start line
+ when the file is interpreted as 8-bit ASCII.
+ end_column:
+ type: number
+ description: The column at which the secret ends within the end line when
+ the file is interpreted as 8-bit ASCII.
+ blob_sha:
+ type: string
+ description: SHA-1 hash ID of the associated blob
+ example: af5626b4a114abcb82d63db7c8082c3c4756e51b
+ page_url:
+ type: string
+ description: The GitHub URL to get the associated wiki page
+ example: https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5
+ commit_sha:
+ type: string
+ description: SHA-1 hash ID of the associated commit
+ example: 302c0b7e200761c9dd9b57e57db540ee0b4293a5
+ commit_url:
+ type: string
+ description: The GitHub URL to get the associated wiki commit
+ example: https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5
+ required:
+ - path
+ - start_line
+ - end_line
+ - start_column
+ - end_column
+ - blob_sha
+ - page_url
+ - commit_sha
+ - commit_url
secret-scanning-location-issue-title:
description: Represents an 'issue_title' secret scanning location type. This
location type shows that a secret was detected in the title of an issue.
@@ -81231,6 +83764,111 @@ components:
example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451
required:
- issue_comment_url
+ secret-scanning-location-discussion-title:
+ description: Represents a 'discussion_title' secret scanning location type.
+ This location type shows that a secret was detected in the title of a discussion.
+ type: object
+ properties:
+ discussion_title_url:
+ type: string
+ format: uri
+ description: The URL to the discussion where the secret was detected.
+ example: https://github.com/community/community/discussions/39082
+ required:
+ - discussion_title_url
+ secret-scanning-location-discussion-body:
+ description: Represents a 'discussion_body' secret scanning location type. This
+ location type shows that a secret was detected in the body of a discussion.
+ type: object
+ properties:
+ discussion_body_url:
+ type: string
+ format: uri
+ description: The URL to the discussion where the secret was detected.
+ example: https://github.com/community/community/discussions/39082#discussion-4566270
+ required:
+ - discussion_body_url
+ secret-scanning-location-discussion-comment:
+ description: Represents a 'discussion_comment' secret scanning location type.
+ This location type shows that a secret was detected in a comment on a discussion.
+ type: object
+ properties:
+ discussion_comment_url:
+ type: string
+ format: uri
+ description: The API URL to get the discussion comment where the secret
+ was detected.
+ example: https://github.com/community/community/discussions/39082#discussioncomment-4158232
+ required:
+ - discussion_comment_url
+ secret-scanning-location-pull-request-title:
+ description: Represents a 'pull_request_title' secret scanning location type.
+ This location type shows that a secret was detected in the title of a pull
+ request.
+ type: object
+ properties:
+ pull_request_title_url:
+ type: string
+ format: uri
+ description: The API URL to get the pull request where the secret was detected.
+ example: https://api.github.com/repos/octocat/Hello-World/pull/2846
+ required:
+ - pull_request_title_url
+ secret-scanning-location-pull-request-body:
+ description: Represents a 'pull_request_body' secret scanning location type.
+ This location type shows that a secret was detected in the body of a pull
+ request.
+ type: object
+ properties:
+ pull_request_body_url:
+ type: string
+ format: uri
+ description: The API URL to get the pull request where the secret was detected.
+ example: https://api.github.com/repos/octocat/Hello-World/pull/2846
+ required:
+ - pull_request_body_url
+ secret-scanning-location-pull-request-comment:
+ description: Represents a 'pull_request_comment' secret scanning location type.
+ This location type shows that a secret was detected in a comment on a pull
+ request.
+ type: object
+ properties:
+ pull_request_comment_url:
+ type: string
+ format: uri
+ description: The API URL to get the pull request comment where the secret
+ was detected.
+ example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451
+ required:
+ - pull_request_comment_url
+ secret-scanning-location-pull-request-review:
+ description: Represents a 'pull_request_review' secret scanning location type.
+ This location type shows that a secret was detected in a review on a pull
+ request.
+ type: object
+ properties:
+ pull_request_review_url:
+ type: string
+ format: uri
+ description: The API URL to get the pull request review where the secret
+ was detected.
+ example: https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80
+ required:
+ - pull_request_review_url
+ secret-scanning-location-pull-request-review-comment:
+ description: Represents a 'pull_request_review_comment' secret scanning location
+ type. This location type shows that a secret was detected in a review comment
+ on a pull request.
+ type: object
+ properties:
+ pull_request_review_comment_url:
+ type: string
+ format: uri
+ description: The API URL to get the pull request review comment where the
+ secret was detected.
+ example: https://api.github.com/repos/octocat/Hello-World/pulls/comments/12
+ required:
+ - pull_request_review_comment_url
secret-scanning-location:
type: object
properties:
@@ -81238,22 +83876,37 @@ components:
type: string
enum:
- commit
+ - wiki_commit
- issue_title
- issue_body
- issue_comment
+ - discussion_title
+ - discussion_body
+ - discussion_comment
+ - pull_request_title
+ - pull_request_body
+ - pull_request_comment
+ - pull_request_review
+ - pull_request_review_comment
description: The location type. Because secrets may be found in different
- types of resources (ie. code, comments, issues), this field identifies
- the type of resource where the secret was found.
+ types of resources (ie. code, comments, issues, pull requests, discussions),
+ this field identifies the type of resource where the secret was found.
example: commit
details:
oneOf:
- "$ref": "#/components/schemas/secret-scanning-location-commit"
+ - "$ref": "#/components/schemas/secret-scanning-location-wiki-commit"
- "$ref": "#/components/schemas/secret-scanning-location-issue-title"
- "$ref": "#/components/schemas/secret-scanning-location-issue-body"
- "$ref": "#/components/schemas/secret-scanning-location-issue-comment"
- required:
- - type
- - details
+ - "$ref": "#/components/schemas/secret-scanning-location-discussion-title"
+ - "$ref": "#/components/schemas/secret-scanning-location-discussion-body"
+ - "$ref": "#/components/schemas/secret-scanning-location-discussion-comment"
+ - "$ref": "#/components/schemas/secret-scanning-location-pull-request-title"
+ - "$ref": "#/components/schemas/secret-scanning-location-pull-request-body"
+ - "$ref": "#/components/schemas/secret-scanning-location-pull-request-comment"
+ - "$ref": "#/components/schemas/secret-scanning-location-pull-request-review"
+ - "$ref": "#/components/schemas/secret-scanning-location-pull-request-review-comment"
repository-advisory-create:
type: object
properties:
@@ -81343,6 +83996,11 @@ components:
description: The CVSS vector that calculates the severity of the advisory.
You must choose between setting this field or `severity`.
nullable: true
+ start_private_fork:
+ type: boolean
+ description: Whether to create a temporary private fork of the repository
+ to collaborate on a fix.
+ default: false
required:
- summary
- description
@@ -81417,6 +84075,11 @@ components:
description: The CVSS vector that calculates the severity of the advisory.
You must choose between setting this field or `severity`.
nullable: true
+ start_private_fork:
+ type: boolean
+ description: Whether to create a temporary private fork of the repository
+ to collaborate on a fix.
+ default: false
required:
- summary
- description
@@ -83884,8 +86547,8 @@ components:
type: integer
example: 80
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
type: integer
example: 108
default_branch:
@@ -83905,6 +86568,12 @@ components:
type: array
items:
type: string
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
has_issues:
description: Whether issues are enabled.
default: true
@@ -84988,7 +87657,7 @@ components:
description: 'A group of pull requests that the merge queue has grouped together
to be merged.
-'
+ '
properties:
head_sha:
description: The SHA of the merge group.
@@ -85231,8 +87900,8 @@ components:
type: integer
example: 80
size:
- description: The size of the repository. Size is calculated hourly. When
- a repository is initially created, the size is 0.
+ description: The size of the repository, in kilobytes. Size is calculated
+ hourly. When a repository is initially created, the size is 0.
type: integer
example: 108
default_branch:
@@ -85252,6 +87921,12 @@ components:
type: array
items:
type: string
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
has_issues:
description: Whether issues are enabled.
default: true
@@ -86032,6 +88707,13 @@ components:
secret_type:
type: string
description: The type of secret that secret scanning detected.
+ validity:
+ type: string
+ description: The token status as of the latest validity check.
+ enum:
+ - active
+ - inactive
+ - unknown
push_protection_bypassed:
type: boolean
description: Whether push protection was bypassed for the detected secret.
@@ -87133,9 +89815,8 @@ components:
format: uri
conclusion:
description: The summary conclusion for all check runs that are part
- of the check suite. Can be one of `success`, `failure`, `neutral`,
- `cancelled`, `timed_out`, `action_required` or `stale`. This value
- will be `null` until the check run has `completed`.
+ of the check suite. This value will be `null` until the check run
+ has `completed`.
type: string
nullable: true
enum:
@@ -87733,9 +90414,8 @@ components:
format: uri
conclusion:
description: The summary conclusion for all check runs that are part
- of the check suite. Can be one of `success`, `failure`,` neutral`,
- `cancelled`, `timed_out`, `action_required` or `stale`. This value
- will be `null` until the check run has completed.
+ of the check suite. This value will be `null` until the check run
+ has completed.
type: string
nullable: true
enum:
@@ -88326,9 +91006,8 @@ components:
format: uri
conclusion:
description: The summary conclusion for all check runs that are part
- of the check suite. Can be one of `success`, `failure`,` neutral`,
- `cancelled`, `timed_out`, `action_required` or `stale`. This value
- will be `null` until the check run has completed.
+ of the check suite. This value will be `null` until the check run
+ has completed.
type: string
nullable: true
enum:
@@ -88636,8 +91315,7 @@ components:
- login
- id
dismissed_reason:
- description: 'The reason for dismissing or closing the alert. Can be
- one of: `false positive`, `won''t fix`, and `used in tests`.'
+ description: The reason for dismissing or closing the alert.
type: string
nullable: true
enum:
@@ -88888,8 +91566,7 @@ components:
- login
- id
dismissed_reason:
- description: 'The reason for dismissing or closing the alert. Can be
- one of: `false positive`, `won''t fix`, and `used in tests`.'
+ description: The reason for dismissing or closing the alert.
type: string
nullable: true
enum:
@@ -89370,8 +92047,7 @@ components:
- login
- id
dismissed_reason:
- description: 'The reason for dismissing or closing the alert. Can be
- one of: `false positive`, `won''t fix`, and `used in tests`.'
+ description: The reason for dismissing or closing the alert.
type: string
nullable: true
enum:
@@ -90175,6 +92851,112 @@ components:
- pusher_type
- repository
- sender
+ webhook-custom-property-created:
+ title: custom property created event
+ type: object
+ properties:
+ action:
+ type: string
+ enum:
+ - created
+ definition:
+ "$ref": "#/components/schemas/org-custom-property"
+ enterprise:
+ "$ref": "#/components/schemas/enterprise-webhooks"
+ installation:
+ "$ref": "#/components/schemas/simple-installation"
+ organization:
+ "$ref": "#/components/schemas/organization-simple-webhooks"
+ sender:
+ "$ref": "#/components/schemas/simple-user-webhooks"
+ required:
+ - action
+ - definition
+ - organization
+ webhook-custom-property-deleted:
+ title: custom property deleted event
+ type: object
+ properties:
+ action:
+ type: string
+ enum:
+ - deleted
+ definition:
+ type: object
+ properties:
+ property_name:
+ type: string
+ description: The name of the property that was deleted.
+ required:
+ - property_name
+ enterprise:
+ "$ref": "#/components/schemas/enterprise-webhooks"
+ installation:
+ "$ref": "#/components/schemas/simple-installation"
+ organization:
+ "$ref": "#/components/schemas/organization-simple-webhooks"
+ sender:
+ "$ref": "#/components/schemas/simple-user-webhooks"
+ required:
+ - action
+ - definition
+ - organization
+ webhook-custom-property-updated:
+ title: custom property updated event
+ type: object
+ properties:
+ action:
+ type: string
+ enum:
+ - updated
+ definition:
+ "$ref": "#/components/schemas/org-custom-property"
+ enterprise:
+ "$ref": "#/components/schemas/enterprise-webhooks"
+ installation:
+ "$ref": "#/components/schemas/simple-installation"
+ organization:
+ "$ref": "#/components/schemas/organization-simple-webhooks"
+ sender:
+ "$ref": "#/components/schemas/simple-user-webhooks"
+ required:
+ - action
+ - definition
+ - organization
+ webhook-custom-property-values-updated:
+ title: Custom property values updated event
+ type: object
+ properties:
+ action:
+ type: string
+ enum:
+ - updated
+ enterprise:
+ "$ref": "#/components/schemas/enterprise-webhooks"
+ installation:
+ "$ref": "#/components/schemas/simple-installation"
+ repository:
+ "$ref": "#/components/schemas/repository-webhooks"
+ organization:
+ "$ref": "#/components/schemas/organization-simple-webhooks"
+ sender:
+ "$ref": "#/components/schemas/simple-user-webhooks"
+ new_property_values:
+ type: array
+ description: The new custom property values for the repository.
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ old_property_values:
+ type: array
+ description: The old custom property values for the repository.
+ items:
+ "$ref": "#/components/schemas/custom-property-value"
+ required:
+ - action
+ - repository
+ - organization
+ - new_property_values
+ - old_property_values
webhook-delete:
title: delete event
type: object
@@ -94064,9 +96846,8 @@ components:
nullable: true
format: date-time
conclusion:
- description: The result of the completed check run. Can be one of `success`,
- `failure`, `neutral`, `cancelled`, `timed_out`, `action_required`
- or `stale`. This value will be `null` until the check run has completed.
+ description: The result of the completed check run. This value will
+ be `null` until the check run has completed.
type: string
nullable: true
enum:
@@ -97596,6 +100377,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -98201,14 +100988,6 @@ components:
type: string
enum:
- revoked
- enterprise:
- "$ref": "#/components/schemas/enterprise-webhooks"
- installation:
- "$ref": "#/components/schemas/simple-installation"
- organization:
- "$ref": "#/components/schemas/organization-simple-webhooks"
- repository:
- "$ref": "#/components/schemas/repository-webhooks"
sender:
"$ref": "#/components/schemas/simple-user-webhooks"
required:
@@ -112443,6 +115222,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the
+ corresponding custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -112489,6 +115274,9 @@ components:
git_url:
type: string
format: uri
+ has_discussions:
+ description: Whether the repository has discussions enabled.
+ type: boolean
has_downloads:
description: Whether downloads are enabled.
type: boolean
@@ -112747,6 +115535,9 @@ components:
type: integer
watchers_count:
type: integer
+ web_commit_signoff_required:
+ description: Whether to require commit signoff.
+ type: boolean
required:
- id
- node_id
@@ -116651,6 +119442,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the
+ corresponding custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -123207,6 +126004,11 @@ components:
type: object
properties:
permission:
+ description: |-
+ This field is included for legacy purposes; use the `role_name` field instead. The `maintain`
+ role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role
+ assigned to the collaborator, use the `role_name` field instead, which will provide the full
+ role name, including custom roles.
type: object
properties:
to:
@@ -123217,6 +126019,14 @@ components:
- read
required:
- to
+ role_name:
+ description: The role assigned to the collaborator.
+ type: object
+ properties:
+ to:
+ type: string
+ required:
+ - to
enterprise:
"$ref": "#/components/schemas/enterprise-webhooks"
installation:
@@ -187807,16 +190617,16 @@ components:
description: An array of commit objects describing the pushed commits. (Pushed
commits are all commits that are included in the `compare` between the
`before` commit and the `after` commit.) The array includes a maximum
- of 20 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits)
- to fetch additional commits. This limit is applied to timeline events
- only and isn't applied to webhook deliveries.
+ of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits)
+ to fetch additional commits.
type: array
items:
title: Commit
type: object
properties:
added:
- description: An array of files added in the commit.
+ description: An array of files added in the commit. A maximum of 3000
+ changed files will be reported per commit.
type: array
items:
type: string
@@ -187870,12 +190680,14 @@ components:
description: The commit message.
type: string
modified:
- description: An array of files modified by the commit.
+ description: An array of files modified by the commit. A maximum of
+ 3000 changed files will be reported per commit.
type: array
items:
type: string
removed:
- description: An array of files removed in the commit.
+ description: An array of files removed in the commit. A maximum of
+ 3000 changed files will be reported per commit.
type: array
items:
type: string
@@ -188099,6 +190911,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -192080,14 +194898,16 @@ components:
properties:
action:
type: string
- enum:
- - sample.collected
+ description: The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches`
+ request body.
branch:
type: string
client_payload:
type: object
nullable: true
additionalProperties: true
+ description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches`
+ request body.
enterprise:
"$ref": "#/components/schemas/enterprise-webhooks"
installation:
@@ -193543,6 +196363,30 @@ components:
- action
- alert
- repository
+ webhook-secret-scanning-alert-validated:
+ title: secret_scanning_alert validated event
+ type: object
+ properties:
+ action:
+ type: string
+ enum:
+ - validated
+ alert:
+ "$ref": "#/components/schemas/secret-scanning-alert-webhook"
+ enterprise:
+ "$ref": "#/components/schemas/enterprise-webhooks"
+ installation:
+ "$ref": "#/components/schemas/simple-installation"
+ organization:
+ "$ref": "#/components/schemas/organization-simple-webhooks"
+ repository:
+ "$ref": "#/components/schemas/repository-webhooks"
+ sender:
+ "$ref": "#/components/schemas/simple-user-webhooks"
+ required:
+ - action
+ - alert
+ - repository
webhook-security-advisory-published:
title: security_advisory published event
type: object
@@ -196193,6 +199037,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -196774,6 +199624,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -197356,6 +200212,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -198002,6 +200864,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -198585,6 +201453,12 @@ components:
- type: integer
- type: string
format: date-time
+ custom_properties:
+ type: object
+ description: The custom properties that were defined for the repository.
+ The keys are the custom property names, and the values are the corresponding
+ custom property values.
+ additionalProperties: true
default_branch:
description: The default branch of the repository.
type: string
@@ -204713,10 +207587,7 @@ components:
## Attribution
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
-
- [homepage]: http://contributor-covenant.org
- [version]: http://contributor-covenant.org/version/1/4/
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).
html_url: http://contributor-covenant.org/version/1/4/
emojis-get:
value:
@@ -207011,6 +209882,7 @@ components:
push_protection_bypassed: true
push_protection_bypassed_at: '2020-11-06T21:48:51Z'
resolution_comment: Example comment
+ validity: active
- number: 1
created_at: '2020-11-06T18:18:30Z'
url: https://api.github.com/repos/owner/repo/secret-scanning/alerts/1
@@ -207092,6 +209964,7 @@ components:
push_protection_bypassed: false
push_protection_bypassed_at:
resolution_comment:
+ validity: unknown
public-events-items:
value:
- id: '22249084947'
@@ -208548,7 +211421,6 @@ components:
members_can_fork_private_repositories: false
web_commit_signoff_required: false
updated_at: '2014-03-03T18:58:10Z'
- archived_at:
dependency_graph_enabled_for_new_repositories: false
dependabot_alerts_enabled_for_new_repositories: false
dependabot_security_updates_enabled_for_new_repositories: false
@@ -210874,6 +213746,96 @@ components:
status: enabled
secret_scanning_push_protection:
status: disabled
+ organization-fine-grained-permission-example:
+ value:
+ - name: read_organization_custom_org_role
+ description: View organization roles
+ - name: write_organization_custom_org_role
+ description: Manage custom organization roles
+ organization-role-list:
+ value:
+ total_count: 2
+ roles:
+ - id: 8030
+ name: Custom Role Manager
+ description: Permissions to manage custom roles within an org
+ permissions:
+ - write_organization_custom_repo_role
+ - write_organization_custom_org_role
+ - read_organization_custom_repo_role
+ - read_organization_custom_org_role
+ organization:
+ login: github
+ id: 9919
+ node_id: MDEyOk9yZ2FuaXphdGlvbjk5MTk=
+ avatar_url: https://avatars.githubusercontent.com/u/9919?v=4
+ gravatar_id: ''
+ url: https://api.github.com/users/github
+ html_url: https://github.com/github
+ followers_url: https://api.github.com/users/github/followers
+ following_url: https://api.github.com/users/github/following{/other_user}
+ gists_url: https://api.github.com/users/github/gists{/gist_id}
+ starred_url: https://api.github.com/users/github/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/github/subscriptions
+ organizations_url: https://api.github.com/users/github/orgs
+ repos_url: https://api.github.com/users/github/repos
+ events_url: https://api.github.com/users/github/events{/privacy}
+ received_events_url: https://api.github.com/users/github/received_events
+ type: Organization
+ site_admin: false
+ created_at: '2022-07-04T22:19:11Z'
+ updated_at: '2022-07-04T22:20:11Z'
+ - id: 8031
+ name: Auditor
+ description: Permissions to read the organization audit log
+ permissions:
+ - read_audit_logs
+ organization:
+ login: github
+ id: 9919
+ node_id: MDEyOk9yZ2FuaXphdGlvbjk5MTk=
+ avatar_url: https://avatars.githubusercontent.com/u/9919?v=4
+ gravatar_id: ''
+ url: https://api.github.com/users/github
+ html_url: https://github.com/github
+ followers_url: https://api.github.com/users/github/followers
+ following_url: https://api.github.com/users/github/following{/other_user}
+ gists_url: https://api.github.com/users/github/gists{/gist_id}
+ starred_url: https://api.github.com/users/github/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/github/subscriptions
+ organizations_url: https://api.github.com/users/github/orgs
+ repos_url: https://api.github.com/users/github/repos
+ events_url: https://api.github.com/users/github/events{/privacy}
+ received_events_url: https://api.github.com/users/github/received_events
+ type: Organization
+ site_admin: false
+ created_at: '2022-07-04T22:19:11Z'
+ updated_at: '2022-07-04T22:20:11Z'
+ organization-role:
+ value:
+ id: 8030
+ name: Custom Role Manager
+ description: Permissions to manage custom roles within an org
+ permissions:
+ - write_organization_custom_repo_role
+ - write_organization_custom_org_role
+ - read_organization_custom_repo_role
+ - read_organization_custom_org_role
+ organization:
+ login: github
+ id: 1
+ node_id: MDEyOk9yZ2FuaXphdGlvbjE=
+ url: https://api.github.com/orgs/github
+ repos_url: https://api.github.com/orgs/github/repos
+ events_url: https://api.github.com/orgs/github/events
+ hooks_url: https://api.github.com/orgs/github/hooks
+ issues_url: https://api.github.com/orgs/github/issues
+ members_url: https://api.github.com/orgs/github/members{/member}
+ public_members_url: https://api.github.com/orgs/github/public_members{/member}
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ description: A great organization
+ created_at: '2022-07-04T22:19:11Z'
+ updated_at: '2022-07-04T22:20:11Z'
package-org:
value:
id: 197
@@ -211073,7 +214035,57 @@ components:
site_admin: false
created_at: '2011-04-11T20:09:31Z'
updated_at: '2014-03-04T18:58:10Z'
- repository:
+ org-custom-properties:
+ value:
+ - property_name: environment
+ value_type: single_select
+ required: true
+ default_value: production
+ description: Prod or dev environment
+ allowed_values:
+ - production
+ - development
+ values_editable_by: org_actors
+ - property_name: service
+ value_type: string
+ - property_name: team
+ value_type: string
+ description: Team owning the repository
+ org-custom-property:
+ value:
+ property_name: environment
+ value_type: single_select
+ required: true
+ default_value: production
+ description: Prod or dev environment
+ allowed_values:
+ - production
+ - development
+ org-repo-custom-property-values:
+ value:
+ - repository_id: 1296269
+ repository_name: Hello-World
+ repository_full_name: octocat/Hello-World
+ properties:
+ - property_name: environment
+ value: production
+ - property_name: service
+ value: web
+ - property_name: team
+ value: octocat
+ org-repo-update-custom-property-values:
+ value:
+ repository_names:
+ - Hello-World
+ - octo-repo
+ properties:
+ - property_name: environment
+ value: production
+ - property_name: service
+ value: web
+ - property_name: team
+ value: octocat
+ full-repository:
value:
id: 1296269
node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
@@ -211145,25 +214157,24 @@ components:
hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
svn_url: https://svn.github.com/octocat/Hello-World
homepage: https://github.com
- organization:
+ license:
+ key: mit
+ name: MIT License
+ url: https://api.github.com/licenses/mit
+ spdx_id: MIT
+ node_id: MDc6TGljZW5zZW1pdA==
+ html_url: https://github.com/licenses/mit
language:
- forks: 9
forks_count: 9
+ forks: 9
stargazers_count: 80
watchers_count: 80
watchers: 80
size: 108
default_branch: master
- open_issues: 0
open_issues_count: 0
- is_template: true
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
+ open_issues: 0
+ is_template: false
topics:
- octocat
- atom
@@ -211181,18 +214192,389 @@ components:
created_at: '2011-01-26T19:01:12Z'
updated_at: '2011-01-26T19:14:43Z'
permissions:
- admin: false
- push: false
pull: true
+ push: false
+ admin: false
allow_rebase_merge: true
- template_repository:
+ template_repository:
+ id: 1296269
+ node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name: Hello-World-Template
+ full_name: octocat/Hello-World-Template
+ owner:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ private: false
+ html_url: https://github.com/octocat/Hello-World-Template
+ description: This your first repo!
+ fork: false
+ url: https://api.github.com/repos/octocat/Hello-World-Template
+ archive_url: https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}
+ blobs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}
+ commits_url: https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}
+ compare_url: https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}
+ contributors_url: https://api.github.com/repos/octocat/Hello-World-Template/contributors
+ deployments_url: https://api.github.com/repos/octocat/Hello-World-Template/deployments
+ downloads_url: https://api.github.com/repos/octocat/Hello-World-Template/downloads
+ events_url: https://api.github.com/repos/octocat/Hello-World-Template/events
+ forks_url: https://api.github.com/repos/octocat/Hello-World-Template/forks
+ git_commits_url: https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}
+ git_url: git:github.com/octocat/Hello-World-Template.git
+ issue_comment_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}
+ issues_url: https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}
+ keys_url: https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}
+ labels_url: https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}
+ languages_url: https://api.github.com/repos/octocat/Hello-World-Template/languages
+ merges_url: https://api.github.com/repos/octocat/Hello-World-Template/merges
+ milestones_url: https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}
+ notifications_url: https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}
+ releases_url: https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}
+ ssh_url: git@github.com:octocat/Hello-World-Template.git
+ stargazers_url: https://api.github.com/repos/octocat/Hello-World-Template/stargazers
+ statuses_url: https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octocat/Hello-World-Template/subscribers
+ subscription_url: https://api.github.com/repos/octocat/Hello-World-Template/subscription
+ tags_url: https://api.github.com/repos/octocat/Hello-World-Template/tags
+ teams_url: https://api.github.com/repos/octocat/Hello-World-Template/teams
+ trees_url: https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}
+ clone_url: https://github.com/octocat/Hello-World-Template.git
+ mirror_url: git:git.example.com/octocat/Hello-World-Template
+ hooks_url: https://api.github.com/repos/octocat/Hello-World-Template/hooks
+ svn_url: https://svn.github.com/octocat/Hello-World-Template
+ homepage: https://github.com
+ language:
+ forks: 9
+ forks_count: 9
+ stargazers_count: 80
+ watchers_count: 80
+ watchers: 80
+ size: 108
+ default_branch: master
+ open_issues: 0
+ open_issues_count: 0
+ is_template: true
+ license:
+ key: mit
+ name: MIT License
+ url: https://api.github.com/licenses/mit
+ spdx_id: MIT
+ node_id: MDc6TGljZW5zZW1pdA==
+ html_url: https://api.github.com/licenses/mit
+ topics:
+ - octocat
+ - atom
+ - electron
+ - api
+ has_issues: true
+ has_projects: true
+ has_wiki: true
+ has_pages: false
+ has_downloads: true
+ archived: false
+ disabled: false
+ visibility: public
+ pushed_at: '2011-01-26T19:06:43Z'
+ created_at: '2011-01-26T19:01:12Z'
+ updated_at: '2011-01-26T19:14:43Z'
+ permissions:
+ admin: false
+ push: false
+ pull: true
+ allow_rebase_merge: true
+ temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
+ allow_squash_merge: true
+ allow_auto_merge: false
+ delete_branch_on_merge: true
+ allow_merge_commit: true
+ subscribers_count: 42
+ network_count: 0
temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
allow_squash_merge: true
allow_auto_merge: false
delete_branch_on_merge: true
allow_merge_commit: true
+ allow_forking: true
+ web_commit_signoff_required: false
subscribers_count: 42
network_count: 0
+ organization:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: Organization
+ site_admin: false
+ parent:
+ id: 1296269
+ node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name: Hello-World
+ full_name: octocat/Hello-World
+ owner:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ private: false
+ html_url: https://github.com/octocat/Hello-World
+ description: This your first repo!
+ fork: false
+ url: https://api.github.com/repos/octocat/Hello-World
+ archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
+ blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
+ commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
+ compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
+ contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
+ deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
+ downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
+ events_url: https://api.github.com/repos/octocat/Hello-World/events
+ forks_url: https://api.github.com/repos/octocat/Hello-World/forks
+ git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
+ git_url: git:github.com/octocat/Hello-World.git
+ issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
+ keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
+ labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
+ languages_url: https://api.github.com/repos/octocat/Hello-World/languages
+ merges_url: https://api.github.com/repos/octocat/Hello-World/merges
+ milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
+ notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
+ releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
+ ssh_url: git@github.com:octocat/Hello-World.git
+ stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
+ statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
+ subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
+ tags_url: https://api.github.com/repos/octocat/Hello-World/tags
+ teams_url: https://api.github.com/repos/octocat/Hello-World/teams
+ trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
+ clone_url: https://github.com/octocat/Hello-World.git
+ mirror_url: git:git.example.com/octocat/Hello-World
+ hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
+ svn_url: https://svn.github.com/octocat/Hello-World
+ homepage: https://github.com
+ language:
+ forks_count: 9
+ stargazers_count: 80
+ watchers_count: 80
+ size: 108
+ default_branch: master
+ open_issues_count: 0
+ is_template: true
+ topics:
+ - octocat
+ - atom
+ - electron
+ - api
+ has_issues: true
+ has_projects: true
+ has_wiki: true
+ has_pages: false
+ has_downloads: true
+ archived: false
+ disabled: false
+ visibility: public
+ pushed_at: '2011-01-26T19:06:43Z'
+ created_at: '2011-01-26T19:01:12Z'
+ updated_at: '2011-01-26T19:14:43Z'
+ permissions:
+ admin: false
+ push: false
+ pull: true
+ allow_rebase_merge: true
+ temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
+ allow_squash_merge: true
+ allow_auto_merge: false
+ delete_branch_on_merge: true
+ allow_merge_commit: true
+ subscribers_count: 42
+ network_count: 0
+ license:
+ key: mit
+ name: MIT License
+ url: https://api.github.com/licenses/mit
+ spdx_id: MIT
+ node_id: MDc6TGljZW5zZW1pdA==
+ html_url: https://api.github.com/licenses/mit
+ forks: 1
+ open_issues: 1
+ watchers: 1
+ source:
+ id: 1296269
+ node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name: Hello-World
+ full_name: octocat/Hello-World
+ owner:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ private: false
+ html_url: https://github.com/octocat/Hello-World
+ description: This your first repo!
+ fork: false
+ url: https://api.github.com/repos/octocat/Hello-World
+ archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
+ blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
+ commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
+ compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
+ contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
+ deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
+ downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
+ events_url: https://api.github.com/repos/octocat/Hello-World/events
+ forks_url: https://api.github.com/repos/octocat/Hello-World/forks
+ git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
+ git_url: git:github.com/octocat/Hello-World.git
+ issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
+ keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
+ labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
+ languages_url: https://api.github.com/repos/octocat/Hello-World/languages
+ merges_url: https://api.github.com/repos/octocat/Hello-World/merges
+ milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
+ notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
+ releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
+ ssh_url: git@github.com:octocat/Hello-World.git
+ stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
+ statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
+ subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
+ tags_url: https://api.github.com/repos/octocat/Hello-World/tags
+ teams_url: https://api.github.com/repos/octocat/Hello-World/teams
+ trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
+ clone_url: https://github.com/octocat/Hello-World.git
+ mirror_url: git:git.example.com/octocat/Hello-World
+ hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
+ svn_url: https://svn.github.com/octocat/Hello-World
+ homepage: https://github.com
+ language:
+ forks_count: 9
+ stargazers_count: 80
+ watchers_count: 80
+ size: 108
+ default_branch: master
+ open_issues_count: 0
+ is_template: true
+ topics:
+ - octocat
+ - atom
+ - electron
+ - api
+ has_issues: true
+ has_projects: true
+ has_wiki: true
+ has_pages: false
+ has_downloads: true
+ archived: false
+ disabled: false
+ visibility: public
+ pushed_at: '2011-01-26T19:06:43Z'
+ created_at: '2011-01-26T19:01:12Z'
+ updated_at: '2011-01-26T19:14:43Z'
+ permissions:
+ admin: false
+ push: false
+ pull: true
+ allow_rebase_merge: true
+ temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
+ allow_squash_merge: true
+ allow_auto_merge: false
+ delete_branch_on_merge: true
+ allow_merge_commit: true
+ subscribers_count: 42
+ network_count: 0
+ license:
+ key: mit
+ name: MIT License
+ url: https://api.github.com/licenses/mit
+ spdx_id: MIT
+ node_id: MDc6TGljZW5zZW1pdA==
+ html_url: https://api.github.com/licenses/mit
+ forks: 1
+ open_issues: 1
+ watchers: 1
org-ruleset-items:
value:
- id: 21
@@ -211260,6 +214642,63 @@ components:
href: https://github.com/organizations/my-org/settings/rules/21
created_at: '2023-08-15T08:43:03Z'
updated_at: '2023-09-23T16:29:47Z'
+ rule-suite-items:
+ value:
+ - id: 21
+ actor_id: 12
+ username: octocat
+ before_sha: 893f768e172fb1bc9c5d6f3dd48557e45f14e01d
+ after_sha: dedd88641a362b6b4ea872da4847d6131a164d01
+ ref: refs/heads/i-see-everything
+ repository_id: 404
+ repository_name: octo-repo
+ pushed_at: '2023-07-06T08:43:03Z'
+ result: bypass
+ - id: 25
+ actor_id: 11
+ username: not-octocat
+ before_sha: 48994e4e01ccc943624c6231f172702b82b233cc
+ after_sha: ecfd5a1025fa271a33ca5608d089476a2df3c9a1
+ ref: refs/heads/i-am-everything
+ repository_id: 404
+ repository_name: octo-repo
+ pushed_at: '2023-07-07T08:43:03Z'
+ result: pass
+ evaluation_result: fail
+ rule-suite:
+ value:
+ id: 21
+ actor_id: 12
+ username: octocat
+ before_sha: 893f768e172fb1bc9c5d6f3dd48557e45f14e01d
+ after_sha: dedd88641a362b6b4ea872da4847d6131a164d01
+ ref: refs/heads/i-see-everything
+ repository_id: 404
+ repository_name: octo-repo
+ pushed_at: '2023-07-06T08:43:03Z'
+ result: bypass
+ evaluation_result: fail
+ rule_evaluations:
+ - rule_source:
+ type: ruleset
+ id: 2
+ name: Author email must be a GitHub email address
+ enforcement: active
+ result: pass
+ rule_type: commit_author_email_pattern
+ - rule_source:
+ type: protected_branch
+ enforcement: active
+ result: fail
+ rule_type: pull_request
+ details: Changes must be made through a pull request.
+ - rule_source:
+ type: ruleset
+ id: 3
+ name: Evaluate commit message pattern
+ enforcement: evaluate
+ result: fail
+ rule_type: commit_message_pattern
list-repository-advisories:
value:
- ghsa_id: GHSA-abcd-1234-efgh
@@ -211400,6 +214839,7 @@ components:
repositories_url: https://api.github.com/teams/1/repos
permission: admin
parent:
+ private_fork:
- ghsa_id: GHSA-1234-5678-9012
cve_id: CVE-2051-0000
url: https://api.github.com/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012
@@ -211457,7 +214897,7 @@ components:
closed_at:
withdrawn_at:
submission:
- - accepted: true
+ accepted: true
vulnerabilities:
- package:
ecosystem: pip
@@ -211539,6 +214979,71 @@ components:
repositories_url: https://api.github.com/teams/1/repos
permission: admin
parent:
+ private_fork:
+ id: 217723378
+ node_id: MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=
+ name: octo-repo-ghsa-1234-5678-9012
+ full_name: octo-org/octo-repo-ghsa-1234-5678-9012
+ owner:
+ login: octo-org
+ id: 6811672
+ node_id: MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=
+ avatar_url: https://avatars3.githubusercontent.com/u/6811672?v=4
+ gravatar_id: ''
+ url: https://api.github.com/users/octo-org
+ html_url: https://github.com/octo-org
+ followers_url: https://api.github.com/users/octo-org/followers
+ following_url: https://api.github.com/users/octo-org/following{/other_user}
+ gists_url: https://api.github.com/users/octo-org/gists{/gist_id}
+ starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octo-org/subscriptions
+ organizations_url: https://api.github.com/users/octo-org/orgs
+ repos_url: https://api.github.com/users/octo-org/repos
+ events_url: https://api.github.com/users/octo-org/events{/privacy}
+ received_events_url: https://api.github.com/users/octo-org/received_events
+ type: Organization
+ site_admin: false
+ private: true
+ html_url: https://github.com/octo-org/octo-repo-ghsa-1234-5678-9012
+ description:
+ fork: false
+ url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012
+ archive_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/assignees{/user}
+ blobs_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/comments{/number}
+ commits_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/commits{/sha}
+ compare_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contents/{+path}
+ contributors_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/contributors
+ deployments_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/deployments
+ downloads_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/downloads
+ events_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/events
+ forks_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/forks
+ git_commits_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/tags{/sha}
+ hooks_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/hooks
+ issue_comment_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues/events{/number}
+ issues_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/issues{/number}
+ keys_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/keys{/key_id}
+ labels_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/labels{/name}
+ languages_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/languages
+ merges_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/merges
+ milestones_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/milestones{/number}
+ notifications_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/pulls{/number}
+ releases_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/releases{/id}
+ stargazers_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/stargazers
+ statuses_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscribers
+ subscription_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/subscription
+ tags_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/tags
+ teams_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/teams
+ trees_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-1234-5678-9012/git/trees{/sha}
actions-billing-usage:
value:
total_minutes_used: 305
@@ -212091,972 +215596,350 @@ components:
hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
svn_url: https://svn.github.com/octocat/Hello-World
homepage: https://github.com
- language:
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- size: 108
- default_branch: master
- open_issues_count: 0
- is_template: false
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- admin: false
- maintain: false
- push: false
- triage: false
- pull: true
- role_name: read
- allow_rebase_merge: true
- template_repository:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World-Template
- full_name: octocat/Hello-World-Template
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World-Template
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World-Template
- archive_url: https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World-Template/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World-Template/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World-Template/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World-Template/events
- forks_url: https://api.github.com/repos/octocat/Hello-World-Template/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World-Template.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World-Template/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World-Template/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World-Template.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World-Template/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World-Template/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World-Template/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World-Template/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World-Template/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World-Template.git
- mirror_url: git:git.example.com/octocat/Hello-World-Template
- hooks_url: https://api.github.com/repos/octocat/Hello-World-Template/hooks
- svn_url: https://svn.github.com/octocat/Hello-World-Template
- homepage: https://github.com
- language:
- forks: 9
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- watchers: 80
- size: 108
- default_branch: master
- open_issues: 0
- open_issues_count: 0
- is_template: true
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- pull: true
- triage: false
- push: false
- maintain: false
- admin: false
- allow_rebase_merge: true
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- forks: 1
- open_issues: 1
- watchers: 1
- team-items-response-if-child-teams-exist:
- value:
- - id: 2
- node_id: MDQ6VGVhbTI=
- url: https://api.github.com/teams/2
- name: Original Roster
- slug: original-roster
- description: Started it all.
- privacy: closed
- notification_setting: notifications_enabled
- permission: admin
- members_url: https://api.github.com/teams/2/members{/member}
- repositories_url: https://api.github.com/teams/2/repos
- parent:
- id: 1
- node_id: MDQ6VGVhbTE=
- url: https://api.github.com/teams/1
- html_url: https://github.com/orgs/github/teams/justice-league
- name: Justice League
- slug: justice-league
- description: A great team.
- privacy: closed
- notification_setting: notifications_enabled
- permission: admin
- members_url: https://api.github.com/teams/1/members{/member}
- repositories_url: https://api.github.com/teams/1/repos
- html_url: https://github.com/orgs/rails/teams/core
- project-card:
- value:
- url: https://api.github.com/projects/columns/cards/1478
- id: 1478
- node_id: MDExOlByb2plY3RDYXJkMTQ3OA==
- note: Add payload for delete Project column
- creator:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- created_at: '2016-09-05T14:21:06Z'
- updated_at: '2016-09-05T14:20:22Z'
- archived: false
- column_url: https://api.github.com/projects/columns/367
- content_url: https://api.github.com/repos/api-playground/projects-test/issues/3
- project_url: https://api.github.com/projects/120
- project-column:
- value:
- url: https://api.github.com/projects/columns/367
- project_url: https://api.github.com/projects/120
- cards_url: https://api.github.com/projects/columns/367/cards
- id: 367
- node_id: MDEzOlByb2plY3RDb2x1bW4zNjc=
- name: To Do
- created_at: '2016-09-05T14:18:44Z'
- updated_at: '2016-09-05T14:22:28Z'
- project-card-items:
- value:
- - url: https://api.github.com/projects/columns/cards/1478
- id: 1478
- node_id: MDExOlByb2plY3RDYXJkMTQ3OA==
- note: Add payload for delete Project column
- creator:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- created_at: '2016-09-05T14:21:06Z'
- updated_at: '2016-09-05T14:20:22Z'
- archived: false
- column_url: https://api.github.com/projects/columns/367
- content_url: https://api.github.com/repos/api-playground/projects-test/issues/3
- project_url: https://api.github.com/projects/120
- project-3:
- value:
- owner_url: https://api.github.com/repos/api-playground/projects-test
- url: https://api.github.com/projects/1002604
- html_url: https://github.com/api-playground/projects-test/projects/1
- columns_url: https://api.github.com/projects/1002604/columns
- id: 1002604
- node_id: MDc6UHJvamVjdDEwMDI2MDQ=
- name: Projects Documentation
- body: Developer documentation project for the developer site.
- number: 1
- state: open
- creator:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- created_at: '2011-04-10T20:09:31Z'
- updated_at: '2014-03-03T18:58:10Z'
- project-collaborator-permission:
- value:
- permission: admin
- user:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- project-column-items:
- value:
- - url: https://api.github.com/projects/columns/367
- project_url: https://api.github.com/projects/120
- cards_url: https://api.github.com/projects/columns/367/cards
- id: 367
- node_id: MDEzOlByb2plY3RDb2x1bW4zNjc=
- name: To Do
- created_at: '2016-09-05T14:18:44Z'
- updated_at: '2016-09-05T14:22:28Z'
- rate-limit-overview:
- value:
- resources:
- core:
- limit: 5000
- used: 1
- remaining: 4999
- reset: 1691591363
- search:
- limit: 30
- used: 12
- remaining: 18
- reset: 1691591091
- graphql:
- limit: 5000
- used: 7
- remaining: 4993
- reset: 1691593228
- integration_manifest:
- limit: 5000
- used: 1
- remaining: 4999
- reset: 1691594631
- source_import:
- limit: 100
- used: 1
- remaining: 99
- reset: 1691591091
- code_scanning_upload:
- limit: 500
- used: 1
- remaining: 499
- reset: 1691594631
- actions_runner_registration:
- limit: 10000
- used: 0
- remaining: 10000
- reset: 1691594631
- scim:
- limit: 15000
- used: 0
- remaining: 15000
- reset: 1691594631
- dependency_snapshots:
- limit: 100
- used: 0
- remaining: 100
- reset: 1691591091
- code_search:
- limit: 10
- used: 0
- remaining: 10
- reset: 1691591091
- rate:
- limit: 5000
- used: 1
- remaining: 4999
- reset: 1372700873
- full-repository-default-response:
- summary: Default response
- value:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World
- full_name: octocat/Hello-World
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World
- archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World/events
- forks_url: https://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World.git
- mirror_url: git:git.example.com/octocat/Hello-World
- hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
- svn_url: https://svn.github.com/octocat/Hello-World
- homepage: https://github.com
- language:
- forks_count: 9
- forks: 9
- stargazers_count: 80
- watchers_count: 80
- watchers: 80
- size: 108
- default_branch: master
- open_issues_count: 0
- open_issues: 0
- is_template: false
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- has_discussions: false
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- pull: true
- push: false
- admin: false
- allow_rebase_merge: true
- template_repository:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World-Template
- full_name: octocat/Hello-World-Template
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World-Template
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World-Template
- archive_url: https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World-Template/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World-Template/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World-Template/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World-Template/events
- forks_url: https://api.github.com/repos/octocat/Hello-World-Template/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World-Template.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World-Template/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World-Template/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World-Template.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World-Template/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World-Template/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World-Template/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World-Template/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World-Template/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World-Template.git
- mirror_url: git:git.example.com/octocat/Hello-World-Template
- hooks_url: https://api.github.com/repos/octocat/Hello-World-Template/hooks
- svn_url: https://svn.github.com/octocat/Hello-World-Template
- homepage: https://github.com
- language:
- forks: 9
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- watchers: 80
- size: 108
- default_branch: master
- open_issues: 0
- open_issues_count: 0
- is_template: true
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- admin: false
- push: false
- pull: true
- allow_rebase_merge: true
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- license:
- key: mit
- name: MIT License
- spdx_id: MIT
- url: https://api.github.com/licenses/mit
- node_id: MDc6TGljZW5zZW1pdA==
- organization:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: Organization
- site_admin: false
- parent:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World
- full_name: octocat/Hello-World
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World
- archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World/events
- forks_url: https://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World.git
- mirror_url: git:git.example.com/octocat/Hello-World
- hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
- svn_url: https://svn.github.com/octocat/Hello-World
- homepage: https://github.com
- language:
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- size: 108
- default_branch: master
- open_issues_count: 0
- is_template: true
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- admin: false
- push: false
- pull: true
- allow_rebase_merge: true
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- forks: 1
- open_issues: 1
- watchers: 1
- source:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World
- full_name: octocat/Hello-World
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World
- archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World/events
- forks_url: https://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World.git
- mirror_url: git:git.example.com/octocat/Hello-World
- hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
- svn_url: https://svn.github.com/octocat/Hello-World
- homepage: https://github.com
- language:
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- size: 108
- default_branch: master
- open_issues_count: 0
- is_template: true
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- admin: false
- push: false
- pull: true
- allow_rebase_merge: true
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- forks: 1
- open_issues: 1
- watchers: 1
- security_and_analysis:
- advanced_security:
- status: enabled
- secret_scanning:
- status: enabled
- secret_scanning_push_protection:
- status: disabled
- full-repository:
- value:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World
- full_name: octocat/Hello-World
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World
- archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World/events
- forks_url: https://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World.git
- mirror_url: git:git.example.com/octocat/Hello-World
- hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
- svn_url: https://svn.github.com/octocat/Hello-World
- homepage: https://github.com
+ language:
+ forks_count: 9
+ stargazers_count: 80
+ watchers_count: 80
+ size: 108
+ default_branch: master
+ open_issues_count: 0
+ is_template: false
+ topics:
+ - octocat
+ - atom
+ - electron
+ - api
+ has_issues: true
+ has_projects: true
+ has_wiki: true
+ has_pages: false
+ has_downloads: true
+ archived: false
+ disabled: false
+ visibility: public
+ pushed_at: '2011-01-26T19:06:43Z'
+ created_at: '2011-01-26T19:01:12Z'
+ updated_at: '2011-01-26T19:14:43Z'
+ permissions:
+ admin: false
+ maintain: false
+ push: false
+ triage: false
+ pull: true
+ role_name: read
+ allow_rebase_merge: true
+ temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
+ allow_squash_merge: true
+ allow_auto_merge: false
+ delete_branch_on_merge: true
+ allow_merge_commit: true
+ subscribers_count: 42
+ network_count: 0
license:
key: mit
name: MIT License
url: https://api.github.com/licenses/mit
spdx_id: MIT
node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://github.com/licenses/mit
- language:
+ html_url: https://api.github.com/licenses/mit
+ forks: 1
+ open_issues: 1
+ watchers: 1
+ team-items-response-if-child-teams-exist:
+ value:
+ - id: 2
+ node_id: MDQ6VGVhbTI=
+ url: https://api.github.com/teams/2
+ name: Original Roster
+ slug: original-roster
+ description: Started it all.
+ privacy: closed
+ notification_setting: notifications_enabled
+ permission: admin
+ members_url: https://api.github.com/teams/2/members{/member}
+ repositories_url: https://api.github.com/teams/2/repos
+ parent:
+ id: 1
+ node_id: MDQ6VGVhbTE=
+ url: https://api.github.com/teams/1
+ html_url: https://github.com/orgs/github/teams/justice-league
+ name: Justice League
+ slug: justice-league
+ description: A great team.
+ privacy: closed
+ notification_setting: notifications_enabled
+ permission: admin
+ members_url: https://api.github.com/teams/1/members{/member}
+ repositories_url: https://api.github.com/teams/1/repos
+ html_url: https://github.com/orgs/rails/teams/core
+ project-card:
+ value:
+ url: https://api.github.com/projects/columns/cards/1478
+ id: 1478
+ node_id: MDExOlByb2plY3RDYXJkMTQ3OA==
+ note: Add payload for delete Project column
+ creator:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ created_at: '2016-09-05T14:21:06Z'
+ updated_at: '2016-09-05T14:20:22Z'
+ archived: false
+ column_url: https://api.github.com/projects/columns/367
+ content_url: https://api.github.com/repos/api-playground/projects-test/issues/3
+ project_url: https://api.github.com/projects/120
+ project-column:
+ value:
+ url: https://api.github.com/projects/columns/367
+ project_url: https://api.github.com/projects/120
+ cards_url: https://api.github.com/projects/columns/367/cards
+ id: 367
+ node_id: MDEzOlByb2plY3RDb2x1bW4zNjc=
+ name: To Do
+ created_at: '2016-09-05T14:18:44Z'
+ updated_at: '2016-09-05T14:22:28Z'
+ project-card-items:
+ value:
+ - url: https://api.github.com/projects/columns/cards/1478
+ id: 1478
+ node_id: MDExOlByb2plY3RDYXJkMTQ3OA==
+ note: Add payload for delete Project column
+ creator:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ created_at: '2016-09-05T14:21:06Z'
+ updated_at: '2016-09-05T14:20:22Z'
+ archived: false
+ column_url: https://api.github.com/projects/columns/367
+ content_url: https://api.github.com/repos/api-playground/projects-test/issues/3
+ project_url: https://api.github.com/projects/120
+ project-3:
+ value:
+ owner_url: https://api.github.com/repos/api-playground/projects-test
+ url: https://api.github.com/projects/1002604
+ html_url: https://github.com/api-playground/projects-test/projects/1
+ columns_url: https://api.github.com/projects/1002604/columns
+ id: 1002604
+ node_id: MDc6UHJvamVjdDEwMDI2MDQ=
+ name: Projects Documentation
+ body: Developer documentation project for the developer site.
+ number: 1
+ state: open
+ creator:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ created_at: '2011-04-10T20:09:31Z'
+ updated_at: '2014-03-03T18:58:10Z'
+ project-collaborator-permission:
+ value:
+ permission: admin
+ user:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ project-column-items:
+ value:
+ - url: https://api.github.com/projects/columns/367
+ project_url: https://api.github.com/projects/120
+ cards_url: https://api.github.com/projects/columns/367/cards
+ id: 367
+ node_id: MDEzOlByb2plY3RDb2x1bW4zNjc=
+ name: To Do
+ created_at: '2016-09-05T14:18:44Z'
+ updated_at: '2016-09-05T14:22:28Z'
+ rate-limit-overview:
+ value:
+ resources:
+ core:
+ limit: 5000
+ used: 1
+ remaining: 4999
+ reset: 1691591363
+ search:
+ limit: 30
+ used: 12
+ remaining: 18
+ reset: 1691591091
+ graphql:
+ limit: 5000
+ used: 7
+ remaining: 4993
+ reset: 1691593228
+ integration_manifest:
+ limit: 5000
+ used: 1
+ remaining: 4999
+ reset: 1691594631
+ source_import:
+ limit: 100
+ used: 1
+ remaining: 99
+ reset: 1691591091
+ code_scanning_upload:
+ limit: 500
+ used: 1
+ remaining: 499
+ reset: 1691594631
+ actions_runner_registration:
+ limit: 10000
+ used: 0
+ remaining: 10000
+ reset: 1691594631
+ scim:
+ limit: 15000
+ used: 0
+ remaining: 15000
+ reset: 1691594631
+ dependency_snapshots:
+ limit: 100
+ used: 0
+ remaining: 100
+ reset: 1691591091
+ code_search:
+ limit: 10
+ used: 0
+ remaining: 10
+ reset: 1691591091
+ rate:
+ limit: 5000
+ used: 1
+ remaining: 4999
+ reset: 1372700873
+ full-repository-default-response:
+ summary: Default response
+ value:
+ id: 1296269
+ node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
+ name: Hello-World
+ full_name: octocat/Hello-World
+ owner:
+ login: octocat
+ id: 1
+ node_id: MDQ6VXNlcjE=
+ avatar_url: https://github.com/images/error/octocat_happy.gif
+ gravatar_id: ''
+ url: https://api.github.com/users/octocat
+ html_url: https://github.com/octocat
+ followers_url: https://api.github.com/users/octocat/followers
+ following_url: https://api.github.com/users/octocat/following{/other_user}
+ gists_url: https://api.github.com/users/octocat/gists{/gist_id}
+ starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octocat/subscriptions
+ organizations_url: https://api.github.com/users/octocat/orgs
+ repos_url: https://api.github.com/users/octocat/repos
+ events_url: https://api.github.com/users/octocat/events{/privacy}
+ received_events_url: https://api.github.com/users/octocat/received_events
+ type: User
+ site_admin: false
+ private: false
+ html_url: https://github.com/octocat/Hello-World
+ description: This your first repo!
+ fork: false
+ url: https://api.github.com/repos/octocat/Hello-World
+ archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
+ blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
+ commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
+ compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
+ contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
+ deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
+ downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
+ events_url: https://api.github.com/repos/octocat/Hello-World/events
+ forks_url: https://api.github.com/repos/octocat/Hello-World/forks
+ git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
+ git_url: git:github.com/octocat/Hello-World.git
+ issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
+ issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
+ keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
+ labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
+ languages_url: https://api.github.com/repos/octocat/Hello-World/languages
+ merges_url: https://api.github.com/repos/octocat/Hello-World/merges
+ milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
+ notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
+ releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
+ ssh_url: git@github.com:octocat/Hello-World.git
+ stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
+ statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
+ subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
+ tags_url: https://api.github.com/repos/octocat/Hello-World/tags
+ teams_url: https://api.github.com/repos/octocat/Hello-World/teams
+ trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
+ clone_url: https://github.com/octocat/Hello-World.git
+ mirror_url: git:git.example.com/octocat/Hello-World
+ hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
+ svn_url: https://svn.github.com/octocat/Hello-World
+ homepage: https://github.com
forks_count: 9
forks: 9
stargazers_count: 80
@@ -213077,6 +215960,7 @@ components:
has_wiki: true
has_pages: false
has_downloads: true
+ has_discussions: false
archived: false
disabled: false
visibility: public
@@ -213210,10 +216094,14 @@ components:
allow_auto_merge: false
delete_branch_on_merge: true
allow_merge_commit: true
- allow_forking: true
- web_commit_signoff_required: false
subscribers_count: 42
network_count: 0
+ license:
+ key: mit
+ name: MIT License
+ spdx_id: MIT
+ url: https://api.github.com/licenses/mit
+ node_id: MDc6TGljZW5zZW1pdA==
organization:
login: octocat
id: 1
@@ -213421,7 +216309,6 @@ components:
hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
svn_url: https://svn.github.com/octocat/Hello-World
homepage: https://github.com
- language:
forks_count: 9
stargazers_count: 80
watchers_count: 80
@@ -213467,6 +216354,13 @@ components:
forks: 1
open_issues: 1
watchers: 1
+ security_and_analysis:
+ advanced_security:
+ status: enabled
+ secret_scanning:
+ status: enabled
+ secret_scanning_push_protection:
+ status: disabled
artifact-paginated:
value:
total_count: 2
@@ -213545,7 +216439,7 @@ components:
node_id: MDEyOldvcmtmbG93IEpvYjM5OTQ0NDQ5Ng==
head_sha: f83a356604ae3c5d03e1b46ef4d1ca77d64a90b0
url: https://api.github.com/repos/octo-org/octo-repo/actions/jobs/399444496
- html_url: https://github.com/octo-org/octo-repo/runs/399444496
+ html_url: https://github.com/octo-org/octo-repo/runs/29679449/jobs/399444496
status: completed
conclusion: success
started_at: '2020-01-20T17:42:40Z'
@@ -213670,6 +216564,7 @@ components:
check_suite_node_id: MDEwOkNoZWNrU3VpdGU0Mg==
head_branch: master
head_sha: acb5820ced9479c074f688cc328bf03f341a511d
+ path: ".github/workflows/build.yml@main"
run_number: 562
event: push
display_title: Update README.md
@@ -214133,7 +217028,7 @@ components:
node_id: MDEyOldvcmtmbG93IEpvYjM5OTQ0NDQ5Ng==
head_sha: f83a356604ae3c5d03e1b46ef4d1ca77d64a90b0
url: https://api.github.com/repos/octo-org/octo-repo/actions/jobs/399444496
- html_url: https://github.com/octo-org/octo-repo/runs/399444496
+ html_url: https://github.com/octo-org/octo-repo/runs/29679449/jobs/399444496
status: completed
conclusion: success
started_at: '2020-01-20T17:42:40Z'
@@ -216262,6 +219157,7 @@ components:
created_at: '2022-09-12T12:14:32Z'
updated_at: '2022-09-12T12:14:32Z'
url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java
+ commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c
- id: 2
name: database.zip
language: ruby
@@ -216289,6 +219185,7 @@ components:
created_at: '2022-09-12T12:14:32Z'
updated_at: '2022-09-12T12:14:32Z'
url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby
+ commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c
code-scanning-codeql-database:
value:
id: 1
@@ -216318,6 +219215,7 @@ components:
created_at: '2022-09-12T12:14:32Z'
updated_at: '2022-09-12T12:14:32Z'
url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java
+ commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c
code-scanning-default-setup:
value:
state: configured
@@ -216695,6 +219593,9 @@ components:
defaults:
location: EastUs
devcontainer_path: ".devcontainer/devcontainer.json"
+ codespaces-permissions-check-for-devcontainer:
+ value:
+ accepted: true
collaborator-items:
value:
- login: octocat
@@ -219013,6 +221914,7 @@ components:
wait_timer: 30
- id: 3755
node_id: MDQ6R2F0ZTM3NTU=
+ prevent_self_review: false
type: required_reviewers
reviewers:
- type: User
@@ -219072,6 +221974,7 @@ components:
wait_timer: 30
- id: 3755
node_id: MDQ6R2F0ZTM3NTU=
+ prevent_self_review: false
type: required_reviewers
reviewers:
- type: User
@@ -219135,6 +222038,12 @@ components:
id: 364663
node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=
name: main
+ deployment-branch-policy-single-tag:
+ value:
+ id: 364663
+ node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=
+ name: v1
+ type: tag
deployment-protection-rules:
value:
- total_count: 2
@@ -221050,8 +223959,12 @@ components:
updated_at: '2014-02-10T19:00:51Z'
page-deployment:
value:
+ id: 4fd754f7e594640989b406850d0bc8f06a121251
status_url: https://api.github.com/repos/github/developer.github.com/pages/deployments/4fd754f7e594640989b406850d0bc8f06a121251/status
page_url: developer.github.com
+ pages-deployment-status:
+ value:
+ status: succeed
pages-health-check:
value:
domain:
@@ -221145,6 +224058,23 @@ components:
site_admin: false
created_at: '2011-04-10T20:09:31Z'
updated_at: '2014-03-03T18:58:10Z'
+ custom-property-values:
+ value:
+ - property_name: environment
+ value: production
+ - property_name: service
+ value: web
+ - property_name: team
+ value: octocat
+ create-or-update-custom-properties-values:
+ value:
+ properties:
+ - property_name: environment
+ value: production
+ - property_name: service
+ value: web
+ - property_name: team
+ value: octocat
pull-request:
value:
url: https://api.github.com/repos/octocat/Hello-World/pulls/1347
@@ -223497,6 +226427,7 @@ components:
push_protection_bypassed: true
push_protection_bypassed_at: '2020-11-06T21:48:51Z'
resolution_comment: Example comment
+ validity: inactive
- number: 1
created_at: '2020-11-06T18:18:30Z'
url: https://api.github.com/repos/owner/repo/secret-scanning/alerts/1
@@ -223513,6 +226444,7 @@ components:
push_protection_bypassed: false
push_protection_bypassed_at:
resolution_comment:
+ validity: unknown
secret-scanning-alert-open:
value:
number: 42
@@ -223531,6 +226463,7 @@ components:
push_protection_bypassed: false
push_protection_bypassed_at:
resolution_comment:
+ validity: unknown
secret-scanning-alert-resolved:
value:
number: 42
@@ -223567,6 +226500,7 @@ components:
push_protection_bypassed_by:
push_protection_bypassed_at:
resolution_comment: Example comment
+ validity: unknown
secret-scanning-location-list:
value:
- type: commit
@@ -223580,6 +226514,17 @@ components:
blob_url: https://api.github.com/repos/octocat/hello-world/git/blobs/af5626b4a114abcb82d63db7c8082c3c4756e51b
commit_sha: f14d7debf9775f957cf4f1e8176da0786431f72b
commit_url: https://api.github.com/repos/octocat/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b
+ - type: wiki_commit
+ details:
+ path: "/example/Home.md"
+ start_line: 1
+ end_line: 1
+ start_column: 1
+ end_column: 64
+ blob_sha: af5626b4a114abcb82d63db7c8082c3c4756e51b
+ page_url: https://github.com/octocat/Hello-World/wiki/Home/302c0b7e200761c9dd9b57e57db540ee0b4293a5
+ commit_sha: 302c0b7e200761c9dd9b57e57db540ee0b4293a5
+ commit_url: https://github.com/octocat/Hello-World/wiki/_compare/302c0b7e200761c9dd9b57e57db540ee0b4293a5
- type: issue_title
details:
issue_title_url: https://api.github.com/repos/octocat/Hello-World/issues/1347
@@ -223589,6 +226534,30 @@ components:
- type: issue_comment
details:
issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451
+ - type: discussion_title
+ details:
+ discussion_title_url: https://github.com/community/community/discussions/39082
+ - type: discussion_body
+ details:
+ discussion_body_url: https://github.com/community/community/discussions/39082#discussion-4566270
+ - type: discussion_comment
+ details:
+ discussion_comment_url: https://github.com/community/community/discussions/39082#discussioncomment-4158232
+ - type: pull_request_title
+ details:
+ pull_request_title_url: https://api.github.com/repos/octocat/Hello-World/pull/2846
+ - type: pull_request_body
+ details:
+ pull_request_body_url: https://api.github.com/repos/octocat/Hello-World/pulls/2846
+ - type: pull_request_comment
+ details:
+ pull_request_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments/1825855898
+ - type: pull_request_review
+ details:
+ pull_request_review_url: https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80
+ - type: pull_request_review_comment
+ details:
+ pull_request_review_comment_url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/12
repository-advisory:
value:
ghsa_id: GHSA-abcd-1234-efgh
@@ -223729,6 +226698,71 @@ components:
repositories_url: https://api.github.com/teams/1/repos
permission: admin
parent:
+ private_fork:
+ id: 217723378
+ node_id: MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=
+ name: octo-repo-ghsa-abcd-1234-efgh
+ full_name: octo-org/octo-repo-ghsa-abcd-1234-efgh
+ owner:
+ login: octo-org
+ id: 6811672
+ node_id: MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=
+ avatar_url: https://avatars3.githubusercontent.com/u/6811672?v=4
+ gravatar_id: ''
+ url: https://api.github.com/users/octo-org
+ html_url: https://github.com/octo-org
+ followers_url: https://api.github.com/users/octo-org/followers
+ following_url: https://api.github.com/users/octo-org/following{/other_user}
+ gists_url: https://api.github.com/users/octo-org/gists{/gist_id}
+ starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo}
+ subscriptions_url: https://api.github.com/users/octo-org/subscriptions
+ organizations_url: https://api.github.com/users/octo-org/orgs
+ repos_url: https://api.github.com/users/octo-org/repos
+ events_url: https://api.github.com/users/octo-org/events{/privacy}
+ received_events_url: https://api.github.com/users/octo-org/received_events
+ type: Organization
+ site_admin: false
+ private: true
+ html_url: https://github.com/octo-org/octo-repo-ghsa-abcd-1234-efgh
+ description:
+ fork: false
+ url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh
+ archive_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/{archive_format}{/ref}
+ assignees_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/assignees{/user}
+ blobs_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/blobs{/sha}
+ branches_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/branches{/branch}
+ collaborators_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/collaborators{/collaborator}
+ comments_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/comments{/number}
+ commits_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/commits{/sha}
+ compare_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/compare/{base}...{head}
+ contents_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contents/{+path}
+ contributors_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/contributors
+ deployments_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/deployments
+ downloads_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/downloads
+ events_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/events
+ forks_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/forks
+ git_commits_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/commits{/sha}
+ git_refs_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/refs{/sha}
+ git_tags_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/tags{/sha}
+ hooks_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/hooks
+ issue_comment_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/comments{/number}
+ issue_events_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues/events{/number}
+ issues_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/issues{/number}
+ keys_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/keys{/key_id}
+ labels_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/labels{/name}
+ languages_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/languages
+ merges_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/merges
+ milestones_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/milestones{/number}
+ notifications_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/notifications{?since,all,participating}
+ pulls_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/pulls{/number}
+ releases_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/releases{/id}
+ stargazers_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/stargazers
+ statuses_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/statuses/{sha}
+ subscribers_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscribers
+ subscription_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/subscription
+ tags_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/tags
+ teams_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/teams
+ trees_url: https://api.github.com/repos/octo-org/octo-repo-ghsa-abcd-1234-efgh/git/trees{/sha}
repository-advisory-pvr:
value:
ghsa_id: GHSA-abcd-1234-efgh
@@ -223843,6 +226877,7 @@ components:
repositories_url: https://api.github.com/teams/1/repos
permission: admin
parent:
+ private_fork:
simple-user-items-default-response:
summary: Default response
value:
@@ -224494,118 +227529,6 @@ components:
allow_forking: true
subscribers_count: 42
network_count: 0
- repository-3:
- value:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World
- full_name: octocat/Hello-World
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World
- archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World/events
- forks_url: https://api.github.com/repos/octocat/Hello-World/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World.git
- mirror_url: git:git.example.com/octocat/Hello-World
- hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks
- svn_url: https://svn.github.com/octocat/Hello-World
- homepage: https://github.com
- language:
- forks_count: 9
- forks: 9
- stargazers_count: 80
- watchers_count: 80
- watchers: 80
- size: 108
- default_branch: master
- open_issues_count: 0
- open_issues: 0
- is_template: false
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- admin: false
- push: false
- pull: true
- allow_rebase_merge: true
- allow_auto_merge: false
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://github.com/licenses/mit
public-repository-items:
value:
- id: 1296269
@@ -225299,125 +228222,6 @@ components:
pull: true
role_name: read
allow_rebase_merge: true
- template_repository:
- id: 1296269
- node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
- name: Hello-World-Template
- full_name: octocat/Hello-World-Template
- owner:
- login: octocat
- id: 1
- node_id: MDQ6VXNlcjE=
- avatar_url: https://github.com/images/error/octocat_happy.gif
- gravatar_id: ''
- url: https://api.github.com/users/octocat
- html_url: https://github.com/octocat
- followers_url: https://api.github.com/users/octocat/followers
- following_url: https://api.github.com/users/octocat/following{/other_user}
- gists_url: https://api.github.com/users/octocat/gists{/gist_id}
- starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
- subscriptions_url: https://api.github.com/users/octocat/subscriptions
- organizations_url: https://api.github.com/users/octocat/orgs
- repos_url: https://api.github.com/users/octocat/repos
- events_url: https://api.github.com/users/octocat/events{/privacy}
- received_events_url: https://api.github.com/users/octocat/received_events
- type: User
- site_admin: false
- private: false
- html_url: https://github.com/octocat/Hello-World-Template
- description: This your first repo!
- fork: false
- url: https://api.github.com/repos/octocat/Hello-World-Template
- archive_url: https://api.github.com/repos/octocat/Hello-World-Template/{archive_format}{/ref}
- assignees_url: https://api.github.com/repos/octocat/Hello-World-Template/assignees{/user}
- blobs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/blobs{/sha}
- branches_url: https://api.github.com/repos/octocat/Hello-World-Template/branches{/branch}
- collaborators_url: https://api.github.com/repos/octocat/Hello-World-Template/collaborators{/collaborator}
- comments_url: https://api.github.com/repos/octocat/Hello-World-Template/comments{/number}
- commits_url: https://api.github.com/repos/octocat/Hello-World-Template/commits{/sha}
- compare_url: https://api.github.com/repos/octocat/Hello-World-Template/compare/{base}...{head}
- contents_url: https://api.github.com/repos/octocat/Hello-World-Template/contents/{+path}
- contributors_url: https://api.github.com/repos/octocat/Hello-World-Template/contributors
- deployments_url: https://api.github.com/repos/octocat/Hello-World-Template/deployments
- downloads_url: https://api.github.com/repos/octocat/Hello-World-Template/downloads
- events_url: https://api.github.com/repos/octocat/Hello-World-Template/events
- forks_url: https://api.github.com/repos/octocat/Hello-World-Template/forks
- git_commits_url: https://api.github.com/repos/octocat/Hello-World-Template/git/commits{/sha}
- git_refs_url: https://api.github.com/repos/octocat/Hello-World-Template/git/refs{/sha}
- git_tags_url: https://api.github.com/repos/octocat/Hello-World-Template/git/tags{/sha}
- git_url: git:github.com/octocat/Hello-World-Template.git
- issue_comment_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/comments{/number}
- issue_events_url: https://api.github.com/repos/octocat/Hello-World-Template/issues/events{/number}
- issues_url: https://api.github.com/repos/octocat/Hello-World-Template/issues{/number}
- keys_url: https://api.github.com/repos/octocat/Hello-World-Template/keys{/key_id}
- labels_url: https://api.github.com/repos/octocat/Hello-World-Template/labels{/name}
- languages_url: https://api.github.com/repos/octocat/Hello-World-Template/languages
- merges_url: https://api.github.com/repos/octocat/Hello-World-Template/merges
- milestones_url: https://api.github.com/repos/octocat/Hello-World-Template/milestones{/number}
- notifications_url: https://api.github.com/repos/octocat/Hello-World-Template/notifications{?since,all,participating}
- pulls_url: https://api.github.com/repos/octocat/Hello-World-Template/pulls{/number}
- releases_url: https://api.github.com/repos/octocat/Hello-World-Template/releases{/id}
- ssh_url: git@github.com:octocat/Hello-World-Template.git
- stargazers_url: https://api.github.com/repos/octocat/Hello-World-Template/stargazers
- statuses_url: https://api.github.com/repos/octocat/Hello-World-Template/statuses/{sha}
- subscribers_url: https://api.github.com/repos/octocat/Hello-World-Template/subscribers
- subscription_url: https://api.github.com/repos/octocat/Hello-World-Template/subscription
- tags_url: https://api.github.com/repos/octocat/Hello-World-Template/tags
- teams_url: https://api.github.com/repos/octocat/Hello-World-Template/teams
- trees_url: https://api.github.com/repos/octocat/Hello-World-Template/git/trees{/sha}
- clone_url: https://github.com/octocat/Hello-World-Template.git
- mirror_url: git:git.example.com/octocat/Hello-World-Template
- hooks_url: https://api.github.com/repos/octocat/Hello-World-Template/hooks
- svn_url: https://svn.github.com/octocat/Hello-World-Template
- homepage: https://github.com
- language:
- forks: 9
- forks_count: 9
- stargazers_count: 80
- watchers_count: 80
- watchers: 80
- size: 108
- default_branch: master
- open_issues: 0
- open_issues_count: 0
- is_template: true
- license:
- key: mit
- name: MIT License
- url: https://api.github.com/licenses/mit
- spdx_id: MIT
- node_id: MDc6TGljZW5zZW1pdA==
- html_url: https://api.github.com/licenses/mit
- topics:
- - octocat
- - atom
- - electron
- - api
- has_issues: true
- has_projects: true
- has_wiki: true
- has_pages: false
- has_downloads: true
- archived: false
- disabled: false
- visibility: public
- pushed_at: '2011-01-26T19:06:43Z'
- created_at: '2011-01-26T19:01:12Z'
- updated_at: '2011-01-26T19:14:43Z'
- permissions:
- pull: true
- triage: false
- push: false
- maintain: false
- admin: false
- allow_rebase_merge: true
- temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
- allow_squash_merge: true
- allow_auto_merge: false
- delete_branch_on_merge: true
- allow_merge_commit: true
- subscribers_count: 42
- network_count: 0
temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O
allow_squash_merge: true
allow_auto_merge: false
@@ -229663,7 +232467,8 @@ components:
pagination-before:
name: before
description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers).
- If specified, the query only searches for results before this cursor.
+ If specified, the query only searches for results before this cursor. For
+ more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
required: false
schema:
@@ -229671,7 +232476,8 @@ components:
pagination-after:
name: after
description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers).
- If specified, the query only searches for results after this cursor.
+ If specified, the query only searches for results after this cursor. For more
+ information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
required: false
schema:
@@ -229696,7 +232502,8 @@ components:
type: string
per-page:
name: per_page
- description: The number of results per page (max 100).
+ description: The number of results per page (max 100). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -229718,7 +232525,8 @@ components:
type: integer
page:
name: page
- description: Page number of the results to fetch.
+ description: The page number of the results to fetch. For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -229905,6 +232713,15 @@ components:
- created
- updated
default: created
+ secret-scanning-alert-validity:
+ name: validity
+ in: query
+ description: A comma-separated list of validities that, when present, will return
+ alerts that match the validities in this list. Valid options are `active`,
+ `inactive`, and `unknown`.
+ required: false
+ schema:
+ type: string
gist-id:
name: gist_id
description: The unique identifier of the gist.
@@ -230047,7 +232864,8 @@ components:
type: string
variables-per-page:
name: per_page
- description: The number of results per page (max 30).
+ description: The number of results per page (max 30). For more information,
+ see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
@@ -230087,7 +232905,8 @@ components:
"$ref": "#/components/schemas/code-scanning-analysis-tool-guid"
hook-id:
name: hook_id
- description: The unique identifier of the hook.
+ description: The unique identifier of the hook. You can find this value in the
+ `X-GitHub-Hook-ID` header of a webhook delivery.
in: path
required: true
schema:
@@ -230120,6 +232939,20 @@ components:
required: true
schema:
type: string
+ team-slug:
+ name: team_slug
+ description: The slug of the team name.
+ in: path
+ required: true
+ schema:
+ type: string
+ role-id:
+ name: role_id
+ description: The unique identifier of the role.
+ in: path
+ required: true
+ schema:
+ type: integer
package-visibility:
name: visibility
description: |-
@@ -230231,6 +233064,67 @@ components:
required: true
schema:
type: integer
+ custom-property-name:
+ name: custom_property_name
+ description: The custom property name. The name is case sensitive.
+ in: path
+ required: true
+ schema:
+ type: string
+ repository-name-in-query:
+ name: repository_name
+ description: The name of the repository to filter on. When specified, only rule
+ evaluations from this repository will be returned.
+ in: query
+ schema:
+ type: integer
+ time-period:
+ name: time_period
+ description: |-
+ The time period to filter by.
+
+ For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours).
+ in: query
+ required: false
+ schema:
+ type: string
+ enum:
+ - hour
+ - day
+ - week
+ - month
+ default: day
+ actor-name-in-query:
+ name: actor_name
+ description: The handle for the GitHub user account to filter on. When specified,
+ only rule evaluations triggered by this actor will be returned.
+ in: query
+ schema:
+ type: string
+ rule-suite-result:
+ name: rule_suite_result
+ description: The rule results to filter on. When specified, only suites with
+ this result will be returned.
+ in: query
+ schema:
+ type: string
+ enum:
+ - pass
+ - fail
+ - bypass
+ - all
+ default: all
+ rule-suite-id:
+ name: rule_suite_id
+ description: |-
+ The unique identifier of the rule suite result.
+ To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites)
+ for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites)
+ for organizations.
+ in: path
+ required: true
+ schema:
+ type: integer
secret-scanning-pagination-before-org-repo:
name: before
description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers).
@@ -230249,13 +233143,6 @@ components:
required: false
schema:
type: string
- team-slug:
- name: team_slug
- description: The slug of the team name.
- in: path
- required: true
- schema:
- type: string
discussion-number:
name: discussion_number
description: The number that identifies the discussion.
@@ -230422,7 +233309,8 @@ components:
name: status
description: Returns workflow runs with the check run `status` or `conclusion`
that you specify. For example, a conclusion can be `success` or a status can
- be `in_progress`. Only GitHub can set a status of `waiting` or `requested`.
+ be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`,
+ or `requested`.
in: query
required: false
schema:
@@ -230619,7 +233507,8 @@ components:
name: environment_name
in: path
required: true
- description: The name of the environment.
+ description: The name of the environment. The name must be URL encoded. For
+ example, any slashes in the name must be replaced with `%2F`.
schema:
type: string
branch-policy-id:
@@ -230636,6 +233525,16 @@ components:
required: true
schema:
type: integer
+ git-ref-only:
+ name: ref
+ description: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)"
+ in the Git documentation.
+ in: path
+ required: true
+ example: heads/feature-a
+ schema:
+ type: string
+ x-multi-segment: true
since-user:
name: since
description: A user ID. Only return users with an ID greater than this ID.
@@ -230664,6 +233563,16 @@ components:
required: true
schema:
type: integer
+ pages-deployment-id:
+ name: pages_deployment_id
+ description: The ID of the Pages deployment. You can also give the commit SHA
+ of the deployment.
+ in: path
+ required: true
+ schema:
+ oneOf:
+ - type: integer
+ - type: string
pull-number:
name: pull_number
description: The number that identifies the pull request.
@@ -230692,6 +233601,14 @@ components:
required: true
schema:
type: integer
+ ref-in-query:
+ name: ref
+ description: The name of the ref. Cannot contain wildcard characters. When specified,
+ only rule evaluations triggered for this ref will be returned.
+ in: query
+ schema:
+ type: string
+ x-multi-segment: true
tag-protection-id:
name: tag_protection_id
description: The unique identifier of the tag protection.
@@ -231007,6 +233924,12 @@ components:
application/json:
schema:
"$ref": "#/components/schemas/basic-error"
+ unacceptable:
+ description: Unacceptable
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/basic-error"
headers:
link:
example: ; rel="next", ;
diff --git a/integration-tests-definitions/stripe.yaml b/integration-tests-definitions/stripe.yaml
index f3f7bf74..12a68d48 100644
--- a/integration-tests-definitions/stripe.yaml
+++ b/integration-tests-definitions/stripe.yaml
@@ -15,12 +15,11 @@ components:
accounts, some properties are returned until that
account has started to go through Connect Onboarding. Once you create an
- [Account Link](https://stripe.com/docs/api/account_links)
+ [Account Link](https://stripe.com/docs/api/account_links) or [Account
+ Session](https://stripe.com/docs/api/account_sessions),
- for a Standard or Express account, some parameters are no longer
- returned. These are marked as **Custom Only** or **Custom and Express**
-
- below. Learn about the differences [between
+ some properties are only returned for Custom accounts. Learn about the
+ differences [between
accounts](https://stripe.com/docs/connect/accounts).
properties:
business_profile:
@@ -29,7 +28,11 @@ components:
description: Business information about the account.
nullable: true
business_type:
- description: The business type.
+ description: >-
+ The business type. Once you create an [Account
+ Link](https://stripe.com/docs/api/account_links) or [Account
+ Session](https://stripe.com/docs/api/account_sessions), this
+ property is only returned for Custom accounts.
enum:
- company
- government_entity
@@ -80,7 +83,8 @@ components:
external_accounts:
description: >-
External accounts (bank accounts and debit cards) currently attached
- to this account
+ to this account. External accounts are only returned for requests
+ where `controller[is_controller]` is true.
properties:
data:
description: >-
@@ -161,6 +165,7 @@ components:
- express
- standard
type: string
+ x-stripeBypassValidation: true
required:
- id
- object
@@ -178,15 +183,58 @@ components:
- settings
- tos_acceptance
x-resourceId: account
+ account_annual_revenue:
+ description: ''
+ properties:
+ amount:
+ description: >-
+ A non-negative integer representing the amount in the [smallest
+ currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ nullable: true
+ type: integer
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ nullable: true
+ type: string
+ fiscal_year_end:
+ description: >-
+ The close-out date of the preceding fiscal year in ISO 8601 format.
+ E.g. 2023-12-31 for the 31st of December, 2023.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: AccountAnnualRevenue
+ type: object
+ x-expandableFields: []
account_bacs_debit_payments_settings:
description: ''
properties:
display_name:
description: >-
- The Bacs Direct Debit Display Name for this account. For payments
- made with Bacs Direct Debit, this will appear on the mandate, and as
- the statement descriptor.
+ The Bacs Direct Debit display name for this account. For payments
+ made with Bacs Direct Debit, this name appears on the mandate as the
+ statement descriptor. Mobile banking apps display it as the name of
+ the business. To use custom branding, set the Bacs Direct Debit
+ Display Name during or right after creation. Custom branding incurs
+ an additional monthly fee for the platform. The fee appears 5
+ business days after requesting Bacs. If you don't set the display
+ name before requesting Bacs capability, it's automatically set as
+ "Stripe" and the account is onboarded to Stripe branding, which is
+ free.
+ maxLength: 5000
+ nullable: true
+ type: string
+ service_user_number:
+ description: >-
+ The Bacs Direct Debit Service user number for this account. For
+ payments made with Bacs Direct Debit, this number is a unique
+ identifier of the account with our banking partners.
maxLength: 5000
+ nullable: true
type: string
title: AccountBacsDebitPaymentsSettings
type: object
@@ -242,6 +290,17 @@ components:
account_business_profile:
description: ''
properties:
+ annual_revenue:
+ anyOf:
+ - $ref: '#/components/schemas/account_annual_revenue'
+ description: The applicant's gross annual revenue for its preceding fiscal year.
+ nullable: true
+ estimated_worker_count:
+ description: >-
+ An estimated upper bound of employees, contractors, vendors, etc.
+ currently working for the business.
+ nullable: true
+ type: integer
mcc:
description: >-
[The merchant category code for the
@@ -293,6 +352,7 @@ components:
title: AccountBusinessProfile
type: object
x-expandableFields:
+ - annual_revenue
- monthly_estimated_revenue
- support_address
account_capabilities:
@@ -326,6 +386,15 @@ components:
- inactive
- pending
type: string
+ amazon_pay_payments:
+ description: >-
+ The status of the AmazonPay capability of the account, or whether
+ the account can directly process AmazonPay payments.
+ enum:
+ - active
+ - inactive
+ - pending
+ type: string
au_becs_debit_payments:
description: >-
The status of the BECS Direct Debit (AU) payments capability of the
@@ -520,6 +589,15 @@ components:
- inactive
- pending
type: string
+ mobilepay_payments:
+ description: >-
+ The status of the MobilepPay capability of the account, or whether
+ the account can directly process MobilePay charges.
+ enum:
+ - active
+ - inactive
+ - pending
+ type: string
oxxo_payments:
description: >-
The status of the OXXO payments capability of the account, or
@@ -556,6 +634,15 @@ components:
- inactive
- pending
type: string
+ revolut_pay_payments:
+ description: >-
+ The status of the RevolutPay capability of the account, or whether
+ the account can directly process RevolutPay payments.
+ enum:
+ - active
+ - inactive
+ - pending
+ type: string
sepa_debit_payments:
description: >-
The status of the SEPA Direct Debits payments capability of the
@@ -575,6 +662,15 @@ components:
- inactive
- pending
type: string
+ swish_payments:
+ description: >-
+ The status of the Swish capability of the account, or whether the
+ account can directly process Swish payments.
+ enum:
+ - active
+ - inactive
+ - pending
+ type: string
tax_reporting_us_1099_k:
description: >-
The status of the tax reporting 1099-K (US) capability of the
@@ -942,9 +1038,7 @@ components:
disabled_reason:
description: >-
This is typed as a string for consistency with
- `requirements.disabled_reason`, but it safe to assume
- `future_requirements.disabled_reason` is empty because fields in
- `future_requirements` will never disable the account.
+ `requirements.disabled_reason`.
maxLength: 5000
nullable: true
type: string
@@ -994,6 +1088,27 @@ components:
x-expandableFields:
- alternatives
- errors
+ account_invoices_settings:
+ description: ''
+ properties:
+ default_account_tax_ids:
+ description: >-
+ The list of default Account Tax IDs to automatically include on
+ invoices. Account Tax IDs get added when an invoice is finalized.
+ items:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/tax_id'
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/tax_id'
+ nullable: true
+ type: array
+ title: AccountInvoicesSettings
+ type: object
+ x-expandableFields:
+ - default_account_tax_ids
account_link:
description: >-
Account Links are the means by which a Connect platform grants a
@@ -1042,7 +1157,7 @@ components:
description: >-
A non-negative integer representing how much to charge in the
[smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal).
+ unit](https://docs.stripe.com/currencies#zero-decimal).
type: integer
currency:
description: >-
@@ -1165,10 +1280,14 @@ components:
type: array
disabled_reason:
description: >-
- If the account is disabled, this string describes why. Can be
+ If the account is disabled, this string describes why. [Learn more
+ about handling verification
+ issues](https://stripe.com/docs/connect/handling-api-verification).
+ Can be `action_required.requested_capabilities`,
`requirements.past_due`, `requirements.pending_verification`,
- `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`,
- `rejected.terms_of_service`, `rejected.other`, `under_review`, or
+ `listed`, `platform_paused`, `rejected.fraud`,
+ `rejected.incomplete_verification`, `rejected.listed`,
+ `rejected.other`, `rejected.terms_of_service`, `under_review`, or
`other`.
maxLength: 5000
nullable: true
@@ -1248,10 +1367,43 @@ components:
description: The code for the type of error.
enum:
- invalid_address_city_state_postal_code
+ - invalid_address_highway_contract_box
+ - invalid_address_private_mailbox
+ - invalid_business_profile_name
+ - invalid_business_profile_name_denylisted
+ - invalid_company_name_denylisted
+ - invalid_dob_age_over_maximum
- invalid_dob_age_under_18
+ - invalid_dob_age_under_minimum
+ - invalid_product_description_length
+ - invalid_product_description_url_match
- invalid_representative_country
+ - invalid_statement_descriptor_business_mismatch
+ - invalid_statement_descriptor_denylisted
+ - invalid_statement_descriptor_length
+ - invalid_statement_descriptor_prefix_denylisted
+ - invalid_statement_descriptor_prefix_mismatch
- invalid_street_address
+ - invalid_tax_id
+ - invalid_tax_id_format
- invalid_tos_acceptance
+ - invalid_url_denylisted
+ - invalid_url_format
+ - invalid_url_web_presence_detected
+ - invalid_url_website_business_information_mismatch
+ - invalid_url_website_empty
+ - invalid_url_website_inaccessible
+ - invalid_url_website_inaccessible_geoblocked
+ - invalid_url_website_inaccessible_password_protected
+ - invalid_url_website_incomplete
+ - invalid_url_website_incomplete_cancellation_policy
+ - invalid_url_website_incomplete_customer_service_details
+ - invalid_url_website_incomplete_legal_restrictions
+ - invalid_url_website_incomplete_refund_policy
+ - invalid_url_website_incomplete_return_policy
+ - invalid_url_website_incomplete_terms_and_conditions
+ - invalid_url_website_incomplete_under_construction
+ - invalid_url_website_other
- invalid_value_other
- verification_directors_mismatch
- verification_document_address_mismatch
@@ -1293,6 +1445,7 @@ components:
- verification_failed_keyed_match
- verification_failed_name_match
- verification_failed_other
+ - verification_failed_representative_authority
- verification_failed_residential_address
- verification_failed_tax_id_match
- verification_failed_tax_id_not_issued
@@ -1416,6 +1569,8 @@ components:
$ref: '#/components/schemas/account_card_payments_settings'
dashboard:
$ref: '#/components/schemas/account_dashboard_settings'
+ invoices:
+ $ref: '#/components/schemas/account_invoices_settings'
payments:
$ref: '#/components/schemas/account_payments_settings'
payouts:
@@ -1437,6 +1592,7 @@ components:
- card_issuing
- card_payments
- dashboard
+ - invoices
- payments
- payouts
- sepa_debit_payments
@@ -1631,8 +1787,8 @@ components:
- $ref: '#/components/schemas/card'
- $ref: '#/components/schemas/source'
description: >-
- The source object for errors returned on a request involving a
- source.
+ The [source object](https://stripe.com/docs/api/sources/object) for
+ errors returned on a request involving a source.
type:
description: >-
The type of error returned. One of `api_error`, `card_error`,
@@ -1957,6 +2113,15 @@ components:
amounts, or `tax_behavior=unspecified`) cannot be added to automatic
tax invoices.
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
status:
description: >-
The status of the most recent automated tax calculation for this
@@ -1971,7 +2136,8 @@ components:
- enabled
title: AutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
balance:
description: >-
This is an object representing your Stripe balance. You can retrieve it
@@ -2019,7 +2185,7 @@ components:
instant_available:
description: Funds that you can pay out using Instant Payouts.
items:
- $ref: '#/components/schemas/balance_amount'
+ $ref: '#/components/schemas/balance_amount_net'
type: array
issuing:
$ref: '#/components/schemas/balance_detail'
@@ -2094,6 +2260,28 @@ components:
title: BalanceAmountBySourceType
type: object
x-expandableFields: []
+ balance_amount_net:
+ description: ''
+ properties:
+ amount:
+ description: Balance amount.
+ type: integer
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ type: string
+ source_types:
+ $ref: '#/components/schemas/balance_amount_by_source_type'
+ required:
+ - amount
+ - currency
+ title: BalanceAmountNet
+ type: object
+ x-expandableFields:
+ - source_types
balance_detail:
description: ''
properties:
@@ -2120,7 +2308,10 @@ components:
types](https://stripe.com/docs/reports/balance-transaction-types)
properties:
amount:
- description: Gross amount of the transaction (in cents (or local equivalent)).
+ description: >-
+ Gross amount of this transaction (in cents (or local equivalent)). A
+ positive value represents funds charged to another party, and a
+ negative value represents funds sent to another party.
type: integer
available_on:
description: >-
@@ -2161,7 +2352,9 @@ components:
nullable: true
type: number
fee:
- description: Fees (in cents (or local equivalent)) paid for this transaction.
+ description: >-
+ Fees (in cents (or local equivalent)) paid for this transaction.
+ Represented as a positive integer when assessed.
type: integer
fee_details:
description: >-
@@ -2175,7 +2368,11 @@ components:
maxLength: 5000
type: string
net:
- description: Net amount of the transaction (in cents (or local equivalent)).
+ description: >-
+ Net impact to a Stripe balance (in cents (or local equivalent)). A
+ positive value represents incrementing a Stripe balance, and a
+ negative value decrementing a Stripe balance. You can calculate the
+ net impact of a transaction on a balance by `amount` - `fee`
type: integer
object:
description: >-
@@ -2186,9 +2383,10 @@ components:
type: string
reporting_category:
description: >-
- Learn more about how [reporting categories]
- (https://stripe.com/docs/reports/reporting-categories) can help you
- understand balance transactions from an accounting perspective.
+ Learn more about how [reporting
+ categories](https://stripe.com/docs/reports/reporting-categories)
+ can help you understand balance transactions from an accounting
+ perspective.
maxLength: 5000
type: string
source:
@@ -2244,13 +2442,14 @@ components:
description: >-
Transaction type: `adjustment`, `advance`, `advance_funding`,
`anticipation_repayment`, `application_fee`,
- `application_fee_refund`, `charge`, `connect_collection_transfer`,
+ `application_fee_refund`, `charge`, `climate_order_purchase`,
+ `climate_order_refund`, `connect_collection_transfer`,
`contribution`, `issuing_authorization_hold`,
`issuing_authorization_release`, `issuing_dispute`,
- `issuing_transaction`, `obligation_inbound`, `obligation_outbound`,
- `obligation_reversal_inbound`, `obligation_reversal_outbound`,
- `obligation_payout`, `obligation_payout_failure`, `payment`,
- `payment_failure_refund`, `payment_refund`, `payment_reversal`,
+ `issuing_transaction`, `obligation_outbound`,
+ `obligation_reversal_inbound`, `payment`, `payment_failure_refund`,
+ `payment_network_reserve_hold`, `payment_network_reserve_release`,
+ `payment_refund`, `payment_reversal`, `payment_unreconciled`,
`payout`, `payout_cancel`, `payout_failure`, `refund`,
`refund_failure`, `reserve_transaction`, `reserved_funds`,
`stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`,
@@ -2268,22 +2467,23 @@ components:
- application_fee
- application_fee_refund
- charge
+ - climate_order_purchase
+ - climate_order_refund
- connect_collection_transfer
- contribution
- issuing_authorization_hold
- issuing_authorization_release
- issuing_dispute
- issuing_transaction
- - obligation_inbound
- obligation_outbound
- - obligation_payout
- - obligation_payout_failure
- obligation_reversal_inbound
- - obligation_reversal_outbound
- payment
- payment_failure_refund
+ - payment_network_reserve_hold
+ - payment_network_reserve_release
- payment_refund
- payment_reversal
+ - payment_unreconciled
- payout
- payout_cancel
- payout_failure
@@ -2479,15 +2679,17 @@ components:
run. If customer bank account verification has succeeded, the bank
account status will be `verified`. If the verification failed for
any reason, such as microdeposit failure, the status will be
- `verification_failed`. If a transfer sent to this bank account
- fails, we'll set the status to `errored` and will not continue to
- send transfers until the bank details are updated.
+ `verification_failed`. If a payout sent to this bank account fails,
+ we'll set the status to `errored` and will not continue to send
+ [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule)
+ until the bank details are updated.
For external accounts, possible values are `new`, `errored` and
- `verification_failed`. If a transfer fails, the status is set to
- `errored` and transfers are stopped until account details are
- updated. In India, if we can't [verify the owner of the bank
+ `verification_failed`. If a payout fails, the status is set to
+ `errored` and scheduled payouts are stopped until account details
+ are updated. In the US and India, if we can't [verify the owner of
+ the bank
account](https://support.stripe.com/questions/bank-account-ownership-verification),
we'll set the status to `verification_failed`. Other validations
aren't run against external accounts because they're only used for
@@ -2651,6 +2853,14 @@ components:
in seconds since the Unix epoch.
format: unix-time
type: integer
+ next_refresh_available_at:
+ description: >-
+ Time at which the next balance refresh can be initiated. This value
+ will be `null` when `status` is `pending`. Measured in seconds since
+ the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
status:
description: The status of the last refresh attempt.
enum:
@@ -2699,6 +2909,315 @@ components:
title: BankConnectionsResourceOwnershipRefresh
type: object
x-expandableFields: []
+ bank_connections_resource_transaction_refresh:
+ description: ''
+ properties:
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ last_attempted_at:
+ description: >-
+ The time at which the last refresh attempt was initiated. Measured
+ in seconds since the Unix epoch.
+ format: unix-time
+ type: integer
+ next_refresh_available_at:
+ description: >-
+ Time at which the next transaction refresh can be initiated. This
+ value will be `null` when `status` is `pending`. Measured in seconds
+ since the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ status:
+ description: The status of the last refresh attempt.
+ enum:
+ - failed
+ - pending
+ - succeeded
+ type: string
+ required:
+ - id
+ - last_attempted_at
+ - status
+ title: BankConnectionsResourceTransactionRefresh
+ type: object
+ x-expandableFields: []
+ bank_connections_resource_transaction_resource_status_transitions:
+ description: ''
+ properties:
+ posted_at:
+ description: >-
+ Time at which this transaction posted. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ void_at:
+ description: >-
+ Time at which this transaction was voided. Measured in seconds since
+ the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ title: BankConnectionsResourceTransactionResourceStatusTransitions
+ type: object
+ x-expandableFields: []
+ billing.meter:
+ description: >-
+ A billing meter is a resource that allows you to track usage of a
+ particular event. For example, you might create a billing meter to track
+ the number of API calls made by a particular user. You can then use the
+ billing meter to charge the user for the number of API calls they make.
+ properties:
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ customer_mapping:
+ $ref: >-
+ #/components/schemas/billing_meter_resource_customer_mapping_settings
+ default_aggregation:
+ $ref: '#/components/schemas/billing_meter_resource_aggregation_settings'
+ display_name:
+ description: The meter's name.
+ maxLength: 5000
+ type: string
+ event_name:
+ description: >-
+ The name of the usage event to record usage for. Corresponds with
+ the `event_name` field on usage events.
+ maxLength: 5000
+ type: string
+ event_time_window:
+ description: 'The time window to pre-aggregate usage events for, if any.'
+ enum:
+ - day
+ - hour
+ nullable: true
+ type: string
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - billing.meter
+ type: string
+ status:
+ description: The meter's status.
+ enum:
+ - active
+ - inactive
+ type: string
+ status_transitions:
+ $ref: >-
+ #/components/schemas/billing_meter_resource_billing_meter_status_transitions
+ updated:
+ description: >-
+ Time at which the object was last updated. Measured in seconds since
+ the Unix epoch.
+ format: unix-time
+ type: integer
+ value_settings:
+ $ref: '#/components/schemas/billing_meter_resource_billing_meter_value'
+ required:
+ - created
+ - customer_mapping
+ - default_aggregation
+ - display_name
+ - event_name
+ - id
+ - livemode
+ - object
+ - status
+ - status_transitions
+ - updated
+ - value_settings
+ title: BillingMeter
+ type: object
+ x-expandableFields:
+ - customer_mapping
+ - default_aggregation
+ - status_transitions
+ - value_settings
+ x-resourceId: billing.meter
+ billing.meter_event:
+ description: >-
+ A billing meter event represents a customer's usage of a product. Meter
+ events are used to bill a customer based on their usage.
+
+ Meter events are associated with billing meters, which define the shape
+ of the event's payload and how those events are aggregated for billing.
+ properties:
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ event_name:
+ description: >-
+ The name of the meter event. Corresponds with the `event_name` field
+ on a meter.
+ maxLength: 100
+ type: string
+ identifier:
+ description: A unique identifier for the event.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - billing.meter_event
+ type: string
+ payload:
+ additionalProperties:
+ maxLength: 100
+ type: string
+ description: The payload of the event.
+ type: object
+ timestamp:
+ description: >-
+ The timestamp passed in when creating the event. Measured in seconds
+ since the Unix epoch.
+ format: unix-time
+ type: integer
+ required:
+ - created
+ - event_name
+ - identifier
+ - livemode
+ - object
+ - payload
+ - timestamp
+ title: BillingMeterEvent
+ type: object
+ x-expandableFields: []
+ x-resourceId: billing.meter_event
+ billing.meter_event_adjustment:
+ description: >-
+ A billing meter event adjustment represents the status of a meter event
+ adjustment.
+ properties:
+ cancel:
+ $ref: >-
+ #/components/schemas/billing_meter_resource_billing_meter_event_adjustment_cancel
+ event_name:
+ description: >-
+ The name of the meter event. Corresponds with the `event_name` field
+ on a meter.
+ maxLength: 100
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - billing.meter_event_adjustment
+ type: string
+ status:
+ description: The meter event adjustment's status.
+ enum:
+ - complete
+ - pending
+ type: string
+ type:
+ description: >-
+ Specifies whether to cancel a single event or a range of events for
+ a time period.
+ enum:
+ - cancel
+ type: string
+ required:
+ - cancel
+ - event_name
+ - livemode
+ - object
+ - status
+ - type
+ title: BillingMeterEventAdjustment
+ type: object
+ x-expandableFields:
+ - cancel
+ x-resourceId: billing.meter_event_adjustment
+ billing.meter_event_summary:
+ description: >-
+ A billing meter event summary represents an aggregated view of a
+ customer's billing meter events within a specified timeframe. It
+ indicates how much
+
+ usage was accrued by a customer for that period.
+ properties:
+ aggregated_value:
+ description: >-
+ Aggregated value of all the events within start_time (inclusive) and
+ end_time (inclusive). The aggregation strategy is defined on meter
+ via `default_aggregation``.
+ type: number
+ end_time:
+ description: End timestamp for this usage summary (inclusive).
+ format: unix-time
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ meter:
+ description: The meter associated with this usage summary.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - billing.meter_event_summary
+ type: string
+ start_time:
+ description: Start timestamp for this usage summary (inclusive).
+ format: unix-time
+ type: integer
+ required:
+ - aggregated_value
+ - end_time
+ - id
+ - livemode
+ - meter
+ - object
+ - start_time
+ title: BillingMeterEventSummary
+ type: object
+ x-expandableFields: []
+ x-resourceId: billing.meter_event_summary
billing_details:
description: ''
properties:
@@ -2726,6 +3245,79 @@ components:
type: object
x-expandableFields:
- address
+ billing_meter_resource_aggregation_settings:
+ description: ''
+ properties:
+ formula:
+ description: Specifies how events are aggregated.
+ enum:
+ - count
+ - sum
+ type: string
+ required:
+ - formula
+ title: BillingMeterResourceAggregationSettings
+ type: object
+ x-expandableFields: []
+ billing_meter_resource_billing_meter_event_adjustment_cancel:
+ description: ''
+ properties:
+ identifier:
+ description: Unique identifier for the event.
+ maxLength: 100
+ type: string
+ required:
+ - identifier
+ title: BillingMeterResourceBillingMeterEventAdjustmentCancel
+ type: object
+ x-expandableFields: []
+ billing_meter_resource_billing_meter_status_transitions:
+ description: ''
+ properties:
+ deactivated_at:
+ description: >-
+ The time the meter was deactivated, if any. Measured in seconds
+ since Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ title: BillingMeterResourceBillingMeterStatusTransitions
+ type: object
+ x-expandableFields: []
+ billing_meter_resource_billing_meter_value:
+ description: ''
+ properties:
+ event_payload_key:
+ description: >-
+ The key in the usage event payload to use as the value for this
+ meter.
+ maxLength: 5000
+ type: string
+ required:
+ - event_payload_key
+ title: BillingMeterResourceBillingMeterValue
+ type: object
+ x-expandableFields: []
+ billing_meter_resource_customer_mapping_settings:
+ description: ''
+ properties:
+ event_payload_key:
+ description: >-
+ The key in the usage event payload to use for mapping the event to a
+ customer.
+ maxLength: 5000
+ type: string
+ type:
+ description: The method for mapping a meter event to a customer.
+ enum:
+ - by_id
+ type: string
+ required:
+ - event_payload_key
+ - type
+ title: BillingMeterResourceCustomerMappingSettings
+ type: object
+ x-expandableFields: []
billing_portal.configuration:
description: >-
A portal configuration describes the functionality and behavior of a
@@ -3294,6 +3886,8 @@ components:
maxLength: 5000
nullable: true
type: string
+ networks:
+ $ref: '#/components/schemas/token_card_networks'
object:
description: >-
String representing the object's type. Objects of the same type
@@ -3303,9 +3897,10 @@ components:
type: string
status:
description: >-
- For external accounts, possible values are `new` and `errored`. If a
- transfer fails, the status is set to `errored` and transfers are
- stopped until account details are updated.
+ For external accounts that are cards, possible values are `new` and
+ `errored`. If a payout fails, the status is set to `errored` and
+ [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule)
+ are stopped until account details are updated.
maxLength: 5000
nullable: true
type: string
@@ -3330,6 +3925,7 @@ components:
x-expandableFields:
- account
- customer
+ - networks
x-resourceId: card
card_generated_from_payment_method_details:
description: ''
@@ -4034,7 +4630,7 @@ components:
billing_address_collection:
description: >-
Describes whether Checkout should collect the customer's billing
- address.
+ address. Defaults to `auto`.
enum:
- auto
- required
@@ -4056,6 +4652,13 @@ components:
maxLength: 5000
nullable: true
type: string
+ client_secret:
+ description: >-
+ Client secret to be used when initializing Stripe.js embedded
+ checkout.
+ maxLength: 5000
+ nullable: true
+ type: string
consent:
anyOf:
- $ref: '#/components/schemas/payment_pages_checkout_session_consent'
@@ -4094,7 +4697,7 @@ components:
custom_fields:
description: >-
Collect additional information from your customer using custom
- fields. Up to 2 fields are supported.
+ fields. Up to 3 fields are supported.
items:
$ref: '#/components/schemas/payment_pages_checkout_session_custom_fields'
type: array
@@ -4138,8 +4741,8 @@ components:
#/components/schemas/payment_pages_checkout_session_customer_details
description: >-
The customer details including the customer's tax exempt status and
- the customer's tax IDs. Only the customer's email is present on
- Sessions in `setup` mode.
+ the customer's tax IDs. Customer's address details are not present
+ on Sessions in `setup` mode.
nullable: true
customer_email:
description: >-
@@ -4317,7 +4920,7 @@ components:
payment_method_collection:
description: >-
Configure whether a Checkout Session should collect a payment
- method.
+ method. Defaults to `always`.
enum:
- always
- if_required
@@ -4368,6 +4971,24 @@ components:
maxLength: 5000
nullable: true
type: string
+ redirect_on_completion:
+ description: >-
+ This parameter applies to `ui_mode: embedded`. Learn more about the
+ [redirect
+ behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior)
+ of embedded sessions. Defaults to `always`.
+ enum:
+ - always
+ - if_required
+ - never
+ type: string
+ return_url:
+ description: >-
+ Applies to Checkout Sessions with `ui_mode: embedded`. The URL to
+ redirect your customer back to after they authenticate or cancel
+ their payment on the payment method's app or site.
+ maxLength: 5000
+ type: string
setup_intent:
anyOf:
- maxLength: 5000
@@ -4423,10 +5044,8 @@ components:
relevant text on the page, such as the submit button. `submit_type`
can only be
- specified on Checkout Sessions in `payment` mode, but not Checkout
- Sessions
-
- in `subscription` or `setup` mode.
+ specified on Checkout Sessions in `payment` mode. If blank or
+ `auto`, `pay` is used.
enum:
- auto
- book
@@ -4462,6 +5081,14 @@ components:
#/components/schemas/payment_pages_checkout_session_total_details
description: Tax and discount details for the computed total amount.
nullable: true
+ ui_mode:
+ description: The UI mode of the Session. Defaults to `hosted`.
+ enum:
+ - embedded
+ - hosted
+ nullable: true
+ type: string
+ x-stripeBypassValidation: true
url:
description: >-
The URL to the Checkout Session. Redirect customers to this URL to
@@ -4830,6 +5457,24 @@ components:
properties:
installments:
$ref: '#/components/schemas/checkout_card_installments_options'
+ request_three_d_secure:
+ description: >-
+ We strongly recommend that you rely on our SCA Engine to
+ automatically prompt your customers for authentication based on risk
+ level and [other
+ requirements](https://stripe.com/docs/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your
+ own fraud engine, provide this option. If not provided, this value
+ defaults to `automatic`. Read our guide on [manually requesting 3D
+ Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds)
+ for more information on how this configuration interacts with Radar
+ and our SCA Engine.
+ enum:
+ - any
+ - automatic
+ - challenge
+ type: string
+ x-stripeBypassValidation: true
setup_future_usage:
description: >-
Indicates that you intend to make future payments with this
@@ -4875,6 +5520,8 @@ components:
characters.
maxLength: 5000
type: string
+ required:
+ - request_three_d_secure
title: CheckoutCardPaymentMethodOptions
type: object
x-expandableFields:
@@ -5320,6 +5967,58 @@ components:
title: CheckoutPaynowPaymentMethodOptions
type: object
x-expandableFields: []
+ checkout_paypal_payment_method_options:
+ description: ''
+ properties:
+ capture_method:
+ description: >-
+ Controls when the funds will be captured from the customer's
+ account.
+ enum:
+ - manual
+ type: string
+ preferred_locale:
+ description: >-
+ Preferred locale of the PayPal checkout page that the customer is
+ redirected to.
+ maxLength: 5000
+ nullable: true
+ type: string
+ reference:
+ description: >-
+ A reference of the PayPal transaction visible to customer which is
+ mapped to PayPal's invoice ID. This must be a globally unique ID if
+ you have configured in your PayPal settings to block multiple
+ payments per invoice ID.
+ maxLength: 5000
+ nullable: true
+ type: string
+ setup_future_usage:
+ description: >-
+ Indicates that you intend to make future payments with this
+ PaymentIntent's payment method.
+
+
+ Providing this parameter will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete. If no
+ Customer was provided, the payment method can still be
+ [attached](https://stripe.com/docs/api/payment_methods/attach) to a
+ Customer after the transaction completes.
+
+
+ When processing card payments, Stripe also uses `setup_future_usage`
+ to dynamically optimize your payment flow and comply with regional
+ legislation and network rules, such as
+ [SCA](https://stripe.com/docs/strong-customer-authentication).
+ enum:
+ - none
+ - off_session
+ type: string
+ title: CheckoutPaypalPaymentMethodOptions
+ type: object
+ x-expandableFields: []
checkout_pix_payment_method_options:
description: ''
properties:
@@ -5330,6 +6029,12 @@ components:
title: CheckoutPixPaymentMethodOptions
type: object
x-expandableFields: []
+ checkout_revolut_pay_payment_method_options:
+ description: ''
+ properties: {}
+ title: CheckoutRevolutPayPaymentMethodOptions
+ type: object
+ x-expandableFields: []
checkout_sepa_debit_payment_method_options:
description: ''
properties:
@@ -5409,12 +6114,18 @@ components:
$ref: '#/components/schemas/checkout_p24_payment_method_options'
paynow:
$ref: '#/components/schemas/checkout_paynow_payment_method_options'
+ paypal:
+ $ref: '#/components/schemas/checkout_paypal_payment_method_options'
pix:
$ref: '#/components/schemas/checkout_pix_payment_method_options'
+ revolut_pay:
+ $ref: '#/components/schemas/checkout_revolut_pay_payment_method_options'
sepa_debit:
$ref: '#/components/schemas/checkout_sepa_debit_payment_method_options'
sofort:
$ref: '#/components/schemas/checkout_sofort_payment_method_options'
+ swish:
+ $ref: '#/components/schemas/checkout_swish_payment_method_options'
us_bank_account:
$ref: '#/components/schemas/checkout_us_bank_account_payment_method_options'
title: CheckoutSessionPaymentMethodOptions
@@ -5442,9 +6153,12 @@ components:
- oxxo
- p24
- paynow
+ - paypal
- pix
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
checkout_sofort_payment_method_options:
description: ''
@@ -5474,6 +6188,19 @@ components:
title: CheckoutSofortPaymentMethodOptions
type: object
x-expandableFields: []
+ checkout_swish_payment_method_options:
+ description: ''
+ properties:
+ reference:
+ description: >-
+ The order reference that will be displayed to customers in the Swish
+ application. Defaults to the `id` of the Payment Intent.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: CheckoutSwishPaymentMethodOptions
+ type: object
+ x-expandableFields: []
checkout_us_bank_account_payment_method_options:
description: ''
properties:
@@ -5514,28 +6241,91 @@ components:
type: object
x-expandableFields:
- financial_connections
- connect_collection_transfer:
- description: ''
+ climate.order:
+ description: >-
+ Orders represent your intent to purchase a particular Climate product.
+ When you create an order, the
+
+ payment is deducted from your merchant balance.
properties:
- amount:
- description: 'Amount transferred, in cents (or local equivalent).'
+ amount_fees:
+ description: >-
+ Total amount of [Frontier](https://frontierclimate.com/)'s service
+ fees in the currency's smallest unit.
+ type: integer
+ amount_subtotal:
+ description: Total amount of the carbon removal in the currency's smallest unit.
+ type: integer
+ amount_total:
+ description: >-
+ Total amount of the order including fees in the currency's smallest
+ unit.
+ type: integer
+ beneficiary:
+ $ref: '#/components/schemas/climate_removals_beneficiary'
+ canceled_at:
+ description: >-
+ Time at which the order was canceled. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ cancellation_reason:
+ description: Reason for the cancellation of this order.
+ enum:
+ - expired
+ - product_unavailable
+ - requested
+ nullable: true
+ type: string
+ x-stripeBypassValidation: true
+ certificate:
+ description: 'For delivered orders, a URL to a delivery certificate for the order.'
+ maxLength: 5000
+ nullable: true
+ type: string
+ confirmed_at:
+ description: >-
+ Time at which the order was confirmed. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
type: integer
currency:
description: >-
Three-letter [ISO currency
code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
+ lowercase, representing the currency for this order.
+ maxLength: 5000
type: string
- destination:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/account'
- description: ID of the account that funds are being collected for.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/account'
+ delayed_at:
+ description: >-
+ Time at which the order's expected_delivery_year was delayed.
+ Measured in seconds since the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ delivered_at:
+ description: >-
+ Time at which the order was delivered. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ delivery_details:
+ description: Details about the delivery of carbon removal for this order.
+ items:
+ $ref: '#/components/schemas/climate_removals_order_deliveries'
+ type: array
+ expected_delivery_year:
+ description: The year this order is expected to be delivered.
+ type: integer
id:
description: Unique identifier for the object.
maxLength: 5000
@@ -5545,70 +6335,119 @@ components:
Has the value `true` if the object exists in live mode or the value
`false` if the object exists in test mode.
type: boolean
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ you can attach to an object. This can be useful for storing
+ additional information about the object in a structured format.
+ type: object
+ metric_tons:
+ description: Quantity of carbon removal that is included in this order.
+ format: decimal
+ type: string
object:
description: >-
String representing the object's type. Objects of the same type
share the same value.
enum:
- - connect_collection_transfer
+ - climate.order
+ type: string
+ product:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/climate.product'
+ description: Unique ID for the Climate `Product` this order is purchasing.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/climate.product'
+ product_substituted_at:
+ description: >-
+ Time at which the order's product was substituted for a different
+ product. Measured in seconds since the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ status:
+ description: The current status of this order.
+ enum:
+ - awaiting_funds
+ - canceled
+ - confirmed
+ - delivered
+ - open
type: string
required:
- - amount
+ - amount_fees
+ - amount_subtotal
+ - amount_total
+ - created
- currency
- - destination
+ - delivery_details
+ - expected_delivery_year
- id
- livemode
+ - metadata
+ - metric_tons
- object
- title: ConnectCollectionTransfer
- type: object
- x-expandableFields:
- - destination
- connect_embedded_account_session_create_components:
- description: ''
- properties:
- account_onboarding:
- $ref: '#/components/schemas/connect_embedded_base_config_claim'
- required:
- - account_onboarding
- title: ConnectEmbeddedAccountSessionCreateComponents
+ - product
+ - status
+ title: ClimateRemovalsOrders
type: object
x-expandableFields:
- - account_onboarding
- connect_embedded_base_config_claim:
- description: ''
- properties:
- enabled:
- description: Whether the embedded component is enabled.
- type: boolean
- required:
- - enabled
- title: ConnectEmbeddedBaseConfigClaim
- type: object
- x-expandableFields: []
- country_spec:
+ - beneficiary
+ - delivery_details
+ - product
+ x-resourceId: climate.order
+ climate.product:
description: >-
- Stripe needs to collect certain pieces of information about each account
-
- created. These requirements can differ depending on the account's
- country. The
-
- Country Specs API makes these rules available to your integration.
-
+ A Climate product represents a type of carbon removal unit available for
+ reservation.
- You can also view the information from this API call as [an online
-
- guide](/docs/connect/required-verification-information).
+ You can retrieve it to see the current price and availability.
properties:
- default_currency:
+ created:
description: >-
- The default currency for this country. This applies to both payment
- methods and bank accounts.
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ current_prices_per_metric_ton:
+ additionalProperties:
+ $ref: '#/components/schemas/climate_removals_products_price'
+ description: >-
+ Current prices for a metric ton of carbon removal in a currency's
+ smallest unit.
+ type: object
+ delivery_year:
+ description: The year in which the carbon removal is expected to be delivered.
+ nullable: true
+ type: integer
+ id:
+ description: >-
+ Unique identifier for the object. For convenience, Climate product
+ IDs are human-readable strings
+
+ that start with `climsku_`. See [carbon removal
+ inventory](https://stripe.com/docs/climate/orders/carbon-removal-inventory)
+
+ for a list of available carbon removal products.
maxLength: 5000
type: string
- id:
+ livemode:
description: >-
- Unique identifier for the object. Represented as the ISO country
- code for this country.
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ metric_tons_available:
+ description: The quantity of metric tons available for reservation.
+ format: decimal
+ type: string
+ name:
+ description: The Climate product's name.
maxLength: 5000
type: string
object:
@@ -5616,280 +6455,577 @@ components:
String representing the object's type. Objects of the same type
share the same value.
enum:
- - country_spec
+ - climate.product
type: string
- supported_bank_account_currencies:
- additionalProperties:
- items:
- maxLength: 5000
- type: string
- type: array
- description: >-
- Currencies that can be accepted in the specific country (for
- transfers).
- type: object
- supported_payment_currencies:
+ suppliers:
description: >-
- Currencies that can be accepted in the specified country (for
- payments).
+ The carbon removal suppliers that fulfill orders for this Climate
+ product.
items:
- maxLength: 5000
- type: string
+ $ref: '#/components/schemas/climate.supplier'
type: array
- supported_payment_methods:
+ required:
+ - created
+ - current_prices_per_metric_ton
+ - id
+ - livemode
+ - metric_tons_available
+ - name
+ - object
+ - suppliers
+ title: ClimateRemovalsProducts
+ type: object
+ x-expandableFields:
+ - current_prices_per_metric_ton
+ - suppliers
+ x-resourceId: climate.product
+ climate.supplier:
+ description: A supplier of carbon removal.
+ properties:
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ info_url:
+ description: Link to a webpage to learn more about the supplier.
+ maxLength: 5000
+ type: string
+ livemode:
description: >-
- Payment methods available in the specified country. You may need to
- enable some payment methods (e.g.,
- [ACH](https://stripe.com/docs/ach)) on your account before they
- appear in this list. The `stripe` payment method refers to [charging
- through your
- platform](https://stripe.com/docs/connect/destination-charges).
- items:
- maxLength: 5000
- type: string
- type: array
- supported_transfer_countries:
- description: Countries that can accept transfers from the specified country.
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ locations:
+ description: The locations in which this supplier operates.
items:
- maxLength: 5000
- type: string
+ $ref: '#/components/schemas/climate_removals_location'
type: array
- verification_fields:
- $ref: '#/components/schemas/country_spec_verification_fields'
+ name:
+ description: Name of this carbon removal supplier.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object’s type. Objects of the same type
+ share the same value.
+ enum:
+ - climate.supplier
+ type: string
+ removal_pathway:
+ description: The scientific pathway used for carbon removal.
+ enum:
+ - biomass_carbon_removal_and_storage
+ - direct_air_capture
+ - enhanced_weathering
+ type: string
required:
- - default_currency
- id
+ - info_url
+ - livemode
+ - locations
+ - name
- object
- - supported_bank_account_currencies
- - supported_payment_currencies
- - supported_payment_methods
- - supported_transfer_countries
- - verification_fields
- title: CountrySpec
+ - removal_pathway
+ title: ClimateRemovalsSuppliers
type: object
x-expandableFields:
- - verification_fields
- x-resourceId: country_spec
- country_spec_verification_field_details:
+ - locations
+ x-resourceId: climate.supplier
+ climate_removals_beneficiary:
description: ''
properties:
- additional:
- description: Additional fields which are only required for some users.
- items:
- maxLength: 5000
- type: string
- type: array
- minimum:
- description: Fields which every account must eventually provide.
- items:
- maxLength: 5000
- type: string
- type: array
+ public_name:
+ description: Publicly displayable name for the end beneficiary of carbon removal.
+ maxLength: 5000
+ type: string
required:
- - additional
- - minimum
- title: CountrySpecVerificationFieldDetails
+ - public_name
+ title: ClimateRemovalsBeneficiary
type: object
x-expandableFields: []
- country_spec_verification_fields:
+ climate_removals_location:
description: ''
properties:
- company:
- $ref: '#/components/schemas/country_spec_verification_field_details'
- individual:
- $ref: '#/components/schemas/country_spec_verification_field_details'
+ city:
+ description: The city where the supplier is located.
+ maxLength: 5000
+ nullable: true
+ type: string
+ country:
+ description: >-
+ Two-letter ISO code representing the country where the supplier is
+ located.
+ maxLength: 5000
+ type: string
+ latitude:
+ description: The geographic latitude where the supplier is located.
+ nullable: true
+ type: number
+ longitude:
+ description: The geographic longitude where the supplier is located.
+ nullable: true
+ type: number
+ region:
+ description: The state/county/province/region where the supplier is located.
+ maxLength: 5000
+ nullable: true
+ type: string
required:
- - company
- - individual
- title: CountrySpecVerificationFields
+ - country
+ title: ClimateRemovalsLocation
+ type: object
+ x-expandableFields: []
+ climate_removals_order_deliveries:
+ description: The delivery of a specified quantity of carbon for an order.
+ properties:
+ delivered_at:
+ description: >-
+ Time at which the delivery occurred. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ location:
+ anyOf:
+ - $ref: '#/components/schemas/climate_removals_location'
+ description: Specific location of this delivery.
+ nullable: true
+ metric_tons:
+ description: Quantity of carbon removal supplied by this delivery.
+ maxLength: 5000
+ type: string
+ registry_url:
+ description: >-
+ Once retired, a URL to the registry entry for the tons from this
+ delivery.
+ maxLength: 5000
+ nullable: true
+ type: string
+ supplier:
+ $ref: '#/components/schemas/climate.supplier'
+ required:
+ - delivered_at
+ - metric_tons
+ - supplier
+ title: ClimateRemovalsOrderDeliveries
type: object
x-expandableFields:
- - company
- - individual
- coupon:
+ - location
+ - supplier
+ climate_removals_products_price:
+ description: ''
+ properties:
+ amount_fees:
+ description: >-
+ Fees for one metric ton of carbon removal in the currency's smallest
+ unit.
+ type: integer
+ amount_subtotal:
+ description: >-
+ Subtotal for one metric ton of carbon removal (excluding fees) in
+ the currency's smallest unit.
+ type: integer
+ amount_total:
+ description: >-
+ Total for one metric ton of carbon removal (including fees) in the
+ currency's smallest unit.
+ type: integer
+ required:
+ - amount_fees
+ - amount_subtotal
+ - amount_total
+ title: ClimateRemovalsProductsPrice
+ type: object
+ x-expandableFields: []
+ confirmation_token:
description: >-
- A coupon contains information about a percent-off or amount-off discount
- you
+ ConfirmationTokens help transport client side data collected by Stripe
+ JS over
- might want to apply to a customer. Coupons may be applied to
- [subscriptions](https://stripe.com/docs/api#subscriptions),
- [invoices](https://stripe.com/docs/api#invoices),
+ to your server for confirming a PaymentIntent or SetupIntent. If the
+ confirmation
- [checkout sessions](https://stripe.com/docs/api/checkout/sessions),
- [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not
- work with conventional one-off
- [charges](https://stripe.com/docs/api#create_charge) or [payment
- intents](https://stripe.com/docs/api/payment_intents).
+ is successful, values present on the ConfirmationToken are written onto
+ the Intent.
+
+
+ To learn more about how to use ConfirmationToken, visit the related
+ guides:
+
+ - [Finalize payments on the
+ server](https://stripe.com/docs/payments/finalize-payments-on-the-server)
+
+ - [Build two-step
+ confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation).
properties:
- amount_off:
- description: >-
- Amount (in the `currency` specified) that will be taken off the
- subtotal of any invoices for this customer.
- nullable: true
- type: integer
- applies_to:
- $ref: '#/components/schemas/coupon_applies_to'
created:
description: >-
Time at which the object was created. Measured in seconds since the
Unix epoch.
format: unix-time
type: integer
- currency:
+ expires_at:
description: >-
- If `amount_off` has been set, the three-letter [ISO code for the
- currency](https://stripe.com/docs/currencies) of the amount to take
- off.
+ Time at which this ConfirmationToken expires and can no longer be
+ used to confirm a PaymentIntent or SetupIntent. This is set to null
+ once this ConfirmationToken has been used.
+ format: unix-time
nullable: true
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
type: string
- currency_options:
- additionalProperties:
- $ref: '#/components/schemas/coupon_currency_option'
+ livemode:
description: >-
- Coupons defined in each available currency option. Each key must be
- a three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html) and a
- [supported currency](https://stripe.com/docs/currencies).
- type: object
- duration:
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ mandate_data:
+ anyOf:
+ - $ref: '#/components/schemas/confirmation_tokens_resource_mandate_data'
+ description: Data used for generating a Mandate.
+ nullable: true
+ object:
description: >-
- One of `forever`, `once`, and `repeating`. Describes how long a
- customer who applies this coupon will get the discount.
+ String representing the object's type. Objects of the same type
+ share the same value.
enum:
- - forever
- - once
- - repeating
+ - confirmation_token
type: string
- x-stripeBypassValidation: true
- duration_in_months:
+ payment_intent:
description: >-
- If `duration` is `repeating`, the number of months the coupon
- applies. Null if coupon `duration` is `forever` or `once`.
- nullable: true
- type: integer
- id:
- description: Unique identifier for the object.
+ ID of the PaymentIntent that this ConfirmationToken was used to
+ confirm, or null if this ConfirmationToken has not yet been used.
maxLength: 5000
- type: string
- livemode:
- description: >-
- Has the value `true` if the object exists in live mode or the value
- `false` if the object exists in test mode.
- type: boolean
- max_redemptions:
- description: >-
- Maximum number of times this coupon can be redeemed, in total,
- across all customers, before it is no longer valid.
nullable: true
- type: integer
- metadata:
- additionalProperties:
- maxLength: 500
- type: string
+ type: string
+ payment_method_preview:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/confirmation_tokens_resource_payment_method_preview
description: >-
- Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
- you can attach to an object. This can be useful for storing
- additional information about the object in a structured format.
+ Payment details collected by the Payment Element, used to create a
+ PaymentMethod when a PaymentIntent or SetupIntent is confirmed with
+ this ConfirmationToken.
nullable: true
- type: object
- name:
- description: >-
- Name of the coupon displayed to customers on for instance invoices
- or receipts.
+ return_url:
+ description: Return URL used to confirm the Intent.
maxLength: 5000
nullable: true
type: string
- object:
+ setup_future_usage:
description: >-
- String representing the object's type. Objects of the same type
- share the same value.
+ Indicates that you intend to make future payments with this
+ ConfirmationToken's payment method.
+
+
+ The presence of this property will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete.
enum:
- - coupon
+ - off_session
+ - on_session
+ nullable: true
type: string
- percent_off:
+ setup_intent:
description: >-
- Percent that will be taken off the subtotal of any invoices for this
- customer for the duration of the coupon. For example, a coupon with
- percent_off of 50 will make a $ (or local equivalent)100 invoice $
- (or local equivalent)50 instead.
+ ID of the SetupIntent that this ConfirmationToken was used to
+ confirm, or null if this ConfirmationToken has not yet been used.
+ maxLength: 5000
nullable: true
- type: number
- redeem_by:
- description: Date after which the coupon can no longer be redeemed.
- format: unix-time
+ type: string
+ shipping:
+ anyOf:
+ - $ref: '#/components/schemas/confirmation_tokens_resource_shipping'
+ description: Shipping information collected on this ConfirmationToken.
nullable: true
- type: integer
- times_redeemed:
- description: Number of times this coupon has been applied to a customer.
- type: integer
- valid:
+ use_stripe_sdk:
description: >-
- Taking account of the above properties, whether this coupon can
- still be applied to a customer.
+ Indicates whether the Stripe SDK is used to handle confirmation
+ flow. Defaults to `true` on ConfirmationToken.
type: boolean
required:
- created
- - duration
- id
- livemode
- object
- - times_redeemed
- - valid
- title: Coupon
+ - use_stripe_sdk
+ title: ConfirmationTokensResourceConfirmationToken
type: object
x-expandableFields:
- - applies_to
- - currency_options
- x-resourceId: coupon
- coupon_applies_to:
- description: ''
+ - mandate_data
+ - payment_method_preview
+ - shipping
+ x-resourceId: confirmation_token
+ confirmation_tokens_resource_mandate_data:
+ description: Data used for generating a Mandate.
properties:
- products:
- description: A list of product IDs this coupon applies to
- items:
- maxLength: 5000
- type: string
- type: array
+ customer_acceptance:
+ $ref: >-
+ #/components/schemas/confirmation_tokens_resource_mandate_data_resource_customer_acceptance
required:
- - products
- title: CouponAppliesTo
+ - customer_acceptance
+ title: ConfirmationTokensResourceMandateData
type: object
- x-expandableFields: []
- coupon_currency_option:
- description: ''
+ x-expandableFields:
+ - customer_acceptance
+ confirmation_tokens_resource_mandate_data_resource_customer_acceptance:
+ description: This hash contains details about the customer acceptance of the Mandate.
properties:
- amount_off:
+ online:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/confirmation_tokens_resource_mandate_data_resource_customer_acceptance_resource_online
description: >-
- Amount (in the `currency` specified) that will be taken off the
- subtotal of any invoices for this customer.
- type: integer
+ If this is a Mandate accepted online, this hash contains details
+ about the online acceptance.
+ nullable: true
+ type:
+ description: >-
+ The type of customer acceptance information included with the
+ Mandate.
+ maxLength: 5000
+ type: string
required:
- - amount_off
- title: CouponCurrencyOption
+ - type
+ title: ConfirmationTokensResourceMandateDataResourceCustomerAcceptance
type: object
- x-expandableFields: []
- credit_note:
- description: >-
- Issue a credit note to adjust an invoice's amount after the invoice is
- finalized.
-
-
- Related guide: [Credit
- notes](https://stripe.com/docs/billing/invoices/credit-notes)
+ x-expandableFields:
+ - online
+ confirmation_tokens_resource_mandate_data_resource_customer_acceptance_resource_online:
+ description: This hash contains details about the online acceptance.
properties:
- amount:
+ ip_address:
+ description: The IP address from which the Mandate was accepted by the customer.
+ maxLength: 5000
+ nullable: true
+ type: string
+ user_agent:
description: >-
- The integer amount in cents (or local equivalent) representing the
- total amount of the credit note, including tax.
- type: integer
- amount_shipping:
- description: This is the sum of all the shipping amounts.
- type: integer
- created:
+ The user agent of the browser from which the Mandate was accepted by
+ the customer.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: >-
+ ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline
+ type: object
+ x-expandableFields: []
+ confirmation_tokens_resource_payment_method_preview:
+ description: Details of the PaymentMethod collected by Payment Element
+ properties:
+ acss_debit:
+ $ref: '#/components/schemas/payment_method_acss_debit'
+ affirm:
+ $ref: '#/components/schemas/payment_method_affirm'
+ afterpay_clearpay:
+ $ref: '#/components/schemas/payment_method_afterpay_clearpay'
+ alipay:
+ $ref: '#/components/schemas/payment_flows_private_payment_methods_alipay'
+ au_becs_debit:
+ $ref: '#/components/schemas/payment_method_au_becs_debit'
+ bacs_debit:
+ $ref: '#/components/schemas/payment_method_bacs_debit'
+ bancontact:
+ $ref: '#/components/schemas/payment_method_bancontact'
+ billing_details:
+ $ref: '#/components/schemas/billing_details'
+ blik:
+ $ref: '#/components/schemas/payment_method_blik'
+ boleto:
+ $ref: '#/components/schemas/payment_method_boleto'
+ card:
+ $ref: '#/components/schemas/payment_method_card'
+ card_present:
+ $ref: '#/components/schemas/payment_method_card_present'
+ cashapp:
+ $ref: '#/components/schemas/payment_method_cashapp'
+ customer_balance:
+ $ref: '#/components/schemas/payment_method_customer_balance'
+ eps:
+ $ref: '#/components/schemas/payment_method_eps'
+ fpx:
+ $ref: '#/components/schemas/payment_method_fpx'
+ giropay:
+ $ref: '#/components/schemas/payment_method_giropay'
+ grabpay:
+ $ref: '#/components/schemas/payment_method_grabpay'
+ ideal:
+ $ref: '#/components/schemas/payment_method_ideal'
+ interac_present:
+ $ref: '#/components/schemas/payment_method_interac_present'
+ klarna:
+ $ref: '#/components/schemas/payment_method_klarna'
+ konbini:
+ $ref: '#/components/schemas/payment_method_konbini'
+ link:
+ $ref: '#/components/schemas/payment_method_link'
+ mobilepay:
+ $ref: '#/components/schemas/payment_method_mobilepay'
+ oxxo:
+ $ref: '#/components/schemas/payment_method_oxxo'
+ p24:
+ $ref: '#/components/schemas/payment_method_p24'
+ paynow:
+ $ref: '#/components/schemas/payment_method_paynow'
+ paypal:
+ $ref: '#/components/schemas/payment_method_paypal'
+ pix:
+ $ref: '#/components/schemas/payment_method_pix'
+ promptpay:
+ $ref: '#/components/schemas/payment_method_promptpay'
+ revolut_pay:
+ $ref: '#/components/schemas/payment_method_revolut_pay'
+ sepa_debit:
+ $ref: '#/components/schemas/payment_method_sepa_debit'
+ sofort:
+ $ref: '#/components/schemas/payment_method_sofort'
+ swish:
+ $ref: '#/components/schemas/payment_method_swish'
+ type:
description: >-
- Time at which the object was created. Measured in seconds since the
- Unix epoch.
- format: unix-time
+ The type of the PaymentMethod. An additional hash is included on the
+ PaymentMethod with a name matching this value. It contains
+ additional information specific to the PaymentMethod type.
+ enum:
+ - acss_debit
+ - affirm
+ - afterpay_clearpay
+ - alipay
+ - au_becs_debit
+ - bacs_debit
+ - bancontact
+ - blik
+ - boleto
+ - card
+ - card_present
+ - cashapp
+ - customer_balance
+ - eps
+ - fpx
+ - giropay
+ - grabpay
+ - ideal
+ - interac_present
+ - klarna
+ - konbini
+ - link
+ - mobilepay
+ - oxxo
+ - p24
+ - paynow
+ - paypal
+ - pix
+ - promptpay
+ - revolut_pay
+ - sepa_debit
+ - sofort
+ - swish
+ - us_bank_account
+ - wechat_pay
+ - zip
+ type: string
+ x-stripeBypassValidation: true
+ us_bank_account:
+ $ref: '#/components/schemas/payment_method_us_bank_account'
+ wechat_pay:
+ $ref: '#/components/schemas/payment_method_wechat_pay'
+ zip:
+ $ref: '#/components/schemas/payment_method_zip'
+ required:
+ - billing_details
+ - type
+ title: ConfirmationTokensResourcePaymentMethodPreview
+ type: object
+ x-expandableFields:
+ - acss_debit
+ - affirm
+ - afterpay_clearpay
+ - alipay
+ - au_becs_debit
+ - bacs_debit
+ - bancontact
+ - billing_details
+ - blik
+ - boleto
+ - card
+ - card_present
+ - cashapp
+ - customer_balance
+ - eps
+ - fpx
+ - giropay
+ - grabpay
+ - ideal
+ - interac_present
+ - klarna
+ - konbini
+ - link
+ - mobilepay
+ - oxxo
+ - p24
+ - paynow
+ - paypal
+ - pix
+ - promptpay
+ - revolut_pay
+ - sepa_debit
+ - sofort
+ - swish
+ - us_bank_account
+ - wechat_pay
+ - zip
+ confirmation_tokens_resource_shipping:
+ description: ''
+ properties:
+ address:
+ $ref: '#/components/schemas/address'
+ name:
+ description: Recipient name.
+ maxLength: 5000
+ type: string
+ phone:
+ description: Recipient phone (including extension).
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - address
+ - name
+ title: ConfirmationTokensResourceShipping
+ type: object
+ x-expandableFields:
+ - address
+ connect_account_reference:
+ description: ''
+ properties:
+ account:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/account'
+ description: The connected account being referenced when `type` is `account`.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/account'
+ type:
+ description: Type of the account referenced.
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: ConnectAccountReference
+ type: object
+ x-expandableFields:
+ - account
+ connect_collection_transfer:
+ description: ''
+ properties:
+ amount:
+ description: 'Amount transferred, in cents (or local equivalent).'
type: integer
currency:
description: >-
@@ -5898,519 +7034,338 @@ components:
lowercase. Must be a [supported
currency](https://stripe.com/docs/currencies).
type: string
- customer:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/customer'
- - $ref: '#/components/schemas/deleted_customer'
- description: ID of the customer.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/customer'
- - $ref: '#/components/schemas/deleted_customer'
- customer_balance_transaction:
+ destination:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/customer_balance_transaction'
- description: Customer balance transaction related to this credit note.
- nullable: true
+ - $ref: '#/components/schemas/account'
+ description: ID of the account that funds are being collected for.
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/customer_balance_transaction'
- discount_amount:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- total amount of discount that was credited.
- type: integer
- discount_amounts:
- description: The aggregate amounts calculated per discount for all line items.
- items:
- $ref: '#/components/schemas/discounts_resource_discount_amount'
- type: array
- effective_at:
- description: >-
- The date when this credit note is in effect. Same as `created`
- unless overwritten. When defined, this value replaces the
- system-generated 'Date of issue' printed on the credit note PDF.
- format: unix-time
- nullable: true
- type: integer
+ - $ref: '#/components/schemas/account'
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
- invoice:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/invoice'
- description: ID of the invoice.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/invoice'
- lines:
- description: Line items that make up the credit note
- properties:
- data:
- description: Details about each object.
- items:
- $ref: '#/components/schemas/credit_note_line_item'
- type: array
- has_more:
- description: >-
- True if this list has another page of items after this one that
- can be fetched.
- type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value. Always has the value `list`.
- enum:
- - list
- type: string
- url:
- description: The URL where this list can be accessed.
- maxLength: 5000
- type: string
- required:
- - data
- - has_more
- - object
- - url
- title: CreditNoteLinesList
- type: object
- x-expandableFields:
- - data
livemode:
description: >-
Has the value `true` if the object exists in live mode or the value
`false` if the object exists in test mode.
type: boolean
- memo:
- description: Customer-facing text that appears on the credit note PDF.
- maxLength: 5000
- nullable: true
- type: string
- metadata:
- additionalProperties:
- maxLength: 500
- type: string
- description: >-
- Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
- you can attach to an object. This can be useful for storing
- additional information about the object in a structured format.
- nullable: true
- type: object
- number:
- description: >-
- A unique number that identifies this particular credit note and
- appears on the PDF of the credit note and its associated invoice.
- maxLength: 5000
- type: string
object:
description: >-
String representing the object's type. Objects of the same type
share the same value.
enum:
- - credit_note
- type: string
- out_of_band_amount:
- description: Amount that was credited outside of Stripe.
- nullable: true
- type: integer
- pdf:
- description: The link to download the PDF of the credit note.
- maxLength: 5000
- type: string
- reason:
- description: >-
- Reason for issuing this credit note, one of `duplicate`,
- `fraudulent`, `order_change`, or `product_unsatisfactory`
- enum:
- - duplicate
- - fraudulent
- - order_change
- - product_unsatisfactory
- nullable: true
- type: string
- refund:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/refund'
- description: Refund related to this credit note.
- nullable: true
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/refund'
- shipping_cost:
- anyOf:
- - $ref: '#/components/schemas/invoices_shipping_cost'
- description: >-
- The details of the cost of shipping, including the ShippingRate
- applied to the invoice.
- nullable: true
- status:
- description: >-
- Status of this credit note, one of `issued` or `void`. Learn more
- about [voiding credit
- notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
- enum:
- - issued
- - void
+ - connect_collection_transfer
type: string
- subtotal:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- amount of the credit note, excluding exclusive tax and invoice level
- discounts.
- type: integer
- subtotal_excluding_tax:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- amount of the credit note, excluding all tax and invoice level
- discounts.
- nullable: true
- type: integer
- tax_amounts:
- description: The aggregate amounts calculated per tax rate for all line items.
- items:
- $ref: '#/components/schemas/credit_note_tax_amount'
- type: array
- total:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- total amount of the credit note, including tax and all discount.
- type: integer
- total_excluding_tax:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- total amount of the credit note, excluding tax, but including
- discounts.
- nullable: true
- type: integer
- type:
- description: >-
- Type of this credit note, one of `pre_payment` or `post_payment`. A
- `pre_payment` credit note means it was issued when the invoice was
- open. A `post_payment` credit note means it was issued when the
- invoice was paid.
- enum:
- - post_payment
- - pre_payment
- type: string
- voided_at:
- description: The time that the credit note was voided.
- format: unix-time
- nullable: true
- type: integer
required:
- amount
- - amount_shipping
- - created
- currency
- - customer
- - discount_amount
- - discount_amounts
+ - destination
- id
- - invoice
- - lines
- livemode
- - number
- object
- - pdf
- - status
- - subtotal
- - tax_amounts
- - total
- - type
- title: CreditNote
+ title: ConnectCollectionTransfer
type: object
x-expandableFields:
- - customer
- - customer_balance_transaction
- - discount_amounts
- - invoice
- - lines
- - refund
- - shipping_cost
- - tax_amounts
- x-resourceId: credit_note
- credit_note_line_item:
- description: The credit note line item object
+ - destination
+ connect_embedded_account_config:
+ description: ''
properties:
- amount:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- gross amount being credited for this line item, excluding
- (exclusive) tax and discounts.
- type: integer
- amount_excluding_tax:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- amount being credited for this line item, excluding all tax and
- discounts.
- nullable: true
- type: integer
- description:
- description: Description of the item being credited.
- maxLength: 5000
- nullable: true
- type: string
- discount_amount:
- description: >-
- The integer amount in cents (or local equivalent) representing the
- discount being credited for this line item.
- type: integer
- discount_amounts:
- description: The amount of discount calculated per discount for this line item
- items:
- $ref: '#/components/schemas/discounts_resource_discount_amount'
- type: array
- id:
- description: Unique identifier for the object.
- maxLength: 5000
- type: string
- invoice_line_item:
- description: ID of the invoice line item being credited
- maxLength: 5000
- type: string
- livemode:
- description: >-
- Has the value `true` if the object exists in live mode or the value
- `false` if the object exists in test mode.
+ enabled:
+ description: Whether the embedded component is enabled.
type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - credit_note_line_item
- type: string
- quantity:
- description: The number of units of product being credited.
- nullable: true
- type: integer
- tax_amounts:
- description: The amount of tax calculated per tax rate for this line item
- items:
- $ref: '#/components/schemas/credit_note_tax_amount'
- type: array
- tax_rates:
- description: The tax rates which apply to the line item.
- items:
- $ref: '#/components/schemas/tax_rate'
- type: array
- type:
+ features:
+ $ref: '#/components/schemas/connect_embedded_account_features'
+ required:
+ - enabled
+ - features
+ title: ConnectEmbeddedAccountConfig
+ type: object
+ x-expandableFields:
+ - features
+ connect_embedded_account_features:
+ description: ''
+ properties: {}
+ title: ConnectEmbeddedAccountFeatures
+ type: object
+ x-expandableFields: []
+ connect_embedded_account_session_create_components:
+ description: ''
+ properties:
+ account_onboarding:
+ $ref: '#/components/schemas/connect_embedded_account_config'
+ documents:
+ $ref: '#/components/schemas/connect_embedded_base_config_claim'
+ payment_details:
+ $ref: '#/components/schemas/connect_embedded_payments_config'
+ payments:
+ $ref: '#/components/schemas/connect_embedded_payments_config'
+ payouts:
+ $ref: '#/components/schemas/connect_embedded_payouts_config'
+ required:
+ - account_onboarding
+ - documents
+ - payment_details
+ - payments
+ - payouts
+ title: ConnectEmbeddedAccountSessionCreateComponents
+ type: object
+ x-expandableFields:
+ - account_onboarding
+ - documents
+ - payment_details
+ - payments
+ - payouts
+ connect_embedded_base_config_claim:
+ description: ''
+ properties:
+ enabled:
+ description: Whether the embedded component is enabled.
+ type: boolean
+ features:
+ $ref: '#/components/schemas/connect_embedded_base_features'
+ required:
+ - enabled
+ - features
+ title: ConnectEmbeddedBaseConfigClaim
+ type: object
+ x-expandableFields:
+ - features
+ connect_embedded_base_features:
+ description: ''
+ properties: {}
+ title: ConnectEmbeddedBaseFeatures
+ type: object
+ x-expandableFields: []
+ connect_embedded_payments_config:
+ description: ''
+ properties:
+ enabled:
+ description: Whether the embedded component is enabled.
+ type: boolean
+ features:
+ $ref: '#/components/schemas/connect_embedded_payments_features'
+ required:
+ - enabled
+ - features
+ title: ConnectEmbeddedPaymentsConfig
+ type: object
+ x-expandableFields:
+ - features
+ connect_embedded_payments_features:
+ description: ''
+ properties:
+ capture_payments:
description: >-
- The type of the credit note line item, one of `invoice_line_item` or
- `custom_line_item`. When the type is `invoice_line_item` there is an
- additional `invoice_line_item` property on the resource the value of
- which is the id of the credited line item on the invoice.
- enum:
- - custom_line_item
- - invoice_line_item
- type: string
- unit_amount:
- description: The cost of each unit of product being credited.
- nullable: true
- type: integer
- unit_amount_decimal:
+ Whether to allow capturing and cancelling payment intents. This is
+ `true` by default.
+ type: boolean
+ destination_on_behalf_of_charge_management:
description: >-
- Same as `unit_amount`, but contains a decimal value with at most 12
- decimal places.
- format: decimal
- nullable: true
- type: string
- unit_amount_excluding_tax:
+ Whether to allow connected accounts to manage destination charges
+ that are created on behalf of them. This is `false` by default.
+ type: boolean
+ dispute_management:
description: >-
- The amount in cents (or local equivalent) representing the unit
- amount being credited for this line item, excluding all tax and
- discounts.
- format: decimal
- nullable: true
- type: string
+ Whether to allow responding to disputes, including submitting
+ evidence and accepting disputes. This is `true` by default.
+ type: boolean
+ refund_management:
+ description: Whether to allow sending refunds. This is `true` by default.
+ type: boolean
required:
- - amount
- - discount_amount
- - discount_amounts
- - id
- - livemode
- - object
- - tax_amounts
- - tax_rates
- - type
- title: CreditNoteLineItem
+ - capture_payments
+ - dispute_management
+ - refund_management
+ title: ConnectEmbeddedPaymentsFeatures
+ type: object
+ x-expandableFields: []
+ connect_embedded_payouts_config:
+ description: ''
+ properties:
+ enabled:
+ description: Whether the embedded component is enabled.
+ type: boolean
+ features:
+ $ref: '#/components/schemas/connect_embedded_payouts_features'
+ required:
+ - enabled
+ - features
+ title: ConnectEmbeddedPayoutsConfig
type: object
x-expandableFields:
- - discount_amounts
- - tax_amounts
- - tax_rates
- x-resourceId: credit_note_line_item
- credit_note_tax_amount:
+ - features
+ connect_embedded_payouts_features:
description: ''
properties:
- amount:
- description: 'The amount, in cents (or local equivalent), of the tax.'
- type: integer
- inclusive:
- description: Whether this tax amount is inclusive or exclusive.
+ edit_payout_schedule:
+ description: >-
+ Whether to allow payout schedule to be changed. Default `true` when
+ Stripe owns Loss Liability, default `false` otherwise.
type: boolean
- tax_rate:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/tax_rate'
- description: The tax rate that was applied to get this tax amount.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/tax_rate'
- taxability_reason:
+ instant_payouts:
description: >-
- The reasoning behind this tax, for example, if the product is tax
- exempt. The possible values for this field may be extended as new
- tax rules are supported.
- enum:
- - customer_exempt
- - not_collecting
- - not_subject_to_tax
- - not_supported
- - portion_product_exempt
- - portion_reduced_rated
- - portion_standard_rated
- - product_exempt
- - product_exempt_holiday
- - proportionally_rated
- - reduced_rated
- - reverse_charge
- - standard_rated
- - taxable_basis_reduced
- - zero_rated
- nullable: true
- type: string
- x-stripeBypassValidation: true
- taxable_amount:
+ Whether to allow creation of instant payouts. Default `true` when
+ Stripe owns Loss Liability, default `false` otherwise.
+ type: boolean
+ standard_payouts:
description: >-
- The amount on which tax is calculated, in cents (or local
- equivalent).
- nullable: true
- type: integer
+ Whether to allow creation of standard payouts. Default `true` when
+ Stripe owns Loss Liability, default `false` otherwise.
+ type: boolean
required:
- - amount
- - inclusive
- - tax_rate
- title: CreditNoteTaxAmount
+ - edit_payout_schedule
+ - instant_payouts
+ - standard_payouts
+ title: ConnectEmbeddedPayoutsFeatures
type: object
- x-expandableFields:
- - tax_rate
- currency_option:
- description: ''
+ x-expandableFields: []
+ country_spec:
+ description: >-
+ Stripe needs to collect certain pieces of information about each account
+
+ created. These requirements can differ depending on the account's
+ country. The
+
+ Country Specs API makes these rules available to your integration.
+
+
+ You can also view the information from this API call as [an online
+
+ guide](/docs/connect/required-verification-information).
properties:
- custom_unit_amount:
- anyOf:
- - $ref: '#/components/schemas/custom_unit_amount'
+ default_currency:
description: >-
- When set, provides configuration for the amount to be adjusted by
- the customer during Checkout Sessions and Payment Links.
- nullable: true
- tax_behavior:
+ The default currency for this country. This applies to both payment
+ methods and bank accounts.
+ maxLength: 5000
+ type: string
+ id:
description: >-
- Only required if a [default tax
- behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended))
- was not provided in the Stripe Tax settings. Specifies whether the
- price is considered inclusive of taxes or exclusive of taxes. One of
- `inclusive`, `exclusive`, or `unspecified`. Once specified as either
- `inclusive` or `exclusive`, it cannot be changed.
+ Unique identifier for the object. Represented as the ISO country
+ code for this country.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
enum:
- - exclusive
- - inclusive
- - unspecified
- nullable: true
+ - country_spec
type: string
- tiers:
+ supported_bank_account_currencies:
+ additionalProperties:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
description: >-
- Each element represents a pricing tier. This parameter requires
- `billing_scheme` to be set to `tiered`. See also the documentation
- for `billing_scheme`.
+ Currencies that can be accepted in the specific country (for
+ transfers).
+ type: object
+ supported_payment_currencies:
+ description: >-
+ Currencies that can be accepted in the specified country (for
+ payments).
items:
- $ref: '#/components/schemas/price_tier'
+ maxLength: 5000
+ type: string
type: array
- unit_amount:
- description: >-
- The unit amount in cents (or local equivalent) to be charged,
- represented as a whole integer if possible. Only set if
- `billing_scheme=per_unit`.
- nullable: true
- type: integer
- unit_amount_decimal:
+ supported_payment_methods:
description: >-
- The unit amount in cents (or local equivalent) to be charged,
- represented as a decimal string with at most 12 decimal places. Only
- set if `billing_scheme=per_unit`.
- format: decimal
- nullable: true
- type: string
- title: CurrencyOption
+ Payment methods available in the specified country. You may need to
+ enable some payment methods (e.g.,
+ [ACH](https://stripe.com/docs/ach)) on your account before they
+ appear in this list. The `stripe` payment method refers to [charging
+ through your
+ platform](https://stripe.com/docs/connect/destination-charges).
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ supported_transfer_countries:
+ description: Countries that can accept transfers from the specified country.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ verification_fields:
+ $ref: '#/components/schemas/country_spec_verification_fields'
+ required:
+ - default_currency
+ - id
+ - object
+ - supported_bank_account_currencies
+ - supported_payment_currencies
+ - supported_payment_methods
+ - supported_transfer_countries
+ - verification_fields
+ title: CountrySpec
type: object
x-expandableFields:
- - custom_unit_amount
- - tiers
- custom_unit_amount:
+ - verification_fields
+ x-resourceId: country_spec
+ country_spec_verification_field_details:
description: ''
properties:
- maximum:
- description: The maximum unit amount the customer can specify for this item.
- nullable: true
- type: integer
+ additional:
+ description: Additional fields which are only required for some users.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
minimum:
- description: >-
- The minimum unit amount the customer can specify for this item. Must
- be at least the minimum charge amount.
- nullable: true
- type: integer
- preset:
- description: The starting unit amount which can be updated by the customer.
- nullable: true
- type: integer
- title: CustomUnitAmount
+ description: Fields which every account must eventually provide.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ required:
+ - additional
+ - minimum
+ title: CountrySpecVerificationFieldDetails
type: object
x-expandableFields: []
- customer:
+ country_spec_verification_fields:
+ description: ''
+ properties:
+ company:
+ $ref: '#/components/schemas/country_spec_verification_field_details'
+ individual:
+ $ref: '#/components/schemas/country_spec_verification_field_details'
+ required:
+ - company
+ - individual
+ title: CountrySpecVerificationFields
+ type: object
+ x-expandableFields:
+ - company
+ - individual
+ coupon:
description: >-
- This object represents a customer of your business. Use it to create
- recurring charges and track payments that belong to the same customer.
+ A coupon contains information about a percent-off or amount-off discount
+ you
+ might want to apply to a customer. Coupons may be applied to
+ [subscriptions](https://stripe.com/docs/api#subscriptions),
+ [invoices](https://stripe.com/docs/api#invoices),
- Related guide: [Save a card during
- payment](https://stripe.com/docs/payments/save-during-payment)
+ [checkout sessions](https://stripe.com/docs/api/checkout/sessions),
+ [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not
+ work with conventional one-off
+ [charges](https://stripe.com/docs/api#create_charge) or [payment
+ intents](https://stripe.com/docs/api/payment_intents).
properties:
- address:
- anyOf:
- - $ref: '#/components/schemas/address'
- description: The customer's address.
- nullable: true
- balance:
- description: >-
- The current balance, if any, that's stored on the customer. If
- negative, the customer has credit to apply to their next invoice. If
- positive, the customer has an amount owed that's added to their next
- invoice. The balance only considers amounts that Stripe hasn't
- successfully applied to any invoice. It doesn't reflect unpaid
- invoices. This balance is only taken into account after invoices
- finalize.
- type: integer
- cash_balance:
- anyOf:
- - $ref: '#/components/schemas/cash_balance'
+ amount_off:
description: >-
- The current funds being held by Stripe on behalf of the customer.
- You can apply these funds towards payment intents when the source is
- "cash_balance". The `settings[reconciliation_mode]` field describes
- if these funds apply to these payment intents manually or
- automatically.
+ Amount (in the `currency` specified) that will be taken off the
+ subtotal of any invoices for this customer.
nullable: true
+ type: integer
+ applies_to:
+ $ref: '#/components/schemas/coupon_applies_to'
created:
description: >-
Time at which the object was created. Measured in seconds since the
@@ -6419,96 +7374,51 @@ components:
type: integer
currency:
description: >-
- Three-letter [ISO code for the
- currency](https://stripe.com/docs/currencies) the customer can be
- charged in for recurring billing purposes.
- maxLength: 5000
+ If `amount_off` has been set, the three-letter [ISO code for the
+ currency](https://stripe.com/docs/currencies) of the amount to take
+ off.
nullable: true
type: string
- default_source:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/bank_account'
- - $ref: '#/components/schemas/card'
- - $ref: '#/components/schemas/source'
+ currency_options:
+ additionalProperties:
+ $ref: '#/components/schemas/coupon_currency_option'
description: >-
- ID of the default payment source for the customer.
-
-
- If you use payment methods created through the PaymentMethods API,
- see the
- [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
- field instead.
- nullable: true
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/bank_account'
- - $ref: '#/components/schemas/card'
- - $ref: '#/components/schemas/source'
- x-stripeBypassValidation: true
- delinquent:
- description: >-
- If Stripe bills the customer's latest invoice by automatically
- charging and the latest charge fails, it sets `delinquent`` to
- `true``. If Stripe bills the invoice by sending it, and the invoice
- isn't paid by the due date, it also sets `delinquent`` to `true`.
-
-
- If an invoice becomes uncollectible by
- [dunning](https://stripe.com/docs/billing/automatic-collection),
- `delinquent` doesn't reset to `false`.
- nullable: true
- type: boolean
- description:
+ Coupons defined in each available currency option. Each key must be
+ a three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html) and a
+ [supported currency](https://stripe.com/docs/currencies).
+ type: object
+ duration:
description: >-
- An arbitrary string attached to the object. Often useful for
- displaying to users.
- maxLength: 5000
- nullable: true
+ One of `forever`, `once`, and `repeating`. Describes how long a
+ customer who applies this coupon will get the discount.
+ enum:
+ - forever
+ - once
+ - repeating
type: string
- discount:
- anyOf:
- - $ref: '#/components/schemas/discount'
+ x-stripeBypassValidation: true
+ duration_in_months:
description: >-
- Describes the current discount active on the customer, if there is
- one.
- nullable: true
- email:
- description: The customer's email address.
- maxLength: 5000
+ If `duration` is `repeating`, the number of months the coupon
+ applies. Null if coupon `duration` is `forever` or `once`.
nullable: true
- type: string
+ type: integer
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
- invoice_credit_balance:
- additionalProperties:
- type: integer
- description: >-
- The current multi-currency balances, if any, that's stored on the
- customer. If positive in a currency, the customer has a credit to
- apply to their next invoice denominated in that currency. If
- negative, the customer has an amount owed that's added to their next
- invoice denominated in that currency. These balances don't apply to
- unpaid invoices. They solely track amounts that Stripe hasn't
- successfully applied to any invoice. Stripe only applies a balance
- in a specific currency to an invoice after that invoice (which is in
- the same currency) finalizes.
- type: object
- invoice_prefix:
- description: The prefix for the customer used to generate unique invoice numbers.
- maxLength: 5000
- nullable: true
- type: string
- invoice_settings:
- $ref: '#/components/schemas/invoice_setting_customer_setting'
livemode:
description: >-
Has the value `true` if the object exists in live mode or the value
`false` if the object exists in test mode.
type: boolean
+ max_redemptions:
+ description: >-
+ Maximum number of times this coupon can be redeemed, in total,
+ across all customers, before it is no longer valid.
+ nullable: true
+ type: integer
metadata:
additionalProperties:
maxLength: 500
@@ -6517,88 +7427,173 @@ components:
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
you can attach to an object. This can be useful for storing
additional information about the object in a structured format.
+ nullable: true
type: object
name:
- description: The customer's full name or business name.
+ description: >-
+ Name of the coupon displayed to customers on for instance invoices
+ or receipts.
maxLength: 5000
nullable: true
type: string
- next_invoice_sequence:
- description: >-
- The suffix of the customer's next invoice number (for example,
- 0001).
- type: integer
object:
description: >-
String representing the object's type. Objects of the same type
share the same value.
enum:
- - customer
+ - coupon
type: string
- phone:
- description: The customer's phone number.
- maxLength: 5000
+ percent_off:
+ description: >-
+ Percent that will be taken off the subtotal of any invoices for this
+ customer for the duration of the coupon. For example, a coupon with
+ percent_off of 50 will make a $ (or local equivalent)100 invoice $
+ (or local equivalent)50 instead.
nullable: true
- type: string
- preferred_locales:
- description: 'The customer''s preferred locales (languages), ordered by preference.'
+ type: number
+ redeem_by:
+ description: Date after which the coupon can no longer be redeemed.
+ format: unix-time
+ nullable: true
+ type: integer
+ times_redeemed:
+ description: Number of times this coupon has been applied to a customer.
+ type: integer
+ valid:
+ description: >-
+ Taking account of the above properties, whether this coupon can
+ still be applied to a customer.
+ type: boolean
+ required:
+ - created
+ - duration
+ - id
+ - livemode
+ - object
+ - times_redeemed
+ - valid
+ title: Coupon
+ type: object
+ x-expandableFields:
+ - applies_to
+ - currency_options
+ x-resourceId: coupon
+ coupon_applies_to:
+ description: ''
+ properties:
+ products:
+ description: A list of product IDs this coupon applies to
items:
maxLength: 5000
type: string
- nullable: true
type: array
- shipping:
+ required:
+ - products
+ title: CouponAppliesTo
+ type: object
+ x-expandableFields: []
+ coupon_currency_option:
+ description: ''
+ properties:
+ amount_off:
+ description: >-
+ Amount (in the `currency` specified) that will be taken off the
+ subtotal of any invoices for this customer.
+ type: integer
+ required:
+ - amount_off
+ title: CouponCurrencyOption
+ type: object
+ x-expandableFields: []
+ credit_note:
+ description: >-
+ Issue a credit note to adjust an invoice's amount after the invoice is
+ finalized.
+
+
+ Related guide: [Credit
+ notes](https://stripe.com/docs/billing/invoices/credit-notes)
+ properties:
+ amount:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ total amount of the credit note, including tax.
+ type: integer
+ amount_shipping:
+ description: This is the sum of all the shipping amounts.
+ type: integer
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ type: string
+ customer:
anyOf:
- - $ref: '#/components/schemas/shipping'
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer'
+ - $ref: '#/components/schemas/deleted_customer'
+ description: ID of the customer.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer'
+ - $ref: '#/components/schemas/deleted_customer'
+ customer_balance_transaction:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer_balance_transaction'
+ description: Customer balance transaction related to this credit note.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer_balance_transaction'
+ discount_amount:
description: >-
- Mailing and shipping address for the customer. Appears on invoices
- emailed to this customer.
+ The integer amount in cents (or local equivalent) representing the
+ total amount of discount that was credited.
+ type: integer
+ discount_amounts:
+ description: The aggregate amounts calculated per discount for all line items.
+ items:
+ $ref: '#/components/schemas/discounts_resource_discount_amount'
+ type: array
+ effective_at:
+ description: >-
+ The date when this credit note is in effect. Same as `created`
+ unless overwritten. When defined, this value replaces the
+ system-generated 'Date of issue' printed on the credit note PDF.
+ format: unix-time
nullable: true
- sources:
- description: 'The customer''s payment sources, if any.'
- properties:
- data:
- description: Details about each object.
- items:
- anyOf:
- - $ref: '#/components/schemas/bank_account'
- - $ref: '#/components/schemas/card'
- - $ref: '#/components/schemas/source'
- title: Polymorphic
- x-stripeBypassValidation: true
- type: array
- has_more:
- description: >-
- True if this list has another page of items after this one that
- can be fetched.
- type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value. Always has the value `list`.
- enum:
- - list
- type: string
- url:
- description: The URL where this list can be accessed.
- maxLength: 5000
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ invoice:
+ anyOf:
+ - maxLength: 5000
type: string
- required:
- - data
- - has_more
- - object
- - url
- title: ApmsSourcesSourceList
- type: object
- x-expandableFields:
- - data
- subscriptions:
- description: 'The customer''s current subscriptions, if any.'
+ - $ref: '#/components/schemas/invoice'
+ description: ID of the invoice.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/invoice'
+ lines:
+ description: Line items that make up the credit note
properties:
data:
description: Details about each object.
items:
- $ref: '#/components/schemas/subscription'
+ $ref: '#/components/schemas/credit_note_line_item'
type: array
has_more:
description: >-
@@ -6621,435 +7616,495 @@ components:
- has_more
- object
- url
- title: SubscriptionList
+ title: CreditNoteLinesList
type: object
x-expandableFields:
- data
- tax:
- $ref: '#/components/schemas/customer_tax'
- tax_exempt:
+ livemode:
description: >-
- Describes the customer's tax exemption status, which is `none`,
- `exempt`, or `reverse`. When set to `reverse`, invoice and receipt
- PDFs include the following text: **"Reverse charge"**.
- enum:
- - exempt
- - none
- - reverse
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ memo:
+ description: Customer-facing text that appears on the credit note PDF.
+ maxLength: 5000
nullable: true
type: string
- tax_ids:
- description: The customer's tax IDs.
- properties:
- data:
- description: Details about each object.
- items:
- $ref: '#/components/schemas/tax_id'
- type: array
- has_more:
- description: >-
- True if this list has another page of items after this one that
- can be fetched.
- type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value. Always has the value `list`.
- enum:
- - list
- type: string
- url:
- description: The URL where this list can be accessed.
- maxLength: 5000
- type: string
- required:
- - data
- - has_more
- - object
- - url
- title: TaxIDsList
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ you can attach to an object. This can be useful for storing
+ additional information about the object in a structured format.
+ nullable: true
type: object
- x-expandableFields:
- - data
- test_clock:
+ number:
+ description: >-
+ A unique number that identifies this particular credit note and
+ appears on the PDF of the credit note and its associated invoice.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - credit_note
+ type: string
+ out_of_band_amount:
+ description: Amount that was credited outside of Stripe.
+ nullable: true
+ type: integer
+ pdf:
+ description: The link to download the PDF of the credit note.
+ maxLength: 5000
+ type: string
+ reason:
+ description: >-
+ Reason for issuing this credit note, one of `duplicate`,
+ `fraudulent`, `order_change`, or `product_unsatisfactory`
+ enum:
+ - duplicate
+ - fraudulent
+ - order_change
+ - product_unsatisfactory
+ nullable: true
+ type: string
+ refund:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/test_helpers.test_clock'
- description: ID of the test clock that this customer belongs to.
+ - $ref: '#/components/schemas/refund'
+ description: Refund related to this credit note.
nullable: true
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/test_helpers.test_clock'
- required:
- - created
- - id
- - livemode
- - object
- title: Customer
- type: object
- x-expandableFields:
- - address
- - cash_balance
- - default_source
- - discount
- - invoice_settings
- - shipping
- - sources
- - subscriptions
- - tax
- - tax_ids
- - test_clock
- x-resourceId: customer
- customer_acceptance:
- description: ''
- properties:
- accepted_at:
- description: The time that the customer accepts the mandate.
- format: unix-time
+ - $ref: '#/components/schemas/refund'
+ shipping_cost:
+ anyOf:
+ - $ref: '#/components/schemas/invoices_resource_shipping_cost'
+ description: >-
+ The details of the cost of shipping, including the ShippingRate
+ applied to the invoice.
+ nullable: true
+ status:
+ description: >-
+ Status of this credit note, one of `issued` or `void`. Learn more
+ about [voiding credit
+ notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
+ enum:
+ - issued
+ - void
+ type: string
+ x-stripeBypassValidation: true
+ subtotal:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ amount of the credit note, excluding exclusive tax and invoice level
+ discounts.
+ type: integer
+ subtotal_excluding_tax:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ amount of the credit note, excluding all tax and invoice level
+ discounts.
+ nullable: true
+ type: integer
+ tax_amounts:
+ description: The aggregate amounts calculated per tax rate for all line items.
+ items:
+ $ref: '#/components/schemas/credit_note_tax_amount'
+ type: array
+ total:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ total amount of the credit note, including tax and all discount.
+ type: integer
+ total_excluding_tax:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ total amount of the credit note, excluding tax, but including
+ discounts.
nullable: true
type: integer
- offline:
- $ref: '#/components/schemas/offline_acceptance'
- online:
- $ref: '#/components/schemas/online_acceptance'
type:
description: >-
- The mandate includes the type of customer acceptance information,
- such as: `online` or `offline`.
+ Type of this credit note, one of `pre_payment` or `post_payment`. A
+ `pre_payment` credit note means it was issued when the invoice was
+ open. A `post_payment` credit note means it was issued when the
+ invoice was paid.
enum:
- - offline
- - online
+ - post_payment
+ - pre_payment
type: string
+ voided_at:
+ description: The time that the credit note was voided.
+ format: unix-time
+ nullable: true
+ type: integer
required:
+ - amount
+ - amount_shipping
+ - created
+ - currency
+ - customer
+ - discount_amount
+ - discount_amounts
+ - id
+ - invoice
+ - lines
+ - livemode
+ - number
+ - object
+ - pdf
+ - status
+ - subtotal
+ - tax_amounts
+ - total
- type
- title: customer_acceptance
+ title: CreditNote
type: object
x-expandableFields:
- - offline
- - online
- customer_balance_customer_balance_settings:
- description: ''
+ - customer
+ - customer_balance_transaction
+ - discount_amounts
+ - invoice
+ - lines
+ - refund
+ - shipping_cost
+ - tax_amounts
+ x-resourceId: credit_note
+ credit_note_line_item:
+ description: The credit note line item object
properties:
- reconciliation_mode:
+ amount:
description: >-
- The configuration for how funds that land in the customer cash
- balance are reconciled.
- enum:
- - automatic
- - manual
- type: string
- using_merchant_default:
+ The integer amount in cents (or local equivalent) representing the
+ gross amount being credited for this line item, excluding
+ (exclusive) tax and discounts.
+ type: integer
+ amount_excluding_tax:
description: >-
- A flag to indicate if reconciliation mode returned is the user's
- default or is specific to this customer cash balance
+ The integer amount in cents (or local equivalent) representing the
+ amount being credited for this line item, excluding all tax and
+ discounts.
+ nullable: true
+ type: integer
+ description:
+ description: Description of the item being credited.
+ maxLength: 5000
+ nullable: true
+ type: string
+ discount_amount:
+ description: >-
+ The integer amount in cents (or local equivalent) representing the
+ discount being credited for this line item.
+ type: integer
+ discount_amounts:
+ description: The amount of discount calculated per discount for this line item
+ items:
+ $ref: '#/components/schemas/discounts_resource_discount_amount'
+ type: array
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ invoice_line_item:
+ description: ID of the invoice line item being credited
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
type: boolean
- required:
- - reconciliation_mode
- - using_merchant_default
- title: CustomerBalanceCustomerBalanceSettings
- type: object
- x-expandableFields: []
- customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft:
- description: ''
- properties:
- balance_transaction:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/balance_transaction'
+ object:
description: >-
- The [Balance Transaction](docs/api/balance_transactions/object) that
- corresponds to funds taken out of your Stripe balance.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/balance_transaction'
- linked_transaction:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/customer_cash_balance_transaction'
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - credit_note_line_item
+ type: string
+ quantity:
+ description: The number of units of product being credited.
+ nullable: true
+ type: integer
+ tax_amounts:
+ description: The amount of tax calculated per tax rate for this line item
+ items:
+ $ref: '#/components/schemas/credit_note_tax_amount'
+ type: array
+ tax_rates:
+ description: The tax rates which apply to the line item.
+ items:
+ $ref: '#/components/schemas/tax_rate'
+ type: array
+ type:
description: >-
- The [Cash Balance
- Transaction](https://stripe.com/docs/api/cash_balance_transactions/object)
- that brought the customer balance negative, triggering the clawback
- of funds.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/customer_cash_balance_transaction'
+ The type of the credit note line item, one of `invoice_line_item` or
+ `custom_line_item`. When the type is `invoice_line_item` there is an
+ additional `invoice_line_item` property on the resource the value of
+ which is the id of the credited line item on the invoice.
+ enum:
+ - custom_line_item
+ - invoice_line_item
+ type: string
+ unit_amount:
+ description: The cost of each unit of product being credited.
+ nullable: true
+ type: integer
+ unit_amount_decimal:
+ description: >-
+ Same as `unit_amount`, but contains a decimal value with at most 12
+ decimal places.
+ format: decimal
+ nullable: true
+ type: string
+ unit_amount_excluding_tax:
+ description: >-
+ The amount in cents (or local equivalent) representing the unit
+ amount being credited for this line item, excluding all tax and
+ discounts.
+ format: decimal
+ nullable: true
+ type: string
required:
- - balance_transaction
- - linked_transaction
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft
+ - amount
+ - discount_amount
+ - discount_amounts
+ - id
+ - livemode
+ - object
+ - tax_amounts
+ - tax_rates
+ - type
+ title: CreditNoteLineItem
type: object
x-expandableFields:
- - balance_transaction
- - linked_transaction
- customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction:
+ - discount_amounts
+ - tax_amounts
+ - tax_rates
+ x-resourceId: credit_note_line_item
+ credit_note_tax_amount:
description: ''
properties:
- payment_intent:
+ amount:
+ description: 'The amount, in cents (or local equivalent), of the tax.'
+ type: integer
+ inclusive:
+ description: Whether this tax amount is inclusive or exclusive.
+ type: boolean
+ tax_rate:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/payment_intent'
- description: >-
- The [Payment
- Intent](https://stripe.com/docs/api/payment_intents/object) that
- funds were applied to.
+ - $ref: '#/components/schemas/tax_rate'
+ description: The tax rate that was applied to get this tax amount.
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/payment_intent'
- required:
- - payment_intent
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction
- type: object
- x-expandableFields:
- - payment_intent
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction:
- description: ''
- properties:
- bank_transfer:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer
- required:
- - bank_transfer
- title: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction
- type: object
- x-expandableFields:
- - bank_transfer
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer:
- description: ''
- properties:
- eu_bank_transfer:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer
- gb_bank_transfer:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer
- jp_bank_transfer:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer
- reference:
- description: The user-supplied reference field on the bank transfer.
- maxLength: 5000
- nullable: true
- type: string
- type:
+ - $ref: '#/components/schemas/tax_rate'
+ taxability_reason:
description: >-
- The funding method type used to fund the customer balance. Permitted
- values include: `eu_bank_transfer`, `gb_bank_transfer`,
- `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ The reasoning behind this tax, for example, if the product is tax
+ exempt. The possible values for this field may be extended as new
+ tax rules are supported.
enum:
- - eu_bank_transfer
- - gb_bank_transfer
- - jp_bank_transfer
- - mx_bank_transfer
- - us_bank_transfer
+ - customer_exempt
+ - not_collecting
+ - not_subject_to_tax
+ - not_supported
+ - portion_product_exempt
+ - portion_reduced_rated
+ - portion_standard_rated
+ - product_exempt
+ - product_exempt_holiday
+ - proportionally_rated
+ - reduced_rated
+ - reverse_charge
+ - standard_rated
+ - taxable_basis_reduced
+ - zero_rated
+ nullable: true
type: string
x-stripeBypassValidation: true
- us_bank_transfer:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer
+ taxable_amount:
+ description: >-
+ The amount on which tax is calculated, in cents (or local
+ equivalent).
+ nullable: true
+ type: integer
required:
- - type
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer
+ - amount
+ - inclusive
+ - tax_rate
+ title: CreditNoteTaxAmount
type: object
x-expandableFields:
- - eu_bank_transfer
- - gb_bank_transfer
- - jp_bank_transfer
- - us_bank_transfer
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer:
+ - tax_rate
+ currency_option:
description: ''
properties:
- bic:
- description: The BIC of the bank of the sender of the funding.
- maxLength: 5000
- nullable: true
- type: string
- iban_last4:
- description: The last 4 digits of the IBAN of the sender of the funding.
- maxLength: 5000
- nullable: true
- type: string
- sender_name:
- description: 'The full name of the sender, as supplied by the sending bank.'
- maxLength: 5000
+ custom_unit_amount:
+ anyOf:
+ - $ref: '#/components/schemas/custom_unit_amount'
+ description: >-
+ When set, provides configuration for the amount to be adjusted by
+ the customer during Checkout Sessions and Payment Links.
nullable: true
- type: string
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer
- type: object
- x-expandableFields: []
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer:
- description: ''
- properties:
- account_number_last4:
+ tax_behavior:
description: >-
- The last 4 digits of the account number of the sender of the
- funding.
- maxLength: 5000
+ Only required if a [default tax
+ behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended))
+ was not provided in the Stripe Tax settings. Specifies whether the
+ price is considered inclusive of taxes or exclusive of taxes. One of
+ `inclusive`, `exclusive`, or `unspecified`. Once specified as either
+ `inclusive` or `exclusive`, it cannot be changed.
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
nullable: true
type: string
- sender_name:
- description: 'The full name of the sender, as supplied by the sending bank.'
- maxLength: 5000
+ tiers:
+ description: >-
+ Each element represents a pricing tier. This parameter requires
+ `billing_scheme` to be set to `tiered`. See also the documentation
+ for `billing_scheme`.
+ items:
+ $ref: '#/components/schemas/price_tier'
+ type: array
+ unit_amount:
+ description: >-
+ The unit amount in cents (or local equivalent) to be charged,
+ represented as a whole integer if possible. Only set if
+ `billing_scheme=per_unit`.
nullable: true
- type: string
- sort_code:
- description: The sort code of the bank of the sender of the funding
- maxLength: 5000
+ type: integer
+ unit_amount_decimal:
+ description: >-
+ The unit amount in cents (or local equivalent) to be charged,
+ represented as a decimal string with at most 12 decimal places. Only
+ set if `billing_scheme=per_unit`.
+ format: decimal
nullable: true
type: string
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer
+ title: CurrencyOption
type: object
- x-expandableFields: []
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer:
+ x-expandableFields:
+ - custom_unit_amount
+ - tiers
+ custom_unit_amount:
description: ''
properties:
- sender_bank:
- description: The name of the bank of the sender of the funding.
- maxLength: 5000
- nullable: true
- type: string
- sender_branch:
- description: The name of the bank branch of the sender of the funding.
- maxLength: 5000
+ maximum:
+ description: The maximum unit amount the customer can specify for this item.
nullable: true
- type: string
- sender_name:
- description: 'The full name of the sender, as supplied by the sending bank.'
- maxLength: 5000
+ type: integer
+ minimum:
+ description: >-
+ The minimum unit amount the customer can specify for this item. Must
+ be at least the minimum charge amount.
nullable: true
- type: string
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer
- type: object
- x-expandableFields: []
- customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer:
- description: ''
- properties:
- network:
- description: The banking network used for this funding.
- enum:
- - ach
- - domestic_wire_us
- - swift
- type: string
- sender_name:
- description: 'The full name of the sender, as supplied by the sending bank.'
- maxLength: 5000
+ type: integer
+ preset:
+ description: The starting unit amount which can be updated by the customer.
nullable: true
- type: string
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer
+ type: integer
+ title: CustomUnitAmount
type: object
x-expandableFields: []
- customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction:
- description: ''
- properties:
- refund:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/refund'
- description: >-
- The [Refund](https://stripe.com/docs/api/refunds/object) that moved
- these funds into the customer's cash balance.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/refund'
- required:
- - refund
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction
- type: object
- x-expandableFields:
- - refund
- customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction:
- description: ''
- properties:
- payment_intent:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/payment_intent'
- description: >-
- The [Payment
- Intent](https://stripe.com/docs/api/payment_intents/object) that
- funds were unapplied from.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/payment_intent'
- required:
- - payment_intent
- title: >-
- CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction
- type: object
- x-expandableFields:
- - payment_intent
- customer_balance_transaction:
+ customer:
description: >-
- Each customer has a
- [Balance](https://stripe.com/docs/api/customers/object#customer_object-balance)
- value,
-
- which denotes a debit or credit that's automatically applied to their
- next invoice upon finalization.
-
- You may modify the value directly by using the [update customer
- API](https://stripe.com/docs/api/customers/update),
-
- or by creating a Customer Balance Transaction, which increments or
- decrements the customer's `balance` by the specified `amount`.
+ This object represents a customer of your business. Use it to create
+ recurring charges and track payments that belong to the same customer.
- Related guide: [Customer
- balance](https://stripe.com/docs/billing/customer/balance)
+ Related guide: [Save a card during
+ payment](https://stripe.com/docs/payments/save-during-payment)
properties:
- amount:
+ address:
+ anyOf:
+ - $ref: '#/components/schemas/address'
+ description: The customer's address.
+ nullable: true
+ balance:
description: >-
- The amount of the transaction. A negative value is a credit for the
- customer's balance, and a positive value is a debit to the
- customer's `balance`.
+ The current balance, if any, that's stored on the customer. If
+ negative, the customer has credit to apply to their next invoice. If
+ positive, the customer has an amount owed that's added to their next
+ invoice. The balance only considers amounts that Stripe hasn't
+ successfully applied to any invoice. It doesn't reflect unpaid
+ invoices. This balance is only taken into account after invoices
+ finalize.
type: integer
+ cash_balance:
+ anyOf:
+ - $ref: '#/components/schemas/cash_balance'
+ description: >-
+ The current funds being held by Stripe on behalf of the customer.
+ You can apply these funds towards payment intents when the source is
+ "cash_balance". The `settings[reconciliation_mode]` field describes
+ if these funds apply to these payment intents manually or
+ automatically.
+ nullable: true
created:
description: >-
Time at which the object was created. Measured in seconds since the
Unix epoch.
format: unix-time
type: integer
- credit_note:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/credit_note'
- description: The ID of the credit note (if any) related to the transaction.
- nullable: true
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/credit_note'
currency:
description: >-
- Three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
+ Three-letter [ISO code for the
+ currency](https://stripe.com/docs/currencies) the customer can be
+ charged in for recurring billing purposes.
+ maxLength: 5000
+ nullable: true
type: string
- customer:
+ default_source:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/customer'
- description: The ID of the customer the transaction belongs to.
+ - $ref: '#/components/schemas/bank_account'
+ - $ref: '#/components/schemas/card'
+ - $ref: '#/components/schemas/source'
+ description: >-
+ ID of the default payment source for the customer.
+
+
+ If you use payment methods created through the PaymentMethods API,
+ see the
+ [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
+ field instead.
+ nullable: true
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/customer'
+ - $ref: '#/components/schemas/bank_account'
+ - $ref: '#/components/schemas/card'
+ - $ref: '#/components/schemas/source'
+ x-stripeBypassValidation: true
+ delinquent:
+ description: >-
+ Tracks the most recent state change on any invoice belonging to the
+ customer. Paying an invoice or marking it uncollectible via the API
+ will set this field to false. An automatic payment failure or
+ passing the `invoice.due_date` will set this field to `true`.
+
+
+ If an invoice becomes uncollectible by
+ [dunning](https://stripe.com/docs/billing/automatic-collection),
+ `delinquent` doesn't reset to `false`.
+
+
+ If you care whether the customer has paid their most recent
+ subscription invoice, use `subscription.status` instead. Paying or
+ marking uncollectible any customer invoice regardless of whether it
+ is the latest invoice for a subscription will always set this field
+ to `false`.
+ nullable: true
+ type: boolean
description:
description: >-
An arbitrary string attached to the object. Often useful for
@@ -7057,27 +8112,43 @@ components:
maxLength: 5000
nullable: true
type: string
- ending_balance:
+ discount:
+ anyOf:
+ - $ref: '#/components/schemas/discount'
description: >-
- The customer's `balance` after the transaction was applied. A
- negative value decreases the amount due on the customer's next
- invoice. A positive value increases the amount due on the customer's
- next invoice.
- type: integer
+ Describes the current discount active on the customer, if there is
+ one.
+ nullable: true
+ email:
+ description: The customer's email address.
+ maxLength: 5000
+ nullable: true
+ type: string
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
- invoice:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/invoice'
- description: The ID of the invoice (if any) related to the transaction.
+ invoice_credit_balance:
+ additionalProperties:
+ type: integer
+ description: >-
+ The current multi-currency balances, if any, that's stored on the
+ customer. If positive in a currency, the customer has a credit to
+ apply to their next invoice denominated in that currency. If
+ negative, the customer has an amount owed that's added to their next
+ invoice denominated in that currency. These balances don't apply to
+ unpaid invoices. They solely track amounts that Stripe hasn't
+ successfully applied to any invoice. Stripe only applies a balance
+ in a specific currency to an invoice after that invoice (which is in
+ the same currency) finalizes.
+ type: object
+ invoice_prefix:
+ description: The prefix for the customer used to generate unique invoice numbers.
+ maxLength: 5000
nullable: true
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/invoice'
+ type: string
+ invoice_settings:
+ $ref: '#/components/schemas/invoice_setting_customer_setting'
livemode:
description: >-
Has the value `true` if the object exists in live mode or the value
@@ -7091,558 +8162,1272 @@ components:
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
you can attach to an object. This can be useful for storing
additional information about the object in a structured format.
- nullable: true
type: object
+ name:
+ description: The customer's full name or business name.
+ maxLength: 5000
+ nullable: true
+ type: string
+ next_invoice_sequence:
+ description: >-
+ The suffix of the customer's next invoice number (for example,
+ 0001).
+ type: integer
object:
description: >-
String representing the object's type. Objects of the same type
share the same value.
enum:
- - customer_balance_transaction
+ - customer
type: string
- type:
- description: >-
- Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`,
- `initial`, `invoice_overpaid`, `invoice_too_large`,
- `invoice_too_small`, `unspent_receiver_credit`, or
- `unapplied_from_invoice`. See the [Customer Balance
- page](https://stripe.com/docs/billing/customer/balance#types) to
- learn more about transaction types.
- enum:
- - adjustment
- - applied_to_invoice
- - credit_note
- - initial
- - invoice_overpaid
- - invoice_too_large
- - invoice_too_small
- - migration
- - unapplied_from_invoice
- - unspent_receiver_credit
+ phone:
+ description: The customer's phone number.
+ maxLength: 5000
+ nullable: true
type: string
- required:
- - amount
- - created
- - currency
- - customer
- - ending_balance
- - id
- - livemode
- - object
- - type
- title: CustomerBalanceTransaction
- type: object
- x-expandableFields:
- - credit_note
- - customer
- - invoice
- x-resourceId: customer_balance_transaction
- customer_cash_balance_transaction:
- description: >-
- Customers with certain payments enabled have a cash balance,
- representing funds that were paid
-
- by the customer to a merchant, but have not yet been allocated to a
- payment. Cash Balance Transactions
-
- represent when funds are moved into or out of this balance. This
- includes funding by the customer, allocation
-
- to payments, and refunds to the customer.
- properties:
- adjusted_for_overdraft:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft
- applied_to_payment:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction
- created:
+ preferred_locales:
+ description: 'The customer''s preferred locales (languages), ordered by preference.'
+ items:
+ maxLength: 5000
+ type: string
+ nullable: true
+ type: array
+ shipping:
+ anyOf:
+ - $ref: '#/components/schemas/shipping'
description: >-
- Time at which the object was created. Measured in seconds since the
- Unix epoch.
- format: unix-time
- type: integer
- currency:
+ Mailing and shipping address for the customer. Appears on invoices
+ emailed to this customer.
+ nullable: true
+ sources:
+ description: 'The customer''s payment sources, if any.'
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/bank_account'
+ - $ref: '#/components/schemas/card'
+ - $ref: '#/components/schemas/source'
+ title: Polymorphic
+ x-stripeBypassValidation: true
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one that
+ can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: ApmsSourcesSourceList
+ type: object
+ x-expandableFields:
+ - data
+ subscriptions:
+ description: 'The customer''s current subscriptions, if any.'
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ $ref: '#/components/schemas/subscription'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one that
+ can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: SubscriptionList
+ type: object
+ x-expandableFields:
+ - data
+ tax:
+ $ref: '#/components/schemas/customer_tax'
+ tax_exempt:
description: >-
- Three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
- maxLength: 5000
+ Describes the customer's tax exemption status, which is `none`,
+ `exempt`, or `reverse`. When set to `reverse`, invoice and receipt
+ PDFs include the following text: **"Reverse charge"**.
+ enum:
+ - exempt
+ - none
+ - reverse
+ nullable: true
type: string
- customer:
+ tax_ids:
+ description: The customer's tax IDs.
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ $ref: '#/components/schemas/tax_id'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one that
+ can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: TaxIDsList
+ type: object
+ x-expandableFields:
+ - data
+ test_clock:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/customer'
- description: >-
- The customer whose available cash balance changed as a result of
- this transaction.
+ - $ref: '#/components/schemas/test_helpers.test_clock'
+ description: ID of the test clock that this customer belongs to.
+ nullable: true
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/customer'
- ending_balance:
- description: >-
- The total available cash balance for the specified currency after
- this transaction was applied. Represented in the [smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal).
- type: integer
- funded:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction
- id:
- description: Unique identifier for the object.
- maxLength: 5000
- type: string
- livemode:
- description: >-
- Has the value `true` if the object exists in live mode or the value
- `false` if the object exists in test mode.
- type: boolean
- net_amount:
- description: >-
- The amount by which the cash balance changed, represented in the
- [smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal). A positive
- value represents funds being added to the cash balance, a negative
- value represents funds being removed from the cash balance.
- type: integer
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - customer_cash_balance_transaction
- type: string
- refunded_from_payment:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction
- type:
- description: >-
- The type of the cash balance transaction. New types may be added in
- future. See [Customer
- Balance](https://stripe.com/docs/payments/customer-balance#types) to
- learn more about these types.
- enum:
- - adjusted_for_overdraft
- - applied_to_payment
- - funded
- - funding_reversed
- - refunded_from_payment
- - return_canceled
- - return_initiated
- - unapplied_from_payment
- type: string
- unapplied_from_payment:
- $ref: >-
- #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction
+ - $ref: '#/components/schemas/test_helpers.test_clock'
required:
- created
- - currency
- - customer
- - ending_balance
- id
- livemode
- - net_amount
- object
- - type
- title: CustomerCashBalanceTransaction
+ title: Customer
type: object
x-expandableFields:
- - adjusted_for_overdraft
- - applied_to_payment
- - customer
- - funded
- - refunded_from_payment
- - unapplied_from_payment
- x-resourceId: customer_cash_balance_transaction
- customer_tax:
+ - address
+ - cash_balance
+ - default_source
+ - discount
+ - invoice_settings
+ - shipping
+ - sources
+ - subscriptions
+ - tax
+ - tax_ids
+ - test_clock
+ x-resourceId: customer
+ customer_acceptance:
description: ''
properties:
- automatic_tax:
+ accepted_at:
+ description: The time that the customer accepts the mandate.
+ format: unix-time
+ nullable: true
+ type: integer
+ offline:
+ $ref: '#/components/schemas/offline_acceptance'
+ online:
+ $ref: '#/components/schemas/online_acceptance'
+ type:
description: >-
- Surfaces if automatic tax computation is possible given the current
- customer location information.
+ The mandate includes the type of customer acceptance information,
+ such as: `online` or `offline`.
enum:
- - failed
- - not_collecting
- - supported
- - unrecognized_location
- type: string
- ip_address:
- description: >-
- A recent IP address of the customer used for tax reporting and tax
- location inference.
- maxLength: 5000
- nullable: true
+ - offline
+ - online
type: string
- location:
- anyOf:
- - $ref: '#/components/schemas/customer_tax_location'
- description: The customer's location as identified by Stripe Tax.
- nullable: true
required:
- - automatic_tax
- title: CustomerTax
+ - type
+ title: customer_acceptance
type: object
x-expandableFields:
- - location
- customer_tax_location:
+ - offline
+ - online
+ customer_balance_customer_balance_settings:
description: ''
properties:
- country:
- description: The customer's country as identified by Stripe Tax.
- maxLength: 5000
- type: string
- source:
- description: The data source used to infer the customer's location.
+ reconciliation_mode:
+ description: >-
+ The configuration for how funds that land in the customer cash
+ balance are reconciled.
enum:
- - billing_address
- - ip_address
- - payment_method
- - shipping_destination
+ - automatic
+ - manual
type: string
- state:
+ using_merchant_default:
description: >-
- The customer's state, county, province, or region as identified by
- Stripe Tax.
- maxLength: 5000
- nullable: true
- type: string
+ A flag to indicate if reconciliation mode returned is the user's
+ default or is specific to this customer cash balance
+ type: boolean
required:
- - country
- - source
- title: CustomerTaxLocation
+ - reconciliation_mode
+ - using_merchant_default
+ title: CustomerBalanceCustomerBalanceSettings
type: object
x-expandableFields: []
- deleted_account:
+ customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft:
description: ''
properties:
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
- maxLength: 5000
- type: string
- object:
+ balance_transaction:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/balance_transaction'
description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - account
- type: string
+ The [Balance
+ Transaction](https://stripe.com/docs/api/balance_transactions/object)
+ that corresponds to funds taken out of your Stripe balance.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/balance_transaction'
+ linked_transaction:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer_cash_balance_transaction'
+ description: >-
+ The [Cash Balance
+ Transaction](https://stripe.com/docs/api/cash_balance_transactions/object)
+ that brought the customer balance negative, triggering the clawback
+ of funds.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer_cash_balance_transaction'
required:
- - deleted
- - id
- - object
- title: DeletedAccount
+ - balance_transaction
+ - linked_transaction
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft
type: object
- x-expandableFields: []
- x-resourceId: deleted_account
- deleted_apple_pay_domain:
+ x-expandableFields:
+ - balance_transaction
+ - linked_transaction
+ customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction:
description: ''
properties:
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
- maxLength: 5000
- type: string
- object:
+ payment_intent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/payment_intent'
description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - apple_pay_domain
- type: string
+ The [Payment
+ Intent](https://stripe.com/docs/api/payment_intents/object) that
+ funds were applied to.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/payment_intent'
required:
- - deleted
- - id
- - object
- title: DeletedApplePayDomain
+ - payment_intent
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction
type: object
- x-expandableFields: []
- x-resourceId: deleted_apple_pay_domain
- deleted_application:
+ x-expandableFields:
+ - payment_intent
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction:
description: ''
properties:
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
- maxLength: 5000
- type: string
- name:
- description: The name of the application.
+ bank_transfer:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer
+ required:
+ - bank_transfer
+ title: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction
+ type: object
+ x-expandableFields:
+ - bank_transfer
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer:
+ description: ''
+ properties:
+ eu_bank_transfer:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer
+ gb_bank_transfer:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer
+ jp_bank_transfer:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer
+ reference:
+ description: The user-supplied reference field on the bank transfer.
maxLength: 5000
nullable: true
type: string
- object:
+ type:
description: >-
- String representing the object's type. Objects of the same type
- share the same value.
+ The funding method type used to fund the customer balance. Permitted
+ values include: `eu_bank_transfer`, `gb_bank_transfer`,
+ `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
enum:
- - application
+ - eu_bank_transfer
+ - gb_bank_transfer
+ - jp_bank_transfer
+ - mx_bank_transfer
+ - us_bank_transfer
type: string
+ x-stripeBypassValidation: true
+ us_bank_transfer:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer
required:
- - deleted
- - id
- - object
- title: DeletedApplication
+ - type
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer
type: object
- x-expandableFields: []
- deleted_bank_account:
+ x-expandableFields:
+ - eu_bank_transfer
+ - gb_bank_transfer
+ - jp_bank_transfer
+ - us_bank_transfer
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer:
description: ''
properties:
- currency:
- description: >-
- Three-letter [ISO code for the
- currency](https://stripe.com/docs/payouts) paid out to the bank
- account.
+ bic:
+ description: The BIC of the bank of the sender of the funding.
maxLength: 5000
nullable: true
type: string
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
+ iban_last4:
+ description: The last 4 digits of the IBAN of the sender of the funding.
maxLength: 5000
+ nullable: true
type: string
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - bank_account
+ sender_name:
+ description: 'The full name of the sender, as supplied by the sending bank.'
+ maxLength: 5000
+ nullable: true
type: string
- required:
- - deleted
- - id
- - object
- title: DeletedBankAccount
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer
type: object
x-expandableFields: []
- deleted_card:
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer:
description: ''
properties:
- currency:
+ account_number_last4:
description: >-
- Three-letter [ISO code for the
- currency](https://stripe.com/docs/payouts) paid out to the bank
- account.
+ The last 4 digits of the account number of the sender of the
+ funding.
maxLength: 5000
nullable: true
type: string
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
+ sender_name:
+ description: 'The full name of the sender, as supplied by the sending bank.'
maxLength: 5000
+ nullable: true
type: string
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - card
+ sort_code:
+ description: The sort code of the bank of the sender of the funding
+ maxLength: 5000
+ nullable: true
type: string
- required:
- - deleted
- - id
- - object
- title: DeletedCard
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer
type: object
x-expandableFields: []
- deleted_coupon:
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer:
description: ''
properties:
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
+ sender_bank:
+ description: The name of the bank of the sender of the funding.
maxLength: 5000
+ nullable: true
type: string
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - coupon
+ sender_branch:
+ description: The name of the bank branch of the sender of the funding.
+ maxLength: 5000
+ nullable: true
type: string
- required:
- - deleted
- - id
- - object
- title: DeletedCoupon
+ sender_name:
+ description: 'The full name of the sender, as supplied by the sending bank.'
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer
type: object
x-expandableFields: []
- x-resourceId: deleted_coupon
- deleted_customer:
+ customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer:
description: ''
properties:
- deleted:
- description: Always true for a deleted object
+ network:
+ description: The banking network used for this funding.
enum:
- - true
- type: boolean
- id:
- description: Unique identifier for the object.
+ - ach
+ - domestic_wire_us
+ - swift
+ type: string
+ sender_name:
+ description: 'The full name of the sender, as supplied by the sending bank.'
maxLength: 5000
+ nullable: true
type: string
- object:
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer
+ type: object
+ x-expandableFields: []
+ customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction:
+ description: ''
+ properties:
+ refund:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/refund'
description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - customer
- type: string
+ The [Refund](https://stripe.com/docs/api/refunds/object) that moved
+ these funds into the customer's cash balance.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/refund'
required:
- - deleted
- - id
- - object
- title: DeletedCustomer
+ - refund
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction
type: object
- x-expandableFields: []
- x-resourceId: deleted_customer
- deleted_discount:
+ x-expandableFields:
+ - refund
+ customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance:
description: ''
properties:
- checkout_session:
+ balance_transaction:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/balance_transaction'
description: >-
- The Checkout session that this coupon is applied to, if it is
- applied to a particular session in payment mode. Will not be present
- for subscription mode.
- maxLength: 5000
+ The [Balance
+ Transaction](https://stripe.com/docs/api/balance_transactions/object)
+ that corresponds to funds transferred to your Stripe balance.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/balance_transaction'
+ required:
+ - balance_transaction
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalance
+ type: object
+ x-expandableFields:
+ - balance_transaction
+ customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction:
+ description: ''
+ properties:
+ payment_intent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/payment_intent'
+ description: >-
+ The [Payment
+ Intent](https://stripe.com/docs/api/payment_intents/object) that
+ funds were unapplied from.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/payment_intent'
+ required:
+ - payment_intent
+ title: >-
+ CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction
+ type: object
+ x-expandableFields:
+ - payment_intent
+ customer_balance_transaction:
+ description: >-
+ Each customer has a
+ [Balance](https://stripe.com/docs/api/customers/object#customer_object-balance)
+ value,
+
+ which denotes a debit or credit that's automatically applied to their
+ next invoice upon finalization.
+
+ You may modify the value directly by using the [update customer
+ API](https://stripe.com/docs/api/customers/update),
+
+ or by creating a Customer Balance Transaction, which increments or
+ decrements the customer's `balance` by the specified `amount`.
+
+
+ Related guide: [Customer
+ balance](https://stripe.com/docs/billing/customer/balance)
+ properties:
+ amount:
+ description: >-
+ The amount of the transaction. A negative value is a credit for the
+ customer's balance, and a positive value is a debit to the
+ customer's `balance`.
+ type: integer
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ credit_note:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/credit_note'
+ description: The ID of the credit note (if any) related to the transaction.
nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/credit_note'
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
type: string
- coupon:
- $ref: '#/components/schemas/coupon'
customer:
anyOf:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/customer'
- - $ref: '#/components/schemas/deleted_customer'
- description: The ID of the customer associated with this discount.
- nullable: true
+ description: The ID of the customer the transaction belongs to.
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/customer'
- - $ref: '#/components/schemas/deleted_customer'
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
- id:
- description: >-
- The ID of the discount object. Discounts cannot be fetched by ID.
- Use `expand[]=discounts` in API calls to expand discount IDs in an
- array.
- maxLength: 5000
- type: string
- invoice:
+ description:
description: >-
- The invoice that the discount's coupon was applied to, if it was
- applied directly to a particular invoice.
+ An arbitrary string attached to the object. Often useful for
+ displaying to users.
maxLength: 5000
nullable: true
type: string
- invoice_item:
+ ending_balance:
description: >-
- The invoice item `id` (or invoice line item `id` for invoice line
- items of type='subscription') that the discount's coupon was applied
- to, if it was applied directly to a particular invoice item or
- invoice line item.
+ The customer's `balance` after the transaction was applied. A
+ negative value decreases the amount due on the customer's next
+ invoice. A positive value increases the amount due on the customer's
+ next invoice.
+ type: integer
+ id:
+ description: Unique identifier for the object.
maxLength: 5000
- nullable: true
- type: string
- object:
- description: >-
- String representing the object's type. Objects of the same type
- share the same value.
- enum:
- - discount
type: string
- promotion_code:
+ invoice:
anyOf:
- maxLength: 5000
type: string
- - $ref: '#/components/schemas/promotion_code'
- description: The promotion code applied to create this discount.
+ - $ref: '#/components/schemas/invoice'
+ description: The ID of the invoice (if any) related to the transaction.
nullable: true
x-expansionResources:
oneOf:
- - $ref: '#/components/schemas/promotion_code'
- start:
- description: Date that the coupon was applied.
- format: unix-time
- type: integer
- subscription:
+ - $ref: '#/components/schemas/invoice'
+ livemode:
description: >-
- The subscription that this coupon is applied to, if it is applied to
- a particular subscription.
- maxLength: 5000
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ you can attach to an object. This can be useful for storing
+ additional information about the object in a structured format.
nullable: true
+ type: object
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - customer_balance_transaction
+ type: string
+ type:
+ description: >-
+ Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`,
+ `initial`, `invoice_overpaid`, `invoice_too_large`,
+ `invoice_too_small`, `unspent_receiver_credit`, or
+ `unapplied_from_invoice`. See the [Customer Balance
+ page](https://stripe.com/docs/billing/customer/balance#types) to
+ learn more about transaction types.
+ enum:
+ - adjustment
+ - applied_to_invoice
+ - credit_note
+ - initial
+ - invoice_overpaid
+ - invoice_too_large
+ - invoice_too_small
+ - migration
+ - unapplied_from_invoice
+ - unspent_receiver_credit
type: string
+ x-stripeBypassValidation: true
required:
- - coupon
- - deleted
+ - amount
+ - created
+ - currency
+ - customer
+ - ending_balance
- id
+ - livemode
- object
- - start
- title: DeletedDiscount
+ - type
+ title: CustomerBalanceTransaction
type: object
x-expandableFields:
- - coupon
+ - credit_note
- customer
- - promotion_code
- x-resourceId: deleted_discount
- deleted_external_account:
- anyOf:
- - $ref: '#/components/schemas/deleted_bank_account'
- - $ref: '#/components/schemas/deleted_card'
- title: Polymorphic
- x-resourceId: deleted_external_account
- x-stripeBypassValidation: true
- deleted_invoice:
- description: ''
+ - invoice
+ x-resourceId: customer_balance_transaction
+ customer_cash_balance_transaction:
+ description: >-
+ Customers with certain payments enabled have a cash balance,
+ representing funds that were paid
+
+ by the customer to a merchant, but have not yet been allocated to a
+ payment. Cash Balance Transactions
+
+ represent when funds are moved into or out of this balance. This
+ includes funding by the customer, allocation
+
+ to payments, and refunds to the customer.
properties:
- deleted:
- description: Always true for a deleted object
- enum:
- - true
- type: boolean
+ adjusted_for_overdraft:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft
+ applied_to_payment:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ maxLength: 5000
+ type: string
+ customer:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer'
+ description: >-
+ The customer whose available cash balance changed as a result of
+ this transaction.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer'
+ ending_balance:
+ description: >-
+ The total available cash balance for the specified currency after
+ this transaction was applied. Represented in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
+ type: integer
+ funded:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_funded_transaction
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ net_amount:
+ description: >-
+ The amount by which the cash balance changed, represented in the
+ [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). A positive
+ value represents funds being added to the cash balance, a negative
+ value represents funds being removed from the cash balance.
+ type: integer
object:
description: >-
String representing the object's type. Objects of the same type
share the same value.
enum:
- - invoice
+ - customer_cash_balance_transaction
type: string
- required:
+ refunded_from_payment:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction
+ transferred_to_balance:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance
+ type:
+ description: >-
+ The type of the cash balance transaction. New types may be added in
+ future. See [Customer
+ Balance](https://stripe.com/docs/payments/customer-balance#types) to
+ learn more about these types.
+ enum:
+ - adjusted_for_overdraft
+ - applied_to_payment
+ - funded
+ - funding_reversed
+ - refunded_from_payment
+ - return_canceled
+ - return_initiated
+ - transferred_to_balance
+ - unapplied_from_payment
+ type: string
+ unapplied_from_payment:
+ $ref: >-
+ #/components/schemas/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction
+ required:
+ - created
+ - currency
+ - customer
+ - ending_balance
+ - id
+ - livemode
+ - net_amount
+ - object
+ - type
+ title: CustomerCashBalanceTransaction
+ type: object
+ x-expandableFields:
+ - adjusted_for_overdraft
+ - applied_to_payment
+ - customer
+ - funded
+ - refunded_from_payment
+ - transferred_to_balance
+ - unapplied_from_payment
+ x-resourceId: customer_cash_balance_transaction
+ customer_session:
+ description: >-
+ A customer session allows you to grant client access to Stripe's
+ frontend SDKs (like StripeJs)
+
+ control over a customer.
+ properties:
+ client_secret:
+ description: >-
+ The client secret of this customer session. Used on the client to
+ set up secure access to the given `customer`.
+
+
+ The client secret can be used to provide access to `customer` from
+ your frontend. It should not be stored, logged, or exposed to anyone
+ other than the relevant customer. Make sure that you have TLS
+ enabled on any page that includes the client secret.
+ maxLength: 5000
+ type: string
+ components:
+ $ref: '#/components/schemas/customer_session_resource_components'
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ customer:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer'
+ description: The customer the customer session was created for.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer'
+ expires_at:
+ description: The timestamp at which this customer session will expire.
+ format: unix-time
+ type: integer
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - customer_session
+ type: string
+ required:
+ - client_secret
+ - created
+ - customer
+ - expires_at
+ - livemode
+ - object
+ title: CustomerSessionResourceCustomerSession
+ type: object
+ x-expandableFields:
+ - components
+ - customer
+ x-resourceId: customer_session
+ customer_session_resource_components:
+ description: Configuration for the components supported by this customer session.
+ properties:
+ buy_button:
+ $ref: >-
+ #/components/schemas/customer_session_resource_components_resource_buy_button
+ pricing_table:
+ $ref: >-
+ #/components/schemas/customer_session_resource_components_resource_pricing_table
+ required:
+ - buy_button
+ - pricing_table
+ title: CustomerSessionResourceComponents
+ type: object
+ x-expandableFields:
+ - buy_button
+ - pricing_table
+ customer_session_resource_components_resource_buy_button:
+ description: This hash contains whether the buy button is enabled.
+ properties:
+ enabled:
+ description: Whether the buy button is enabled.
+ type: boolean
+ required:
+ - enabled
+ title: CustomerSessionResourceComponentsResourceBuyButton
+ type: object
+ x-expandableFields: []
+ customer_session_resource_components_resource_pricing_table:
+ description: This hash contains whether the pricing table is enabled.
+ properties:
+ enabled:
+ description: Whether the pricing table is enabled.
+ type: boolean
+ required:
+ - enabled
+ title: CustomerSessionResourceComponentsResourcePricingTable
+ type: object
+ x-expandableFields: []
+ customer_tax:
+ description: ''
+ properties:
+ automatic_tax:
+ description: >-
+ Surfaces if automatic tax computation is possible given the current
+ customer location information.
+ enum:
+ - failed
+ - not_collecting
+ - supported
+ - unrecognized_location
+ type: string
+ ip_address:
+ description: >-
+ A recent IP address of the customer used for tax reporting and tax
+ location inference.
+ maxLength: 5000
+ nullable: true
+ type: string
+ location:
+ anyOf:
+ - $ref: '#/components/schemas/customer_tax_location'
+ description: The customer's location as identified by Stripe Tax.
+ nullable: true
+ required:
+ - automatic_tax
+ title: CustomerTax
+ type: object
+ x-expandableFields:
+ - location
+ customer_tax_location:
+ description: ''
+ properties:
+ country:
+ description: The customer's country as identified by Stripe Tax.
+ maxLength: 5000
+ type: string
+ source:
+ description: The data source used to infer the customer's location.
+ enum:
+ - billing_address
+ - ip_address
+ - payment_method
+ - shipping_destination
+ type: string
+ state:
+ description: >-
+ The customer's state, county, province, or region as identified by
+ Stripe Tax.
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - country
+ - source
+ title: CustomerTaxLocation
+ type: object
+ x-expandableFields: []
+ deleted_account:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - account
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedAccount
+ type: object
+ x-expandableFields: []
+ x-resourceId: deleted_account
+ deleted_apple_pay_domain:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - apple_pay_domain
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedApplePayDomain
+ type: object
+ x-expandableFields: []
+ x-resourceId: deleted_apple_pay_domain
+ deleted_application:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ name:
+ description: The name of the application.
+ maxLength: 5000
+ nullable: true
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - application
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedApplication
+ type: object
+ x-expandableFields: []
+ deleted_bank_account:
+ description: ''
+ properties:
+ currency:
+ description: >-
+ Three-letter [ISO code for the
+ currency](https://stripe.com/docs/payouts) paid out to the bank
+ account.
+ maxLength: 5000
+ nullable: true
+ type: string
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - bank_account
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedBankAccount
+ type: object
+ x-expandableFields: []
+ deleted_card:
+ description: ''
+ properties:
+ currency:
+ description: >-
+ Three-letter [ISO code for the
+ currency](https://stripe.com/docs/payouts) paid out to the bank
+ account.
+ maxLength: 5000
+ nullable: true
+ type: string
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - card
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedCard
+ type: object
+ x-expandableFields: []
+ deleted_coupon:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - coupon
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedCoupon
+ type: object
+ x-expandableFields: []
+ x-resourceId: deleted_coupon
+ deleted_customer:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - customer
+ type: string
+ required:
+ - deleted
+ - id
+ - object
+ title: DeletedCustomer
+ type: object
+ x-expandableFields: []
+ x-resourceId: deleted_customer
+ deleted_discount:
+ description: ''
+ properties:
+ checkout_session:
+ description: >-
+ The Checkout session that this coupon is applied to, if it is
+ applied to a particular session in payment mode. Will not be present
+ for subscription mode.
+ maxLength: 5000
+ nullable: true
+ type: string
+ coupon:
+ $ref: '#/components/schemas/coupon'
+ customer:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer'
+ - $ref: '#/components/schemas/deleted_customer'
+ description: The ID of the customer associated with this discount.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer'
+ - $ref: '#/components/schemas/deleted_customer'
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: >-
+ The ID of the discount object. Discounts cannot be fetched by ID.
+ Use `expand[]=discounts` in API calls to expand discount IDs in an
+ array.
+ maxLength: 5000
+ type: string
+ invoice:
+ description: >-
+ The invoice that the discount's coupon was applied to, if it was
+ applied directly to a particular invoice.
+ maxLength: 5000
+ nullable: true
+ type: string
+ invoice_item:
+ description: >-
+ The invoice item `id` (or invoice line item `id` for invoice line
+ items of type='subscription') that the discount's coupon was applied
+ to, if it was applied directly to a particular invoice item or
+ invoice line item.
+ maxLength: 5000
+ nullable: true
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - discount
+ type: string
+ promotion_code:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/promotion_code'
+ description: The promotion code applied to create this discount.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/promotion_code'
+ start:
+ description: Date that the coupon was applied.
+ format: unix-time
+ type: integer
+ subscription:
+ description: >-
+ The subscription that this coupon is applied to, if it is applied to
+ a particular subscription.
+ maxLength: 5000
+ nullable: true
+ type: string
+ subscription_item:
+ description: >-
+ The subscription item that this coupon is applied to, if it is
+ applied to a particular subscription item.
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - coupon
+ - deleted
+ - id
+ - object
+ - start
+ title: DeletedDiscount
+ type: object
+ x-expandableFields:
+ - coupon
+ - customer
+ - promotion_code
+ x-resourceId: deleted_discount
+ deleted_external_account:
+ anyOf:
+ - $ref: '#/components/schemas/deleted_bank_account'
+ - $ref: '#/components/schemas/deleted_card'
+ title: Polymorphic
+ x-resourceId: deleted_external_account
+ x-stripeBypassValidation: true
+ deleted_invoice:
+ description: ''
+ properties:
+ deleted:
+ description: Always true for a deleted object
+ enum:
+ - true
+ type: boolean
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - invoice
+ type: string
+ required:
- deleted
- id
- object
@@ -8034,6 +9819,12 @@ components:
type: object
x-expandableFields: []
x-resourceId: deleted_webhook_endpoint
+ destination_details_unimplemented:
+ description: ''
+ properties: {}
+ title: destination_details_unimplemented
+ type: object
+ x-expandableFields: []
discount:
description: >-
A discount represents the actual application of a
@@ -8128,8 +9919,15 @@ components:
maxLength: 5000
nullable: true
type: string
- required:
- - coupon
+ subscription_item:
+ description: >-
+ The subscription item that this coupon is applied to, if it is
+ applied to a particular subscription item.
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - coupon
- id
- object
- start
@@ -8164,6 +9962,47 @@ components:
type: object
x-expandableFields:
- discount
+ discounts_resource_stackable_discount:
+ description: ''
+ properties:
+ coupon:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/coupon'
+ description: ID of the coupon to create a new discount for.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/coupon'
+ discount:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/discount'
+ description: >-
+ ID of an existing discount on the object (or one of its ancestors)
+ to reuse.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/discount'
+ promotion_code:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/promotion_code'
+ description: ID of the promotion code to create a new discount for.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/promotion_code'
+ title: DiscountsResourceStackableDiscount
+ type: object
+ x-expandableFields:
+ - coupon
+ - discount
+ - promotion_code
dispute:
description: >-
A dispute occurs when a customer questions your charge with their card
@@ -8757,10 +10596,9 @@ components:
[account settings](https://dashboard.stripe.com/account/webhooks). Learn
how
- to [listen for events]
+ to [listen for events](https://stripe.com/docs/webhooks)
- (/docs/webhooks) so that your integration can automatically trigger
- reactions.
+ so that your integration can automatically trigger reactions.
When using [Connect](https://stripe.com/docs/connect), you can also
@@ -8843,33 +10681,64 @@ components:
x-resourceId: event
exchange_rate:
description: >-
- `Exchange Rate` objects allow you to determine the rates that Stripe is
+ `ExchangeRate` objects allow you to determine the rates that Stripe is
+ currently
+
+ using to convert from one currency to another. Since this number is
+ variable
+
+ throughout the day, there are various reasons why you might want to know
+ the current
+
+ rate (for example, to dynamically price an item for a user with a
+ default
+
+ payment in a foreign currency).
+
+
+ Please refer to our [Exchange Rates
+ API](https://stripe.com/docs/fx-rates) guide for more details.
+
+
+ *[Note: this integration path is supported but no longer recommended]*
+ Additionally,
+
+ you can guarantee that a charge is made with an exchange rate that you
+ expect is
+
+ current. To do so, you must pass in the exchange_rate to charges
+ endpoints. If the
+
+ value is no longer up to date, the charge won't go through. Please refer
+ to our
- currently using to convert from one currency to another. Since this
- number is
+ [Using with charges](https://stripe.com/docs/exchange-rates) guide for
+ more details.
- variable throughout the day, there are various reasons why you might
- want to
- know the current rate (for example, to dynamically price an item for a
- user
+ -----
- with a default payment in a foreign currency).
+
- If you want a guarantee that the charge is made with a certain exchange
- rate
- you expect is current, you can pass in `exchange_rate` to charges
- endpoints.
+ *This Exchange Rates API is a Beta Service and is subject to Stripe's
+ terms of service. You may use the API solely for the purpose of
+ transacting on Stripe. For example, the API may be queried in order to:*
- If the value is no longer up to date, the charge won't go through.
- Please
- refer to our [Exchange Rates
- API](https://stripe.com/docs/exchange-rates) guide for more
+ - *localize prices for processing payments on Stripe*
- details.
+ - *reconcile Stripe transactions*
+
+ - *determine how much money to send to a connected account*
+
+ - *determine app fees to charge a connected account*
+
+
+ *Using this Exchange Rates API beta for any purpose other than to
+ transact on Stripe is strictly prohibited and constitutes a violation of
+ Stripe's terms of service.*
properties:
id:
description: >-
@@ -8980,7 +10849,9 @@ components:
nullable: true
type: string
type:
- description: 'Type of the fee, one of: `application_fee`, `stripe_fee` or `tax`.'
+ description: >-
+ Type of the fee, one of: `application_fee`,
+ `payment_method_passthrough_fee`, `stripe_fee` or `tax`.
maxLength: 5000
type: string
required:
@@ -9084,7 +10955,7 @@ components:
(for example, when uploading dispute evidence). Stripe also
- creates files independetly (for example, the results of a [Sigma
+ creates files independently (for example, the results of a [Sigma
scheduled
query](#scheduled_queries)).
@@ -9145,7 +11016,7 @@ components:
- has_more
- object
- url
- title: FileFileLinkList
+ title: FileResourceFileLinkList
type: object
x-expandableFields:
- data
@@ -9406,6 +11277,15 @@ components:
- other
- savings
type: string
+ subscriptions:
+ description: The list of data refresh subscriptions requested on this account.
+ items:
+ enum:
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ nullable: true
+ type: array
supported_payment_method_types:
description: >-
The [PaymentMethod
@@ -9417,6 +11297,14 @@ components:
- us_bank_account
type: string
type: array
+ transaction_refresh:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/bank_connections_resource_transaction_refresh
+ description: >-
+ The state of the most recent attempt to refresh the account
+ transactions.
+ nullable: true
required:
- category
- created
@@ -9435,6 +11323,7 @@ components:
- balance_refresh
- ownership
- ownership_refresh
+ - transaction_refresh
x-resourceId: financial_connections.account
financial_connections.account_owner:
description: Describes an owner of an account.
@@ -9638,6 +11527,7 @@ components:
enum:
- balances
- ownership
+ - transactions
type: string
x-stripeBypassValidation: true
nullable: true
@@ -9663,6 +11553,94 @@ components:
- accounts
- filters
x-resourceId: financial_connections.session
+ financial_connections.transaction:
+ description: >-
+ A Transaction represents a real transaction that affects a Financial
+ Connections Account balance.
+ properties:
+ account:
+ description: >-
+ The ID of the Financial Connections Account this transaction belongs
+ to.
+ maxLength: 5000
+ type: string
+ amount:
+ description: 'The amount of this transaction, in cents (or local equivalent).'
+ type: integer
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ maxLength: 5000
+ type: string
+ description:
+ description: The description of this transaction.
+ maxLength: 5000
+ type: string
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - financial_connections.transaction
+ type: string
+ status:
+ description: The status of the transaction.
+ enum:
+ - pending
+ - posted
+ - void
+ type: string
+ status_transitions:
+ $ref: >-
+ #/components/schemas/bank_connections_resource_transaction_resource_status_transitions
+ transacted_at:
+ description: >-
+ Time at which the transaction was transacted. Measured in seconds
+ since the Unix epoch.
+ format: unix-time
+ type: integer
+ transaction_refresh:
+ description: >-
+ The token of the transaction refresh that last updated or created
+ this transaction.
+ maxLength: 5000
+ type: string
+ updated:
+ description: >-
+ Time at which the object was last updated. Measured in seconds since
+ the Unix epoch.
+ format: unix-time
+ type: integer
+ required:
+ - account
+ - amount
+ - currency
+ - description
+ - id
+ - livemode
+ - object
+ - status
+ - status_transitions
+ - transacted_at
+ - transaction_refresh
+ - updated
+ title: BankConnectionsResourceTransaction
+ type: object
+ x-expandableFields:
+ - status_transitions
+ x-resourceId: financial_connections.transaction
financial_reporting_finance_report_run_run_parameters:
description: ''
properties:
@@ -9714,6 +11692,219 @@ components:
title: FinancialReportingFinanceReportRunRunParameters
type: object
x-expandableFields: []
+ forwarded_request_context:
+ description: Metadata about the forwarded request.
+ properties:
+ destination_duration:
+ description: >-
+ The time it took in milliseconds for the destination endpoint to
+ respond.
+ type: integer
+ destination_ip_address:
+ description: The IP address of the destination.
+ maxLength: 5000
+ type: string
+ required:
+ - destination_duration
+ - destination_ip_address
+ title: ForwardedRequestContext
+ type: object
+ x-expandableFields: []
+ forwarded_request_details:
+ description: Details about the request forwarded to the destination endpoint.
+ properties:
+ body:
+ description: The body payload to send to the destination endpoint.
+ maxLength: 5000
+ type: string
+ headers:
+ description: >-
+ The headers to include in the forwarded request. Can be omitted if
+ no additional headers (excluding Stripe-generated ones such as the
+ Content-Type header) should be included.
+ items:
+ $ref: '#/components/schemas/forwarded_request_header'
+ type: array
+ http_method:
+ description: The HTTP method used to call the destination endpoint.
+ enum:
+ - POST
+ type: string
+ required:
+ - body
+ - headers
+ - http_method
+ title: ForwardedRequestDetails
+ type: object
+ x-expandableFields:
+ - headers
+ forwarded_request_header:
+ description: Header data.
+ properties:
+ name:
+ description: The header name.
+ maxLength: 5000
+ type: string
+ value:
+ description: The header value.
+ maxLength: 5000
+ type: string
+ required:
+ - name
+ - value
+ title: ForwardedRequestHeader
+ type: object
+ x-expandableFields: []
+ forwarded_response_details:
+ description: Details about the response from the destination endpoint.
+ properties:
+ body:
+ description: The response body from the destination endpoint to Stripe.
+ maxLength: 5000
+ type: string
+ headers:
+ description: HTTP headers that the destination endpoint returned.
+ items:
+ $ref: '#/components/schemas/forwarded_request_header'
+ type: array
+ status:
+ description: The HTTP status code that the destination endpoint returned.
+ type: integer
+ required:
+ - body
+ - headers
+ - status
+ title: ForwardedResponseDetails
+ type: object
+ x-expandableFields:
+ - headers
+ forwarding.request:
+ description: >-
+ Instructs Stripe to make a request on your behalf using the destination
+ URL and HTTP method in the config.
+
+ A config is set up for each destination URL by Stripe at the time of
+ onboarding. Stripe verifies requests with
+
+ your credentials in the config, and injects card details from the
+ payment_method into the request.
+
+
+ Stripe redacts all sensitive fields and headers, including
+ authentication credentials and card numbers,
+
+ before storing the request and response data in the forwarding Request
+ object, which are subject to a
+
+ 30-day retention period.
+
+
+ You can provide a Stripe idempotency key to make sure that requests with
+ the same key result in only one
+
+ outbound request. The Stripe idempotency key provided should be unique
+ and different from any idempotency
+
+ keys provided on the underlying third-party request.
+
+
+ Forwarding Requests are synchronous requests that return a response or
+ time out according to
+
+ Stripe’s limits.
+
+
+ Related guide: [Forward card details to third-party API
+ endpoints](https://docs.stripe.com/payments/forwarding).
+ properties:
+ config:
+ description: >-
+ The Forwarding Config used when making the forwarded request. The
+ config specifes the HTTP method, merchant credentials, connection
+ settings, and supported destination URLs.
+ maxLength: 5000
+ type: string
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - forwarding.request
+ type: string
+ payment_method:
+ description: >-
+ The PaymentMethod to insert into the forwarded request. Forwarding
+ previously consumed PaymentMethods is allowed.
+ maxLength: 5000
+ type: string
+ replacements:
+ description: The field kinds to be replaced in the forwarded request.
+ items:
+ enum:
+ - card_cvc
+ - card_expiry
+ - card_number
+ - cardholder_name
+ type: string
+ type: array
+ request_context:
+ anyOf:
+ - $ref: '#/components/schemas/forwarded_request_context'
+ description: >-
+ Context about the request from Stripe's servers to the destination
+ endpoint.
+ nullable: true
+ request_details:
+ anyOf:
+ - $ref: '#/components/schemas/forwarded_request_details'
+ description: >-
+ The request that was sent to the destination endpoint. We redact any
+ sensitive fields.
+ nullable: true
+ response_details:
+ anyOf:
+ - $ref: '#/components/schemas/forwarded_response_details'
+ description: >-
+ The response that the destination endpoint returned to us. We redact
+ any sensitive fields.
+ nullable: true
+ url:
+ description: >-
+ The destination URL for the forwarded request. Must be supported by
+ the config.
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - config
+ - created
+ - id
+ - livemode
+ - object
+ - payment_method
+ - replacements
+ title: ForwardingRequest
+ type: object
+ x-expandableFields:
+ - request_context
+ - request_details
+ - response_details
+ x-resourceId: forwarding.request
funding_instructions:
description: >-
Each customer has a
@@ -9799,11 +11990,35 @@ components:
type: object
x-expandableFields:
- financial_addresses
+ funding_instructions_bank_transfer_aba_record:
+ description: ABA Records contain U.S. bank account details per the ABA format.
+ properties:
+ account_number:
+ description: The ABA account number
+ maxLength: 5000
+ type: string
+ bank_name:
+ description: The bank name
+ maxLength: 5000
+ type: string
+ routing_number:
+ description: The ABA routing number
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - bank_name
+ - routing_number
+ title: FundingInstructionsBankTransferABARecord
+ type: object
+ x-expandableFields: []
funding_instructions_bank_transfer_financial_address:
description: >-
FinancialAddresses contain identifying information that resolves to a
FinancialAccount.
properties:
+ aba:
+ $ref: '#/components/schemas/funding_instructions_bank_transfer_aba_record'
iban:
$ref: '#/components/schemas/funding_instructions_bank_transfer_iban_record'
sort_code:
@@ -9815,20 +12030,27 @@ components:
description: The payment networks supported by this FinancialAddress
items:
enum:
+ - ach
- bacs
+ - domestic_wire_us
- fps
- sepa
- spei
+ - swift
- zengin
type: string
x-stripeBypassValidation: true
type: array
+ swift:
+ $ref: '#/components/schemas/funding_instructions_bank_transfer_swift_record'
type:
description: The type of financial address
enum:
+ - aba
- iban
- sort_code
- spei
+ - swift
- zengin
type: string
x-stripeBypassValidation: true
@@ -9840,9 +12062,11 @@ components:
title: FundingInstructionsBankTransferFinancialAddress
type: object
x-expandableFields:
+ - aba
- iban
- sort_code
- spei
+ - swift
- zengin
funding_instructions_bank_transfer_iban_record:
description: Iban Records contain E.U. bank account details per the SEPA format.
@@ -9919,6 +12143,28 @@ components:
title: FundingInstructionsBankTransferSpeiRecord
type: object
x-expandableFields: []
+ funding_instructions_bank_transfer_swift_record:
+ description: SWIFT Records contain U.S. bank account details per the SWIFT format.
+ properties:
+ account_number:
+ description: The account number
+ maxLength: 5000
+ type: string
+ bank_name:
+ description: The bank name
+ maxLength: 5000
+ type: string
+ swift_code:
+ description: The SWIFT code
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - bank_name
+ - swift_code
+ title: FundingInstructionsBankTransferSwiftRecord
+ type: object
+ x-expandableFields: []
funding_instructions_bank_transfer_zengin_record:
description: Zengin Records contain Japan bank account details per the Zengin format.
properties:
@@ -10158,6 +12404,56 @@ components:
title: GelatoDocumentReportError
type: object
x-expandableFields: []
+ gelato_email_report:
+ description: Result from a email check
+ properties:
+ email:
+ description: Email to be verified.
+ maxLength: 5000
+ nullable: true
+ type: string
+ error:
+ anyOf:
+ - $ref: '#/components/schemas/gelato_email_report_error'
+ description: >-
+ Details on the verification error. Present when status is
+ `unverified`.
+ nullable: true
+ status:
+ description: Status of this `email` check.
+ enum:
+ - unverified
+ - verified
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - status
+ title: GelatoEmailReport
+ type: object
+ x-expandableFields:
+ - error
+ gelato_email_report_error:
+ description: ''
+ properties:
+ code:
+ description: >-
+ A short machine-readable string giving the reason for the
+ verification failure.
+ enum:
+ - email_unverified_other
+ - email_verification_declined
+ nullable: true
+ type: string
+ reason:
+ description: >-
+ A human-readable message giving the reason for the failure. These
+ messages can be shown to your users.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: GelatoEmailReportError
+ type: object
+ x-expandableFields: []
gelato_id_number_report:
description: Result from an id_number check
properties:
@@ -10179,7 +12475,9 @@ components:
nullable: true
type: string
id_number:
- description: ID number.
+ description: >-
+ ID number. When `id_number_type` is `us_ssn`, only the last 4 digits
+ are present.
maxLength: 5000
nullable: true
type: string
@@ -10233,6 +12531,70 @@ components:
title: GelatoIdNumberReportError
type: object
x-expandableFields: []
+ gelato_phone_report:
+ description: Result from a phone check
+ properties:
+ error:
+ anyOf:
+ - $ref: '#/components/schemas/gelato_phone_report_error'
+ description: >-
+ Details on the verification error. Present when status is
+ `unverified`.
+ nullable: true
+ phone:
+ description: Phone to be verified.
+ maxLength: 5000
+ nullable: true
+ type: string
+ status:
+ description: Status of this `phone` check.
+ enum:
+ - unverified
+ - verified
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - status
+ title: GelatoPhoneReport
+ type: object
+ x-expandableFields:
+ - error
+ gelato_phone_report_error:
+ description: ''
+ properties:
+ code:
+ description: >-
+ A short machine-readable string giving the reason for the
+ verification failure.
+ enum:
+ - phone_unverified_other
+ - phone_verification_declined
+ nullable: true
+ type: string
+ reason:
+ description: >-
+ A human-readable message giving the reason for the failure. These
+ messages can be shown to your users.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: GelatoPhoneReportError
+ type: object
+ x-expandableFields: []
+ gelato_provided_details:
+ description: ''
+ properties:
+ email:
+ description: Email of user being verified
+ maxLength: 5000
+ type: string
+ phone:
+ description: Phone number of user being verified
+ maxLength: 5000
+ type: string
+ title: GelatoProvidedDetails
+ type: object
+ x-expandableFields: []
gelato_report_document_options:
description: ''
properties:
@@ -10372,6 +12734,15 @@ components:
title: GelatoSessionDocumentOptions
type: object
x-expandableFields: []
+ gelato_session_email_options:
+ description: ''
+ properties:
+ require_verification:
+ description: Request one time password verification of `provided_details.email`.
+ type: boolean
+ title: GelatoSessionEmailOptions
+ type: object
+ x-expandableFields: []
gelato_session_id_number_options:
description: ''
properties: {}
@@ -10393,9 +12764,13 @@ components:
- document_expired
- document_type_not_supported
- document_unverified_other
+ - email_unverified_other
+ - email_verification_declined
- id_number_insufficient_document_data
- id_number_mismatch
- id_number_unverified_other
+ - phone_unverified_other
+ - phone_verification_declined
- selfie_document_missing_photo
- selfie_face_mismatch
- selfie_manipulated
@@ -10414,6 +12789,15 @@ components:
title: GelatoSessionLastError
type: object
x-expandableFields: []
+ gelato_session_phone_options:
+ description: ''
+ properties:
+ require_verification:
+ description: Request one time password verification of `provided_details.phone`.
+ type: boolean
+ title: GelatoSessionPhoneOptions
+ type: object
+ x-expandableFields: []
gelato_verification_report_options:
description: ''
properties:
@@ -10431,13 +12815,19 @@ components:
properties:
document:
$ref: '#/components/schemas/gelato_session_document_options'
+ email:
+ $ref: '#/components/schemas/gelato_session_email_options'
id_number:
$ref: '#/components/schemas/gelato_session_id_number_options'
+ phone:
+ $ref: '#/components/schemas/gelato_session_phone_options'
title: GelatoVerificationSessionOptions
type: object
x-expandableFields:
- document
+ - email
- id_number
+ - phone
gelato_verified_outputs:
description: ''
properties:
@@ -10451,6 +12841,11 @@ components:
- $ref: '#/components/schemas/gelato_data_verified_outputs_date'
description: The user’s verified date of birth.
nullable: true
+ email:
+ description: The user's verified email address
+ maxLength: 5000
+ nullable: true
+ type: string
first_name:
description: The user's verified first name.
maxLength: 5000
@@ -10474,6 +12869,11 @@ components:
maxLength: 5000
nullable: true
type: string
+ phone:
+ description: The user's verified phone number
+ maxLength: 5000
+ nullable: true
+ type: string
title: GelatoVerifiedOutputs
type: object
x-expandableFields:
@@ -10508,6 +12908,14 @@ components:
Related guides: [Accessing verification
results](https://stripe.com/docs/identity/verification-sessions#results).
properties:
+ client_reference_id:
+ description: >-
+ A string to reference this user. This can be a customer ID, a
+ session ID, or similar, and can be used to reconcile this
+ verification with your internal systems.
+ maxLength: 5000
+ nullable: true
+ type: string
created:
description: >-
Time at which the object was created. Measured in seconds since the
@@ -10516,6 +12924,8 @@ components:
type: integer
document:
$ref: '#/components/schemas/gelato_document_report'
+ email:
+ $ref: '#/components/schemas/gelato_email_report'
id:
description: Unique identifier for the object.
maxLength: 5000
@@ -10536,6 +12946,8 @@ components:
type: string
options:
$ref: '#/components/schemas/gelato_verification_report_options'
+ phone:
+ $ref: '#/components/schemas/gelato_phone_report'
selfie:
$ref: '#/components/schemas/gelato_selfie_report'
type:
@@ -10543,8 +12955,13 @@ components:
enum:
- document
- id_number
+ - verification_flow
type: string
x-stripeBypassValidation: true
+ verification_flow:
+ description: The configuration token of a Verification Flow from the dashboard.
+ maxLength: 5000
+ type: string
verification_session:
description: ID of the VerificationSession that created this report.
maxLength: 5000
@@ -10555,12 +12972,15 @@ components:
- id
- livemode
- object
+ - type
title: GelatoVerificationReport
type: object
x-expandableFields:
- document
+ - email
- id_number
- options
+ - phone
- selfie
x-resourceId: identity.verification_report
identity.verification_session:
@@ -10591,6 +13011,14 @@ components:
Related guide: [The Verification Sessions
API](https://stripe.com/docs/identity/verification-sessions)
properties:
+ client_reference_id:
+ description: >-
+ A string to reference this user. This can be a customer ID, a
+ session ID, or similar, and can be used to reconcile this
+ verification with your internal systems.
+ maxLength: 5000
+ nullable: true
+ type: string
client_secret:
description: >-
The short-lived client secret used by Stripe.js to [show a
@@ -10661,6 +13089,13 @@ components:
- $ref: '#/components/schemas/gelato_verification_session_options'
description: A set of options for the session’s verification checks.
nullable: true
+ provided_details:
+ anyOf:
+ - $ref: '#/components/schemas/gelato_provided_details'
+ description: >-
+ Details provided about the user being verified. These details may be
+ shown to the user.
+ nullable: true
redaction:
anyOf:
- $ref: '#/components/schemas/verification_session_redaction'
@@ -10686,7 +13121,7 @@ components:
enum:
- document
- id_number
- nullable: true
+ - verification_flow
type: string
x-stripeBypassValidation: true
url:
@@ -10701,6 +13136,10 @@ components:
maxLength: 5000
nullable: true
type: string
+ verification_flow:
+ description: The configuration token of a Verification Flow from the dashboard.
+ maxLength: 5000
+ type: string
verified_outputs:
anyOf:
- $ref: '#/components/schemas/gelato_verified_outputs'
@@ -10713,12 +13152,14 @@ components:
- metadata
- object
- status
+ - type
title: GelatoVerificationSession
type: object
x-expandableFields:
- last_error
- last_verification_report
- options
+ - provided_details
- redaction
- verified_outputs
x-resourceId: identity.verification_session
@@ -10778,8 +13219,20 @@ components:
maxLength: 5000
nullable: true
type: string
+ mandate:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/mandate'
+ description: ID of the mandate used to make this payment.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/mandate'
network:
- description: The US bank account network used to debit funds.
+ description: >-
+ The network rails used. See the
+ [docs](https://stripe.com/docs/treasury/money-movement/timelines) to
+ learn more about money movement timelines for each network type.
enum:
- ach
type: string
@@ -10792,6 +13245,36 @@ components:
- network
title: inbound_transfers_payment_method_details_us_bank_account
type: object
+ x-expandableFields:
+ - mandate
+ internal_card:
+ description: ''
+ properties:
+ brand:
+ description: Brand of the card used in the transaction
+ maxLength: 5000
+ nullable: true
+ type: string
+ country:
+ description: Two-letter ISO code representing the country of the card
+ maxLength: 5000
+ nullable: true
+ type: string
+ exp_month:
+ description: Two digit number representing the card's expiration month
+ nullable: true
+ type: integer
+ exp_year:
+ description: Two digit number representing the card's expiration year
+ nullable: true
+ type: integer
+ last4:
+ description: The last 4 digits of the card
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: internal_card
+ type: object
x-expandableFields: []
invoice:
description: >-
@@ -11168,7 +13651,6 @@ components:
oneOf:
- $ref: '#/components/schemas/discount'
- $ref: '#/components/schemas/deleted_discount'
- nullable: true
type: array
due_date:
description: >-
@@ -11202,7 +13684,7 @@ components:
type: string
from_invoice:
anyOf:
- - $ref: '#/components/schemas/invoices_from_invoice'
+ - $ref: '#/components/schemas/invoices_resource_from_invoice'
description: >-
Details of the invoice that was cloned. See the [revision
documentation](https://stripe.com/docs/invoicing/invoice-revisions)
@@ -11231,6 +13713,8 @@ components:
maxLength: 5000
nullable: true
type: string
+ issuer:
+ $ref: '#/components/schemas/connect_account_reference'
last_finalization_error:
anyOf:
- $ref: '#/components/schemas/api_errors'
@@ -11407,20 +13891,15 @@ components:
type: string
rendering:
anyOf:
- - $ref: '#/components/schemas/invoices_invoice_rendering'
+ - $ref: '#/components/schemas/invoices_resource_invoice_rendering'
description: >-
The rendering-related settings that control how the invoice is
displayed on customer-facing surfaces such as PDF and Hosted Invoice
Page.
nullable: true
- rendering_options:
- anyOf:
- - $ref: '#/components/schemas/invoice_setting_rendering_options'
- description: Options for invoice PDF rendering.
- nullable: true
shipping_cost:
anyOf:
- - $ref: '#/components/schemas/invoices_shipping_cost'
+ - $ref: '#/components/schemas/invoices_resource_shipping_cost'
description: >-
The details of the cost of shipping, including the ShippingRate
applied on the invoice.
@@ -11462,7 +13941,7 @@ components:
type: string
x-stripeBypassValidation: true
status_transitions:
- $ref: '#/components/schemas/invoices_status_transitions'
+ $ref: '#/components/schemas/invoices_resource_status_transitions'
subscription:
anyOf:
- maxLength: 5000
@@ -11566,6 +14045,8 @@ components:
- created
- currency
- default_tax_rates
+ - discounts
+ - issuer
- lines
- livemode
- object
@@ -11599,6 +14080,7 @@ components:
- discount
- discounts
- from_invoice
+ - issuer
- last_finalization_error
- latest_revision
- lines
@@ -11607,7 +14089,6 @@ components:
- payment_settings
- quote
- rendering
- - rendering_options
- shipping_cost
- shipping_details
- status_transitions
@@ -11757,12 +14238,13 @@ components:
However, if you wish to request 3D Secure based on logic from your
own fraud engine, provide this option. Read our guide on [manually
requesting 3D
- Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds)
+ Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds)
for more information on how this configuration interacts with Radar
and our SCA Engine.
enum:
- any
- automatic
+ - challenge
nullable: true
type: string
title: invoice_payment_method_options_card
@@ -11831,6 +14313,12 @@ components:
title: invoice_payment_method_options_konbini
type: object
x-expandableFields: []
+ invoice_payment_method_options_sepa_debit:
+ description: ''
+ properties: {}
+ title: invoice_payment_method_options_sepa_debit
+ type: object
+ x-expandableFields: []
invoice_payment_method_options_us_bank_account:
description: ''
properties:
@@ -11869,6 +14357,7 @@ components:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
nullable: true
@@ -11958,9 +14447,14 @@ components:
`collection_method=charge_automatically`.
nullable: true
type: integer
+ issuer:
+ $ref: '#/components/schemas/connect_account_reference'
+ required:
+ - issuer
title: InvoiceSettingQuoteSetting
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - issuer
invoice_setting_rendering_options:
description: ''
properties:
@@ -11977,6 +14471,23 @@ components:
invoice_setting_subscription_schedule_phase_setting:
description: ''
properties:
+ account_tax_ids:
+ description: >-
+ The account tax IDs associated with this phase of the subscription
+ schedule. Will be set on invoices generated by this phase of the
+ subscription schedule.
+ items:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/tax_id'
+ - $ref: '#/components/schemas/deleted_tax_id'
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/tax_id'
+ - $ref: '#/components/schemas/deleted_tax_id'
+ nullable: true
+ type: array
days_until_due:
description: >-
Number of days within which a customer must pay invoices generated
@@ -11984,12 +14495,38 @@ components:
subscription schedules where `billing=charge_automatically`.
nullable: true
type: integer
+ issuer:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The connected account that issues the invoice. The invoice is
+ presented with the branding and support information of the specified
+ account.
+ nullable: true
title: InvoiceSettingSubscriptionSchedulePhaseSetting
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - account_tax_ids
+ - issuer
invoice_setting_subscription_schedule_setting:
description: ''
properties:
+ account_tax_ids:
+ description: >-
+ The account tax IDs associated with the subscription schedule. Will
+ be set on invoices generated by the subscription schedule.
+ items:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/tax_id'
+ - $ref: '#/components/schemas/deleted_tax_id'
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/tax_id'
+ - $ref: '#/components/schemas/deleted_tax_id'
+ nullable: true
+ type: array
days_until_due:
description: >-
Number of days within which a customer must pay invoices generated
@@ -11997,9 +14534,15 @@ components:
subscription schedules where `billing=charge_automatically`.
nullable: true
type: integer
+ issuer:
+ $ref: '#/components/schemas/connect_account_reference'
+ required:
+ - issuer
title: InvoiceSettingSubscriptionScheduleSetting
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - account_tax_ids
+ - issuer
invoice_tax_amount:
description: ''
properties:
@@ -12320,48 +14863,6 @@ components:
- tax_rates
- test_clock
x-resourceId: invoiceitem
- invoices_from_invoice:
- description: ''
- properties:
- action:
- description: The relation between this invoice and the cloned invoice
- maxLength: 5000
- type: string
- invoice:
- anyOf:
- - maxLength: 5000
- type: string
- - $ref: '#/components/schemas/invoice'
- description: The invoice that was cloned.
- x-expansionResources:
- oneOf:
- - $ref: '#/components/schemas/invoice'
- required:
- - action
- - invoice
- title: InvoicesFromInvoice
- type: object
- x-expandableFields:
- - invoice
- invoices_invoice_rendering:
- description: ''
- properties:
- amount_tax_display:
- description: >-
- How line-item prices and amounts will be displayed with respect to
- tax on invoice PDFs.
- maxLength: 5000
- nullable: true
- type: string
- pdf:
- anyOf:
- - $ref: '#/components/schemas/invoice_rendering_pdf'
- description: Invoice pdf rendering options
- nullable: true
- title: InvoicesInvoiceRendering
- type: object
- x-expandableFields:
- - pdf
invoices_payment_method_options:
description: ''
properties:
@@ -12405,6 +14906,14 @@ components:
Konbini payment method options to pass to the invoice’s
PaymentIntent.
nullable: true
+ sepa_debit:
+ anyOf:
+ - $ref: '#/components/schemas/invoice_payment_method_options_sepa_debit'
+ description: >-
+ If paying by `sepa_debit`, this sub-hash contains details about the
+ SEPA Direct Debit payment method options to pass to the invoice’s
+ PaymentIntent.
+ nullable: true
us_bank_account:
anyOf:
- $ref: >-
@@ -12422,6 +14931,7 @@ components:
- card
- customer_balance
- konbini
+ - sepa_debit
- us_bank_account
invoices_payment_settings:
description: ''
@@ -12461,12 +14971,14 @@ components:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -12482,6 +14994,48 @@ components:
type: object
x-expandableFields:
- payment_method_options
+ invoices_resource_from_invoice:
+ description: ''
+ properties:
+ action:
+ description: The relation between this invoice and the cloned invoice
+ maxLength: 5000
+ type: string
+ invoice:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/invoice'
+ description: The invoice that was cloned.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/invoice'
+ required:
+ - action
+ - invoice
+ title: InvoicesResourceFromInvoice
+ type: object
+ x-expandableFields:
+ - invoice
+ invoices_resource_invoice_rendering:
+ description: ''
+ properties:
+ amount_tax_display:
+ description: >-
+ How line-item prices and amounts will be displayed with respect to
+ tax on invoice PDFs.
+ maxLength: 5000
+ nullable: true
+ type: string
+ pdf:
+ anyOf:
+ - $ref: '#/components/schemas/invoice_rendering_pdf'
+ description: Invoice pdf rendering options
+ nullable: true
+ title: InvoicesResourceInvoiceRendering
+ type: object
+ x-expandableFields:
+ - pdf
invoices_resource_invoice_tax_id:
description: ''
properties:
@@ -12491,10 +15045,10 @@ components:
`bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`,
`do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`,
`sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`,
- `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`,
- `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`,
- `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`,
- `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
+ `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`,
+ `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`,
+ `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`,
+ `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
`ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`,
`sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`,
`is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`,
@@ -12545,6 +15099,7 @@ components:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -12611,7 +15166,7 @@ components:
type: object
x-expandableFields:
- credited_items
- invoices_shipping_cost:
+ invoices_resource_shipping_cost:
description: ''
properties:
amount_subtotal:
@@ -12644,12 +15199,12 @@ components:
- amount_subtotal
- amount_tax
- amount_total
- title: InvoicesShippingCost
+ title: InvoicesResourceShippingCost
type: object
x-expandableFields:
- shipping_rate
- taxes
- invoices_status_transitions:
+ invoices_resource_status_transitions:
description: ''
properties:
finalized_at:
@@ -12672,7 +15227,7 @@ components:
format: unix-time
nullable: true
type: integer
- title: InvoicesStatusTransitions
+ title: InvoicesResourceStatusTransitions
type: object
x-expandableFields: []
issuing.authorization:
@@ -12693,8 +15248,10 @@ components:
amount:
description: >-
The total amount that was authorized or rejected. This amount is in
- the card's currency and in the [smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal).
+ `currency` and in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). `amount`
+ should be the same as `merchant_amount`, unless `currency` and
+ `merchant_currency` are different.
type: integer
amount_details:
anyOf:
@@ -12741,7 +15298,9 @@ components:
type: integer
currency:
description: >-
- Three-letter [ISO currency
+ The currency of the cardholder. This currency can be different from
+ the currency presented at authorization and the `merchant_currency`
+ field on this authorization. Three-letter [ISO currency
code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase. Must be a [supported
currency](https://stripe.com/docs/currencies).
@@ -12760,11 +15319,15 @@ components:
The total amount that was authorized or rejected. This amount is in
the `merchant_currency` and in the [smallest currency
unit](https://stripe.com/docs/currencies#zero-decimal).
+ `merchant_amount` should be the same as `amount`, unless
+ `merchant_currency` and `currency` are different.
type: integer
merchant_currency:
description: >-
- The currency that was presented to the cardholder for the
- authorization. Three-letter [ISO currency
+ The local currency that was presented to the cardholder for the
+ authorization. This currency can be different from the cardholder
+ currency and the `currency` field on this authorization.
+ Three-letter [ISO currency
code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase. Must be a [supported
currency](https://stripe.com/docs/currencies).
@@ -12820,6 +15383,19 @@ components:
- pending
- reversed
type: string
+ token:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/issuing.token'
+ description: >-
+ [Token](https://stripe.com/docs/api/issuing/tokens/object) object
+ used for this authorization. If a network token was not used for
+ this authorization, this field will be null.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/issuing.token'
transactions:
description: >-
List of
@@ -12876,6 +15452,7 @@ components:
- network_data
- pending_request
- request_history
+ - token
- transactions
- treasury
- verification_data
@@ -12976,6 +15553,16 @@ components:
enum:
- issuing.card
type: string
+ personalization_design:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/issuing.personalization_design'
+ description: The personalization design object belonging to this card.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/issuing.personalization_design'
replaced_by:
anyOf:
- maxLength: 5000
@@ -13056,6 +15643,7 @@ components:
type: object
x-expandableFields:
- cardholder
+ - personalization_design
- replaced_by
- replacement_for
- shipping
@@ -13301,6 +15889,169 @@ components:
- transaction
- treasury
x-resourceId: issuing.dispute
+ issuing.personalization_design:
+ description: >-
+ A Personalization Design is a logical grouping of a Physical Bundle,
+ card logo, and carrier text that represents a product line.
+ properties:
+ card_logo:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/file'
+ description: >-
+ The file for the card logo to use with physical bundles that support
+ card logos. Must have a `purpose` value of `issuing_logo`.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/file'
+ carrier_text:
+ anyOf:
+ - $ref: '#/components/schemas/issuing_personalization_design_carrier_text'
+ description: >-
+ Hash containing carrier text, for use with physical bundles that
+ support carrier text.
+ nullable: true
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ lookup_key:
+ description: >-
+ A lookup key used to retrieve personalization designs dynamically
+ from a static string. This may be up to 200 characters.
+ maxLength: 5000
+ nullable: true
+ type: string
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ you can attach to an object. This can be useful for storing
+ additional information about the object in a structured format.
+ type: object
+ name:
+ description: Friendly display name.
+ maxLength: 5000
+ nullable: true
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - issuing.personalization_design
+ type: string
+ physical_bundle:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/issuing.physical_bundle'
+ description: The physical bundle object belonging to this personalization design.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/issuing.physical_bundle'
+ preferences:
+ $ref: '#/components/schemas/issuing_personalization_design_preferences'
+ rejection_reasons:
+ $ref: >-
+ #/components/schemas/issuing_personalization_design_rejection_reasons
+ status:
+ description: Whether this personalization design can be used to create cards.
+ enum:
+ - active
+ - inactive
+ - rejected
+ - review
+ type: string
+ required:
+ - created
+ - id
+ - livemode
+ - metadata
+ - object
+ - physical_bundle
+ - preferences
+ - rejection_reasons
+ - status
+ title: IssuingPersonalizationDesign
+ type: object
+ x-expandableFields:
+ - card_logo
+ - carrier_text
+ - physical_bundle
+ - preferences
+ - rejection_reasons
+ x-resourceId: issuing.personalization_design
+ issuing.physical_bundle:
+ description: >-
+ A Physical Bundle represents the bundle of physical items - card stock,
+ carrier letter, and envelope - that is shipped to a cardholder when you
+ create a physical card.
+ properties:
+ features:
+ $ref: '#/components/schemas/issuing_physical_bundle_features'
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ name:
+ description: Friendly display name.
+ maxLength: 5000
+ type: string
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - issuing.physical_bundle
+ type: string
+ status:
+ description: Whether this physical bundle can be used to create cards.
+ enum:
+ - active
+ - inactive
+ - review
+ type: string
+ type:
+ description: >-
+ Whether this physical bundle is a standard Stripe offering or
+ custom-made for you.
+ enum:
+ - custom
+ - standard
+ type: string
+ required:
+ - id
+ - livemode
+ - name
+ - object
+ - status
+ - type
+ title: IssuingPhysicalBundle
+ type: object
+ x-expandableFields:
+ - features
+ x-resourceId: issuing.physical_bundle
issuing.settlement:
description: >-
When a non-stripe BIN is used, any use of an [issued
@@ -13406,6 +16157,100 @@ components:
type: object
x-expandableFields: []
x-resourceId: issuing.settlement
+ issuing.token:
+ description: >-
+ An issuing token object is created when an issued card is added to a
+ digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you
+ can [view and manage these
+ tokens](https://stripe.com/docs/issuing/controls/token-management)
+ through Stripe.
+ properties:
+ card:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/issuing.card'
+ description: Card associated with this token.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/issuing.card'
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ device_fingerprint:
+ description: >-
+ The hashed ID derived from the device ID from the card network
+ associated with the token.
+ maxLength: 5000
+ nullable: true
+ type: string
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ last4:
+ description: The last four digits of the token.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ network:
+ description: The token service provider / card network associated with the token.
+ enum:
+ - mastercard
+ - visa
+ type: string
+ network_data:
+ $ref: '#/components/schemas/issuing_network_token_network_data'
+ network_updated_at:
+ description: >-
+ Time at which the token was last updated by the card network.
+ Measured in seconds since the Unix epoch.
+ format: unix-time
+ type: integer
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - issuing.token
+ type: string
+ status:
+ description: The usage state of the token.
+ enum:
+ - active
+ - deleted
+ - requested
+ - suspended
+ type: string
+ wallet_provider:
+ description: 'The digital wallet for this token, if one was used.'
+ enum:
+ - apple_pay
+ - google_pay
+ - samsung_pay
+ type: string
+ required:
+ - card
+ - created
+ - id
+ - livemode
+ - network
+ - network_updated_at
+ - object
+ - status
+ title: IssuingNetworkToken
+ type: object
+ x-expandableFields:
+ - card
+ - network_data
+ x-resourceId: issuing.token
issuing.transaction:
description: >-
Any use of an [issued card](https://stripe.com/docs/issuing) that
@@ -13530,6 +16375,13 @@ components:
you can attach to an object. This can be useful for storing
additional information about the object in a structured format.
type: object
+ network_data:
+ anyOf:
+ - $ref: '#/components/schemas/issuing_transaction_network_data'
+ description: >-
+ Details about the transaction, such as processing dates, set by the
+ card network.
+ nullable: true
object:
description: >-
String representing the object's type. Objects of the same type
@@ -13544,6 +16396,19 @@ components:
Additional purchase information that is optionally provided by the
merchant.
nullable: true
+ token:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/issuing.token'
+ description: >-
+ [Token](https://stripe.com/docs/api/issuing/tokens/object) object
+ used for this transaction. If a network token was not used for this
+ transaction, this field will be null.
+ nullable: true
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/issuing.token'
treasury:
anyOf:
- $ref: '#/components/schemas/issuing_transaction_treasury'
@@ -13592,7 +16457,9 @@ components:
- cardholder
- dispute
- merchant_data
+ - network_data
- purchase_details
+ - token
- treasury
x-resourceId: issuing.transaction
issuing_authorization_amount_details:
@@ -13609,6 +16476,31 @@ components:
title: IssuingAuthorizationAmountDetails
type: object
x-expandableFields: []
+ issuing_authorization_authentication_exemption:
+ description: ''
+ properties:
+ claimed_by:
+ description: >-
+ The entity that requested the exemption, either the acquiring
+ merchant or the Issuing user.
+ enum:
+ - acquirer
+ - issuer
+ type: string
+ type:
+ description: The specific exemption claimed for this authorization.
+ enum:
+ - low_value_transaction
+ - transaction_risk_analysis
+ - unknown
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - claimed_by
+ - type
+ title: IssuingAuthorizationAuthenticationExemption
+ type: object
+ x-expandableFields: []
issuing_authorization_merchant_data:
description: ''
properties:
@@ -13661,6 +16553,11 @@ components:
maxLength: 5000
nullable: true
type: string
+ url:
+ description: URL provided by the merchant on a 3DS request
+ maxLength: 5000
+ nullable: true
+ type: string
required:
- category
- category_code
@@ -13679,6 +16576,21 @@ components:
maxLength: 5000
nullable: true
type: string
+ system_trace_audit_number:
+ description: >-
+ The System Trace Audit Number (STAN) is a 6-digit identifier
+ assigned by the acquirer. Prefer `network_data.transaction_id` if
+ present, unless you have special requirements.
+ maxLength: 5000
+ nullable: true
+ type: string
+ transaction_id:
+ description: >-
+ Unique identifier for the authorization assigned by the card network
+ used to match subsequent messages, disputes, and transactions.
+ maxLength: 5000
+ nullable: true
+ type: string
title: IssuingAuthorizationNetworkData
type: object
x-expandableFields: []
@@ -13723,6 +16635,12 @@ components:
merchant_currency:
description: The local currency the merchant is requesting to authorize.
type: string
+ network_risk_score:
+ description: >-
+ The card network's estimate of the likelihood that an authorization
+ is fraudulent. Takes on values between 1 and 99.
+ nullable: true
+ type: integer
required:
- amount
- currency
@@ -13755,6 +16673,17 @@ components:
approved:
description: Whether this request was approved.
type: boolean
+ authorization_code:
+ description: >-
+ A code created by Stripe which is shared with the merchant to
+ validate the authorization. This field will be populated if the
+ authorization message was approved. The code typically starts with
+ the letter "S", followed by a six-digit number. For example,
+ "S498162". Please note that the code is not guaranteed to be unique
+ across authorizations.
+ maxLength: 5000
+ nullable: true
+ type: string
created:
description: >-
Time at which the object was created. Measured in seconds since the
@@ -13784,6 +16713,12 @@ components:
currency](https://stripe.com/docs/currencies).
maxLength: 5000
type: string
+ network_risk_score:
+ description: >-
+ The card network's estimate of the likelihood that an authorization
+ is fraudulent. Takes on values between 1 and 99.
+ nullable: true
+ type: integer
reason:
description: >-
When an authorization is approved or declined by you or by Stripe,
@@ -13807,12 +16742,20 @@ components:
x-stripeBypassValidation: true
reason_message:
description: >-
- If approve/decline decision is directly responsed to the webhook
- with json payload and if the response is invalid (e.g., parsing
- errors), we surface the detailed message via this field.
+ If the `request_history.reason` is `webhook_error` because the
+ direct webhook response is invalid (for example, parsing errors or
+ missing parameters), we surface a more detailed error message via
+ this field.
maxLength: 5000
nullable: true
type: string
+ requested_at:
+ description: >-
+ Time when the card network received an authorization request from
+ the acquirer in UTC. Referred to by networks as transmission time.
+ format: unix-time
+ nullable: true
+ type: integer
required:
- amount
- approved
@@ -13825,6 +16768,23 @@ components:
type: object
x-expandableFields:
- amount_details
+ issuing_authorization_three_d_secure:
+ description: ''
+ properties:
+ result:
+ description: The outcome of the 3D Secure authentication request.
+ enum:
+ - attempt_acknowledged
+ - authenticated
+ - failed
+ - required
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - result
+ title: IssuingAuthorizationThreeDSecure
+ type: object
+ x-expandableFields: []
issuing_authorization_treasury:
description: ''
properties:
@@ -13881,6 +16841,12 @@ components:
- mismatch
- not_provided
type: string
+ authentication_exemption:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/issuing_authorization_authentication_exemption
+ description: The exemption applied to this authorization.
+ nullable: true
cvc_check:
description: >-
Whether the cardholder provided a CVC and if it matched Stripe’s
@@ -13899,6 +16865,18 @@ components:
- mismatch
- not_provided
type: string
+ postal_code:
+ description: >-
+ The postal code submitted as part of the authorization used for
+ postal code verification.
+ maxLength: 5000
+ nullable: true
+ type: string
+ three_d_secure:
+ anyOf:
+ - $ref: '#/components/schemas/issuing_authorization_three_d_secure'
+ description: 3D Secure details.
+ nullable: true
required:
- address_line1_check
- address_postal_code_check
@@ -13906,7 +16884,9 @@ components:
- expiry_check
title: IssuingAuthorizationVerificationData
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - authentication_exemption
+ - three_d_secure
issuing_card_apple_pay:
description: ''
properties:
@@ -14237,6 +17217,19 @@ components:
type: string
nullable: true
type: array
+ allowed_merchant_countries:
+ description: >-
+ Array of strings containing representing countries from which
+ authorizations will be allowed. Authorizations from merchants in all
+ other countries will be declined. Country codes should be ISO 3166
+ alpha-2 country codes (e.g. `US`). Cannot be set with
+ `blocked_merchant_countries`. Provide an empty value to unset this
+ control.
+ items:
+ maxLength: 5000
+ type: string
+ nullable: true
+ type: array
blocked_categories:
description: >-
Array of strings containing
@@ -14545,6 +17538,18 @@ components:
type: string
nullable: true
type: array
+ blocked_merchant_countries:
+ description: >-
+ Array of strings containing representing countries from which
+ authorizations will be declined. Country codes should be ISO 3166
+ alpha-2 country codes (e.g. `US`). Cannot be set with
+ `allowed_merchant_countries`. Provide an empty value to unset this
+ control.
+ items:
+ maxLength: 5000
+ type: string
+ nullable: true
+ type: array
spending_limits:
description: >-
Limit spending with amount-based rules that apply across any cards
@@ -15369,6 +18374,19 @@ components:
type: string
nullable: true
type: array
+ allowed_merchant_countries:
+ description: >-
+ Array of strings containing representing countries from which
+ authorizations will be allowed. Authorizations from merchants in all
+ other countries will be declined. Country codes should be ISO 3166
+ alpha-2 country codes (e.g. `US`). Cannot be set with
+ `blocked_merchant_countries`. Provide an empty value to unset this
+ control.
+ items:
+ maxLength: 5000
+ type: string
+ nullable: true
+ type: array
blocked_categories:
description: >-
Array of strings containing
@@ -15677,6 +18695,18 @@ components:
type: string
nullable: true
type: array
+ blocked_merchant_countries:
+ description: >-
+ Array of strings containing representing countries from which
+ authorizations will be declined. Country codes should be ISO 3166
+ alpha-2 country codes (e.g. `US`). Cannot be set with
+ `allowed_merchant_countries`. Provide an empty value to unset this
+ control.
+ items:
+ maxLength: 5000
+ type: string
+ nullable: true
+ type: array
spending_limits:
description: >-
Limit spending with amount-based rules that apply across this
@@ -15700,8 +18730,9 @@ components:
anyOf:
- $ref: '#/components/schemas/issuing_cardholder_user_terms_acceptance'
description: >-
- Information about cardholder acceptance of [Authorized User
- Terms](https://stripe.com/docs/issuing/cards).
+ Information about cardholder acceptance of Celtic [Authorized User
+ Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms).
+ Required for cards backed by a Celtic program.
nullable: true
title: IssuingCardholderCardIssuing
type: object
@@ -16187,14 +19218,14 @@ components:
date:
description: >-
The Unix timestamp marking when the cardholder accepted the
- Authorized User Terms. Required for Celtic Spend Card users.
+ Authorized User Terms.
format: unix-time
nullable: true
type: integer
ip:
description: >-
The IP address from which the cardholder accepted the Authorized
- User Terms. Required for Celtic Spend Card users.
+ User Terms.
maxLength: 5000
nullable: true
type: string
@@ -16615,6 +19646,359 @@ components:
title: IssuingDisputeTreasury
type: object
x-expandableFields: []
+ issuing_network_token_address:
+ description: ''
+ properties:
+ line1:
+ description: The street address of the cardholder tokenizing the card.
+ maxLength: 5000
+ type: string
+ postal_code:
+ description: The postal code of the cardholder tokenizing the card.
+ maxLength: 5000
+ type: string
+ required:
+ - line1
+ - postal_code
+ title: IssuingNetworkTokenAddress
+ type: object
+ x-expandableFields: []
+ issuing_network_token_device:
+ description: ''
+ properties:
+ device_fingerprint:
+ description: An obfuscated ID derived from the device ID.
+ maxLength: 5000
+ type: string
+ ip_address:
+ description: The IP address of the device at provisioning time.
+ maxLength: 5000
+ type: string
+ location:
+ description: >-
+ The geographic latitude/longitude coordinates of the device at
+ provisioning time. The format is [+-]decimal/[+-]decimal.
+ maxLength: 5000
+ type: string
+ name:
+ description: The name of the device used for tokenization.
+ maxLength: 5000
+ type: string
+ phone_number:
+ description: The phone number of the device used for tokenization.
+ maxLength: 5000
+ type: string
+ type:
+ description: The type of device used for tokenization.
+ enum:
+ - other
+ - phone
+ - watch
+ type: string
+ title: IssuingNetworkTokenDevice
+ type: object
+ x-expandableFields: []
+ issuing_network_token_mastercard:
+ description: ''
+ properties:
+ card_reference_id:
+ description: >-
+ A unique reference ID from MasterCard to represent the card account
+ number.
+ maxLength: 5000
+ type: string
+ token_reference_id:
+ description: The network-unique identifier for the token.
+ maxLength: 5000
+ type: string
+ token_requestor_id:
+ description: >-
+ The ID of the entity requesting tokenization, specific to
+ MasterCard.
+ maxLength: 5000
+ type: string
+ token_requestor_name:
+ description: >-
+ The name of the entity requesting tokenization, if known. This is
+ directly provided from MasterCard.
+ maxLength: 5000
+ type: string
+ required:
+ - token_reference_id
+ - token_requestor_id
+ title: IssuingNetworkTokenMastercard
+ type: object
+ x-expandableFields: []
+ issuing_network_token_network_data:
+ description: ''
+ properties:
+ device:
+ $ref: '#/components/schemas/issuing_network_token_device'
+ mastercard:
+ $ref: '#/components/schemas/issuing_network_token_mastercard'
+ type:
+ description: >-
+ The network that the token is associated with. An additional hash is
+ included with a name matching this value, containing tokenization
+ data specific to the card network.
+ enum:
+ - mastercard
+ - visa
+ type: string
+ visa:
+ $ref: '#/components/schemas/issuing_network_token_visa'
+ wallet_provider:
+ $ref: '#/components/schemas/issuing_network_token_wallet_provider'
+ required:
+ - type
+ title: IssuingNetworkTokenNetworkData
+ type: object
+ x-expandableFields:
+ - device
+ - mastercard
+ - visa
+ - wallet_provider
+ issuing_network_token_visa:
+ description: ''
+ properties:
+ card_reference_id:
+ description: >-
+ A unique reference ID from Visa to represent the card account
+ number.
+ maxLength: 5000
+ type: string
+ token_reference_id:
+ description: The network-unique identifier for the token.
+ maxLength: 5000
+ type: string
+ token_requestor_id:
+ description: 'The ID of the entity requesting tokenization, specific to Visa.'
+ maxLength: 5000
+ type: string
+ token_risk_score:
+ description: >-
+ Degree of risk associated with the token between `01` and `99`, with
+ higher number indicating higher risk. A `00` value indicates the
+ token was not scored by Visa.
+ maxLength: 5000
+ type: string
+ required:
+ - card_reference_id
+ - token_reference_id
+ - token_requestor_id
+ title: IssuingNetworkTokenVisa
+ type: object
+ x-expandableFields: []
+ issuing_network_token_wallet_provider:
+ description: ''
+ properties:
+ account_id:
+ description: >-
+ The wallet provider-given account ID of the digital wallet the token
+ belongs to.
+ maxLength: 5000
+ type: string
+ account_trust_score:
+ description: >-
+ An evaluation on the trustworthiness of the wallet account between 1
+ and 5. A higher score indicates more trustworthy.
+ type: integer
+ card_number_source:
+ description: The method used for tokenizing a card.
+ enum:
+ - app
+ - manual
+ - on_file
+ - other
+ type: string
+ cardholder_address:
+ $ref: '#/components/schemas/issuing_network_token_address'
+ cardholder_name:
+ description: The name of the cardholder tokenizing the card.
+ maxLength: 5000
+ type: string
+ device_trust_score:
+ description: >-
+ An evaluation on the trustworthiness of the device. A higher score
+ indicates more trustworthy.
+ type: integer
+ hashed_account_email_address:
+ description: >-
+ The hashed email address of the cardholder's account with the wallet
+ provider.
+ maxLength: 5000
+ type: string
+ reason_codes:
+ description: The reasons for suggested tokenization given by the card network.
+ items:
+ enum:
+ - account_card_too_new
+ - account_recently_changed
+ - account_too_new
+ - account_too_new_since_launch
+ - additional_device
+ - data_expired
+ - defer_id_v_decision
+ - device_recently_lost
+ - good_activity_history
+ - has_suspended_tokens
+ - high_risk
+ - inactive_account
+ - long_account_tenure
+ - low_account_score
+ - low_device_score
+ - low_phone_number_score
+ - network_service_error
+ - outside_home_territory
+ - provisioning_cardholder_mismatch
+ - provisioning_device_and_cardholder_mismatch
+ - provisioning_device_mismatch
+ - same_device_no_prior_authentication
+ - same_device_successful_prior_authentication
+ - software_update
+ - suspicious_activity
+ - too_many_different_cardholders
+ - too_many_recent_attempts
+ - too_many_recent_tokens
+ type: string
+ type: array
+ suggested_decision:
+ description: The recommendation on responding to the tokenization request.
+ enum:
+ - approve
+ - decline
+ - require_auth
+ type: string
+ suggested_decision_version:
+ description: >-
+ The version of the standard for mapping reason codes followed by the
+ wallet provider.
+ maxLength: 5000
+ type: string
+ title: IssuingNetworkTokenWalletProvider
+ type: object
+ x-expandableFields:
+ - cardholder_address
+ issuing_personalization_design_carrier_text:
+ description: ''
+ properties:
+ footer_body:
+ description: The footer body text of the carrier letter.
+ maxLength: 5000
+ nullable: true
+ type: string
+ footer_title:
+ description: The footer title text of the carrier letter.
+ maxLength: 5000
+ nullable: true
+ type: string
+ header_body:
+ description: The header body text of the carrier letter.
+ maxLength: 5000
+ nullable: true
+ type: string
+ header_title:
+ description: The header title text of the carrier letter.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: IssuingPersonalizationDesignCarrierText
+ type: object
+ x-expandableFields: []
+ issuing_personalization_design_preferences:
+ description: ''
+ properties:
+ is_default:
+ description: >-
+ Whether we use this personalization design to create cards when one
+ isn't specified. A connected account uses the Connect platform's
+ default design if no personalization design is set as the default
+ design.
+ type: boolean
+ is_platform_default:
+ description: >-
+ Whether this personalization design is used to create cards when one
+ is not specified and a default for this connected account does not
+ exist.
+ nullable: true
+ type: boolean
+ required:
+ - is_default
+ title: IssuingPersonalizationDesignPreferences
+ type: object
+ x-expandableFields: []
+ issuing_personalization_design_rejection_reasons:
+ description: ''
+ properties:
+ card_logo:
+ description: The reason(s) the card logo was rejected.
+ items:
+ enum:
+ - geographic_location
+ - inappropriate
+ - network_name
+ - non_binary_image
+ - non_fiat_currency
+ - other
+ - other_entity
+ - promotional_material
+ type: string
+ nullable: true
+ type: array
+ carrier_text:
+ description: The reason(s) the carrier text was rejected.
+ items:
+ enum:
+ - geographic_location
+ - inappropriate
+ - network_name
+ - non_fiat_currency
+ - other
+ - other_entity
+ - promotional_material
+ type: string
+ nullable: true
+ type: array
+ title: IssuingPersonalizationDesignRejectionReasons
+ type: object
+ x-expandableFields: []
+ issuing_physical_bundle_features:
+ description: ''
+ properties:
+ card_logo:
+ description: >-
+ The policy for how to use card logo images in a card design with
+ this physical bundle.
+ enum:
+ - optional
+ - required
+ - unsupported
+ type: string
+ carrier_text:
+ description: >-
+ The policy for how to use carrier letter text in a card design with
+ this physical bundle.
+ enum:
+ - optional
+ - required
+ - unsupported
+ type: string
+ second_line:
+ description: >-
+ The policy for how to use a second line on a card with this physical
+ bundle.
+ enum:
+ - optional
+ - required
+ - unsupported
+ type: string
+ required:
+ - card_logo
+ - carrier_text
+ - second_line
+ title: IssuingPhysicalBundleFeatures
+ type: object
+ x-expandableFields: []
issuing_transaction_amount_details:
description: ''
properties:
@@ -16742,6 +20126,39 @@ components:
title: IssuingTransactionLodgingData
type: object
x-expandableFields: []
+ issuing_transaction_network_data:
+ description: ''
+ properties:
+ authorization_code:
+ description: >-
+ A code created by Stripe which is shared with the merchant to
+ validate the authorization. This field will be populated if the
+ authorization message was approved. The code typically starts with
+ the letter "S", followed by a six-digit number. For example,
+ "S498162". Please note that the code is not guaranteed to be unique
+ across authorizations.
+ maxLength: 5000
+ nullable: true
+ type: string
+ processing_date:
+ description: >-
+ The date the transaction was processed by the card network. This can
+ be different from the date the seller recorded the transaction
+ depending on when the acquirer submits the transaction to the
+ network.
+ maxLength: 5000
+ nullable: true
+ type: string
+ transaction_id:
+ description: >-
+ Unique identifier for the authorization assigned by the card network
+ used to match subsequent messages, disputes, and transactions.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: IssuingTransactionNetworkData
+ type: object
+ x-expandableFields: []
issuing_transaction_purchase_details:
description: ''
properties:
@@ -17003,6 +20420,7 @@ components:
- public_company
- public_corporation
- public_partnership
+ - registered_charity
- single_member_llc
- sole_establishment
- sole_proprietorship
@@ -17338,12 +20756,16 @@ components:
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/discount'
- nullable: true
type: array
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
+ invoice:
+ description: The ID of the invoice that contains this line item.
+ maxLength: 5000
+ nullable: true
+ type: string
invoice_item:
anyOf:
- maxLength: 5000
@@ -17452,6 +20874,7 @@ components:
- amount
- currency
- discountable
+ - discounts
- id
- livemode
- metadata
@@ -17553,6 +20976,7 @@ components:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
nullable: true
@@ -17743,6 +21167,18 @@ components:
description: The unique reference identifying the mandate on the Bacs network.
maxLength: 5000
type: string
+ revocation_reason:
+ description: >-
+ When the mandate is revoked on the Bacs network this field displays
+ the reason for the revocation.
+ enum:
+ - account_closed
+ - bank_account_restricted
+ - bank_ownership_changed
+ - could_not_process
+ - debit_not_authorized
+ nullable: true
+ type: string
url:
description: The URL that will contain the mandate that the customer has signed.
maxLength: 5000
@@ -17873,7 +21309,13 @@ components:
x-expandableFields: []
mandate_us_bank_account:
description: ''
- properties: {}
+ properties:
+ collection_method:
+ description: Mandate collection method
+ enum:
+ - paper
+ type: string
+ x-stripeBypassValidation: true
title: mandate_us_bank_account
type: object
x-expandableFields: []
@@ -17887,7 +21329,10 @@ components:
type: string
type: array
preferred:
- description: The preferred network for the card.
+ description: >-
+ The preferred network for co-branded cards. Can be
+ `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if
+ requested network is not valid for the card.
maxLength: 5000
nullable: true
type: string
@@ -18046,8 +21491,20 @@ components:
maxLength: 5000
nullable: true
type: string
+ mandate:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/mandate'
+ description: ID of the mandate used to make this payment.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/mandate'
network:
- description: The US bank account network used to send funds.
+ description: >-
+ The network rails used. See the
+ [docs](https://stripe.com/docs/treasury/money-movement/timelines) to
+ learn more about money movement timelines for each network type.
enum:
- ach
- us_domestic_wire
@@ -18061,7 +21518,8 @@ components:
- network
title: outbound_payments_payment_method_details_us_bank_account
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - mandate
outbound_transfers_payment_method_details:
description: ''
properties:
@@ -18118,8 +21576,20 @@ components:
maxLength: 5000
nullable: true
type: string
+ mandate:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/mandate'
+ description: ID of the mandate used to make this payment.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/mandate'
network:
- description: The US bank account network used to send funds.
+ description: >-
+ The network rails used. See the
+ [docs](https://stripe.com/docs/treasury/money-movement/timelines) to
+ learn more about money movement timelines for each network type.
enum:
- ach
- us_domestic_wire
@@ -18133,7 +21603,8 @@ components:
- network
title: outbound_transfers_payment_method_details_us_bank_account
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - mandate
package_dimensions:
description: ''
properties:
@@ -18273,6 +21744,73 @@ components:
title: PaymentFlowsPrivatePaymentMethodsAlipayDetails
type: object
x-expandableFields: []
+ payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization:
+ description: ''
+ properties:
+ status:
+ description: >-
+ Indicates whether or not the capture window is extended beyond the
+ standard authorization.
+ enum:
+ - disabled
+ - enabled
+ type: string
+ required:
+ - status
+ title: >-
+ PaymentFlowsPrivatePaymentMethodsCardDetailsAPIResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization
+ type: object
+ x-expandableFields: []
+ payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization:
+ description: ''
+ properties:
+ status:
+ description: >-
+ Indicates whether or not the incremental authorization feature is
+ supported.
+ enum:
+ - available
+ - unavailable
+ type: string
+ required:
+ - status
+ title: >-
+ PaymentFlowsPrivatePaymentMethodsCardDetailsAPIResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization
+ type: object
+ x-expandableFields: []
+ payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture:
+ description: ''
+ properties:
+ maximum_amount_capturable:
+ description: The maximum amount that can be captured.
+ type: integer
+ status:
+ description: Indicates whether or not the authorized amount can be over-captured.
+ enum:
+ - available
+ - unavailable
+ type: string
+ required:
+ - maximum_amount_capturable
+ - status
+ title: >-
+ PaymentFlowsPrivatePaymentMethodsCardDetailsAPIResourceEnterpriseFeaturesOvercaptureOvercapture
+ type: object
+ x-expandableFields: []
+ payment_flows_private_payment_methods_card_details_api_resource_multicapture:
+ description: ''
+ properties:
+ status:
+ description: Indicates whether or not multiple captures are supported.
+ enum:
+ - available
+ - unavailable
+ type: string
+ required:
+ - status
+ title: PaymentFlowsPrivatePaymentMethodsCardDetailsAPIResourceMulticapture
+ type: object
+ x-expandableFields: []
payment_flows_private_payment_methods_klarna_dob:
description: ''
properties:
@@ -18335,7 +21873,7 @@ components:
amount_details:
$ref: '#/components/schemas/payment_flows_amount_details'
amount_received:
- description: Amount that was collected by this PaymentIntent.
+ description: Amount that this PaymentIntent collects.
type: integer
application:
anyOf:
@@ -18417,6 +21955,9 @@ components:
nullable: true
type: string
confirmation_method:
+ description: >-
+ Describes whether we can confirm this PaymentIntent automatically,
+ or if it requires customer action to confirm the payment.
enum:
- automatic
- manual
@@ -18492,7 +22033,7 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/charge'
- description: The latest charge created by this payment intent.
+ description: The latest charge created by this PaymentIntent.
nullable: true
x-expansionResources:
oneOf:
@@ -18509,9 +22050,9 @@ components:
description: >-
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
you can attach to an object. This can be useful for storing
- additional information about the object in a structured format. For
- more information, see the
- [documentation](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
+ additional information about the object in a structured format.
+ Learn more about [storing information in
+ metadata](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
type: object
next_action:
anyOf:
@@ -18630,9 +22171,11 @@ components:
nullable: true
statement_descriptor:
description: >-
- For non-card charges, you can use this value as the complete
- description that appears on your customers’ statements. Must contain
- at least one letter, maximum 22 characters.
+ For card charges, use
+ [statement_descriptor_suffix](https://stripe.com/docs/payments/account/statement-descriptors#dynamic).
+ Otherwise, you can use this value as the complete description of a
+ charge on your customers' statements. It must contain at least one
+ letter and be 1–22 characters long.
maxLength: 5000
nullable: true
type: string
@@ -18666,17 +22209,15 @@ components:
anyOf:
- $ref: '#/components/schemas/transfer_data'
description: >-
- The data with which to automatically create a Transfer when the
- payment is finalized. See the PaymentIntents [use case for connected
- accounts](https://stripe.com/docs/payments/connected-accounts) for
- details.
+ The data that automatically creates a Transfer after the payment
+ finalizes. Learn more about the [use case for connected
+ accounts](https://stripe.com/docs/payments/connected-accounts).
nullable: true
transfer_group:
description: >-
A string that identifies the resulting payment as part of a group.
- See the PaymentIntents [use case for connected
- accounts](https://stripe.com/docs/connect/separate-charges-and-transfers)
- for details.
+ Learn more about the [use case for connected
+ accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
maxLength: 5000
nullable: true
type: string
@@ -18751,6 +22292,9 @@ components:
#/components/schemas/payment_intent_next_action_promptpay_display_qr_code
redirect_to_url:
$ref: '#/components/schemas/payment_intent_next_action_redirect_to_url'
+ swish_handle_redirect_or_display_qr_code:
+ $ref: >-
+ #/components/schemas/payment_intent_next_action_swish_handle_redirect_or_display_qr_code
type:
description: >-
Type of the next action to perform, one of `redirect_to_url`,
@@ -18793,6 +22337,7 @@ components:
- pix_display_qr_code
- promptpay_display_qr_code
- redirect_to_url
+ - swish_handle_redirect_or_display_qr_code
- verify_with_microdeposits
- wechat_pay_display_qr_code
- wechat_pay_redirect_to_android_app
@@ -19237,6 +22782,48 @@ components:
title: PaymentIntentNextActionRedirectToUrl
type: object
x-expandableFields: []
+ payment_intent_next_action_swish_handle_redirect_or_display_qr_code:
+ description: ''
+ properties:
+ hosted_instructions_url:
+ description: >-
+ The URL to the hosted Swish instructions page, which allows
+ customers to view the QR code.
+ maxLength: 5000
+ type: string
+ qr_code:
+ $ref: '#/components/schemas/payment_intent_next_action_swish_qr_code'
+ required:
+ - hosted_instructions_url
+ - qr_code
+ title: PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode
+ type: object
+ x-expandableFields:
+ - qr_code
+ payment_intent_next_action_swish_qr_code:
+ description: ''
+ properties:
+ data:
+ description: >-
+ The raw data string used to generate QR code, it should be used
+ together with QR code library.
+ maxLength: 5000
+ type: string
+ image_url_png:
+ description: The image_url_png string used to render QR code
+ maxLength: 5000
+ type: string
+ image_url_svg:
+ description: The image_url_svg string used to render QR code
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - image_url_png
+ - image_url_svg
+ title: PaymentIntentNextActionSwishQRCode
+ type: object
+ x-expandableFields: []
payment_intent_next_action_verify_with_microdeposits:
description: ''
properties:
@@ -19468,6 +23055,12 @@ components:
- $ref: '#/components/schemas/payment_intent_payment_method_options_link'
- $ref: >-
#/components/schemas/payment_intent_type_specific_payment_method_options_client
+ mobilepay:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/payment_intent_payment_method_options_mobilepay
+ - $ref: >-
+ #/components/schemas/payment_intent_type_specific_payment_method_options_client
oxxo:
anyOf:
- $ref: '#/components/schemas/payment_method_options_oxxo'
@@ -19498,6 +23091,11 @@ components:
- $ref: '#/components/schemas/payment_method_options_promptpay'
- $ref: >-
#/components/schemas/payment_intent_type_specific_payment_method_options_client
+ revolut_pay:
+ anyOf:
+ - $ref: '#/components/schemas/payment_method_options_revolut_pay'
+ - $ref: >-
+ #/components/schemas/payment_intent_type_specific_payment_method_options_client
sepa_debit:
anyOf:
- $ref: >-
@@ -19509,6 +23107,11 @@ components:
- $ref: '#/components/schemas/payment_method_options_sofort'
- $ref: >-
#/components/schemas/payment_intent_type_specific_payment_method_options_client
+ swish:
+ anyOf:
+ - $ref: '#/components/schemas/payment_intent_payment_method_options_swish'
+ - $ref: >-
+ #/components/schemas/payment_intent_type_specific_payment_method_options_client
us_bank_account:
anyOf:
- $ref: >-
@@ -19550,14 +23153,17 @@ components:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -19635,7 +23241,30 @@ components:
x-expandableFields: []
payment_intent_payment_method_options_blik:
description: ''
- properties: {}
+ properties:
+ setup_future_usage:
+ description: >-
+ Indicates that you intend to make future payments with this
+ PaymentIntent's payment method.
+
+
+ Providing this parameter will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete. If no
+ Customer was provided, the payment method can still be
+ [attached](https://stripe.com/docs/api/payment_methods/attach) to a
+ Customer after the transaction completes.
+
+
+ When processing card payments, Stripe also uses `setup_future_usage`
+ to dynamically optimize your payment flow and comply with regional
+ legislation and network rules, such as
+ [SCA](https://stripe.com/docs/strong-customer-authentication).
+ enum:
+ - none
+ type: string
+ x-stripeBypassValidation: true
title: payment_intent_payment_method_options_blik
type: object
x-expandableFields: []
@@ -19685,6 +23314,43 @@ components:
- visa
nullable: true
type: string
+ request_extended_authorization:
+ description: >-
+ Request ability to [capture beyond the standard authorization
+ validity
+ window](https://stripe.com/docs/payments/extended-authorization) for
+ this PaymentIntent.
+ enum:
+ - if_available
+ - never
+ type: string
+ request_incremental_authorization:
+ description: >-
+ Request ability to [increment the
+ authorization](https://stripe.com/docs/payments/incremental-authorization)
+ for this PaymentIntent.
+ enum:
+ - if_available
+ - never
+ type: string
+ request_multicapture:
+ description: >-
+ Request ability to make [multiple
+ captures](https://stripe.com/docs/payments/multicapture) for this
+ PaymentIntent.
+ enum:
+ - if_available
+ - never
+ type: string
+ request_overcapture:
+ description: >-
+ Request ability to
+ [overcapture](https://stripe.com/docs/payments/overcapture) for this
+ PaymentIntent.
+ enum:
+ - if_available
+ - never
+ type: string
request_three_d_secure:
description: >-
We strongly recommend that you rely on our SCA Engine to
@@ -19692,18 +23358,24 @@ components:
level and [other
requirements](https://stripe.com/docs/strong-customer-authentication).
However, if you wish to request 3D Secure based on logic from your
- own fraud engine, provide this option. Permitted values include:
- `automatic` or `any`. If not provided, defaults to `automatic`. Read
- our guide on [manually requesting 3D
- Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds)
+ own fraud engine, provide this option. If not provided, this value
+ defaults to `automatic`. Read our guide on [manually requesting 3D
+ Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds)
for more information on how this configuration interacts with Radar
and our SCA Engine.
enum:
- any
- automatic
- - challenge_only
+ - challenge
nullable: true
type: string
+ x-stripeBypassValidation: true
+ require_cvc_recollection:
+ description: >-
+ When enabled, using a card that is attached to a customer will
+ require the CVC to be provided again (i.e. using the cvc_token
+ parameter).
+ type: boolean
setup_future_usage:
description: >-
Indicates that you intend to make future payments with this
@@ -19856,50 +23528,123 @@ components:
title: payment_intent_payment_method_options_mandate_options_sepa_debit
type: object
x-expandableFields: []
- payment_intent_payment_method_options_sepa_debit:
+ payment_intent_payment_method_options_mobilepay:
description: ''
properties:
- mandate_options:
- $ref: >-
- #/components/schemas/payment_intent_payment_method_options_mandate_options_sepa_debit
- setup_future_usage:
+ capture_method:
description: >-
- Indicates that you intend to make future payments with this
- PaymentIntent's payment method.
-
-
- Providing this parameter will [attach the payment
- method](https://stripe.com/docs/payments/save-during-payment) to the
- PaymentIntent's Customer, if present, after the PaymentIntent is
- confirmed and any required actions from the user are complete. If no
- Customer was provided, the payment method can still be
- [attached](https://stripe.com/docs/api/payment_methods/attach) to a
- Customer after the transaction completes.
-
-
- When processing card payments, Stripe also uses `setup_future_usage`
- to dynamically optimize your payment flow and comply with regional
- legislation and network rules, such as
- [SCA](https://stripe.com/docs/strong-customer-authentication).
- enum:
- - none
- - off_session
- - on_session
- type: string
- title: payment_intent_payment_method_options_sepa_debit
- type: object
- x-expandableFields:
- - mandate_options
- payment_intent_payment_method_options_us_bank_account:
- description: ''
- properties:
- financial_connections:
- $ref: '#/components/schemas/linked_account_options_us_bank_account'
- preferred_settlement_speed:
- description: Preferred transaction settlement speed
+ Controls when the funds will be captured from the customer's
+ account.
enum:
- - fastest
- - standard
+ - manual
+ type: string
+ setup_future_usage:
+ description: >-
+ Indicates that you intend to make future payments with this
+ PaymentIntent's payment method.
+
+
+ Providing this parameter will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete. If no
+ Customer was provided, the payment method can still be
+ [attached](https://stripe.com/docs/api/payment_methods/attach) to a
+ Customer after the transaction completes.
+
+
+ When processing card payments, Stripe also uses `setup_future_usage`
+ to dynamically optimize your payment flow and comply with regional
+ legislation and network rules, such as
+ [SCA](https://stripe.com/docs/strong-customer-authentication).
+ enum:
+ - none
+ type: string
+ title: payment_intent_payment_method_options_mobilepay
+ type: object
+ x-expandableFields: []
+ payment_intent_payment_method_options_sepa_debit:
+ description: ''
+ properties:
+ mandate_options:
+ $ref: >-
+ #/components/schemas/payment_intent_payment_method_options_mandate_options_sepa_debit
+ setup_future_usage:
+ description: >-
+ Indicates that you intend to make future payments with this
+ PaymentIntent's payment method.
+
+
+ Providing this parameter will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete. If no
+ Customer was provided, the payment method can still be
+ [attached](https://stripe.com/docs/api/payment_methods/attach) to a
+ Customer after the transaction completes.
+
+
+ When processing card payments, Stripe also uses `setup_future_usage`
+ to dynamically optimize your payment flow and comply with regional
+ legislation and network rules, such as
+ [SCA](https://stripe.com/docs/strong-customer-authentication).
+ enum:
+ - none
+ - off_session
+ - on_session
+ type: string
+ title: payment_intent_payment_method_options_sepa_debit
+ type: object
+ x-expandableFields:
+ - mandate_options
+ payment_intent_payment_method_options_swish:
+ description: ''
+ properties:
+ reference:
+ description: >-
+ The order ID displayed in the Swish app after the payment is
+ authorized.
+ maxLength: 35
+ nullable: true
+ type: string
+ setup_future_usage:
+ description: >-
+ Indicates that you intend to make future payments with this
+ PaymentIntent's payment method.
+
+
+ Providing this parameter will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment) to the
+ PaymentIntent's Customer, if present, after the PaymentIntent is
+ confirmed and any required actions from the user are complete. If no
+ Customer was provided, the payment method can still be
+ [attached](https://stripe.com/docs/api/payment_methods/attach) to a
+ Customer after the transaction completes.
+
+
+ When processing card payments, Stripe also uses `setup_future_usage`
+ to dynamically optimize your payment flow and comply with regional
+ legislation and network rules, such as
+ [SCA](https://stripe.com/docs/strong-customer-authentication).
+ enum:
+ - none
+ type: string
+ title: payment_intent_payment_method_options_swish
+ type: object
+ x-expandableFields: []
+ payment_intent_payment_method_options_us_bank_account:
+ description: ''
+ properties:
+ financial_connections:
+ $ref: '#/components/schemas/linked_account_options_us_bank_account'
+ mandate_options:
+ $ref: >-
+ #/components/schemas/payment_method_options_us_bank_account_mandate_options
+ preferred_settlement_speed:
+ description: Preferred transaction settlement speed
+ enum:
+ - fastest
+ - standard
type: string
setup_future_usage:
description: >-
@@ -19937,6 +23682,7 @@ components:
type: object
x-expandableFields:
- financial_connections
+ - mandate_options
payment_intent_processing:
description: ''
properties:
@@ -19988,6 +23734,12 @@ components:
type: string
installments:
$ref: '#/components/schemas/payment_flows_installment_options'
+ require_cvc_recollection:
+ description: >-
+ When enabled, using a card that is attached to a customer will
+ require the CVC to be provided again (i.e. using the cvc_token
+ parameter).
+ type: boolean
setup_future_usage:
description: >-
Indicates that you intend to make future payments with this
@@ -20080,7 +23832,9 @@ components:
automatic_tax:
$ref: '#/components/schemas/payment_links_resource_automatic_tax'
billing_address_collection:
- description: Configuration for collecting the customer's billing address.
+ description: >-
+ Configuration for collecting the customer's billing address.
+ Defaults to `auto`.
enum:
- auto
- required
@@ -20102,7 +23856,7 @@ components:
custom_fields:
description: >-
Collect additional information from your customer using custom
- fields. Up to 2 fields are supported.
+ fields. Up to 3 fields are supported.
items:
$ref: '#/components/schemas/payment_links_resource_custom_fields'
type: array
@@ -20118,6 +23872,13 @@ components:
description: Unique identifier for the object.
maxLength: 5000
type: string
+ inactive_message:
+ description: >-
+ The custom message to be displayed to a customer when a payment link
+ is no longer active.
+ maxLength: 5000
+ nullable: true
+ type: string
invoice_creation:
anyOf:
- $ref: '#/components/schemas/payment_links_resource_invoice_creation'
@@ -20198,7 +23959,9 @@ components:
during checkout.
nullable: true
payment_method_collection:
- description: Configuration for collecting a payment method during checkout.
+ description: >-
+ Configuration for collecting a payment method during checkout.
+ Defaults to `always`.
enum:
- always
- if_required
@@ -20237,6 +24000,7 @@ components:
- promptpay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
type: string
@@ -20245,6 +24009,11 @@ components:
type: array
phone_number_collection:
$ref: '#/components/schemas/payment_links_resource_phone_number_collection'
+ restrictions:
+ anyOf:
+ - $ref: '#/components/schemas/payment_links_resource_restrictions'
+ description: Settings that restrict the usage of a payment link.
+ nullable: true
shipping_address_collection:
anyOf:
- $ref: >-
@@ -20321,6 +24090,7 @@ components:
- on_behalf_of
- payment_intent_data
- phone_number_collection
+ - restrictions
- shipping_address_collection
- shipping_options
- subscription_data
@@ -20357,10 +24127,40 @@ components:
If `true`, tax will be calculated automatically using the customer's
location.
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
required:
- enabled
title: PaymentLinksResourceAutomaticTax
type: object
+ x-expandableFields:
+ - liability
+ payment_links_resource_completed_sessions:
+ description: ''
+ properties:
+ count:
+ description: >-
+ The current number of checkout sessions that have been completed on
+ the payment link which count towards the `completed_sessions`
+ restriction to be met.
+ type: integer
+ limit:
+ description: >-
+ The maximum number of checkout sessions that can be completed for
+ the `completed_sessions` restriction to be met.
+ type: integer
+ required:
+ - count
+ - limit
+ title: PaymentLinksResourceCompletedSessions
+ type: object
x-expandableFields: []
payment_links_resource_completion_behavior_confirmation_page:
description: ''
@@ -20392,6 +24192,14 @@ components:
payment_links_resource_consent_collection:
description: ''
properties:
+ payment_method_reuse_agreement:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/payment_links_resource_payment_method_reuse_agreement
+ description: >-
+ Settings related to the payment method reuse text shown in the
+ Checkout UI.
+ nullable: true
promotions:
description: >-
If set to `auto`, enables the collection of customer consent for
@@ -20413,16 +24221,13 @@ components:
type: string
title: PaymentLinksResourceConsentCollection
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - payment_method_reuse_agreement
payment_links_resource_custom_fields:
description: ''
properties:
dropdown:
- anyOf:
- - $ref: >-
- #/components/schemas/payment_links_resource_custom_fields_dropdown
- description: Configuration for `type=dropdown` fields.
- nullable: true
+ $ref: '#/components/schemas/payment_links_resource_custom_fields_dropdown'
key:
description: >-
String of your choice that your integration can use to reconcile
@@ -20433,21 +24238,14 @@ components:
label:
$ref: '#/components/schemas/payment_links_resource_custom_fields_label'
numeric:
- anyOf:
- - $ref: >-
- #/components/schemas/payment_links_resource_custom_fields_numeric
- description: Configuration for `type=numeric` fields.
- nullable: true
+ $ref: '#/components/schemas/payment_links_resource_custom_fields_numeric'
optional:
description: >-
Whether the customer is required to complete the field before
completing the Checkout Session. Defaults to `false`.
type: boolean
text:
- anyOf:
- - $ref: '#/components/schemas/payment_links_resource_custom_fields_text'
- description: Configuration for `type=text` fields.
- nullable: true
+ $ref: '#/components/schemas/payment_links_resource_custom_fields_text'
type:
description: The type of the field.
enum:
@@ -20558,6 +24356,13 @@ components:
payment_links_resource_custom_text:
description: ''
properties:
+ after_submit:
+ anyOf:
+ - $ref: '#/components/schemas/payment_links_resource_custom_text_position'
+ description: >-
+ Custom text that should be displayed after the payment confirmation
+ button.
+ nullable: true
shipping_address:
anyOf:
- $ref: '#/components/schemas/payment_links_resource_custom_text_position'
@@ -20582,6 +24387,7 @@ components:
title: PaymentLinksResourceCustomText
type: object
x-expandableFields:
+ - after_submit
- shipping_address
- submit
- terms_of_service_acceptance
@@ -20651,6 +24457,14 @@ components:
maxLength: 5000
nullable: true
type: string
+ issuer:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The connected account that issues the invoice. The invoice is
+ presented with the branding and support information of the specified
+ account.
+ nullable: true
metadata:
additionalProperties:
maxLength: 500
@@ -20671,6 +24485,7 @@ components:
x-expandableFields:
- account_tax_ids
- custom_fields
+ - issuer
- rendering_options
payment_links_resource_payment_intent_data:
description: ''
@@ -20685,6 +24500,23 @@ components:
- manual
nullable: true
type: string
+ description:
+ description: >-
+ An arbitrary string attached to the object. Often useful for
+ displaying to users.
+ maxLength: 5000
+ nullable: true
+ type: string
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ will set metadata on [Payment
+ Intents](https://stripe.com/docs/api/payment_intents) generated from
+ this payment link.
+ type: object
setup_future_usage:
description: >-
Indicates that you intend to make future payments with the payment
@@ -20694,9 +24526,59 @@ components:
- on_session
nullable: true
type: string
+ statement_descriptor:
+ description: >-
+ Extra information about the payment. This will appear on your
+ customer's statement when this payment succeeds in creating a
+ charge.
+ maxLength: 5000
+ nullable: true
+ type: string
+ statement_descriptor_suffix:
+ description: >-
+ Provides information about the charge that customers see on their
+ statements. Concatenated with the prefix (shortened descriptor) or
+ statement descriptor that's set on the account to form the complete
+ statement descriptor. Maximum 22 characters for the concatenated
+ descriptor.
+ maxLength: 5000
+ nullable: true
+ type: string
+ transfer_group:
+ description: >-
+ A string that identifies the resulting payment as part of a group.
+ See the PaymentIntents [use case for connected
+ accounts](https://stripe.com/docs/connect/separate-charges-and-transfers)
+ for details.
+ maxLength: 5000
+ nullable: true
+ type: string
+ required:
+ - metadata
title: PaymentLinksResourcePaymentIntentData
type: object
x-expandableFields: []
+ payment_links_resource_payment_method_reuse_agreement:
+ description: ''
+ properties:
+ position:
+ description: >-
+ Determines the position and visibility of the payment method reuse
+ agreement in the UI. When set to `auto`, Stripe's defaults will be
+ used.
+
+
+ When set to `hidden`, the payment method reuse agreement text will
+ always be hidden in the UI.
+ enum:
+ - auto
+ - hidden
+ type: string
+ required:
+ - position
+ title: PaymentLinksResourcePaymentMethodReuseAgreement
+ type: object
+ x-expandableFields: []
payment_links_resource_phone_number_collection:
description: ''
properties:
@@ -20708,6 +24590,17 @@ components:
title: PaymentLinksResourcePhoneNumberCollection
type: object
x-expandableFields: []
+ payment_links_resource_restrictions:
+ description: ''
+ properties:
+ completed_sessions:
+ $ref: '#/components/schemas/payment_links_resource_completed_sessions'
+ required:
+ - completed_sessions
+ title: PaymentLinksResourceRestrictions
+ type: object
+ x-expandableFields:
+ - completed_sessions
payment_links_resource_shipping_address_collection:
description: ''
properties:
@@ -20992,19 +24885,55 @@ components:
description: >-
The subscription's description, meant to be displayable to the
customer. Use this field to optionally store an explanation of the
- subscription.
+ subscription for rendering in Stripe surfaces and certain local
+ payment methods UIs.
maxLength: 5000
nullable: true
type: string
+ invoice_settings:
+ $ref: >-
+ #/components/schemas/payment_links_resource_subscription_data_invoice_settings
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ will set metadata on
+ [Subscriptions](https://stripe.com/docs/api/subscriptions) generated
+ from this payment link.
+ type: object
trial_period_days:
description: >-
Integer representing the number of trial period days before the
customer is charged for the first time.
nullable: true
type: integer
+ trial_settings:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/subscriptions_trials_resource_trial_settings
+ description: Settings related to subscription trials.
+ nullable: true
+ required:
+ - invoice_settings
+ - metadata
title: PaymentLinksResourceSubscriptionData
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - invoice_settings
+ - trial_settings
+ payment_links_resource_subscription_data_invoice_settings:
+ description: ''
+ properties:
+ issuer:
+ $ref: '#/components/schemas/connect_account_reference'
+ required:
+ - issuer
+ title: PaymentLinksResourceSubscriptionDataInvoiceSettings
+ type: object
+ x-expandableFields:
+ - issuer
payment_links_resource_tax_id_collection:
description: ''
properties:
@@ -21141,6 +25070,8 @@ components:
additional information about the object in a structured format.
nullable: true
type: object
+ mobilepay:
+ $ref: '#/components/schemas/payment_method_mobilepay'
object:
description: >-
String representing the object's type. Objects of the same type
@@ -21162,10 +25093,14 @@ components:
$ref: '#/components/schemas/payment_method_promptpay'
radar_options:
$ref: '#/components/schemas/radar_radar_options'
+ revolut_pay:
+ $ref: '#/components/schemas/payment_method_revolut_pay'
sepa_debit:
$ref: '#/components/schemas/payment_method_sepa_debit'
sofort:
$ref: '#/components/schemas/payment_method_sofort'
+ swish:
+ $ref: '#/components/schemas/payment_method_swish'
type:
description: >-
The type of the PaymentMethod. An additional hash is included on the
@@ -21194,14 +25129,17 @@ components:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -21247,6 +25185,7 @@ components:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
@@ -21254,8 +25193,10 @@ components:
- pix
- promptpay
- radar_options
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -21399,6 +25340,16 @@ components:
maxLength: 5000
nullable: true
type: string
+ display_brand:
+ description: >-
+ The brand to use when displaying the card, this accounts for
+ customer's brand choice on dual-branded cards. Can be
+ `american_express`, `cartes_bancaires`, `diners_club`, `discover`,
+ `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`,
+ `visa`, or `other` and may contain more values in the future.
+ maxLength: 5000
+ nullable: true
+ type: string
exp_month:
description: Two-digit number representing the card's expiration month.
type: integer
@@ -21840,9 +25791,8 @@ components:
properties:
overridable:
description: >-
- For child configurations, whether or not the account's preference
- will be observed. If `false`, the parent configuration's preference
- is used.
+ For child configs, whether or not the account's preference will be
+ observed. If `false`, the parent configuration's default is used.
nullable: true
type: boolean
preference:
@@ -21884,7 +25834,46 @@ components:
x-expandableFields:
- display_preference
payment_method_configuration:
- description: An object detailing payment method configurations.
+ description: >-
+ PaymentMethodConfigurations control which payment methods are displayed
+ to your customers when you don't explicitly specify payment method
+ types. You can have multiple configurations with different sets of
+ payment methods for different scenarios.
+
+
+ There are two types of PaymentMethodConfigurations. Which is used
+ depends on the [charge type](https://stripe.com/docs/connect/charges):
+
+
+ **Direct** configurations apply to payments created on your account,
+ including Connect destination charges, Connect separate charges and
+ transfers, and payments not involving Connect.
+
+
+ **Child** configurations apply to payments created on your connected
+ accounts using direct charges, and charges with the on_behalf_of
+ parameter.
+
+
+ Child configurations have a `parent` that sets default values and
+ controls which settings connected accounts may override. You can specify
+ a parent ID at payment time, and Stripe will automatically resolve the
+ connected account’s associated child configuration. Parent
+ configurations are [managed in the
+ dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts)
+ and are not available in this API.
+
+
+ Related guides:
+
+ - [Payment Method Configurations
+ API](https://stripe.com/docs/connect/payment-method-configurations)
+
+ - [Multiple configurations on dynamic payment
+ methods](https://stripe.com/docs/payments/multiple-payment-method-configs)
+
+ - [Multiple configurations for your Connect
+ accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)
properties:
acss_debit:
$ref: >-
@@ -21905,7 +25894,9 @@ components:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
application:
- description: The Connect application associated with this configuration.
+ description: >-
+ For child configs, the Connect application associated with the
+ configuration.
maxLength: 5000
nullable: true
type: string
@@ -21933,6 +25924,9 @@ components:
cashapp:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
+ customer_balance:
+ $ref: >-
+ #/components/schemas/payment_method_config_resource_payment_method_properties
eps:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
@@ -21952,16 +25946,13 @@ components:
description: Unique identifier for the object.
maxLength: 5000
type: string
- id_bank_transfer:
- $ref: >-
- #/components/schemas/payment_method_config_resource_payment_method_properties
ideal:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
is_default:
description: >-
- The default configuration is used whenever no payment method
- configuration is specified.
+ The default configuration is used whenever a payment method
+ configuration is not specified.
type: boolean
jcb:
$ref: >-
@@ -21980,16 +25971,10 @@ components:
Has the value `true` if the object exists in live mode or the value
`false` if the object exists in test mode.
type: boolean
- multibanco:
- $ref: >-
- #/components/schemas/payment_method_config_resource_payment_method_properties
name:
- description: Configuration name.
+ description: The configuration's name.
maxLength: 5000
type: string
- netbanking:
- $ref: >-
- #/components/schemas/payment_method_config_resource_payment_method_properties
object:
description: >-
String representing the object's type. Objects of the same type
@@ -22004,13 +25989,10 @@ components:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
parent:
- description: The configuration's parent configuration.
+ description: 'For child configs, the configuration''s parent configuration.'
maxLength: 5000
nullable: true
type: string
- pay_by_bank:
- $ref: >-
- #/components/schemas/payment_method_config_resource_payment_method_properties
paynow:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
@@ -22020,13 +26002,13 @@ components:
promptpay:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
- sepa_debit:
+ revolut_pay:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
- sofort:
+ sepa_debit:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
- upi:
+ sofort:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
us_bank_account:
@@ -22035,6 +26017,9 @@ components:
wechat_pay:
$ref: >-
#/components/schemas/payment_method_config_resource_payment_method_properties
+ zip:
+ $ref: >-
+ #/components/schemas/payment_method_config_resource_payment_method_properties
required:
- active
- id
@@ -22058,30 +26043,28 @@ components:
- card
- cartes_bancaires
- cashapp
+ - customer_balance
- eps
- fpx
- giropay
- google_pay
- grabpay
- - id_bank_transfer
- ideal
- jcb
- klarna
- konbini
- link
- - multibanco
- - netbanking
- oxxo
- p24
- - pay_by_bank
- paynow
- paypal
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
- - upi
- us_bank_account
- wechat_pay
+ - zip
x-resourceId: payment_method_configuration
payment_method_customer_balance:
description: ''
@@ -22141,6 +26124,8 @@ components:
$ref: '#/components/schemas/payment_method_details_konbini'
link:
$ref: '#/components/schemas/payment_method_details_link'
+ mobilepay:
+ $ref: '#/components/schemas/payment_method_details_mobilepay'
multibanco:
$ref: '#/components/schemas/payment_method_details_multibanco'
oxxo:
@@ -22155,12 +26140,16 @@ components:
$ref: '#/components/schemas/payment_method_details_pix'
promptpay:
$ref: '#/components/schemas/payment_method_details_promptpay'
+ revolut_pay:
+ $ref: '#/components/schemas/payment_method_details_revolut_pay'
sepa_debit:
$ref: '#/components/schemas/payment_method_details_sepa_debit'
sofort:
$ref: '#/components/schemas/payment_method_details_sofort'
stripe_account:
$ref: '#/components/schemas/payment_method_details_stripe_account'
+ swish:
+ $ref: '#/components/schemas/payment_method_details_swish'
type:
description: >-
The type of transaction-specific details of the payment method used
@@ -22212,6 +26201,7 @@ components:
- klarna
- konbini
- link
+ - mobilepay
- multibanco
- oxxo
- p24
@@ -22219,9 +26209,11 @@ components:
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
- stripe_account
+ - swish
- us_bank_account
- wechat
- wechat_pay
@@ -22508,6 +26500,10 @@ components:
payment_method_details_card:
description: ''
properties:
+ amount_authorized:
+ description: The authorized amount.
+ nullable: true
+ type: integer
brand:
description: >-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`,
@@ -22515,6 +26511,12 @@ components:
maxLength: 5000
nullable: true
type: string
+ capture_before:
+ description: >-
+ When using manual capture, a future timestamp at which the charge
+ will be automatically refunded if uncaptured.
+ format: unix-time
+ type: integer
checks:
anyOf:
- $ref: '#/components/schemas/payment_method_details_card_checks'
@@ -22536,6 +26538,9 @@ components:
exp_year:
description: Four-digit number representing the card's expiration year.
type: integer
+ extended_authorization:
+ $ref: >-
+ #/components/schemas/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization
fingerprint:
description: >-
Uniquely identifies this particular card number. You can use this
@@ -22559,6 +26564,9 @@ components:
maxLength: 5000
nullable: true
type: string
+ incremental_authorization:
+ $ref: >-
+ #/components/schemas/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization
installments:
anyOf:
- $ref: '#/components/schemas/payment_method_details_card_installments'
@@ -22579,6 +26587,9 @@ components:
maxLength: 5000
nullable: true
type: string
+ multicapture:
+ $ref: >-
+ #/components/schemas/payment_flows_private_payment_methods_card_details_api_resource_multicapture
network:
description: >-
Identifies which network this charge was processed on. Can be
@@ -22594,6 +26605,9 @@ components:
If this card has network token credentials, this contains the
details of the network token credentials.
nullable: true
+ overcapture:
+ $ref: >-
+ #/components/schemas/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture
three_d_secure:
anyOf:
- $ref: '#/components/schemas/three_d_secure_details_charge'
@@ -22613,8 +26627,12 @@ components:
type: object
x-expandableFields:
- checks
+ - extended_authorization
+ - incremental_authorization
- installments
+ - multicapture
- network_token
+ - overcapture
- three_d_secure
- wallet
payment_method_details_card_checks:
@@ -22802,6 +26820,11 @@ components:
maxLength: 5000
nullable: true
type: string
+ offline:
+ anyOf:
+ - $ref: '#/components/schemas/payment_method_details_card_present_offline'
+ description: Details about payments collected offline.
+ nullable: true
overcapture_supported:
description: Defines whether the authorized amount can be over-captured or not
type: boolean
@@ -22830,7 +26853,19 @@ components:
title: payment_method_details_card_present
type: object
x-expandableFields:
+ - offline
- receipt
+ payment_method_details_card_present_offline:
+ description: ''
+ properties:
+ stored_at:
+ description: Time at which the payment was collected while offline
+ format: unix-time
+ nullable: true
+ type: integer
+ title: payment_method_details_card_present_offline
+ type: object
+ x-expandableFields: []
payment_method_details_card_present_receipt:
description: ''
properties:
@@ -22864,7 +26899,11 @@ components:
nullable: true
type: string
cardholder_verification_method:
- description: How the cardholder verified ownership of the card.
+ description: >-
+ Describes the method used by the cardholder to verify ownership of
+ the card. One of the following: `approval`, `failure`, `none`,
+ `offline_pin`, `offline_pin_and_signature`, `online_pin`, or
+ `signature`.
maxLength: 5000
nullable: true
type: string
@@ -23244,7 +27283,7 @@ components:
bank:
description: >-
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`,
- `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`,
+ `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`,
`regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`,
or `yoursafe`.
enum:
@@ -23256,6 +27295,7 @@ components:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -23277,6 +27317,7 @@ components:
- INGBNL2A
- KNABNL2H
- MOYONL21
+ - NNBANL2G
- NTSBDEB1
- RABONL2U
- RBRBNL21
@@ -23480,7 +27521,11 @@ components:
nullable: true
type: string
cardholder_verification_method:
- description: How the cardholder verified ownership of the card.
+ description: >-
+ Describes the method used by the cardholder to verify ownership of
+ the card. One of the following: `approval`, `failure`, `none`,
+ `offline_pin`, `offline_pin_and_signature`, `online_pin`, or
+ `signature`.
maxLength: 5000
nullable: true
type: string
@@ -23584,6 +27629,17 @@ components:
title: payment_method_details_link
type: object
x-expandableFields: []
+ payment_method_details_mobilepay:
+ description: ''
+ properties:
+ card:
+ anyOf:
+ - $ref: '#/components/schemas/internal_card'
+ nullable: true
+ title: payment_method_details_mobilepay
+ type: object
+ x-expandableFields:
+ - card
payment_method_details_multibanco:
description: ''
properties:
@@ -23618,11 +27674,12 @@ components:
description: >-
The customer's bank. Can be one of `ing`, `citi_handlowy`,
`tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`,
- `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`,
- `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`,
- `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`,
- `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`,
- `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
+ `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`,
+ `blik`, `noble_pay`, `ideabank`, `envelobank`,
+ `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`,
+ `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`,
+ `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`,
+ `bank_millennium`, `alior_bank`, or `boz`.
enum:
- alior_bank
- bank_millennium
@@ -23648,6 +27705,7 @@ components:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
nullable: true
type: string
@@ -23749,6 +27807,12 @@ components:
title: payment_method_details_promptpay
type: object
x-expandableFields: []
+ payment_method_details_revolut_pay:
+ description: ''
+ properties: {}
+ title: payment_method_details_revolut_pay
+ type: object
+ x-expandableFields: []
payment_method_details_sepa_debit:
description: ''
properties:
@@ -23782,7 +27846,11 @@ components:
nullable: true
type: string
mandate:
- description: ID of the mandate used to make this payment.
+ description: >-
+ Find the ID of the mandate used for this payment under the
+ [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate)
+ property on the Charge. Use this mandate ID to [retrieve the
+ Mandate](https://stripe.com/docs/api/mandates/retrieve).
maxLength: 5000
nullable: true
type: string
@@ -23880,6 +27948,30 @@ components:
title: payment_method_details_stripe_account
type: object
x-expandableFields: []
+ payment_method_details_swish:
+ description: ''
+ properties:
+ fingerprint:
+ description: >-
+ Uniquely identifies the payer's Swish account. You can use this
+ attribute to check whether two Swish transactions were paid for by
+ the same payer
+ maxLength: 5000
+ nullable: true
+ type: string
+ payment_reference:
+ description: Payer bank reference number for the payment
+ maxLength: 5000
+ nullable: true
+ type: string
+ verified_phone_last4:
+ description: The last four digits of the Swish account phone number
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: payment_method_details_swish
+ type: object
+ x-expandableFields: []
payment_method_details_us_bank_account:
description: ''
properties:
@@ -23914,6 +28006,20 @@ components:
maxLength: 5000
nullable: true
type: string
+ mandate:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/mandate'
+ description: ID of the mandate used to make this payment.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/mandate'
+ payment_reference:
+ description: Reference number to locate ACH payments with customer's bank.
+ maxLength: 5000
+ nullable: true
+ type: string
routing_number:
description: Routing number of the bank account.
maxLength: 5000
@@ -23921,7 +28027,8 @@ components:
type: string
title: payment_method_details_us_bank_account
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - mandate
payment_method_details_wechat:
description: ''
properties: {}
@@ -24175,7 +28282,7 @@ components:
description: >-
The customer's bank, if provided. Can be one of `abn_amro`,
`asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`,
- `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`,
+ `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`,
`triodos_bank`, `van_lanschot`, or `yoursafe`.
enum:
- abn_amro
@@ -24186,6 +28293,7 @@ components:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -24209,6 +28317,7 @@ components:
- INGBNL2A
- KNABNL2H
- MOYONL21
+ - NNBANL2G
- NTSBDEB1
- RABONL2U
- RBRBNL21
@@ -24346,6 +28455,12 @@ components:
title: payment_method_link
type: object
x-expandableFields: []
+ payment_method_mobilepay:
+ description: ''
+ properties: {}
+ title: payment_method_mobilepay
+ type: object
+ x-expandableFields: []
payment_method_options_affirm:
description: ''
properties:
@@ -24399,12 +28514,11 @@ components:
type: string
reference:
description: >-
- Order identifier shown to the customer in Afterpay’s online portal.
- We recommend using a value that helps you answer any questions a
- customer might have about
+ An internal identifier or reference that this payment corresponds
+ to. You must limit the identifier to 128 characters, and it can only
+ contain letters, numbers, underscores, backslashes, and dashes.
- the payment. The identifier is limited to 128 characters and may
- contain only letters, digits, underscores, backslashes and dashes.
+ This field differs from the statement descriptor and item name.
maxLength: 5000
nullable: true
type: string
@@ -25003,6 +29117,7 @@ components:
enum:
- none
type: string
+ x-stripeBypassValidation: true
title: payment_method_options_klarna
type: object
x-expandableFields: []
@@ -25274,6 +29389,12 @@ components:
title: payment_method_options_promptpay
type: object
x-expandableFields: []
+ payment_method_options_revolut_pay:
+ description: ''
+ properties: {}
+ title: payment_method_options_revolut_pay
+ type: object
+ x-expandableFields: []
payment_method_options_sofort:
description: ''
properties:
@@ -25317,6 +29438,18 @@ components:
title: payment_method_options_sofort
type: object
x-expandableFields: []
+ payment_method_options_us_bank_account_mandate_options:
+ description: ''
+ properties:
+ collection_method:
+ description: Mandate collection method
+ enum:
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: payment_method_options_us_bank_account_mandate_options
+ type: object
+ x-expandableFields: []
payment_method_options_wechat_pay:
description: ''
properties:
@@ -25425,6 +29558,7 @@ components:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
nullable: true
type: string
@@ -25472,6 +29606,12 @@ components:
title: payment_method_promptpay
type: object
x-expandableFields: []
+ payment_method_revolut_pay:
+ description: ''
+ properties: {}
+ title: payment_method_revolut_pay
+ type: object
+ x-expandableFields: []
payment_method_sepa_debit:
description: ''
properties:
@@ -25526,6 +29666,12 @@ components:
title: payment_method_sofort
type: object
x-expandableFields: []
+ payment_method_swish:
+ description: ''
+ properties: {}
+ title: payment_method_swish
+ type: object
+ x-expandableFields: []
payment_method_us_bank_account:
description: ''
properties:
@@ -25704,6 +29850,15 @@ components:
enabled:
description: Indicates whether automatic tax is enabled for the session
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
status:
description: >-
The status of the most recent automated tax calculation for this
@@ -25718,7 +29873,8 @@ components:
- enabled
title: PaymentPagesCheckoutSessionAutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
payment_pages_checkout_session_consent:
description: ''
properties:
@@ -25748,6 +29904,14 @@ components:
payment_pages_checkout_session_consent_collection:
description: ''
properties:
+ payment_method_reuse_agreement:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/payment_pages_checkout_session_payment_method_reuse_agreement
+ description: >-
+ If set to `hidden`, it will hide legal text related to the reuse of
+ a payment method.
+ nullable: true
promotions:
description: >-
If set to `auto`, enables the collection of customer consent for
@@ -25774,7 +29938,8 @@ components:
type: string
title: PaymentPagesCheckoutSessionConsentCollection
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - payment_method_reuse_agreement
payment_pages_checkout_session_currency_conversion:
description: ''
properties:
@@ -25810,11 +29975,8 @@ components:
description: ''
properties:
dropdown:
- anyOf:
- - $ref: >-
- #/components/schemas/payment_pages_checkout_session_custom_fields_dropdown
- description: Configuration for `type=dropdown` fields.
- nullable: true
+ $ref: >-
+ #/components/schemas/payment_pages_checkout_session_custom_fields_dropdown
key:
description: >-
String of your choice that your integration can use to reconcile
@@ -25826,22 +29988,16 @@ components:
$ref: >-
#/components/schemas/payment_pages_checkout_session_custom_fields_label
numeric:
- anyOf:
- - $ref: >-
- #/components/schemas/payment_pages_checkout_session_custom_fields_numeric
- description: Configuration for `type=numeric` fields.
- nullable: true
+ $ref: >-
+ #/components/schemas/payment_pages_checkout_session_custom_fields_numeric
optional:
description: >-
Whether the customer is required to complete the field before
completing the Checkout Session. Defaults to `false`.
type: boolean
text:
- anyOf:
- - $ref: >-
- #/components/schemas/payment_pages_checkout_session_custom_fields_text
- description: Configuration for `type=text` fields.
- nullable: true
+ $ref: >-
+ #/components/schemas/payment_pages_checkout_session_custom_fields_text
type:
description: The type of the field.
enum:
@@ -25969,6 +30125,14 @@ components:
payment_pages_checkout_session_custom_text:
description: ''
properties:
+ after_submit:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/payment_pages_checkout_session_custom_text_position
+ description: >-
+ Custom text that should be displayed after the payment confirmation
+ button.
+ nullable: true
shipping_address:
anyOf:
- $ref: >-
@@ -25996,6 +30160,7 @@ components:
title: PaymentPagesCheckoutSessionCustomText
type: object
x-expandableFields:
+ - after_submit
- shipping_address
- submit
- terms_of_service_acceptance
@@ -26117,6 +30282,14 @@ components:
maxLength: 5000
nullable: true
type: string
+ issuer:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The connected account that issues the invoice. The invoice is
+ presented with the branding and support information of the specified
+ account.
+ nullable: true
metadata:
additionalProperties:
maxLength: 500
@@ -26137,7 +30310,29 @@ components:
x-expandableFields:
- account_tax_ids
- custom_fields
+ - issuer
- rendering_options
+ payment_pages_checkout_session_payment_method_reuse_agreement:
+ description: ''
+ properties:
+ position:
+ description: >-
+ Determines the position and visibility of the payment method reuse
+ agreement in the UI. When set to `auto`, Stripe's defaults will be
+ used.
+
+
+ When set to `hidden`, the payment method reuse agreement text will
+ always be hidden in the UI.
+ enum:
+ - auto
+ - hidden
+ type: string
+ required:
+ - position
+ title: PaymentPagesCheckoutSessionPaymentMethodReuseAgreement
+ type: object
+ x-expandableFields: []
payment_pages_checkout_session_phone_number_collection:
description: ''
properties:
@@ -26474,10 +30669,10 @@ components:
`bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`,
`do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`,
`sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`,
- `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`,
- `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`,
- `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`,
- `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
+ `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`,
+ `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`,
+ `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`,
+ `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
`ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`,
`sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`,
`is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`,
@@ -26528,6 +30723,7 @@ components:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -26933,6 +31129,8 @@ components:
description: The account the person is associated with.
maxLength: 5000
type: string
+ additional_tos_acceptances:
+ $ref: '#/components/schemas/person_additional_tos_acceptances'
address:
$ref: '#/components/schemas/address'
address_kana:
@@ -27080,6 +31278,7 @@ components:
title: Person
type: object
x-expandableFields:
+ - additional_tos_acceptances
- address
- address_kana
- address_kanji
@@ -27090,6 +31289,44 @@ components:
- requirements
- verification
x-resourceId: person
+ person_additional_tos_acceptance:
+ description: ''
+ properties:
+ date:
+ description: >-
+ The Unix timestamp marking when the legal guardian accepted the
+ service agreement.
+ format: unix-time
+ nullable: true
+ type: integer
+ ip:
+ description: >-
+ The IP address from which the legal guardian accepted the service
+ agreement.
+ maxLength: 5000
+ nullable: true
+ type: string
+ user_agent:
+ description: >-
+ The user agent of the browser from which the legal guardian accepted
+ the service agreement.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: PersonAdditionalTOSAcceptance
+ type: object
+ x-expandableFields: []
+ person_additional_tos_acceptances:
+ description: ''
+ properties:
+ account:
+ $ref: '#/components/schemas/person_additional_tos_acceptance'
+ required:
+ - account
+ title: PersonAdditionalTOSAcceptances
+ type: object
+ x-expandableFields:
+ - account
person_future_requirements:
description: ''
properties:
@@ -27179,6 +31416,12 @@ components:
manage, or direct the organization.
nullable: true
type: boolean
+ legal_guardian:
+ description: >-
+ Whether the person is the legal guardian of the account's
+ representative.
+ nullable: true
+ type: boolean
owner:
description: Whether the person is an owner of the account’s legal entity.
nullable: true
@@ -27391,6 +31634,11 @@ components:
additional information about the object in a structured format.
nullable: true
type: object
+ meter:
+ description: The meter tracking the usage of a metered price
+ maxLength: 5000
+ nullable: true
+ type: string
nickname:
description: 'A brief description of the plan, hidden from customers.'
maxLength: 5000
@@ -27602,8 +31850,6 @@ components:
$ref: '#/components/schemas/portal_payment_method_update'
subscription_cancel:
$ref: '#/components/schemas/portal_subscription_cancel'
- subscription_pause:
- $ref: '#/components/schemas/portal_subscription_pause'
subscription_update:
$ref: '#/components/schemas/portal_subscription_update'
required:
@@ -27611,7 +31857,6 @@ components:
- invoice_history
- payment_method_update
- subscription_cancel
- - subscription_pause
- subscription_update
title: PortalFeatures
type: object
@@ -27620,7 +31865,6 @@ components:
- invoice_history
- payment_method_update
- subscription_cancel
- - subscription_pause
- subscription_update
portal_flows_after_completion_hosted_confirmation:
description: ''
@@ -27841,7 +32085,7 @@ components:
description: >-
The price the customer should subscribe to through this flow. The
price must also be included in the configuration's
- [`features.subscription_update.products`](docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
+ [`features.subscription_update.products`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
maxLength: 5000
nullable: true
type: string
@@ -27961,17 +32205,6 @@ components:
title: PortalSubscriptionCancellationReason
type: object
x-expandableFields: []
- portal_subscription_pause:
- description: ''
- properties:
- enabled:
- description: Whether the feature is enabled.
- type: boolean
- required:
- - enabled
- title: PortalSubscriptionPause
- type: object
- x-expandableFields: []
portal_subscription_update:
description: ''
properties:
@@ -27991,7 +32224,7 @@ components:
description: Whether the feature is enabled.
type: boolean
products:
- description: The list of products that support subscription updates.
+ description: The list of up to 10 products that support subscription updates.
items:
$ref: '#/components/schemas/portal_subscription_update_product'
nullable: true
@@ -28000,7 +32233,8 @@ components:
description: >-
Determines how to handle prorations resulting from subscription
updates. Valid values are `none`, `create_prorations`, and
- `always_invoice`.
+ `always_invoice`. Defaults to a value of `none` if you don't set it
+ during creation.
enum:
- always_invoice
- create_prorations
@@ -28329,11 +32563,11 @@ components:
type: string
features:
description: >-
- A list of up to 15 features for this product. These are displayed in
- [pricing
+ A list of up to 15 marketing features for this product. These are
+ displayed in [pricing
tables](https://stripe.com/docs/payments/checkout/pricing-table).
items:
- $ref: '#/components/schemas/product_feature'
+ $ref: '#/components/schemas/product_marketing_feature'
type: array
id:
description: Unique identifier for the object.
@@ -28437,16 +32671,14 @@ components:
- package_dimensions
- tax_code
x-resourceId: product
- product_feature:
+ product_marketing_feature:
description: ''
properties:
name:
- description: The feature's name. Up to 80 characters long.
+ description: The marketing feature name. Up to 80 characters long.
maxLength: 5000
type: string
- required:
- - name
- title: ProductFeature
+ title: ProductMarketingFeature
type: object
x-expandableFields: []
promotion_code:
@@ -28750,10 +32982,7 @@ components:
- $ref: '#/components/schemas/invoice'
- $ref: '#/components/schemas/deleted_invoice'
invoice_settings:
- anyOf:
- - $ref: '#/components/schemas/invoice_setting_quote_setting'
- description: All invoices will be billed using the specified settings.
- nullable: true
+ $ref: '#/components/schemas/invoice_setting_quote_setting'
line_items:
description: A list of items the customer is being quoted for.
properties:
@@ -28895,6 +33124,7 @@ components:
- discounts
- expires_at
- id
+ - invoice_settings
- livemode
- metadata
- object
@@ -28930,6 +33160,15 @@ components:
enabled:
description: Automatically calculate taxes
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
status:
description: >-
The status of the most recent automated tax calculation for this
@@ -28944,7 +33183,8 @@ components:
- enabled
title: QuotesResourceAutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
quotes_resource_computed:
description: ''
properties:
@@ -29059,7 +33299,8 @@ components:
description: >-
The subscription's description, meant to be displayable to the
customer. Use this field to optionally store an explanation of the
- subscription.
+ subscription for rendering in Stripe surfaces and certain local
+ payment methods UIs.
maxLength: 5000
nullable: true
type: string
@@ -29072,6 +33313,22 @@ components:
format: unix-time
nullable: true
type: integer
+ metadata:
+ additionalProperties:
+ maxLength: 500
+ type: string
+ description: >-
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
+ will set metadata on the subscription or subscription schedule when
+ the quote is accepted. If a recurring price is included in
+ `line_items`, this field will be passed to the resulting
+ subscription's `metadata` field. If
+ `subscription_data.effective_date` is used, this field will be
+ passed to the resulting subscription schedule's `phases.metadata`
+ field. Unlike object-level metadata, this field is declarative.
+ Updates will clear prior values.
+ nullable: true
+ type: object
trial_period_days:
description: >-
Integer representing the number of trial period days before the
@@ -29576,12 +33833,7 @@ components:
aggregate_usage:
description: >-
Specifies a usage aggregation strategy for prices of
- `usage_type=metered`. Allowed values are `sum` for summing up all
- usage during a period, `last_during_period` for using the last usage
- record reported within a period, `last_ever` for using the last
- usage record ever (across period bounds) or `max` which uses the
- usage record with the maximum reported usage during a period.
- Defaults to `sum`.
+ `usage_type=metered`. Defaults to `sum`.
enum:
- last_during_period
- last_ever
@@ -29605,6 +33857,11 @@ components:
between subscription billings. For example, `interval=month` and
`interval_count=3` bills every 3 months.
type: integer
+ meter:
+ description: The meter tracking the usage of a metered price
+ maxLength: 5000
+ nullable: true
+ type: string
usage_type:
description: >-
Configures how the quantity per period should be determined. Can be
@@ -29625,13 +33882,12 @@ components:
x-expandableFields: []
refund:
description: >-
- `Refund` objects allow you to refund a charge that has previously been
- created
+ Refund objects allow you to refund a previously created charge that
+ isn't
- but not yet refunded. Funds will be refunded to the credit or debit card
- that
+ refunded yet. Funds are refunded to the credit or debit card that's
- was originally charged.
+ initially charged.
Related guide: [Refunds](https://stripe.com/docs/refunds)
@@ -29656,7 +33912,7 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/charge'
- description: ID of the charge that was refunded.
+ description: ID of the charge that's refunded.
nullable: true
x-expansionResources:
oneOf:
@@ -29676,17 +33932,19 @@ components:
type: string
description:
description: >-
- An arbitrary string attached to the object. Often useful for
- displaying to users. (Available on non-card refunds only)
+ An arbitrary string attached to the object. You can use this for
+ displaying to users (available on non-card refunds only).
maxLength: 5000
type: string
+ destination_details:
+ $ref: '#/components/schemas/refund_destination_details'
failure_balance_transaction:
anyOf:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/balance_transaction'
description: >-
- If the refund failed, this balance transaction describes the
+ After the refund fails, this balance transaction describes the
adjustment made on your account balance that reverses the initial
balance transaction.
x-expansionResources:
@@ -29694,10 +33952,10 @@ components:
- $ref: '#/components/schemas/balance_transaction'
failure_reason:
description: >-
- If the refund failed, the reason for refund failure if known.
- Possible values are `lost_or_stolen_card`,
- `expired_or_canceled_card`, `charge_for_pending_refund_disputed`,
- `insufficient_funds`, `declined`, `merchant_request` or `unknown`.
+ Provides the reason for the refund failure. Possible values are:
+ `lost_or_stolen_card`, `expired_or_canceled_card`,
+ `charge_for_pending_refund_disputed`, `insufficient_funds`,
+ `declined`, `merchant_request`, or `unknown`.
maxLength: 5000
type: string
id:
@@ -29706,8 +33964,9 @@ components:
type: string
instructions_email:
description: >-
- For payment methods without native refund support (e.g., Konbini,
- PromptPay), email for the customer to receive refund instructions.
+ For payment methods without native refund support (for example,
+ Konbini, PromptPay), provide an email address for the customer to
+ receive refund instructions.
maxLength: 5000
type: string
metadata:
@@ -29734,14 +33993,14 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/payment_intent'
- description: ID of the PaymentIntent that was refunded.
+ description: ID of the PaymentIntent that's refunded.
nullable: true
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/payment_intent'
reason:
description: >-
- Reason for the refund, either user-provided (`duplicate`,
+ Reason for the refund, which is either user-provided (`duplicate`,
`fraudulent`, or `requested_by_customer`) or generated by Stripe
internally (`expired_uncaptured_charge`).
enum:
@@ -29765,21 +34024,17 @@ components:
type: string
- $ref: '#/components/schemas/transfer_reversal'
description: >-
- The transfer reversal that is associated with the refund. Only
- present if the charge came from another Stripe account. See the
- Connect documentation for details.
+ The transfer reversal that's associated with the refund. Only
+ present if the charge came from another Stripe account.
nullable: true
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/transfer_reversal'
status:
description: >-
- Status of the refund. For credit card refunds, this can be
- `pending`, `succeeded`, or `failed`. For other types of refunds, it
- can be `pending`, `requires_action`, `succeeded`, `failed`, or
- `canceled`. Refer to our
- [refunds](https://stripe.com/docs/refunds#failed-refunds)
- documentation for more details.
+ Status of the refund. This can be `pending`, `requires_action`,
+ `succeeded`, `failed`, or `canceled`. Learn more about [failed
+ refunds](https://stripe.com/docs/refunds#failed-refunds).
maxLength: 5000
nullable: true
type: string
@@ -29789,9 +34044,9 @@ components:
type: string
- $ref: '#/components/schemas/transfer_reversal'
description: >-
- If the accompanying transfer was reversed, the transfer reversal
- object. Only applicable if the charge was created using the
- destination parameter.
+ This refers to the transfer reversal object if the accompanying
+ transfer reverses. This is only applicable if the charge was created
+ using the destination parameter.
nullable: true
x-expansionResources:
oneOf:
@@ -29807,12 +34062,160 @@ components:
x-expandableFields:
- balance_transaction
- charge
+ - destination_details
- failure_balance_transaction
- next_action
- payment_intent
- source_transfer_reversal
- transfer_reversal
x-resourceId: refund
+ refund_destination_details:
+ description: ''
+ properties:
+ affirm:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ afterpay_clearpay:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ alipay:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ au_bank_transfer:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ blik:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ br_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ card:
+ $ref: '#/components/schemas/refund_destination_details_card'
+ cashapp:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ customer_cash_balance:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ eps:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ eu_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ gb_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ giropay:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ grabpay:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ jp_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ klarna:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ mx_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ p24:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ paynow:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ paypal:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ pix:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ revolut:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ sofort:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ swish:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ th_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ type:
+ description: >-
+ The type of transaction-specific details of the payment method used
+ in the refund (e.g., `card`). An additional hash is included on
+ `destination_details` with a name matching this value. It contains
+ information specific to the refund transaction.
+ maxLength: 5000
+ type: string
+ us_bank_transfer:
+ $ref: '#/components/schemas/refund_destination_details_generic'
+ wechat_pay:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ zip:
+ $ref: '#/components/schemas/destination_details_unimplemented'
+ required:
+ - type
+ title: refund_destination_details
+ type: object
+ x-expandableFields:
+ - affirm
+ - afterpay_clearpay
+ - alipay
+ - au_bank_transfer
+ - blik
+ - br_bank_transfer
+ - card
+ - cashapp
+ - customer_cash_balance
+ - eps
+ - eu_bank_transfer
+ - gb_bank_transfer
+ - giropay
+ - grabpay
+ - jp_bank_transfer
+ - klarna
+ - mx_bank_transfer
+ - p24
+ - paynow
+ - paypal
+ - pix
+ - revolut
+ - sofort
+ - swish
+ - th_bank_transfer
+ - us_bank_transfer
+ - wechat_pay
+ - zip
+ refund_destination_details_card:
+ description: ''
+ properties:
+ reference:
+ description: Value of the reference number assigned to the refund.
+ maxLength: 5000
+ type: string
+ reference_status:
+ description: >-
+ Status of the reference number on the refund. This can be `pending`,
+ `available` or `unavailable`.
+ maxLength: 5000
+ type: string
+ reference_type:
+ description: Type of the reference number assigned to the refund.
+ maxLength: 5000
+ type: string
+ type:
+ description: 'The type of refund. This can be `refund`, `reversal`, or `pending`.'
+ enum:
+ - pending
+ - refund
+ - reversal
+ type: string
+ required:
+ - type
+ title: refund_destination_details_card
+ type: object
+ x-expandableFields: []
+ refund_destination_details_generic:
+ description: ''
+ properties:
+ reference:
+ description: The reference assigned to the refund.
+ maxLength: 5000
+ nullable: true
+ type: string
+ reference_status:
+ description: >-
+ Status of the reference on the refund. This can be `pending`,
+ `available` or `unavailable`.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: refund_destination_details_generic
+ type: object
+ x-expandableFields: []
refund_next_action:
description: ''
properties:
@@ -30312,11 +34715,21 @@ components:
Whether Stripe automatically computes tax on invoices created during
this phase.
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
required:
- enabled
title: SchedulesPhaseAutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
secret_service_resource_scope:
description: ''
properties:
@@ -30702,7 +35115,8 @@ components:
type: string
checks:
anyOf:
- - $ref: '#/components/schemas/payment_method_details_card_checks'
+ - $ref: >-
+ #/components/schemas/setup_attempt_payment_method_details_card_checks
description: >-
Check results by Card networks on Card address and CVC at the time
of authorization
@@ -30778,6 +35192,33 @@ components:
- checks
- three_d_secure
- wallet
+ setup_attempt_payment_method_details_card_checks:
+ description: ''
+ properties:
+ address_line1_check:
+ description: >-
+ If a address line1 was provided, results of the check, one of
+ `pass`, `fail`, `unavailable`, or `unchecked`.
+ maxLength: 5000
+ nullable: true
+ type: string
+ address_postal_code_check:
+ description: >-
+ If a address postal code was provided, results of the check, one of
+ `pass`, `fail`, `unavailable`, or `unchecked`.
+ maxLength: 5000
+ nullable: true
+ type: string
+ cvc_check:
+ description: >-
+ If a CVC was provided, results of the check, one of `pass`, `fail`,
+ `unavailable`, or `unchecked`.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: setup_attempt_payment_method_details_card_checks
+ type: object
+ x-expandableFields: []
setup_attempt_payment_method_details_card_present:
description: ''
properties:
@@ -30793,10 +35234,16 @@ components:
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/payment_method'
+ offline:
+ anyOf:
+ - $ref: '#/components/schemas/payment_method_details_card_present_offline'
+ description: Details about payments collected offline.
+ nullable: true
title: setup_attempt_payment_method_details_card_present
type: object
x-expandableFields:
- generated_card
+ - offline
setup_attempt_payment_method_details_card_wallet:
description: ''
properties:
@@ -30834,7 +35281,7 @@ components:
bank:
description: >-
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`,
- `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`,
+ `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`,
`regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`,
or `yoursafe`.
enum:
@@ -30846,6 +35293,7 @@ components:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -30867,6 +35315,7 @@ components:
- INGBNL2A
- KNABNL2H
- MOYONL21
+ - NNBANL2G
- NTSBDEB1
- RABONL2U
- RBRBNL21
@@ -31030,7 +35479,7 @@ components:
A SetupIntent guides you through the process of setting up and saving a
customer's payment credentials for future payments.
- For example, you could use a SetupIntent to set up and save your
+ For example, you can use a SetupIntent to set up and save your
customer's card without immediately collecting a payment.
Later, you can use
@@ -31038,13 +35487,13 @@ components:
the payment flow.
- Create a SetupIntent as soon as you're ready to collect your customer's
+ Create a SetupIntent when you're ready to collect your customer's
payment credentials.
- Do not maintain long-lived, unconfirmed SetupIntents as they may no
- longer be valid.
+ Don't maintain long-lived, unconfirmed SetupIntents because they might
+ not be valid.
- The SetupIntent then transitions through multiple
+ The SetupIntent transitions through multiple
[statuses](https://stripe.com/docs/payments/intents#intent-statuses) as
it guides
@@ -31055,35 +35504,32 @@ components:
for future payments.
For example, cardholders in [certain
- regions](/guides/strong-customer-authentication) may need to be run
+ regions](/guides/strong-customer-authentication) might need to be run
through
[Strong Customer
Authentication](https://stripe.com/docs/strong-customer-authentication)
- at the time of payment method collection
+ during payment method collection
- in order to streamline later [off-session
+ to streamline later [off-session
payments](https://stripe.com/docs/payments/setup-intents).
- If the SetupIntent is used with a
+ If you use the SetupIntent with a
[Customer](https://stripe.com/docs/api#setup_intent_object-customer),
- upon success,
- it will automatically attach the resulting payment method to that
- Customer.
+ it automatically attaches the resulting payment method to that Customer
+ after successful setup.
We recommend using SetupIntents or
[setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage)
on
- PaymentIntents to save payment methods in order to prevent saving
- invalid or unoptimized payment methods.
-
+ PaymentIntents to save payment methods to prevent saving invalid or
+ unoptimized payment methods.
- By using SetupIntents, you ensure that your customers experience the
- minimum set of required friction,
- even as regulations change over time.
+ By using SetupIntents, you can reduce friction for your customers, even
+ as regulations change over time.
Related guide: [Setup Intents
@@ -31279,7 +35725,7 @@ components:
payment_method_options:
anyOf:
- $ref: '#/components/schemas/setup_intent_payment_method_options'
- description: Payment-method-specific configuration for this SetupIntent.
+ description: Payment method-specific configuration for this SetupIntent.
nullable: true
payment_method_types:
description: >-
@@ -31439,6 +35885,12 @@ components:
#/components/schemas/setup_intent_type_specific_payment_method_options_client
card:
$ref: '#/components/schemas/setup_intent_payment_method_options_card'
+ card_present:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/setup_intent_payment_method_options_card_present
+ - $ref: >-
+ #/components/schemas/setup_intent_type_specific_payment_method_options_client
link:
anyOf:
- $ref: '#/components/schemas/setup_intent_payment_method_options_link'
@@ -31466,6 +35918,7 @@ components:
x-expandableFields:
- acss_debit
- card
+ - card_present
- link
- paypal
- sepa_debit
@@ -31532,18 +35985,18 @@ components:
level and [other
requirements](https://stripe.com/docs/strong-customer-authentication).
However, if you wish to request 3D Secure based on logic from your
- own fraud engine, provide this option. Permitted values include:
- `automatic` or `any`. If not provided, defaults to `automatic`. Read
- our guide on [manually requesting 3D
- Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds)
+ own fraud engine, provide this option. If not provided, this value
+ defaults to `automatic`. Read our guide on [manually requesting 3D
+ Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds)
for more information on how this configuration interacts with Radar
and our SCA Engine.
enum:
- any
- automatic
- - challenge_only
+ - challenge
nullable: true
type: string
+ x-stripeBypassValidation: true
title: setup_intent_payment_method_options_card
type: object
x-expandableFields:
@@ -31636,6 +36089,12 @@ components:
title: setup_intent_payment_method_options_card_mandate_options
type: object
x-expandableFields: []
+ setup_intent_payment_method_options_card_present:
+ description: ''
+ properties: {}
+ title: setup_intent_payment_method_options_card_present
+ type: object
+ x-expandableFields: []
setup_intent_payment_method_options_link:
description: ''
properties: {}
@@ -31719,6 +36178,9 @@ components:
properties:
financial_connections:
$ref: '#/components/schemas/linked_account_options_us_bank_account'
+ mandate_options:
+ $ref: >-
+ #/components/schemas/payment_method_options_us_bank_account_mandate_options
verification_method:
description: Bank account verification method.
enum:
@@ -31731,6 +36193,7 @@ components:
type: object
x-expandableFields:
- financial_connections
+ - mandate_options
setup_intent_type_specific_payment_method_options_client:
description: ''
properties:
@@ -33305,11 +37768,19 @@ components:
$ref: '#/components/schemas/subscription_automatic_tax'
billing_cycle_anchor:
description: >-
- Determines the date of the first full invoice, and, for plans with
- `month` or `year` intervals, the day of the month for subsequent
- invoices. The timestamp is in UTC format.
+ The reference point that aligns future [billing
+ cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates.
+ It sets the day of week for `week` intervals, the day of month for
+ `month` and `year` intervals, and the month of year for `year`
+ intervals. The timestamp is in UTC format.
format: unix-time
type: integer
+ billing_cycle_anchor_config:
+ anyOf:
+ - $ref: >-
+ #/components/schemas/subscriptions_resource_billing_cycle_anchor_config
+ description: The fixed values used to calculate the `billing_cycle_anchor`.
+ nullable: true
billing_thresholds:
anyOf:
- $ref: '#/components/schemas/subscription_billing_thresholds'
@@ -33454,7 +37925,8 @@ components:
description: >-
The subscription's description, meant to be displayable to the
customer. Use this field to optionally store an explanation of the
- subscription for rendering in Stripe surfaces.
+ subscription for rendering in Stripe surfaces and certain local
+ payment methods UIs.
maxLength: 500
nullable: true
type: string
@@ -33464,8 +37936,24 @@ components:
description: >-
Describes the current discount applied to this subscription, if
there is one. When billing, a discount applied to a subscription
- overrides a discount applied on a customer-wide basis.
+ overrides a discount applied on a customer-wide basis. This field
+ has been deprecated and will be removed in a future API version. Use
+ `discounts` instead.
nullable: true
+ discounts:
+ description: >-
+ The discounts applied to the subscription. Subscription item
+ discounts are applied before subscription discounts. Use
+ `expand[]=discounts` to expand each discount.
+ items:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/discount'
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/discount'
+ type: array
ended_at:
description: 'If the subscription has ended, the date the subscription ended.'
format: unix-time
@@ -33565,7 +38053,9 @@ components:
- $ref: '#/components/schemas/subscriptions_resource_pause_collection'
description: >-
If specified, payment collection for this subscription will be
- paused.
+ paused. Note that the subscription status will be unchanged and will
+ not be updated to `paused`. Learn more about [pausing
+ collection](/billing/subscriptions/pause-payment).
nullable: true
payment_settings:
anyOf:
@@ -33625,23 +38115,33 @@ components:
status:
description: >-
Possible values are `incomplete`, `incomplete_expired`, `trialing`,
- `active`, `past_due`, `canceled`, or `unpaid`.
+ `active`, `past_due`, `canceled`, `unpaid`, or `paused`.
For `collection_method=charge_automatically` a subscription moves
into `incomplete` if the initial payment attempt fails. A
- subscription in this state can only have metadata and default_source
- updated. Once the first invoice is paid, the subscription moves into
- an `active` state. If the first invoice is not paid within 23 hours,
- the subscription transitions to `incomplete_expired`. This is a
- terminal state, the open invoice will be voided and no further
- invoices will be generated.
+ subscription in this status can only have metadata and
+ default_source updated. Once the first invoice is paid, the
+ subscription moves into an `active` status. If the first invoice is
+ not paid within 23 hours, the subscription transitions to
+ `incomplete_expired`. This is a terminal status, the open invoice
+ will be voided and no further invoices will be generated.
A subscription that is currently in a trial period is `trialing` and
moves to `active` when the trial period is over.
+ A subscription can only enter a `paused` status [when a trial ends
+ without a payment
+ method](/billing/subscriptions/trials#create-free-trials-without-payment).
+ A `paused` subscription doesn't generate invoices and can be resumed
+ after your customer adds their payment method. The `paused` status
+ is different from [pausing
+ collection](/billing/subscriptions/pause-payment), which still
+ generates invoices and leaves the subscription's status unchanged.
+
+
If subscription `collection_method=charge_automatically`, it becomes
`past_due` when payment is required but cannot be paid (due to
failed payment or awaiting additional user actions). Once Stripe has
@@ -33711,6 +38211,7 @@ components:
- current_period_end
- current_period_start
- customer
+ - discounts
- id
- items
- livemode
@@ -33723,6 +38224,7 @@ components:
x-expandableFields:
- application
- automatic_tax
+ - billing_cycle_anchor_config
- billing_thresholds
- cancellation_details
- customer
@@ -33730,6 +38232,7 @@ components:
- default_source
- default_tax_rates
- discount
+ - discounts
- items
- latest_invoice
- on_behalf_of
@@ -33749,11 +38252,21 @@ components:
enabled:
description: Whether Stripe automatically computes tax on this subscription.
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
required:
- enabled
title: SubscriptionAutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
subscription_billing_thresholds:
description: ''
properties:
@@ -33784,10 +38297,11 @@ components:
maxLength: 500
type: string
description: >-
- Set of [key-value pairs](https://stripe.com/docs/api/metadata) that
- will reflect the metadata of the subscription at the time of invoice
- creation. *Note: This attribute is populated only for invoices
- created on or after June 29, 2023.*
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata)
+ defined as subscription metadata when an invoice is created. Becomes
+ an immutable snapshot of the subscription metadata at the time of
+ invoice finalization.
+ *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
nullable: true
type: object
title: SubscriptionDetailsData
@@ -33812,6 +38326,20 @@ components:
Time at which the object was created. Measured in seconds since the
Unix epoch.
type: integer
+ discounts:
+ description: >-
+ The discounts applied to the subscription item. Subscription item
+ discounts are applied before subscription discounts. Use
+ `expand[]=discounts` to expand each discount.
+ items:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/discount'
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/discount'
+ type: array
id:
description: Unique identifier for the object.
maxLength: 5000
@@ -33854,6 +38382,7 @@ components:
type: array
required:
- created
+ - discounts
- id
- metadata
- object
@@ -33863,6 +38392,7 @@ components:
type: object
x-expandableFields:
- billing_thresholds
+ - discounts
- price
- tax_rates
x-resourceId: subscription_item
@@ -33909,12 +38439,13 @@ components:
However, if you wish to request 3D Secure based on logic from your
own fraud engine, provide this option. Read our guide on [manually
requesting 3D
- Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds)
+ Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds)
for more information on how this configuration interacts with Radar
and our SCA Engine.
enum:
- any
- automatic
+ - challenge
nullable: true
type: string
title: subscription_payment_method_options_card
@@ -34014,7 +38545,7 @@ components:
Behavior of the subscription schedule and underlying subscription
when it ends. Possible values are `release` or `cancel` with the
default being `release`. `release` will end the subscription
- schedule and keep the underlying subscription running.`cancel` will
+ schedule and keep the underlying subscription running. `cancel` will
end the subscription schedule and cancel the underlying
subscription.
enum:
@@ -34127,6 +38658,11 @@ components:
An Add Invoice Item describes the prices and quantities that will be
added as pending invoice items when entering a phase.
properties:
+ discounts:
+ description: The stackable discounts that will be applied to the item.
+ items:
+ $ref: '#/components/schemas/discounts_resource_stackable_discount'
+ type: array
price:
anyOf:
- maxLength: 5000
@@ -34151,10 +38687,12 @@ components:
nullable: true
type: array
required:
+ - discounts
- price
title: SubscriptionScheduleAddInvoiceItem
type: object
x-expandableFields:
+ - discounts
- price
- tax_rates
subscription_schedule_configuration_item:
@@ -34167,6 +38705,14 @@ components:
Define thresholds at which an invoice will be sent, and the related
subscription advanced to a new billing period
nullable: true
+ discounts:
+ description: >-
+ The discounts applied to the subscription item. Subscription item
+ discounts are applied before subscription discounts. Use
+ `expand[]=discounts` to expand each discount.
+ items:
+ $ref: '#/components/schemas/discounts_resource_stackable_discount'
+ type: array
metadata:
additionalProperties:
maxLength: 500
@@ -34200,11 +38746,13 @@ components:
nullable: true
type: array
required:
+ - discounts
- price
title: SubscriptionScheduleConfigurationItem
type: object
x-expandableFields:
- billing_thresholds
+ - discounts
- price
- tax_rates
subscription_schedule_current_phase:
@@ -34326,10 +38874,19 @@ components:
description: >-
Subscription description, meant to be displayable to the customer.
Use this field to optionally store an explanation of the
- subscription.
+ subscription for rendering in Stripe surfaces and certain local
+ payment methods UIs.
maxLength: 5000
nullable: true
type: string
+ discounts:
+ description: >-
+ The stackable discounts that will be applied to the subscription on
+ this phase. Subscription item discounts are applied before
+ subscription discounts.
+ items:
+ $ref: '#/components/schemas/discounts_resource_stackable_discount'
+ type: array
end_date:
description: The end of this phase of the subscription schedule.
format: unix-time
@@ -34401,6 +38958,7 @@ components:
required:
- add_invoice_items
- currency
+ - discounts
- end_date
- items
- proration_behavior
@@ -34414,6 +38972,7 @@ components:
- coupon
- default_payment_method
- default_tax_rates
+ - discounts
- invoice_settings
- items
- on_behalf_of
@@ -34481,16 +39040,13 @@ components:
description: >-
Subscription description, meant to be displayable to the customer.
Use this field to optionally store an explanation of the
- subscription.
+ subscription for rendering in Stripe surfaces and certain local
+ payment methods UIs.
maxLength: 5000
nullable: true
type: string
invoice_settings:
- anyOf:
- - $ref: >-
- #/components/schemas/invoice_setting_subscription_schedule_setting
- description: The subscription schedule's default invoice settings.
- nullable: true
+ $ref: '#/components/schemas/invoice_setting_subscription_schedule_setting'
on_behalf_of:
anyOf:
- maxLength: 5000
@@ -34514,6 +39070,7 @@ components:
nullable: true
required:
- billing_cycle_anchor
+ - invoice_settings
title: SubscriptionSchedulesResourceDefaultSettings
type: object
x-expandableFields:
@@ -34531,11 +39088,21 @@ components:
Whether Stripe automatically computes tax on invoices created during
this phase.
type: boolean
+ liability:
+ anyOf:
+ - $ref: '#/components/schemas/connect_account_reference'
+ description: >-
+ The account that's liable for tax. If set, the business address and
+ tax registrations required to perform the tax calculation are loaded
+ from this account. The tax transaction is returned in the report of
+ the connected account.
+ nullable: true
required:
- enabled
title: SubscriptionSchedulesResourceDefaultSettingsAutomaticTax
type: object
- x-expandableFields: []
+ x-expandableFields:
+ - liability
subscription_transfer_data:
description: ''
properties:
@@ -34564,6 +39131,33 @@ components:
type: object
x-expandableFields:
- destination
+ subscriptions_resource_billing_cycle_anchor_config:
+ description: ''
+ properties:
+ day_of_month:
+ description: The day of the month of the billing_cycle_anchor.
+ type: integer
+ hour:
+ description: The hour of the day of the billing_cycle_anchor.
+ nullable: true
+ type: integer
+ minute:
+ description: The minute of the hour of the billing_cycle_anchor.
+ nullable: true
+ type: integer
+ month:
+ description: The month to start full cycle billing periods.
+ nullable: true
+ type: integer
+ second:
+ description: The second of the minute of the billing_cycle_anchor.
+ nullable: true
+ type: integer
+ required:
+ - day_of_month
+ title: SubscriptionsResourceBillingCycleAnchorConfig
+ type: object
+ x-expandableFields: []
subscriptions_resource_pause_collection:
description: >-
The Pause Collection settings determine how we will pause collection for
@@ -34632,6 +39226,13 @@ components:
This sub-hash contains details about the Konbini payment method
options to pass to invoices created by the subscription.
nullable: true
+ sepa_debit:
+ anyOf:
+ - $ref: '#/components/schemas/invoice_payment_method_options_sepa_debit'
+ description: >-
+ This sub-hash contains details about the SEPA Direct Debit payment
+ method options to pass to invoices created by the subscription.
+ nullable: true
us_bank_account:
anyOf:
- $ref: >-
@@ -34648,6 +39249,7 @@ components:
- card
- customer_balance
- konbini
+ - sepa_debit
- us_bank_account
subscriptions_resource_payment_settings:
description: ''
@@ -34680,12 +39282,14 @@ components:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -34925,12 +39529,15 @@ components:
properties:
amount:
description: >-
- The line item amount in integer cents. If `tax_behavior=inclusive`,
- then this amount includes taxes. Otherwise, taxes were calculated on
- top of this amount.
+ The line item amount in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). If
+ `tax_behavior=inclusive`, then this amount includes taxes.
+ Otherwise, taxes were calculated on top of this amount.
type: integer
amount_tax:
- description: 'The amount of tax calculated for this line item, in integer cents.'
+ description: >-
+ The amount of tax calculated for this line item, in the [smallest
+ currency unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
id:
description: Unique identifier for the object.
@@ -34999,6 +39606,90 @@ components:
x-expandableFields:
- tax_breakdown
x-resourceId: tax.calculation_line_item
+ tax.registration:
+ description: >-
+ A Tax `Registration` lets us know that your business is registered to
+ collect tax on payments within a region, enabling you to [automatically
+ collect tax](https://stripe.com/docs/tax).
+
+
+ Stripe doesn't register on your behalf with the relevant authorities
+ when you create a Tax `Registration` object. For more information on how
+ to register to collect tax, see [our
+ guide](https://stripe.com/docs/tax/registering).
+
+
+ Related guide: [Using the Registrations
+ API](https://stripe.com/docs/tax/registrations-api)
+ properties:
+ active_from:
+ description: >-
+ Time at which the registration becomes active. Measured in seconds
+ since the Unix epoch.
+ format: unix-time
+ type: integer
+ country:
+ description: >-
+ Two-letter country code ([ISO 3166-1
+ alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ maxLength: 5000
+ type: string
+ country_options:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options
+ created:
+ description: >-
+ Time at which the object was created. Measured in seconds since the
+ Unix epoch.
+ format: unix-time
+ type: integer
+ expires_at:
+ description: >-
+ If set, the registration stops being active at this time. If not
+ set, the registration will be active indefinitely. Measured in
+ seconds since the Unix epoch.
+ format: unix-time
+ nullable: true
+ type: integer
+ id:
+ description: Unique identifier for the object.
+ maxLength: 5000
+ type: string
+ livemode:
+ description: >-
+ Has the value `true` if the object exists in live mode or the value
+ `false` if the object exists in test mode.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same type
+ share the same value.
+ enum:
+ - tax.registration
+ type: string
+ status:
+ description: >-
+ The status of the registration. This field is present for
+ convenience and can be deduced from `active_from` and `expires_at`.
+ enum:
+ - active
+ - expired
+ - scheduled
+ type: string
+ required:
+ - active_from
+ - country
+ - country_options
+ - created
+ - id
+ - livemode
+ - object
+ - status
+ title: TaxProductRegistrationsResourceTaxRegistration
+ type: object
+ x-expandableFields:
+ - country_options
+ x-resourceId: tax.registration
tax.settings:
description: >-
You can use Tax `Settings` to manage configurations used by Stripe Tax
@@ -35198,12 +39889,15 @@ components:
properties:
amount:
description: >-
- The line item amount in integer cents. If `tax_behavior=inclusive`,
- then this amount includes taxes. Otherwise, taxes were calculated on
- top of this amount.
+ The line item amount in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). If
+ `tax_behavior=inclusive`, then this amount includes taxes.
+ Otherwise, taxes were calculated on top of this amount.
type: integer
amount_tax:
- description: 'The amount of tax calculated for this line item, in integer cents.'
+ description: >-
+ The amount of tax calculated for this line item, in the [smallest
+ currency unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
id:
description: Unique identifier for the object.
@@ -35363,6 +40057,54 @@ components:
title: TaxDeductedAtSource
type: object
x-expandableFields: []
+ tax_i_ds_owner:
+ description: ''
+ properties:
+ account:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/account'
+ description: The account being referenced when `type` is `account`.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/account'
+ application:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/application'
+ description: >-
+ The Connect Application being referenced when `type` is
+ `application`.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/application'
+ customer:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - $ref: '#/components/schemas/customer'
+ description: The customer being referenced when `type` is `customer`.
+ x-expansionResources:
+ oneOf:
+ - $ref: '#/components/schemas/customer'
+ type:
+ description: Type of owner referenced.
+ enum:
+ - account
+ - application
+ - customer
+ - self
+ type: string
+ required:
+ - type
+ title: TaxIDsOwner
+ type: object
+ x-expandableFields:
+ - account
+ - application
+ - customer
tax_id:
description: >-
You can add one or multiple tax IDs to a
@@ -35413,6 +40155,11 @@ components:
enum:
- tax_id
type: string
+ owner:
+ anyOf:
+ - $ref: '#/components/schemas/tax_i_ds_owner'
+ description: The account or customer the tax ID belongs to.
+ nullable: true
type:
description: >-
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`,
@@ -35422,12 +40169,12 @@ components:
`ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`,
`ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`,
`is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`,
- `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`,
- `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`,
- `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`,
- `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`,
- `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type
- `unknown`
+ `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`,
+ `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`,
+ `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`,
+ `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`,
+ `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have
+ type `unknown`
enum:
- ad_nrt
- ae_trn
@@ -35474,6 +40221,7 @@ components:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -35517,6 +40265,7 @@ components:
type: object
x-expandableFields:
- customer
+ - owner
- verification
x-resourceId: tax_id
tax_id_verification:
@@ -35547,6 +40296,363 @@ components:
title: tax_id_verification
type: object
x-expandableFields: []
+ tax_product_registrations_resource_country_options:
+ description: ''
+ properties:
+ ae:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ at:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ au:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ be:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ bg:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ ca:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_canada
+ ch:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ cl:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ co:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ cy:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ cz:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ de:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ dk:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ ee:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ es:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ fi:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ fr:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ gb:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ gr:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ hr:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ hu:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ id:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ ie:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ is:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ it:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ jp:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ kr:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ lt:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ lu:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ lv:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ mt:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ mx:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ my:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ nl:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ 'no':
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ nz:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ pl:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ pt:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ ro:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ sa:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ se:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ sg:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ si:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ sk:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_europe
+ th:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ tr:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ us:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_united_states
+ vn:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_simplified
+ za:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_default
+ title: TaxProductRegistrationsResourceCountryOptions
+ type: object
+ x-expandableFields:
+ - ae
+ - at
+ - au
+ - be
+ - bg
+ - ca
+ - ch
+ - cl
+ - co
+ - cy
+ - cz
+ - de
+ - dk
+ - ee
+ - es
+ - fi
+ - fr
+ - gb
+ - gr
+ - hr
+ - hu
+ - id
+ - ie
+ - is
+ - it
+ - jp
+ - kr
+ - lt
+ - lu
+ - lv
+ - mt
+ - mx
+ - my
+ - nl
+ - 'no'
+ - nz
+ - pl
+ - pt
+ - ro
+ - sa
+ - se
+ - sg
+ - si
+ - sk
+ - th
+ - tr
+ - us
+ - vn
+ - za
+ tax_product_registrations_resource_country_options_ca_province_standard:
+ description: ''
+ properties:
+ province:
+ description: >-
+ Two-letter CA province code ([ISO
+ 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ maxLength: 5000
+ type: string
+ required:
+ - province
+ title: TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard
+ type: object
+ x-expandableFields: []
+ tax_product_registrations_resource_country_options_canada:
+ description: ''
+ properties:
+ province_standard:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_ca_province_standard
+ type:
+ description: Type of registration in Canada.
+ enum:
+ - province_standard
+ - simplified
+ - standard
+ type: string
+ required:
+ - type
+ title: TaxProductRegistrationsResourceCountryOptionsCanada
+ type: object
+ x-expandableFields:
+ - province_standard
+ tax_product_registrations_resource_country_options_default:
+ description: ''
+ properties:
+ type:
+ description: Type of registration in `country`.
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: TaxProductRegistrationsResourceCountryOptionsDefault
+ type: object
+ x-expandableFields: []
+ tax_product_registrations_resource_country_options_eu_standard:
+ description: ''
+ properties:
+ place_of_supply_scheme:
+ description: Place of supply scheme used in an EU standard registration.
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: TaxProductRegistrationsResourceCountryOptionsEuStandard
+ type: object
+ x-expandableFields: []
+ tax_product_registrations_resource_country_options_europe:
+ description: ''
+ properties:
+ standard:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_eu_standard
+ type:
+ description: Type of registration in an EU country.
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: TaxProductRegistrationsResourceCountryOptionsEurope
+ type: object
+ x-expandableFields:
+ - standard
+ tax_product_registrations_resource_country_options_simplified:
+ description: ''
+ properties:
+ type:
+ description: Type of registration in `country`.
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: TaxProductRegistrationsResourceCountryOptionsSimplified
+ type: object
+ x-expandableFields: []
+ tax_product_registrations_resource_country_options_united_states:
+ description: ''
+ properties:
+ local_amusement_tax:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_us_local_amusement_tax
+ local_lease_tax:
+ $ref: >-
+ #/components/schemas/tax_product_registrations_resource_country_options_us_local_lease_tax
+ state:
+ description: >-
+ Two-letter US state code ([ISO
+ 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ maxLength: 5000
+ type: string
+ type:
+ description: Type of registration in the US.
+ enum:
+ - local_amusement_tax
+ - local_lease_tax
+ - state_communications_tax
+ - state_sales_tax
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - state
+ - type
+ title: TaxProductRegistrationsResourceCountryOptionsUnitedStates
+ type: object
+ x-expandableFields:
+ - local_amusement_tax
+ - local_lease_tax
+ tax_product_registrations_resource_country_options_us_local_amusement_tax:
+ description: ''
+ properties:
+ jurisdiction:
+ description: >-
+ A [FIPS
+ code](https://www.census.gov/library/reference/code-lists/ansi.html)
+ representing the local jurisdiction.
+ maxLength: 5000
+ type: string
+ required:
+ - jurisdiction
+ title: TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax
+ type: object
+ x-expandableFields: []
+ tax_product_registrations_resource_country_options_us_local_lease_tax:
+ description: ''
+ properties:
+ jurisdiction:
+ description: >-
+ A [FIPS
+ code](https://www.census.gov/library/reference/code-lists/ansi.html)
+ representing the local jurisdiction.
+ maxLength: 5000
+ type: string
+ required:
+ - jurisdiction
+ title: TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax
+ type: object
+ x-expandableFields: []
tax_product_resource_customer_details:
description: ''
properties:
@@ -35599,10 +40705,10 @@ components:
`bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`,
`do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`,
`sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`,
- `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`,
- `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`,
- `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`,
- `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
+ `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`,
+ `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`,
+ `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`,
+ `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`,
`ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`,
`sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`,
`is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`,
@@ -35653,6 +40759,7 @@ components:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -35727,7 +40834,9 @@ components:
description: ''
properties:
amount:
- description: 'The amount of tax, in integer cents.'
+ description: >-
+ The amount of tax, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
jurisdiction:
$ref: '#/components/schemas/tax_product_resource_jurisdiction'
@@ -35771,7 +40880,9 @@ components:
- zero_rated
type: string
taxable_amount:
- description: 'The amount on which tax is calculated, in integer cents.'
+ description: >-
+ The amount on which tax is calculated, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
required:
- amount
@@ -35816,6 +40927,7 @@ components:
- sales_tax
- vat
type: string
+ x-stripeBypassValidation: true
required:
- display_name
- percentage_decimal
@@ -35869,7 +40981,9 @@ components:
description: ''
properties:
amount:
- description: 'The amount of tax, in integer cents.'
+ description: >-
+ The amount of tax, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
inclusive:
description: >-
@@ -35901,7 +41015,9 @@ components:
- zero_rated
type: string
taxable_amount:
- description: 'The amount on which tax is calculated, in integer cents.'
+ description: >-
+ The amount on which tax is calculated, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
required:
- amount
@@ -35918,12 +41034,15 @@ components:
properties:
amount:
description: >-
- The shipping amount in integer cents. If `tax_behavior=inclusive`,
- then this amount includes taxes. Otherwise, taxes were calculated on
- top of this amount.
+ The shipping amount in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). If
+ `tax_behavior=inclusive`, then this amount includes taxes.
+ Otherwise, taxes were calculated on top of this amount.
type: integer
amount_tax:
- description: 'The amount of tax calculated for shipping, in integer cents.'
+ description: >-
+ The amount of tax calculated for shipping, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
shipping_rate:
description: >-
@@ -35997,6 +41116,7 @@ components:
- vat
nullable: true
type: string
+ x-stripeBypassValidation: true
required:
- percentage_decimal
title: TaxProductResourceTaxRateDetails
@@ -36105,12 +41225,15 @@ components:
properties:
amount:
description: >-
- The shipping amount in integer cents. If `tax_behavior=inclusive`,
- then this amount includes taxes. Otherwise, taxes were calculated on
- top of this amount.
+ The shipping amount in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal). If
+ `tax_behavior=inclusive`, then this amount includes taxes.
+ Otherwise, taxes were calculated on top of this amount.
type: integer
amount_tax:
- description: 'The amount of tax calculated for shipping, in integer cents.'
+ description: >-
+ The amount of tax calculated for shipping, in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
shipping_rate:
description: >-
@@ -36211,6 +41334,19 @@ components:
maxLength: 5000
nullable: true
type: string
+ jurisdiction_level:
+ description: >-
+ The level of the jurisdiction that imposes this tax rate. Will be
+ `null` for manually defined tax rates.
+ enum:
+ - city
+ - country
+ - county
+ - district
+ - multiple
+ - state
+ nullable: true
+ type: string
livemode:
description: >-
Has the value `true` if the object exists in live mode or the value
@@ -36261,10 +41397,10 @@ components:
- qst
- rst
- sales_tax
- - service_tax
- vat
nullable: true
type: string
+ x-stripeBypassValidation: true
required:
- active
- created
@@ -36299,6 +41435,13 @@ components:
Has the value `true` if the object exists in live mode or the value
`false` if the object exists in test mode.
type: boolean
+ name:
+ description: >-
+ String indicating the name of the Configuration object, set by the
+ user
+ maxLength: 5000
+ nullable: true
+ type: string
object:
description: >-
String representing the object's type. Objects of the same type
@@ -36306,6 +41449,9 @@ components:
enum:
- terminal.configuration
type: string
+ offline:
+ $ref: >-
+ #/components/schemas/terminal_configuration_configuration_resource_offline_config
tipping:
$ref: >-
#/components/schemas/terminal_configuration_configuration_resource_tipping
@@ -36320,6 +41466,7 @@ components:
type: object
x-expandableFields:
- bbpos_wisepos_e
+ - offline
- tipping
- verifone_p400
x-resourceId: terminal.configuration
@@ -36437,12 +41584,13 @@ components:
device_type:
description: >-
Type of reader, one of `bbpos_wisepad3`, `stripe_m2`,
- `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, or
- `simulated_wisepos_e`.
+ `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`,
+ `simulated_wisepos_e`, or `mobile_phone_reader`.
enum:
- bbpos_chipper2x
- bbpos_wisepad3
- bbpos_wisepos_e
+ - mobile_phone_reader
- simulated_wisepos_e
- stripe_m2
- verifone_P400
@@ -36497,7 +41645,9 @@ components:
type: string
status:
description: The networking status of the reader.
- maxLength: 5000
+ enum:
+ - offline
+ - online
nullable: true
type: string
required:
@@ -36555,6 +41705,18 @@ components:
type: object
x-expandableFields:
- splashscreen
+ terminal_configuration_configuration_resource_offline_config:
+ description: ''
+ properties:
+ enabled:
+ description: >-
+ Determines whether to allow transactions to be collected while
+ reader is offline. Defaults to false.
+ nullable: true
+ type: boolean
+ title: TerminalConfigurationConfigurationResourceOfflineConfig
+ type: object
+ x-expandableFields: []
terminal_configuration_configuration_resource_tipping:
description: ''
properties:
@@ -36677,6 +41839,9 @@ components:
terminal_reader_reader_resource_process_config:
description: Represents a per-transaction override of a reader configuration
properties:
+ enable_customer_cancellation:
+ description: Enable customer initiated cancellation when processing this payment.
+ type: boolean
skip_tipping:
description: Override showing a tipping selection screen on this transaction.
type: boolean
@@ -36709,7 +41874,12 @@ components:
- process_config
terminal_reader_reader_resource_process_setup_config:
description: Represents a per-setup override of a reader configuration
- properties: {}
+ properties:
+ enable_customer_cancellation:
+ description: >-
+ Enable customer initiated cancellation when processing this
+ SetupIntent.
+ type: boolean
title: TerminalReaderReaderResourceProcessSetupConfig
type: object
x-expandableFields: []
@@ -36852,6 +42022,9 @@ components:
charge refunded. An application fee can be refunded only by the
application that created the charge.
type: boolean
+ refund_payment_config:
+ $ref: >-
+ #/components/schemas/terminal_reader_reader_resource_refund_payment_config
reverse_transfer:
description: >-
Boolean indicating whether the transfer should be reversed when
@@ -36866,6 +42039,16 @@ components:
- charge
- payment_intent
- refund
+ - refund_payment_config
+ terminal_reader_reader_resource_refund_payment_config:
+ description: Represents a per-transaction override of a reader configuration
+ properties:
+ enable_customer_cancellation:
+ description: Enable customer initiated cancellation when refunding this payment.
+ type: boolean
+ title: TerminalReaderReaderResourceRefundPaymentConfig
+ type: object
+ x-expandableFields: []
terminal_reader_reader_resource_set_reader_display_action:
description: Represents a reader action to set the reader display
properties:
@@ -36979,6 +42162,19 @@ components:
- frictionless
nullable: true
type: string
+ electronic_commerce_indicator:
+ description: |-
+ The Electronic Commerce Indicator (ECI). A protocol-level field
+ indicating what degree of authentication was performed.
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ nullable: true
+ type: string
+ x-stripeBypassValidation: true
result:
description: Indicates the outcome of 3D Secure authentication.
enum:
@@ -37004,6 +42200,13 @@ components:
- rejected
nullable: true
type: string
+ transaction_id:
+ description: |-
+ The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
+ (dsTransId) for this payment.
+ maxLength: 5000
+ nullable: true
+ type: string
version:
description: The version of 3D Secure that was used.
enum:
@@ -37030,6 +42233,35 @@ components:
- frictionless
nullable: true
type: string
+ electronic_commerce_indicator:
+ description: |-
+ The Electronic Commerce Indicator (ECI). A protocol-level field
+ indicating what degree of authentication was performed.
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ nullable: true
+ type: string
+ x-stripeBypassValidation: true
+ exemption_indicator:
+ description: >-
+ The exemption requested via 3DS and accepted by the issuer at
+ authentication time.
+ enum:
+ - low_risk
+ - none
+ nullable: true
+ type: string
+ exemption_indicator_applied:
+ description: >-
+ Whether Stripe requested the value of `exemption_indicator` in the
+ transaction. This will depend on
+
+ the outcome of Stripe's internal risk assessment.
+ type: boolean
result:
description: Indicates the outcome of 3D Secure authentication.
enum:
@@ -37055,6 +42287,13 @@ components:
- rejected
nullable: true
type: string
+ transaction_id:
+ description: |-
+ The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
+ (dsTransId) for this payment.
+ maxLength: 5000
+ nullable: true
+ type: string
version:
description: The version of 3D Secure that was used.
enum:
@@ -37089,43 +42328,42 @@ components:
your customers in a secure manner. A token representing this information
is
- returned to your server to use. You should use our
+ returned to your server to use. Use our
[recommended payments integrations](https://stripe.com/docs/payments) to
perform this process
- client-side. This ensures that no sensitive card data touches your
- server,
+ on the client-side. This guarantees that no sensitive card data touches
+ your server,
and allows your integration to operate in a PCI-compliant way.
- If you cannot use client-side tokenization, you can also create tokens
+ If you can't use client-side tokenization, you can also create tokens
using
- the API with either your publishable or secret API key. Keep in mind
- that if
+ the API with either your publishable or secret API key. If
- your integration uses this method, you are responsible for any PCI
+ your integration uses this method, you're responsible for any PCI
compliance
- that may be required, and you must keep your secret API key safe. Unlike
- with
+ that it might require, and you must keep your secret API key safe.
+ Unlike with
- client-side tokenization, your customer's information is not sent
+ client-side tokenization, your customer's information isn't sent
directly to
- Stripe, so we cannot determine how it is handled or stored.
+ Stripe, so we can't determine how it's handled or stored.
- Tokens cannot be stored or used more than once. To store card or bank
+ You can't store or use tokens more than once. To store card or bank
account
- information for later use, you can create
+ information for later use, create
[Customer](https://stripe.com/docs/api#customers)
objects or [Custom
- accounts](https://stripe.com/docs/api#external_accounts). Note that
+ accounts](https://stripe.com/docs/api#external_accounts).
[Radar](https://stripe.com/docs/radar), our integrated solution for
automatic fraud protection,
@@ -37137,7 +42375,7 @@ components:
card:
$ref: '#/components/schemas/card'
client_ip:
- description: IP address of the client that generated the token.
+ description: IP address of the client that generates the token.
maxLength: 5000
nullable: true
type: string
@@ -37169,8 +42407,8 @@ components:
type: string
used:
description: >-
- Whether this token has already been used (tokens can be used only
- once).
+ Determines if you have already used this token (you can only use
+ tokens once).
type: boolean
required:
- created
@@ -37185,6 +42423,20 @@ components:
- bank_account
- card
x-resourceId: token
+ token_card_networks:
+ description: ''
+ properties:
+ preferred:
+ description: >-
+ The preferred network for co-branded cards. Can be
+ `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if
+ requested network is not valid for the card.
+ maxLength: 5000
+ nullable: true
+ type: string
+ title: token_card_networks
+ type: object
+ x-expandableFields: []
topup:
description: >-
To top up your Stripe balance, you create a top-up object. You can
@@ -37287,10 +42539,8 @@ components:
anyOf:
- $ref: '#/components/schemas/source'
description: >-
- For most Stripe users, the source of every top-up is a bank account.
- This hash is then the [source
- object](https://stripe.com/docs/api#source_object) describing that
- bank account.
+ The source field is deprecated. It might not always be present in
+ the API response.
nullable: true
statement_descriptor:
description: >-
@@ -37543,12 +42793,9 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/account'
- description: >-
- The account (if any) the payment will be attributed to for tax
-
- reporting, and where funds from the payment will be transferred to
- upon
-
+ description: |-
+ The account (if any) that the payment is attributed to for tax
+ reporting, and where funds from the payment are transferred to after
payment success.
x-expansionResources:
oneOf:
@@ -39588,7 +44835,7 @@ components:
type: string
present:
description: >-
- `true`` if the OutboundPayment creation request is being made on
+ `true` if the OutboundPayment creation request is being made on
behalf of an end user by a platform. Otherwise, `false`.
type: boolean
required:
@@ -39886,6 +45133,13 @@ components:
maxLength: 5000
nullable: true
type: string
+ payout:
+ description: >-
+ Set if the ReceivedDebit was created due to a
+ [Payout](https://stripe.com/docs/api#payouts) object.
+ maxLength: 5000
+ nullable: true
+ type: string
title: TreasuryReceivedDebitsResourceLinkedFlows
type: object
x-expandableFields: []
@@ -40354,7 +45608,7 @@ info:
details.
termsOfService: 'https://stripe.com/us/terms/'
title: Stripe API
- version: '2023-08-16'
+ version: '2024-04-10'
x-stripeSpecFilename: spec3
openapi: 3.0.0
paths:
@@ -40407,6 +45661,9 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ collection_options:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
@@ -40419,13 +45676,31 @@ paths:
type: string
collect:
description: >-
- Which information the platform needs to collect from the
- user. One of `currently_due` or `eventually_due`. Default is
- `currently_due`.
+ The collect parameter is deprecated. Use
+ `collection_options` instead.
enum:
- currently_due
- eventually_due
type: string
+ collection_options:
+ description: >-
+ Specifies the requirements that Stripe collects from
+ connected accounts in the Connect Onboarding flow.
+ properties:
+ fields:
+ enum:
+ - currently_due
+ - eventually_due
+ type: string
+ future_requirements:
+ enum:
+ - include
+ - omit
+ type: string
+ required:
+ - fields
+ title: collection_options_params
+ type: object
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -40511,10 +45786,84 @@ paths:
properties:
enabled:
type: boolean
+ features:
+ properties: {}
+ title: account_features_param
+ type: object
+ required:
+ - enabled
+ title: account_config_param
+ type: object
+ documents:
+ properties:
+ enabled:
+ type: boolean
+ features:
+ properties: {}
+ title: base_features_param
+ type: object
required:
- enabled
title: base_config_param
type: object
+ payment_details:
+ properties:
+ enabled:
+ type: boolean
+ features:
+ properties:
+ capture_payments:
+ type: boolean
+ destination_on_behalf_of_charge_management:
+ type: boolean
+ dispute_management:
+ type: boolean
+ refund_management:
+ type: boolean
+ title: payments_features_param
+ type: object
+ required:
+ - enabled
+ title: payments_config_param
+ type: object
+ payments:
+ properties:
+ enabled:
+ type: boolean
+ features:
+ properties:
+ capture_payments:
+ type: boolean
+ destination_on_behalf_of_charge_management:
+ type: boolean
+ dispute_management:
+ type: boolean
+ refund_management:
+ type: boolean
+ title: payments_features_param
+ type: object
+ required:
+ - enabled
+ title: payments_config_param
+ type: object
+ payouts:
+ properties:
+ enabled:
+ type: boolean
+ features:
+ properties:
+ edit_payout_schedule:
+ type: boolean
+ instant_payouts:
+ type: boolean
+ standard_payouts:
+ type: boolean
+ title: payouts_features_param
+ type: object
+ required:
+ - enabled
+ title: payouts_config_param
+ type: object
title: account_session_create_components_param
type: object
expand:
@@ -40549,7 +45898,10 @@ paths:
empty.
operationId: GetAccounts
parameters:
- - explode: true
+ - description: >-
+ Only return connected accounts that were created during the given
+ date interval.
+ explode: true
in: query
name: created
required: false
@@ -40791,6 +46143,23 @@ paths:
business_profile:
description: Business information about the account.
properties:
+ annual_revenue:
+ properties:
+ amount:
+ type: integer
+ currency:
+ type: string
+ fiscal_year_end:
+ maxLength: 5000
+ type: string
+ required:
+ - amount
+ - currency
+ - fiscal_year_end
+ title: annual_revenue_specs
+ type: object
+ estimated_worker_count:
+ type: integer
mcc:
maxLength: 4
type: string
@@ -40849,7 +46218,11 @@ paths:
title: business_profile_specs
type: object
business_type:
- description: The business type.
+ description: >-
+ The business type. Once you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
enum:
- company
- government_entity
@@ -40884,6 +46257,12 @@ paths:
type: boolean
title: capability_param
type: object
+ amazon_pay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
au_becs_debit_payments:
properties:
requested:
@@ -41010,6 +46389,12 @@ paths:
type: boolean
title: capability_param
type: object
+ mobilepay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
oxxo_payments:
properties:
requested:
@@ -41034,6 +46419,12 @@ paths:
type: boolean
title: capability_param
type: object
+ revolut_pay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
sepa_debit_payments:
properties:
requested:
@@ -41046,6 +46437,12 @@ paths:
type: boolean
title: capability_param
type: object
+ swish_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
tax_reporting_us_1099_k:
properties:
requested:
@@ -41087,7 +46484,11 @@ paths:
company:
description: >-
Information about the company or business. This field is
- available for any `business_type`.
+ available for any `business_type`. Once you create an
+ [Account Link](https://docs.stripe.com/api/account_links) or
+ [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
properties:
address:
properties:
@@ -41218,6 +46619,7 @@ paths:
- public_company
- public_corporation
- public_partnership
+ - registered_charity
- single_member_llc
- sole_establishment
- sole_proprietorship
@@ -41272,7 +46674,7 @@ paths:
Three-letter ISO currency code representing the default
currency for the account. This must be a currency that
[Stripe supports in the account's
- country](https://stripe.com/docs/payouts).
+ country](https://docs.stripe.com/payouts).
type: string
documents:
description: >-
@@ -41360,21 +46762,24 @@ paths:
description: >-
A card or bank account to attach to the account for
receiving
- [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts)
+ [payouts](https://docs.stripe.com/connect/bank-debit-card-payouts)
(you won’t be able to use it for top-ups). You can provide
either a token, like the ones returned by
- [Stripe.js](https://stripe.com/docs/js), or a dictionary, as
+ [Stripe.js](https://docs.stripe.com/js), or a dictionary, as
documented in the `external_account` parameter for [bank
- account](https://stripe.com/docs/api#account_create_bank_account)
+ account](https://docs.stripe.com/api#account_create_bank_account)
creation.
By default, providing an external account
sets it as the new default external account for its
currency, and deletes the old default if one exists. To add
additional external accounts without replacing the existing
default for the currency, use the [bank
- account](https://stripe.com/docs/api#account_create_bank_account)
+ account](https://docs.stripe.com/api#account_create_bank_account)
or [card
- creation](https://stripe.com/docs/api#account_create_card)
- APIs.
+ creation](https://docs.stripe.com/api#account_create_card)
+ APIs. After you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
maxLength: 5000
type: string
x-stripeBypassValidation: true
@@ -41382,7 +46787,10 @@ paths:
description: >-
Information about the person represented by the account.
This field is null unless `business_type` is set to
- `individual`.
+ `individual`. Once you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
properties:
address:
properties:
@@ -41551,6 +46959,25 @@ paths:
type: string
title: address_specs
type: object
+ relationship:
+ properties:
+ director:
+ type: boolean
+ executive:
+ type: boolean
+ owner:
+ type: boolean
+ percent_ownership:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
+ title:
+ maxLength: 5000
+ type: string
+ title: individual_relationship_specs
+ type: object
ssn_last_4:
maxLength: 5000
type: string
@@ -41601,6 +47028,12 @@ paths:
Options for customizing how the account functions within
Stripe.
properties:
+ bacs_debit_payments:
+ properties:
+ display_name:
+ type: string
+ title: bacs_debit_payments_specs
+ type: object
branding:
properties:
icon:
@@ -41746,7 +47179,8 @@ paths:
tos_acceptance:
description: >-
Details on the account's acceptance of the [Stripe Services
- Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
+ Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance)
+ This property can only be updated for Custom accounts.
properties:
date:
format: unix-time
@@ -41889,13 +47323,10 @@ paths:
For other accounts, you can update all information until that
account has started to go through Connect Onboarding. Once you create an
- Account Link
+ Account Link or Account Session,
- for a Standard or Express account, some parameters can no longer be
- changed. These are marked as Custom Only or
- Custom and Express
-
- below.
+ some properties can only be changed or updated for Custom accounts.
To update your own account, use the -
+ The business type. Once you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
enum:
- company
- government_entity
@@ -42050,6 +47502,12 @@ paths:
type: boolean
title: capability_param
type: object
+ amazon_pay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
au_becs_debit_payments:
properties:
requested:
@@ -42176,6 +47634,12 @@ paths:
type: boolean
title: capability_param
type: object
+ mobilepay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
oxxo_payments:
properties:
requested:
@@ -42200,6 +47664,12 @@ paths:
type: boolean
title: capability_param
type: object
+ revolut_pay_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
sepa_debit_payments:
properties:
requested:
@@ -42212,6 +47682,12 @@ paths:
type: boolean
title: capability_param
type: object
+ swish_payments:
+ properties:
+ requested:
+ type: boolean
+ title: capability_param
+ type: object
tax_reporting_us_1099_k:
properties:
requested:
@@ -42253,7 +47729,11 @@ paths:
company:
description: >-
Information about the company or business. This field is
- available for any `business_type`.
+ available for any `business_type`. Once you create an
+ [Account Link](https://docs.stripe.com/api/account_links) or
+ [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
properties:
address:
properties:
@@ -42384,6 +47864,7 @@ paths:
- public_company
- public_corporation
- public_partnership
+ - registered_charity
- single_member_llc
- sole_establishment
- sole_proprietorship
@@ -42423,7 +47904,7 @@ paths:
Three-letter ISO currency code representing the default
currency for the account. This must be a currency that
[Stripe supports in the account's
- country](https://stripe.com/docs/payouts).
+ country](https://docs.stripe.com/payouts).
type: string
documents:
description: >-
@@ -42511,21 +47992,24 @@ paths:
description: >-
A card or bank account to attach to the account for
receiving
- [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts)
+ [payouts](https://docs.stripe.com/connect/bank-debit-card-payouts)
(you won’t be able to use it for top-ups). You can provide
either a token, like the ones returned by
- [Stripe.js](https://stripe.com/docs/js), or a dictionary, as
+ [Stripe.js](https://docs.stripe.com/js), or a dictionary, as
documented in the `external_account` parameter for [bank
- account](https://stripe.com/docs/api#account_create_bank_account)
+ account](https://docs.stripe.com/api#account_create_bank_account)
creation.
By default, providing an external account
sets it as the new default external account for its
currency, and deletes the old default if one exists. To add
additional external accounts without replacing the existing
default for the currency, use the [bank
- account](https://stripe.com/docs/api#account_create_bank_account)
+ account](https://docs.stripe.com/api#account_create_bank_account)
or [card
- creation](https://stripe.com/docs/api#account_create_card)
- APIs.
+ creation](https://docs.stripe.com/api#account_create_card)
+ APIs. After you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
maxLength: 5000
type: string
x-stripeBypassValidation: true
@@ -42533,7 +48017,10 @@ paths:
description: >-
Information about the person represented by the account.
This field is null unless `business_type` is set to
- `individual`.
+ `individual`. Once you create an [Account
+ Link](https://docs.stripe.com/api/account_links) or [Account
+ Session](https://docs.stripe.com/api/account_sessions), this
+ property can only be updated for Custom accounts.
properties:
address:
properties:
@@ -42702,6 +48189,25 @@ paths:
type: string
title: address_specs
type: object
+ relationship:
+ properties:
+ director:
+ type: boolean
+ executive:
+ type: boolean
+ owner:
+ type: boolean
+ percent_ownership:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
+ title:
+ maxLength: 5000
+ type: string
+ title: individual_relationship_specs
+ type: object
ssn_last_4:
maxLength: 5000
type: string
@@ -42752,6 +48258,12 @@ paths:
Options for customizing how the account functions within
Stripe.
properties:
+ bacs_debit_payments:
+ properties:
+ display_name:
+ type: string
+ title: bacs_debit_payments_specs
+ type: object
branding:
properties:
icon:
@@ -42817,6 +48329,19 @@ paths:
type: string
title: card_payments_settings_specs
type: object
+ invoices:
+ properties:
+ default_account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ title: invoices_settings_specs
+ type: object
payments:
properties:
statement_descriptor:
@@ -42897,7 +48422,8 @@ paths:
tos_acceptance:
description: >-
Details on the account's acceptance of the [Stripe Services
- Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
+ Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance)
+ This property can only be updated for Custom accounts.
properties:
date:
format: unix-time
@@ -43551,6 +49077,18 @@ paths:
schema:
type: integer
style: form
+ - description: Filter external accounts according to a particular object type.
+ in: query
+ name: object
+ required: false
+ schema:
+ enum:
+ - bank_account
+ - card
+ maxLength: 5000
+ type: string
+ x-stripeBypassValidation: true
+ style: form
- description: >-
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -44121,6 +49659,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
representative:
@@ -44208,6 +49748,9 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ additional_tos_acceptances:
+ explode: true
+ style: deepObject
address:
explode: true
style: deepObject
@@ -44244,6 +49787,29 @@ paths:
schema:
additionalProperties: false
properties:
+ additional_tos_acceptances:
+ description: >-
+ Details on the legal guardian's acceptance of the required
+ Stripe agreements.
+ properties:
+ account:
+ properties:
+ date:
+ format: unix-time
+ type: integer
+ ip:
+ type: string
+ user_agent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: settings_terms_of_service_specs
+ type: object
+ title: person_additional_tos_acceptances_specs
+ type: object
address:
description: The person's address.
properties:
@@ -44428,7 +49994,7 @@ paths:
For example, a social security number in the U.S., social
insurance number in Canada, etc. Instead of the number
itself, you can also provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
id_number_secondary:
@@ -44438,7 +50004,7 @@ paths:
Thailand, this would be the laser code found on the back of
an ID card. Instead of the number itself, you can also
provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
last_name:
@@ -44484,7 +50050,7 @@ paths:
person_token:
description: >-
A [person
- token](https://stripe.com/docs/connect/account-tokens), used
+ token](https://docs.stripe.com/connect/account-tokens), used
to securely provide details to the person.
maxLength: 5000
type: string
@@ -44531,6 +50097,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
percent_ownership:
@@ -44711,6 +50279,9 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ additional_tos_acceptances:
+ explode: true
+ style: deepObject
address:
explode: true
style: deepObject
@@ -44747,6 +50318,29 @@ paths:
schema:
additionalProperties: false
properties:
+ additional_tos_acceptances:
+ description: >-
+ Details on the legal guardian's acceptance of the required
+ Stripe agreements.
+ properties:
+ account:
+ properties:
+ date:
+ format: unix-time
+ type: integer
+ ip:
+ type: string
+ user_agent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: settings_terms_of_service_specs
+ type: object
+ title: person_additional_tos_acceptances_specs
+ type: object
address:
description: The person's address.
properties:
@@ -44931,7 +50525,7 @@ paths:
For example, a social security number in the U.S., social
insurance number in Canada, etc. Instead of the number
itself, you can also provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
id_number_secondary:
@@ -44941,7 +50535,7 @@ paths:
Thailand, this would be the laser code found on the back of
an ID card. Instead of the number itself, you can also
provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
last_name:
@@ -44987,7 +50581,7 @@ paths:
person_token:
description: >-
A [person
- token](https://stripe.com/docs/connect/account-tokens), used
+ token](https://docs.stripe.com/connect/account-tokens), used
to securely provide details to the person.
maxLength: 5000
type: string
@@ -45034,6 +50628,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
percent_ownership:
@@ -45155,6 +50751,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
representative:
@@ -45242,6 +50840,9 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ additional_tos_acceptances:
+ explode: true
+ style: deepObject
address:
explode: true
style: deepObject
@@ -45278,6 +50879,29 @@ paths:
schema:
additionalProperties: false
properties:
+ additional_tos_acceptances:
+ description: >-
+ Details on the legal guardian's acceptance of the required
+ Stripe agreements.
+ properties:
+ account:
+ properties:
+ date:
+ format: unix-time
+ type: integer
+ ip:
+ type: string
+ user_agent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: settings_terms_of_service_specs
+ type: object
+ title: person_additional_tos_acceptances_specs
+ type: object
address:
description: The person's address.
properties:
@@ -45462,7 +51086,7 @@ paths:
For example, a social security number in the U.S., social
insurance number in Canada, etc. Instead of the number
itself, you can also provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
id_number_secondary:
@@ -45472,7 +51096,7 @@ paths:
Thailand, this would be the laser code found on the back of
an ID card. Instead of the number itself, you can also
provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
last_name:
@@ -45518,7 +51142,7 @@ paths:
person_token:
description: >-
A [person
- token](https://stripe.com/docs/connect/account-tokens), used
+ token](https://docs.stripe.com/connect/account-tokens), used
to securely provide details to the person.
maxLength: 5000
type: string
@@ -45565,6 +51189,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
percent_ownership:
@@ -45745,6 +51371,9 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ additional_tos_acceptances:
+ explode: true
+ style: deepObject
address:
explode: true
style: deepObject
@@ -45781,6 +51410,29 @@ paths:
schema:
additionalProperties: false
properties:
+ additional_tos_acceptances:
+ description: >-
+ Details on the legal guardian's acceptance of the required
+ Stripe agreements.
+ properties:
+ account:
+ properties:
+ date:
+ format: unix-time
+ type: integer
+ ip:
+ type: string
+ user_agent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: settings_terms_of_service_specs
+ type: object
+ title: person_additional_tos_acceptances_specs
+ type: object
address:
description: The person's address.
properties:
@@ -45965,7 +51617,7 @@ paths:
For example, a social security number in the U.S., social
insurance number in Canada, etc. Instead of the number
itself, you can also provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
id_number_secondary:
@@ -45975,7 +51627,7 @@ paths:
Thailand, this would be the laser code found on the back of
an ID card. Instead of the number itself, you can also
provide a [PII token provided by
- Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
+ Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
maxLength: 5000
type: string
last_name:
@@ -46021,7 +51673,7 @@ paths:
person_token:
description: >-
A [person
- token](https://stripe.com/docs/connect/account-tokens), used
+ token](https://docs.stripe.com/connect/account-tokens), used
to securely provide details to the person.
maxLength: 5000
type: string
@@ -46068,6 +51720,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
percent_ownership:
@@ -46431,7 +52085,10 @@ paths:
maxLength: 5000
type: string
style: form
- - explode: true
+ - description: >-
+ Only return applications fees that were created during the given
+ date interval.
+ explode: true
in: query
name: created
required: false
@@ -47360,7 +53017,10 @@ paths:
used the path /v1/balance/history
.
operationId: GetBalanceHistory
parameters:
- - explode: true
+ - description: >-
+ Only return transactions that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -47458,17 +53118,18 @@ paths:
Only returns transactions of the given type. One of: `adjustment`,
`advance`, `advance_funding`, `anticipation_repayment`,
`application_fee`, `application_fee_refund`, `charge`,
+ `climate_order_purchase`, `climate_order_refund`,
`connect_collection_transfer`, `contribution`,
`issuing_authorization_hold`, `issuing_authorization_release`,
- `issuing_dispute`, `issuing_transaction`, `obligation_inbound`,
- `obligation_outbound`, `obligation_reversal_inbound`,
- `obligation_reversal_outbound`, `obligation_payout`,
- `obligation_payout_failure`, `payment`, `payment_failure_refund`,
- `payment_refund`, `payment_reversal`, `payout`, `payout_cancel`,
- `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`,
- `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`,
- `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`,
- or `transfer_refund`.
+ `issuing_dispute`, `issuing_transaction`, `obligation_outbound`,
+ `obligation_reversal_inbound`, `payment`, `payment_failure_refund`,
+ `payment_network_reserve_hold`, `payment_network_reserve_release`,
+ `payment_refund`, `payment_reversal`, `payment_unreconciled`,
+ `payout`, `payout_cancel`, `payout_failure`, `refund`,
+ `refund_failure`, `reserve_transaction`, `reserved_funds`,
+ `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`,
+ `transfer`, `transfer_cancel`, `transfer_failure`, or
+ `transfer_refund`.
in: query
name: type
required: false
@@ -47592,7 +53253,10 @@ paths:
used the path /v1/balance/history
.
operationId: GetBalanceTransactions
parameters:
- - explode: true
+ - description: >-
+ Only return transactions that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -47690,17 +53354,18 @@ paths:
Only returns transactions of the given type. One of: `adjustment`,
`advance`, `advance_funding`, `anticipation_repayment`,
`application_fee`, `application_fee_refund`, `charge`,
+ `climate_order_purchase`, `climate_order_refund`,
`connect_collection_transfer`, `contribution`,
`issuing_authorization_hold`, `issuing_authorization_release`,
- `issuing_dispute`, `issuing_transaction`, `obligation_inbound`,
- `obligation_outbound`, `obligation_reversal_inbound`,
- `obligation_reversal_outbound`, `obligation_payout`,
- `obligation_payout_failure`, `payment`, `payment_failure_refund`,
- `payment_refund`, `payment_reversal`, `payout`, `payout_cancel`,
- `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`,
- `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`,
- `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`,
- or `transfer_refund`.
+ `issuing_dispute`, `issuing_transaction`, `obligation_outbound`,
+ `obligation_reversal_inbound`, `payment`, `payment_failure_refund`,
+ `payment_network_reserve_hold`, `payment_network_reserve_release`,
+ `payment_refund`, `payment_reversal`, `payment_unreconciled`,
+ `payout`, `payout_cancel`, `payout_failure`, `refund`,
+ `refund_failure`, `reserve_transaction`, `reserved_funds`,
+ `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`,
+ `transfer`, `transfer_cancel`, `transfer_failure`, or
+ `transfer_refund`.
in: query
name: type
required: false
@@ -47811,22 +53476,703 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/billing_portal/configurations:
+ /v1/billing/meter_event_adjustments:
+ post:
+ description: Creates a billing meter event adjustment
+ operationId: PostBillingMeterEventAdjustments
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ cancel:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ cancel:
+ description: Specifies which event to cancel.
+ properties:
+ identifier:
+ maxLength: 100
+ type: string
+ required:
+ - identifier
+ title: event_adjustment_cancel_settings_param
+ type: object
+ event_name:
+ description: >-
+ The name of the meter event. Corresponds with the
+ `event_name` field on a meter.
+ maxLength: 100
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type:
+ description: >-
+ Specifies whether to cancel a single event or a range of
+ events for a time period.
+ enum:
+ - cancel
+ type: string
+ required:
+ - cancel
+ - event_name
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter_event_adjustment'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/billing/meter_events:
+ post:
+ description: Creates a billing meter event
+ operationId: PostBillingMeterEvents
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ payload:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ event_name:
+ description: >-
+ The name of the meter event. Corresponds with the
+ `event_name` field on a meter.
+ maxLength: 100
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ identifier:
+ description: >-
+ A unique identifier for the event. If not provided, one will
+ be generated. We recommend using a globally unique
+ identifier for this. We'll enforce uniqueness within a
+ rolling 24 hour period.
+ maxLength: 100
+ type: string
+ payload:
+ additionalProperties:
+ type: string
+ description: >-
+ The payload of the event. This must contain a field with the
+ event's numerical value and a field to map the event to a
+ customer.
+ type: object
+ timestamp:
+ description: >-
+ The time of the event. Measured in seconds since the Unix
+ epoch.
+ format: unix-time
+ type: integer
+ required:
+ - event_name
+ - payload
+ - timestamp
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter_event'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/billing/meters:
get:
- description: >-
- Returns a list of configurations that describe the functionality of
- the customer portal.
- operationId: GetBillingPortalConfigurations
+ description: Retrieve a list of billing meters.
+ operationId: GetBillingMeters
parameters:
- - description: >-
- Only return configurations that are active or inactive (e.g., pass
- `true` to only list active configurations).
- in: query
- name: active
- required: false
- schema:
- type: boolean
- style: form
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Filter results to only include meters with the given status.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - inactive
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/billing.meter'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/billing/meters
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: BillingMeterResourceBillingMeterList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ post:
+ description: Creates a billing meter
+ operationId: PostBillingMeters
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ customer_mapping:
+ explode: true
+ style: deepObject
+ default_aggregation:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ value_settings:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ customer_mapping:
+ description: Fields that specify how to map a meter event to a customer.
+ properties:
+ event_payload_key:
+ maxLength: 100
+ type: string
+ type:
+ enum:
+ - by_id
+ type: string
+ required:
+ - event_payload_key
+ - type
+ title: customer_mapping_param
+ type: object
+ default_aggregation:
+ description: The default settings to aggregate a meter's events with.
+ properties:
+ formula:
+ enum:
+ - count
+ - sum
+ type: string
+ required:
+ - formula
+ title: aggregation_settings_param
+ type: object
+ display_name:
+ description: The meter's name.
+ maxLength: 250
+ type: string
+ event_name:
+ description: >-
+ The name of the usage event to record usage for. Corresponds
+ with the `event_name` field on usage events.
+ maxLength: 100
+ type: string
+ event_time_window:
+ description: 'The time window to pre-aggregate usage events for, if any.'
+ enum:
+ - day
+ - hour
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ value_settings:
+ description: Fields that specify how to calculate a usage event's value.
+ properties:
+ event_payload_key:
+ maxLength: 100
+ type: string
+ required:
+ - event_payload_key
+ title: meter_value_settings_param
+ type: object
+ required:
+ - default_aggregation
+ - display_name
+ - event_name
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/billing/meters/{id}':
+ get:
+ description: Retrieves a billing meter given an ID
+ operationId: GetBillingMetersId
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: Unique identifier for the object.
+ in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ post:
+ description: Updates a billing meter
+ operationId: PostBillingMetersId
+ parameters:
+ - description: Unique identifier for the object.
+ in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ display_name:
+ description: The meter's name.
+ maxLength: 250
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/billing/meters/{id}/deactivate':
+ post:
+ description: Deactivates a billing meter
+ operationId: PostBillingMetersIdDeactivate
+ parameters:
+ - description: Unique identifier for the object.
+ in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/billing/meters/{id}/event_summaries':
+ get:
+ description: Retrieve a list of billing meter event summaries.
+ operationId: GetBillingMetersIdEventSummaries
+ parameters:
+ - description: The customer for which to fetch event summaries.
+ in: query
+ name: customer
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ The timestamp from when to stop aggregating usage events
+ (exclusive).
+ in: query
+ name: end_time
+ required: true
+ schema:
+ format: unix-time
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: Unique identifier for the object.
+ in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ The timestamp from when to start aggregating usage events
+ (inclusive).
+ in: query
+ name: start_time
+ required: true
+ schema:
+ format: unix-time
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ Specifies what granularity to use when generating event summaries.
+ If not specified, a single event summary would be returned for the
+ specified time range.
+ in: query
+ name: value_grouping_window
+ required: false
+ schema:
+ enum:
+ - hour
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/billing.meter_event_summary'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: '^/v1/billing/meters/[^/]+/event_summaries'
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: BillingMeterResourceBillingMeterEventSummaryList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/billing/meters/{id}/reactivate':
+ post:
+ description: Reactivates a billing meter
+ operationId: PostBillingMetersIdReactivate
+ parameters:
+ - description: Unique identifier for the object.
+ in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/billing.meter'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/billing_portal/configurations:
+ get:
+ description: >-
+ Returns a list of configurations that describe the functionality of
+ the customer portal.
+ operationId: GetBillingPortalConfigurations
+ parameters:
+ - description: >-
+ Only return configurations that are active or inactive (e.g., pass
+ `true` to only list active configurations).
+ in: query
+ name: active
+ required: false
+ schema:
+ type: boolean
+ style: form
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -48085,12 +54431,6 @@ paths:
- enabled
title: subscription_cancel_creation_param
type: object
- subscription_pause:
- properties:
- enabled:
- type: boolean
- title: subscription_pause_param
- type: object
subscription_update:
properties:
default_allowed_updates:
@@ -48397,12 +54737,6 @@ paths:
type: string
title: subscription_cancel_updating_param
type: object
- subscription_pause:
- properties:
- enabled:
- type: boolean
- title: subscription_pause_param
- type: object
subscription_update:
properties:
default_allowed_updates:
@@ -48747,7 +55081,10 @@ paths:
first.
operationId: GetCharges
parameters:
- - explode: true
+ - description: >-
+ Only return charges that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -48891,14 +55228,13 @@ paths:
description: Error response.
post:
description: >-
- Use the Payment Intents API
- to initiate a new payment instead
+
This method is no longer recommended—use the Payment Intents API
- of using this method. Confirmation of the PaymentIntent creates the
- Charge
+ to initiate a new payment instead. Confirmation of the PaymentIntent
+ creates the Charge
- object used to request payment, so this method is limited to legacy
- integrations.
+ object used to request payment.
operationId: PostCharges
requestBody:
content:
@@ -49094,7 +55430,7 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
type: object
receipt_email:
description: >-
@@ -49918,32 +56254,32 @@ paths:
'/v1/charges/{charge}/refund':
post:
description: >-
- When you create a new refund, you must specify a Charge or a
- PaymentIntent object on which to create it.
+ When you create a new refund, you must specify either a Charge or a
+ PaymentIntent object.
- Creating a new refund will refund a charge that has previously been
- created but not yet refunded.
+
This action refunds a previously created charge that’s not refunded
+ yet.
- Funds will be refunded to the credit or debit card that was originally
+ Funds are refunded to the credit or debit card that’s originally
charged.
You can optionally refund only part of a charge.
- You can do so multiple times, until the entire charge has been
- refunded.
+ You can repeat this until the entire charge is refunded.
- Once entirely refunded, a charge can’t be refunded again.
+
After you entirely refund a charge, you can’t refund it again.
- This method will raise an error when called on an already-refunded
+ This method raises an error when it’s called on an already-refunded
charge,
- or when trying to refund more money than is left on a charge.
+ or when you attempt to refund more money than is left on a charge.
operationId: PostChargesChargeRefund
parameters:
- - in: path
+ - description: The identifier of the charge to refund.
+ in: path
name: charge
required: true
schema:
@@ -49964,6 +56300,11 @@ paths:
additionalProperties: false
properties:
amount:
+ description: >-
+ A positive integer in the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal)
+ representing how much of this charge to refund. Can refund
+ only up to the remaining, unrefunded amount of the charge.
type: integer
expand:
description: Specifies which fields in the response should be expanded.
@@ -49994,9 +56335,18 @@ paths:
value to them. All keys can be unset by posting an empty
value to `metadata`.
payment_intent:
+ description: The identifier of the PaymentIntent to refund.
maxLength: 5000
type: string
reason:
+ description: >-
+ String indicating the reason for the refund. If set,
+ possible values are `duplicate`, `fraudulent`, and
+ `requested_by_customer`. If you believe the charge to be
+ fraudulent, specifying `fraudulent` as the reason will add
+ the associated card and email to your [block
+ lists](https://stripe.com/docs/radar/lists), and will also
+ help us improve our fraud detection algorithms.
enum:
- duplicate
- fraudulent
@@ -50004,8 +56354,22 @@ paths:
maxLength: 5000
type: string
refund_application_fee:
+ description: >-
+ Boolean indicating whether the application fee should be
+ refunded when refunding this charge. If a full charge refund
+ is given, the full application fee will be refunded.
+ Otherwise, the application fee will be refunded in an amount
+ proportional to the amount of the charge refunded. An
+ application fee can be refunded only by the application that
+ created the charge.
type: boolean
reverse_transfer:
+ description: >-
+ Boolean indicating whether the transfer should be reversed
+ when refunding this charge. The transfer will be reversed
+ proportionally to the amount being refunded (either the
+ entire or partial amount).
A transfer can be reversed
+ only by the application that created the charge.
type: boolean
type: object
required: false
@@ -50136,10 +56500,34 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: Create a refund.
+ description: >-
+ When you create a new refund, you must specify a Charge or a
+ PaymentIntent object on which to create it.
+
+
+ Creating a new refund will refund a charge that has previously been
+ created but not yet refunded.
+
+ Funds will be refunded to the credit or debit card that was originally
+ charged.
+
+
+ You can optionally refund only part of a charge.
+
+ You can do so multiple times, until the entire charge has been
+ refunded.
+
+
+ Once entirely refunded, a charge can’t be refunded again.
+
+ This method will raise an error when called on an already-refunded
+ charge,
+
+ or when trying to refund more money than is left on a charge.
operationId: PostChargesChargeRefunds
parameters:
- - in: path
+ - description: The identifier of the charge to refund.
+ in: path
name: charge
required: true
schema:
@@ -50160,7 +56548,6 @@ paths:
additionalProperties: false
properties:
amount:
- description: A positive integer representing how much to refund.
type: integer
currency:
description: >-
@@ -50207,9 +56594,18 @@ paths:
- customer_balance
type: string
payment_intent:
+ description: The identifier of the PaymentIntent to refund.
maxLength: 5000
type: string
reason:
+ description: >-
+ String indicating the reason for the refund. If set,
+ possible values are `duplicate`, `fraudulent`, and
+ `requested_by_customer`. If you believe the charge to be
+ fraudulent, specifying `fraudulent` as the reason will add
+ the associated card and email to your [block
+ lists](https://stripe.com/docs/radar/lists), and will also
+ help us improve our fraud detection algorithms.
enum:
- duplicate
- fraudulent
@@ -50217,8 +56613,22 @@ paths:
maxLength: 5000
type: string
refund_application_fee:
+ description: >-
+ Boolean indicating whether the application fee should be
+ refunded when refunding this charge. If a full charge refund
+ is given, the full application fee will be refunded.
+ Otherwise, the application fee will be refunded in an amount
+ proportional to the amount of the charge refunded. An
+ application fee can be refunded only by the application that
+ created the charge.
type: boolean
reverse_transfer:
+ description: >-
+ Boolean indicating whether the transfer should be reversed
+ when refunding this charge. The transfer will be reversed
+ proportionally to the amount being refunded (either the
+ entire or partial amount).
A transfer can be reversed
+ only by the application that created the charge.
type: boolean
type: object
required: false
@@ -50348,6 +56758,28 @@ paths:
description: Returns a list of Checkout Sessions.
operationId: GetCheckoutSessions
parameters:
+ - description: >-
+ Only return Checkout Sessions that were created during the given
+ date interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: Only return the Checkout Sessions for the Customer specified.
in: query
name: customer
@@ -50434,6 +56866,17 @@ paths:
maxLength: 5000
type: string
style: form
+ - description: Only return the Checkout Sessions matching the given status.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - complete
+ - expired
+ - open
+ type: string
+ style: form
- description: Only return the Checkout Session for the subscription specified.
in: query
name: subscription
@@ -50589,6 +57032,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_params
@@ -50596,7 +57052,7 @@ paths:
billing_address_collection:
description: >-
Specify whether Checkout should collect the customer's
- billing address.
+ billing address. Defaults to `auto`.
enum:
- auto
- required
@@ -50624,6 +57080,17 @@ paths:
Configure fields for the Checkout Session to gather active
consent from customers.
properties:
+ payment_method_reuse_agreement:
+ properties:
+ position:
+ enum:
+ - auto
+ - hidden
+ type: string
+ required:
+ - position
+ title: payment_method_reuse_agreement_params
+ type: object
promotions:
enum:
- auto
@@ -50641,12 +57108,13 @@ paths:
Three-letter [ISO currency
code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
+ currency](https://stripe.com/docs/currencies). Required in
+ `setup` mode when `payment_method_types` is not set.
type: string
custom_fields:
description: >-
Collect additional information from your customer using
- custom fields. Up to 2 fields are supported.
+ custom fields. Up to 3 fields are supported.
items:
properties:
dropdown:
@@ -50723,6 +57191,19 @@ paths:
Display additional text for your customers using custom
text.
properties:
+ after_submit:
+ anyOf:
+ - properties:
+ message:
+ maxLength: 1200
+ type: string
+ required:
+ - message
+ title: custom_text_position_param
+ type: object
+ - enum:
+ - ''
+ type: string
shipping_address:
anyOf:
- properties:
@@ -50767,7 +57248,7 @@ paths:
customer:
description: >-
ID of an existing Customer, if one exists. In `payment`
- mode, the customer’s most recent card
+ mode, the customer’s most recently saved card
payment method will be used to prefill the email, name, card
details, and billing address
@@ -50776,10 +57257,10 @@ paths:
[default payment
method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
- will be used if it’s a card, and otherwise the most recent
- card will be used. A valid billing address, billing name and
- billing email are required on the payment method for
- Checkout to prefill the customer's card details.
+ will be used if it’s a card, otherwise the most recently
+ saved card will be used. A valid billing address, billing
+ name and billing email are required on the payment method
+ for Checkout to prefill the customer's card details.
If the Customer already has a valid
@@ -50922,10 +57403,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -50942,6 +57423,19 @@ paths:
footer:
maxLength: 5000
type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
metadata:
additionalProperties:
type: string
@@ -51245,7 +57739,8 @@ paths:
or a discount.
- Can only be set in `subscription` mode.
+ Can only be set in `subscription` mode. Defaults to
+ `always`.
If you'd like information on how to collect a payment method
@@ -51388,6 +57883,13 @@ paths:
type: boolean
title: installments_param
type: object
+ request_three_d_secure:
+ enum:
+ - any
+ - automatic
+ - challenge
+ type: string
+ x-stripeBypassValidation: true
setup_future_usage:
enum:
- off_session
@@ -51607,6 +58109,15 @@ paths:
type: integer
title: payment_method_options_param
type: object
+ revolut_pay:
+ properties:
+ setup_future_usage:
+ enum:
+ - none
+ - off_session
+ type: string
+ title: payment_method_options_param
+ type: object
sepa_debit:
properties:
setup_future_usage:
@@ -51625,6 +58136,13 @@ paths:
type: string
title: payment_method_options_param
type: object
+ swish:
+ properties:
+ reference:
+ maxLength: 5000
+ type: string
+ title: payment_method_options_param
+ type: object
us_bank_account:
properties:
financial_connections:
@@ -51644,6 +58162,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -51691,11 +58210,13 @@ paths:
Checkout Session can accept.
- In `payment` and `subscription` mode, you can omit this
- attribute to manage your payment methods from the [Stripe
+ You can omit this attribute to manage your payment methods
+ from the [Stripe
Dashboard](https://dashboard.stripe.com/settings/payment_methods).
- It is required in `setup` mode.
+ See [Dynamic Payment
+ Methods](https://stripe.com/docs/payments/payment-methods/integration-options#using-dynamic-payment-methods)
+ for more details.
Read more about the supported payment methods and their
@@ -51740,8 +58261,10 @@ paths:
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -51766,6 +58289,29 @@ paths:
- enabled
title: phone_number_collection_params
type: object
+ redirect_on_completion:
+ description: >-
+ This parameter applies to `ui_mode: embedded`. Learn more
+ about the [redirect
+ behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior)
+ of embedded sessions. Defaults to `always`.
+ enum:
+ - always
+ - if_required
+ - never
+ type: string
+ return_url:
+ description: >-
+ The URL to redirect your customer back to after they
+ authenticate or cancel their payment on the
+
+ payment method's app or site. This parameter is required if
+ ui_mode is `embedded`
+
+ and redirect-based payment methods are enabled on the
+ session.
+ maxLength: 5000
+ type: string
setup_intent_data:
description: >-
A subset of parameters to be passed to SetupIntent creation
@@ -52143,10 +58689,8 @@ paths:
relevant text on the page, such as the submit button.
`submit_type` can only be
- specified on Checkout Sessions in `payment` mode, but not
- Checkout Sessions
-
- in `subscription` or `setup` mode.
+ specified on Checkout Sessions in `payment` mode. If blank
+ or `auto`, `pay` is used.
enum:
- auto
- book
@@ -52171,6 +58715,23 @@ paths:
description:
maxLength: 500
type: string
+ invoice_settings:
+ properties:
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: invoice_settings_params
+ type: object
metadata:
additionalProperties:
type: string
@@ -52224,10 +58785,13 @@ paths:
is complete.
- If you’d like to use information from the successful
- Checkout Session on your page,
+ This parameter is not allowed if ui_mode is `embedded`. If
+ you’d like to use
+
+ information from the successful Checkout Session on your
+ page, read the
- read the guide on [customizing your success
+ guide on [customizing your success
page](https://stripe.com/docs/payments/checkout/custom-success-page).
maxLength: 5000
type: string
@@ -52240,10 +58804,15 @@ paths:
- enabled
title: tax_id_collection_params
type: object
- required:
- - success_url
+ ui_mode:
+ description: The UI mode of the Session. Defaults to `hosted`.
+ enum:
+ - embedded
+ - hosted
+ type: string
+ x-stripeBypassValidation: true
type: object
- required: true
+ required: false
responses:
'200':
content:
@@ -52466,10 +59035,14 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/country_specs:
+ /v1/climate/orders:
get:
- description: Lists all Country Spec objects available in the API.
- operationId: GetCountrySpecs
+ description: >-
+ Lists all Climate order objects. The orders are returned sorted by
+ creation date, with the
+
+ most recently created orders appearing first.
+ operationId: GetClimateOrders
parameters:
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
@@ -52535,7 +59108,7 @@ paths:
properties:
data:
items:
- $ref: '#/components/schemas/country_spec'
+ $ref: '#/components/schemas/climate.order'
type: array
has_more:
description: >-
@@ -52552,14 +59125,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/country_specs
+ pattern: ^/v1/climate/orders
type: string
required:
- data
- has_more
- object
- url
- title: CountrySpecList
+ title: ClimateRemovalsOrdersList
type: object
x-expandableFields:
- data
@@ -52570,18 +59143,108 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/country_specs/{country}':
+ post:
+ description: >-
+ Creates a Climate order object for a given Climate product. The order
+ will be processed immediately
+
+ after creation and payment will be deducted your Stripe balance.
+ operationId: PostClimateOrders
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ beneficiary:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ amount:
+ description: >-
+ Requested amount of carbon removal units. Either this or
+ `metric_tons` must be specified.
+ type: integer
+ beneficiary:
+ description: >-
+ Publicly sharable reference for the end beneficiary of
+ carbon removal. Assumed to be the Stripe account if not set.
+ properties:
+ public_name:
+ maxLength: 5000
+ type: string
+ required:
+ - public_name
+ title: beneficiary_params
+ type: object
+ currency:
+ description: >-
+ Request currency for the order as a three-letter [ISO
+ currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a supported [settlement currency for your
+ account](https://stripe.com/docs/currencies). If omitted,
+ the account's default currency will be used.
+ maxLength: 5000
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ metric_tons:
+ description: >-
+ Requested number of tons for the order. Either this or
+ `amount` must be specified.
+ format: decimal
+ type: string
+ product:
+ description: Unique identifier of the Climate product.
+ maxLength: 5000
+ type: string
+ required:
+ - product
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/climate.order'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/climate/orders/{order}':
get:
- description: Returns a Country Spec for a given Country code.
- operationId: GetCountrySpecsCountry
+ description: >-
+ Retrieves the details of a Climate order object with the given
+ ID.
+ operationId: GetClimateOrdersOrder
parameters:
- - in: path
- name: country
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -52593,6 +59256,14 @@ paths:
type: string
type: array
style: deepObject
+ - description: Unique identifier of the order.
+ in: path
+ name: order
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -52607,7 +59278,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/country_spec'
+ $ref: '#/components/schemas/climate.order'
description: Successful response.
default:
content:
@@ -52615,34 +59286,664 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/coupons:
- get:
- description: Returns a list of your coupons.
- operationId: GetCoupons
+ post:
+ description: >-
+ Updates the specified order by setting the values of the parameters
+ passed.
+ operationId: PostClimateOrdersOrder
parameters:
- - description: >-
- A filter on the list, based on the object `created` field. The value
- can be a string with an integer Unix timestamp, or it can be a
- dictionary with a number of different query options.
- explode: true
- in: query
- name: created
- required: false
+ - description: Unique identifier of the order.
+ in: path
+ name: order
+ required: true
schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ beneficiary:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ beneficiary:
+ anyOf:
+ - properties:
+ public_name:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ required:
+ - public_name
+ title: beneficiary_params
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Publicly sharable reference for the end beneficiary of
+ carbon removal. Assumed to be the Stripe account if not set.
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/climate.order'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/climate/orders/{order}/cancel':
+ post:
+ description: >-
+ Cancels a Climate order. You can cancel an order within 30 days of
+ creation. Stripe refunds the
+
+ reservation amount_subtotal
, but not the
+ amount_fees
for user-triggered cancellations. Frontier
+
+ might cancel reservations if suppliers fail to deliver. If Frontier
+ cancels the reservation, Stripe
+
+ provides 90 days advance notice and refunds the
+ amount_total
.
+ operationId: PostClimateOrdersOrderCancel
+ parameters:
+ - description: Unique identifier of the order.
+ in: path
+ name: order
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/climate.order'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/climate/products:
+ get:
+ description: Lists all available Climate product objects.
+ operationId: GetClimateProducts
+ parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/climate.product'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/climate/products
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: ClimateRemovalsProductsList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/climate/products/{product}':
+ get:
+ description: Retrieves the details of a Climate product with the given ID.
+ operationId: GetClimateProductsProduct
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: product
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/climate.product'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/climate/suppliers:
+ get:
+ description: Lists all available Climate supplier objects.
+ operationId: GetClimateSuppliers
+ parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/climate.supplier'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/climate/suppliers
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: ClimateRemovalsSuppliersList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/climate/suppliers/{supplier}':
+ get:
+ description: Retrieves a Climate supplier object.
+ operationId: GetClimateSuppliersSupplier
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: supplier
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/climate.supplier'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/confirmation_tokens/{confirmation_token}':
+ get:
+ description: Retrieves an existing ConfirmationToken object
+ operationId: GetConfirmationTokensConfirmationToken
+ parameters:
+ - in: path
+ name: confirmation_token
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/confirmation_token'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/country_specs:
+ get:
+ description: Lists all Country Spec objects available in the API.
+ operationId: GetCountrySpecs
+ parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/country_spec'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/country_specs
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: CountrySpecList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/country_specs/{country}':
+ get:
+ description: Returns a Country Spec for a given Country code.
+ operationId: GetCountrySpecsCountry
+ parameters:
+ - in: path
+ name: country
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/country_spec'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/coupons:
+ get:
+ description: Returns a list of your coupons.
+ operationId: GetCoupons
+ parameters:
+ - description: >-
+ A filter on the list, based on the object `created` field. The value
+ can be a string with an integer Unix timestamp, or it can be a
+ dictionary with a number of different query options.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -53086,26 +60387,48 @@ paths:
operationId: GetCreditNotes
parameters:
- description: >-
- Only return credit notes for the customer specified by this customer
- ID.
- in: query
- name: customer
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- - description: >-
- A cursor for use in pagination. `ending_before` is an object ID that
- defines your place in the list. For instance, if you make a list
- request and receive 100 objects, starting with `obj_bar`, your
- subsequent call can include `ending_before=obj_bar` in order to
- fetch the previous page of the list.
+ Only return credit notes that were created during the given date
+ interval.
+ explode: true
in: query
- name: ending_before
+ name: created
required: false
schema:
- maxLength: 5000
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ Only return credit notes for the customer specified by this customer
+ ID.
+ in: query
+ name: customer
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
type: string
style: form
- description: Specifies which fields in the response should be expanded.
@@ -53303,6 +60626,27 @@ paths:
type: string
quantity:
type: integer
+ tax_amounts:
+ anyOf:
+ - items:
+ properties:
+ amount:
+ type: integer
+ tax_rate:
+ maxLength: 5000
+ type: string
+ taxable_amount:
+ type: integer
+ required:
+ - amount
+ - tax_rate
+ - taxable_amount
+ title: tax_amount_with_tax_rate_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
tax_rates:
anyOf:
- items:
@@ -53466,6 +60810,27 @@ paths:
type: string
quantity:
type: integer
+ tax_amounts:
+ anyOf:
+ - items:
+ properties:
+ amount:
+ type: integer
+ tax_rate:
+ maxLength: 5000
+ type: string
+ taxable_amount:
+ type: integer
+ required:
+ - amount
+ - tax_rate
+ - taxable_amount
+ title: tax_amount_with_tax_rate_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
tax_rates:
anyOf:
- items:
@@ -53689,6 +61054,27 @@ paths:
type: string
quantity:
type: integer
+ tax_amounts:
+ anyOf:
+ - items:
+ properties:
+ amount:
+ type: integer
+ tax_rate:
+ maxLength: 5000
+ type: string
+ taxable_amount:
+ type: integer
+ required:
+ - amount
+ - tax_rate
+ - taxable_amount
+ title: tax_amount_with_tax_rate_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
tax_rates:
anyOf:
- items:
@@ -54125,6 +61511,79 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ /v1/customer_sessions:
+ post:
+ description: >-
+ Creates a customer session object that includes a single-use client
+ secret that you can use on your front-end to grant client-side API
+ access for certain customer resources.
+ operationId: PostCustomerSessions
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ components:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ components:
+ description: >-
+ Configuration for each component. Exactly 1 component must
+ be enabled.
+ properties:
+ buy_button:
+ properties:
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: buy_button_param
+ type: object
+ pricing_table:
+ properties:
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: pricing_table_param
+ type: object
+ title: components
+ type: object
+ customer:
+ description: >-
+ The ID of an existing customer for which to create the
+ customer session.
+ maxLength: 5000
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ required:
+ - components
+ - customer
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/customer_session'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
/v1/customers:
get:
description: >-
@@ -54132,7 +61591,10 @@ paths:
by creation date, with the most recent customers appearing first.
operationId: GetCustomers
parameters:
- - explode: true
+ - description: >-
+ Only return customers that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -54397,10 +61859,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -54473,7 +61935,7 @@ paths:
type: array
promotion_code:
description: >-
- The API ID of a promotion code to apply to the customer. The
+ The ID of a promotion code to apply to the customer. The
customer will have a discount applied on all recurring
payments. Charges you create through the API will not have
the discount.
@@ -54534,6 +61996,11 @@ paths:
- enum:
- ''
type: string
+ validate_location:
+ enum:
+ - deferred
+ - immediately
+ type: string
title: tax_param
type: object
tax_exempt:
@@ -54597,6 +62064,7 @@ paths:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -55130,10 +62598,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -55203,7 +62671,7 @@ paths:
type: array
promotion_code:
description: >-
- The API ID of a promotion code to apply to the customer. The
+ The ID of a promotion code to apply to the customer. The
customer will have a discount applied on all recurring
payments. Charges you create through the API will not have
the discount.
@@ -55264,6 +62732,11 @@ paths:
- enum:
- ''
type: string
+ validate_location:
+ enum:
+ - deferred
+ - immediately
+ type: string
title: tax_param
type: object
tax_exempt:
@@ -57354,14 +64827,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -58231,6 +65707,9 @@ paths:
add_invoice_items:
explode: true
style: deepObject
+ application_fee_percent:
+ explode: true
+ style: deepObject
automatic_tax:
explode: true
style: deepObject
@@ -58240,9 +65719,15 @@ paths:
default_tax_rates:
explode: true
style: deepObject
+ discounts:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
+ invoice_settings:
+ explode: true
+ style: deepObject
items:
explode: true
style: deepObject
@@ -58274,6 +65759,21 @@ paths:
You may pass up to 20 items.
items:
properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
price:
maxLength: 5000
type: string
@@ -58315,6 +65815,11 @@ paths:
type: object
type: array
application_fee_percent:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
description: >-
A non-negative decimal between 0 and 100, with at most two
decimal places. This represents the percentage of the
@@ -58324,7 +65829,6 @@ paths:
an application fee percentage. For more information, see the
application fees
[documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- type: number
automatic_tax:
description: >-
Automatic tax settings for this subscription. We recommend
@@ -58333,6 +65837,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_config
@@ -58348,12 +65865,13 @@ paths:
type: integer
billing_cycle_anchor:
description: >-
- A future timestamp to anchor the subscription's [billing
+ A future timestamp in UTC format to anchor the
+ subscription's [billing
cycle](https://stripe.com/docs/subscriptions/billing-cycle).
- This is used to determine the date of the first full
- invoice, and, for plans with `month` or `year` intervals,
- the day of the month for subsequent invoices. The timestamp
- is in UTC format.
+ The anchor is the reference point that aligns future billing
+ cycle dates. It sets the day of week for `week` intervals,
+ the day of month for `month` and `year` intervals, and the
+ month of year for `year` intervals.
format: unix-time
type: integer
x-stripeBypassValidation: true
@@ -58404,7 +65922,9 @@ paths:
description: >-
The ID of the coupon to apply to this subscription. A coupon
applied to a subscription will only affect invoices created
- for that particular subscription.
+ for that particular subscription. This field has been
+ deprecated and will be removed in a future API version. Use
+ `discounts` instead.
maxLength: 5000
type: string
currency:
@@ -58456,12 +65976,62 @@ paths:
The tax rates that will apply to any subscription item that
does not have `tax_rates` set. Invoices created will have
their `default_tax_rates` populated from the subscription.
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription.
+ If not specified or empty, inherits the discount from the
+ subscription's customer.
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
+ invoice_settings:
+ description: All invoices will be billed using the specified settings.
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: invoice_settings_param
+ type: object
items:
description: >-
A list of up to 20 subscription items, each with an attached
@@ -58480,6 +66050,25 @@ paths:
- enum:
- ''
type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
metadata:
additionalProperties:
type: string
@@ -58567,13 +66156,13 @@ paths:
`collection_method=charge_automatically`.
- Use `allow_incomplete` to create subscriptions with
- `status=incomplete` if the first invoice cannot be paid.
- Creating subscriptions with this status allows you to manage
- scenarios where additional user actions are needed to pay a
- subscription's invoice. For example, SCA regulation may
- require 3DS authentication to complete payment. See the [SCA
- Migration
+ Use `allow_incomplete` to create Subscriptions with
+ `status=incomplete` if the first invoice can't be paid.
+ Creating Subscriptions with this status allows you to manage
+ scenarios where additional customer actions are needed to
+ pay a subscription's invoice. For example, SCA regulation
+ may require 3DS authentication to complete payment. See the
+ [SCA Migration
Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication)
for Billing to learn more. This is the default behavior.
@@ -58581,34 +66170,35 @@ paths:
Use `default_incomplete` to create Subscriptions with
`status=incomplete` when the first invoice requires payment,
otherwise start as active. Subscriptions transition to
- `status=active` when successfully confirming the payment
- intent on the first invoice. This allows simpler management
- of scenarios where additional user actions are needed to pay
- a subscription’s invoice. Such as failed payments, [SCA
+ `status=active` when successfully confirming the
+ PaymentIntent on the first invoice. This allows simpler
+ management of scenarios where additional customer actions
+ are needed to pay a subscription’s invoice, such as failed
+ payments, [SCA
regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication),
or collecting a mandate for a bank debit payment method. If
- the payment intent is not confirmed within 23 hours
- subscriptions transition to `status=incomplete_expired`,
+ the PaymentIntent is not confirmed within 23 hours
+ Subscriptions transition to `status=incomplete_expired`,
which is a terminal state.
Use `error_if_incomplete` if you want Stripe to return an
- HTTP 402 status code if a subscription's first invoice
- cannot be paid. For example, if a payment method requires
- 3DS authentication due to SCA regulation and further user
- action is needed, this parameter does not create a
- subscription and returns an error instead. This was the
+ HTTP 402 status code if a subscription's first invoice can't
+ be paid. For example, if a payment method requires 3DS
+ authentication due to SCA regulation and further customer
+ action is needed, this parameter doesn't create a
+ Subscription and returns an error instead. This was the
default behavior for API versions prior to 2019-03-14. See
the [changelog](https://stripe.com/docs/upgrades#2019-03-14)
to learn more.
`pending_if_incomplete` is only used with updates and cannot
- be passed when creating a subscription.
+ be passed when creating a Subscription.
Subscriptions with `collection_method=send_invoice` are
- automatically activated regardless of the first invoice
+ automatically activated regardless of the first Invoice
status.
enum:
- allow_incomplete
@@ -58699,6 +66289,7 @@ paths:
enum:
- any
- automatic
+ - challenge
type: string
title: subscription_payment_method_options_param
type: object
@@ -58738,6 +66329,14 @@ paths:
- enum:
- ''
type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -58758,6 +66357,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -58791,12 +66391,14 @@ paths:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -58843,16 +66445,17 @@ paths:
given subscription at the specified interval.
promotion_code:
description: >-
- The API ID of a promotion code to apply to this
- subscription. A promotion code applied to a subscription
- will only affect invoices created for that particular
- subscription.
+ The ID of a promotion code to apply to this subscription. A
+ promotion code applied to a subscription will only affect
+ invoices created for that particular subscription. This
+ field has been deprecated and will be removed in a future
+ API version. Use `discounts` instead.
maxLength: 5000
type: string
proration_behavior:
description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
resulting from the `billing_cycle_anchor`. If no value is
passed, the default is `create_prorations`.
enum:
@@ -59114,6 +66717,9 @@ paths:
add_invoice_items:
explode: true
style: deepObject
+ application_fee_percent:
+ explode: true
+ style: deepObject
automatic_tax:
explode: true
style: deepObject
@@ -59132,9 +66738,15 @@ paths:
default_tax_rates:
explode: true
style: deepObject
+ discounts:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
+ invoice_settings:
+ explode: true
+ style: deepObject
items:
explode: true
style: deepObject
@@ -59169,6 +66781,21 @@ paths:
You may pass up to 20 items.
items:
properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
price:
maxLength: 5000
type: string
@@ -59210,6 +66837,11 @@ paths:
type: object
type: array
application_fee_percent:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
description: >-
A non-negative decimal between 0 and 100, with at most two
decimal places. This represents the percentage of the
@@ -59219,7 +66851,6 @@ paths:
an application fee percentage. For more information, see the
application fees
[documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- type: number
automatic_tax:
description: >-
Automatic tax settings for this subscription. We recommend
@@ -59228,6 +66859,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_config
@@ -59319,7 +66963,9 @@ paths:
description: >-
The ID of the coupon to apply to this subscription. A coupon
applied to a subscription will only affect invoices created
- for that particular subscription.
+ for that particular subscription. This field has been
+ deprecated and will be removed in a future API version. Use
+ `discounts` instead.
maxLength: 5000
type: string
days_until_due:
@@ -59369,12 +67015,62 @@ paths:
does not have `tax_rates` set. Invoices created will have
their `default_tax_rates` populated from the subscription.
Pass an empty string to remove previously-defined tax rates.
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription.
+ If not specified or empty, inherits the discount from the
+ subscription's customer.
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
+ invoice_settings:
+ description: All invoices will be billed using the specified settings.
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: invoice_settings_param
+ type: object
items:
description: >-
A list of up to 20 subscription items, each with an attached
@@ -59397,6 +67093,25 @@ paths:
type: boolean
deleted:
type: boolean
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
id:
maxLength: 5000
type: string
@@ -59506,7 +67221,10 @@ paths:
type: string
description: >-
If specified, payment collection for this subscription will
- be paused.
+ be paused. Note that the subscription status will be
+ unchanged and will not be updated to `paused`. Learn more
+ about [pausing
+ collection](/billing/subscriptions/pause-payment).
payment_behavior:
description: >-
Use `allow_incomplete` to transition the subscription to
@@ -59635,6 +67353,7 @@ paths:
enum:
- any
- automatic
+ - challenge
type: string
title: subscription_payment_method_options_param
type: object
@@ -59674,6 +67393,14 @@ paths:
- enum:
- ''
type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -59694,6 +67421,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -59727,12 +67455,14 @@ paths:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -59787,7 +67517,7 @@ paths:
proration_behavior:
description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial),
or if an item's `quantity` changes. The default value is
@@ -60130,11 +67860,11 @@ paths:
`eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`,
`hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`,
`jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`,
- `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`,
- `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`,
- `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`,
- `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`,
- or `za_vat`
+ `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`,
+ `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`,
+ `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`,
+ `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`,
+ `vn_tin`, or `za_vat`
enum:
- ad_nrt
- ae_trn
@@ -60181,6 +67911,7 @@ paths:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -60834,7 +68565,8 @@ paths:
Stripe-Version
header).
operationId: GetEvents
parameters:
- - explode: true
+ - description: Only return events that were created during the given date interval.
+ explode: true
in: query
name: created
required: false
@@ -61194,7 +68926,8 @@ paths:
description: Returns a list of file links.
operationId: GetFileLinks
parameters:
- - explode: true
+ - description: Only return links that were created during the given date interval.
+ explode: true
in: query
name: created
required: false
@@ -61317,7 +69050,7 @@ paths:
- has_more
- object
- url
- title: FileFileLinkList
+ title: FileResourceFileLinkList
type: object
x-expandableFields:
- data
@@ -61529,7 +69262,8 @@ paths:
recently created files at the top.
operationId: GetFiles
parameters:
- - explode: true
+ - description: Only return files that were created during the given date interval.
+ explode: true
in: query
name: created
required: false
@@ -61663,7 +69397,7 @@ paths:
- has_more
- object
- url
- title: FileFileList
+ title: FileResourceFileList
type: object
x-expandableFields:
- data
@@ -62207,6 +69941,127 @@ paths:
enum:
- balance
- ownership
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ required:
+ - features
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.account'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/financial_connections/accounts/{account}/subscribe':
+ post:
+ description: >-
+ Subscribes to periodic refreshes of data associated with a Financial
+ Connections Account
.
+ operationId: PostFinancialConnectionsAccountsAccountSubscribe
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ features:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ features:
+ description: >-
+ The list of account features to which you would like to
+ subscribe.
+ items:
+ enum:
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ required:
+ - features
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.account'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/financial_connections/accounts/{account}/unsubscribe':
+ post:
+ description: >-
+ Unsubscribes from periodic refreshes of data associated with a
+ Financial Connections Account
.
+ operationId: PostFinancialConnectionsAccountsAccountUnsubscribe
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ features:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ features:
+ description: >-
+ The list of account features from which you would like to
+ unsubscribe.
+ items:
+ enum:
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -62318,6 +70173,7 @@ paths:
enum:
- balances
- ownership
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -62393,30 +70249,21 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/identity/verification_reports:
+ /v1/financial_connections/transactions:
get:
- description: List all verification reports.
- operationId: GetIdentityVerificationReports
+ description: >-
+ Returns a list of Financial Connections Transaction
+ objects.
+ operationId: GetFinancialConnectionsTransactions
parameters:
- - explode: true
+ - description: The ID of the Stripe account whose transactions will be retrieved.
in: query
- name: created
- required: false
+ name: account
+ required: true
schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
+ maxLength: 5000
+ type: string
+ style: form
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -62463,27 +70310,46 @@ paths:
maxLength: 5000
type: string
style: form
- - description: Only return VerificationReports of this type
+ - description: >-
+ A filter on the list based on the object `transacted_at` field. The
+ value can be a string with an integer Unix timestamp, or it can be a
+ dictionary with the following options:
+ explode: true
in: query
- name: type
+ name: transacted_at
required: false
schema:
- enum:
- - document
- - id_number
- type: string
- x-stripeBypassValidation: true
- style: form
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: >-
- Only return VerificationReports created by this VerificationSession
- ID. It is allowed to provide a VerificationIntent ID.
+ A filter on the list based on the object `transaction_refresh`
+ field. The value can be a dictionary with the following options:
+ explode: true
in: query
- name: verification_session
+ name: transaction_refresh
required: false
schema:
- maxLength: 5000
- type: string
- style: form
+ properties:
+ after:
+ maxLength: 5000
+ type: string
+ required:
+ - after
+ title: transaction_refresh_params
+ type: object
+ style: deepObject
requestBody:
content:
application/x-www-form-urlencoded:
@@ -62501,8 +70367,9 @@ paths:
description: ''
properties:
data:
+ description: Details about each object.
items:
- $ref: '#/components/schemas/identity.verification_report'
+ $ref: '#/components/schemas/financial_connections.transaction'
type: array
has_more:
description: >-
@@ -62519,14 +70386,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/identity/verification_reports
+ pattern: ^/v1/financial_connections/transactions
type: string
required:
- data
- has_more
- object
- url
- title: GelatoVerificationReportList
+ title: BankConnectionsResourceTransactionList
type: object
x-expandableFields:
- data
@@ -62537,10 +70404,12 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/identity/verification_reports/{report}':
+ '/v1/financial_connections/transactions/{transaction}':
get:
- description: Retrieves an existing VerificationReport
- operationId: GetIdentityVerificationReportsReport
+ description: >-
+ Retrieves the details of a Financial Connections
+ Transaction
+ operationId: GetFinancialConnectionsTransactionsTransaction
parameters:
- description: Specifies which fields in the response should be expanded.
explode: true
@@ -62554,7 +70423,7 @@ paths:
type: array
style: deepObject
- in: path
- name: report
+ name: transaction
required: true
schema:
maxLength: 5000
@@ -62574,7 +70443,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/identity.verification_report'
+ $ref: '#/components/schemas/financial_connections.transaction'
description: Successful response.
default:
content:
@@ -62582,36 +70451,515 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/identity/verification_sessions:
+ /v1/forwarding/requests:
get:
- description: Returns a list of VerificationSessions
- operationId: GetIdentityVerificationSessions
+ description: Lists all ForwardingRequest objects.
+ operationId: GetForwardingRequests
parameters:
- - explode: true
+ - description: >-
+ Similar to other List endpoints, filters results based on created
+ timestamp. You can pass gt, gte, lt, and lte timestamp values.
+ explode: true
in: query
name: created
required: false
schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
+ properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: created_param
+ type: object
style: deepObject
- description: >-
- A cursor for use in pagination. `ending_before` is an object ID that
- defines your place in the list. For instance, if you make a list
- request and receive 100 objects, starting with `obj_bar`, your
- subsequent call can include `ending_before=obj_bar` in order to
- fetch the previous page of the list.
+ A pagination cursor to fetch the previous page of the list. The
+ value must be a ForwardingRequest ID.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A pagination cursor to fetch the next page of the list. The value
+ must be a ForwardingRequest ID.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: List of ForwardingRequest data.
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/forwarding.request'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: ForwardingRequestList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ post:
+ description: Creates a ForwardingRequest object.
+ operationId: PostForwardingRequests
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ replacements:
+ explode: true
+ style: deepObject
+ request:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ config:
+ description: >-
+ The Forwarding Config used when making the forwarded
+ request. The config specifes the HTTP method, merchant
+ credentials, connection settings, and supported destination
+ URLs.
+ maxLength: 5000
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ payment_method:
+ description: >-
+ The PaymentMethod to insert into the forwarded request.
+ Forwarding previously consumed PaymentMethods is allowed.
+ maxLength: 5000
+ type: string
+ replacements:
+ description: The field kinds to be replaced in the forwarded request.
+ items:
+ enum:
+ - card_cvc
+ - card_expiry
+ - card_number
+ - cardholder_name
+ type: string
+ type: array
+ request:
+ description: >-
+ The request body and headers to be sent to the destination
+ endpoint.
+ properties:
+ body:
+ maxLength: 5000
+ type: string
+ headers:
+ items:
+ properties:
+ name:
+ maxLength: 5000
+ type: string
+ value:
+ maxLength: 5000
+ type: string
+ required:
+ - name
+ - value
+ title: header_param
+ type: object
+ type: array
+ title: request_param
+ type: object
+ url:
+ description: >-
+ The destination URL for the forwarded request. Must be
+ supported by the config.
+ maxLength: 5000
+ type: string
+ required:
+ - config
+ - payment_method
+ - replacements
+ - url
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/forwarding.request'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/forwarding/requests/{id}':
+ get:
+ description: Retrieves a ForwardingRequest object.
+ operationId: GetForwardingRequestsId
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/forwarding.request'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/identity/verification_reports:
+ get:
+ description: List all verification reports.
+ operationId: GetIdentityVerificationReports
+ parameters:
+ - description: >-
+ A string to reference this user. This can be a customer ID, a
+ session ID, or similar, and can be used to reconcile this
+ verification with your internal systems.
+ in: query
+ name: client_reference_id
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ Only return VerificationReports that were created during the given
+ date interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Only return VerificationReports of this type
+ in: query
+ name: type
+ required: false
+ schema:
+ enum:
+ - document
+ - id_number
+ type: string
+ x-stripeBypassValidation: true
+ style: form
+ - description: >-
+ Only return VerificationReports created by this VerificationSession
+ ID. It is allowed to provide a VerificationIntent ID.
+ in: query
+ name: verification_session
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/identity.verification_report'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/identity/verification_reports
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: GelatoVerificationReportList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/identity/verification_reports/{report}':
+ get:
+ description: Retrieves an existing VerificationReport
+ operationId: GetIdentityVerificationReportsReport
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: report
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/identity.verification_report'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/identity/verification_sessions:
+ get:
+ description: Returns a list of VerificationSessions
+ operationId: GetIdentityVerificationSessions
+ parameters:
+ - description: >-
+ A string to reference this user. This can be a customer ID, a
+ session ID, or similar, and can be used to reconcile this
+ verification with your internal systems.
+ in: query
+ name: client_reference_id
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ Only return VerificationSessions that were created during the given
+ date interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
in: query
name: ending_before
required: false
@@ -62751,9 +71099,19 @@ paths:
options:
explode: true
style: deepObject
+ provided_details:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
+ client_reference_id:
+ description: >-
+ A string to reference this user. This can be a customer ID,
+ a session ID, or similar, and can be used to reconcile this
+ verification with your internal systems.
+ maxLength: 5000
+ type: string
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -62797,8 +71155,39 @@ paths:
- enum:
- ''
type: string
+ email:
+ anyOf:
+ - properties:
+ require_verification:
+ type: boolean
+ title: email_options
+ type: object
+ - enum:
+ - ''
+ type: string
+ phone:
+ anyOf:
+ - properties:
+ require_verification:
+ type: boolean
+ title: phone_options
+ type: object
+ - enum:
+ - ''
+ type: string
title: session_options_param
type: object
+ provided_details:
+ description: >-
+ Details provided about the user being verified. These
+ details may be shown to the user.
+ properties:
+ email:
+ type: string
+ phone:
+ type: string
+ title: provided_details_param
+ type: object
return_url:
description: >-
The URL that the user will be redirected to upon completing
@@ -62814,10 +71203,12 @@ paths:
- id_number
type: string
x-stripeBypassValidation: true
- required:
- - type
+ verification_flow:
+ description: The ID of a Verification Flow from the Dashboard.
+ maxLength: 5000
+ type: string
type: object
- required: true
+ required: false
responses:
'200':
content:
@@ -62916,6 +71307,9 @@ paths:
options:
explode: true
style: deepObject
+ provided_details:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
@@ -62962,8 +71356,39 @@ paths:
- enum:
- ''
type: string
+ email:
+ anyOf:
+ - properties:
+ require_verification:
+ type: boolean
+ title: email_options
+ type: object
+ - enum:
+ - ''
+ type: string
+ phone:
+ anyOf:
+ - properties:
+ require_verification:
+ type: boolean
+ title: phone_options
+ type: object
+ - enum:
+ - ''
+ type: string
title: session_options_param
type: object
+ provided_details:
+ description: >-
+ Details provided about the user being verified. These
+ details may be shown to the user.
+ properties:
+ email:
+ type: string
+ phone:
+ type: string
+ title: provided_details_param
+ type: object
type:
description: >-
The type of [verification
@@ -63135,7 +71560,10 @@ paths:
appearing first.
operationId: GetInvoiceitems
parameters:
- - explode: true
+ - description: >-
+ Only return invoice items that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -63361,6 +71789,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -63368,8 +71799,8 @@ paths:
- ''
type: string
description: >-
- The coupons to redeem into discounts for the invoice item or
- invoice line item.
+ The coupons and promotion codes to redeem into discounts for
+ the invoice item or invoice line item.
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -63686,6 +72117,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -63693,10 +72127,10 @@ paths:
- ''
type: string
description: >-
- The coupons & existing discounts which apply to the invoice
- item or invoice line item. Item discounts are applied before
- invoice discounts. Pass an empty string to remove
- previously-defined discounts.
+ The coupons, promotion codes & existing discounts which
+ apply to the invoice item or invoice line item. Item
+ discounts are applied before invoice discounts. Pass an
+ empty string to remove previously-defined discounts.
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -63861,7 +72295,10 @@ paths:
- send_invoice
type: string
style: form
- - explode: true
+ - description: >-
+ Only return invoices that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -64022,7 +72459,7 @@ paths:
- has_more
- object
- url
- title: InvoicesList
+ title: InvoicesResourceList
type: object
x-expandableFields:
- data
@@ -64066,6 +72503,9 @@ paths:
from_invoice:
explode: true
style: deepObject
+ issuer:
+ explode: true
+ style: deepObject
metadata:
explode: true
style: deepObject
@@ -64075,9 +72515,6 @@ paths:
rendering:
explode: true
style: deepObject
- rendering_options:
- explode: true
- style: deepObject
shipping_cost:
explode: true
style: deepObject
@@ -64123,6 +72560,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
@@ -64149,10 +72599,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -64218,6 +72668,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -64225,10 +72678,10 @@ paths:
- ''
type: string
description: >-
- The coupons to redeem into discounts for the invoice. If not
- specified, inherits the discount from the invoice's
- customer. Pass an empty string to avoid inheriting any
- discounts.
+ The coupons and promotion codes to redeem into discounts for
+ the invoice. If not specified, inherits the discount from
+ the invoice's customer. Pass an empty string to avoid
+ inheriting any discounts.
due_date:
description: >-
The date on which payment for this invoice is due. Valid
@@ -64273,6 +72726,23 @@ paths:
- invoice
title: from_invoice
type: object
+ issuer:
+ description: >-
+ The connected account that issues the invoice. The invoice
+ is presented with the branding and support information of
+ the specified account.
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
metadata:
anyOf:
- additionalProperties:
@@ -64289,6 +72759,19 @@ paths:
format. Individual keys can be unset by posting an empty
value to them. All keys can be unset by posting an empty
value to `metadata`.
+ number:
+ description: >-
+ Set the number for this invoice. If no number is present
+ then a number will be assigned automatically when the
+ invoice is finalized. In many markets, regulations require
+ invoices to be unique, sequential and / or gapless. You are
+ responsible for ensuring this is true across all your
+ different invoicing systems in the event that you edit the
+ invoice number using our API. If you use only Stripe for
+ your invoices and do not change invoice numbers, Stripe
+ handles this aspect of compliance for you automatically.
+ maxLength: 26
+ type: string
on_behalf_of:
description: >-
The account (if any) for which the funds of the invoice
@@ -64386,6 +72869,7 @@ paths:
enum:
- any
- automatic
+ - challenge
type: string
title: invoice_payment_method_options_param
type: object
@@ -64425,6 +72909,14 @@ paths:
- enum:
- ''
type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -64445,6 +72937,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -64478,12 +72971,14 @@ paths:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -64501,18 +72996,13 @@ paths:
type: object
pending_invoice_items_behavior:
description: >-
- How to handle pending invoice items on invoice creation. One
- of `include` or `exclude`. `include` will include any
- pending invoice items, and will create an empty draft
- invoice if no pending invoice items exist. `exclude` will
- always create an empty invoice draft regardless if there are
- pending invoice items or not. Defaults to `exclude` if the
- parameter is omitted.
+ How to handle pending invoice items on invoice creation.
+ Defaults to `exclude` if the parameter is omitted.
enum:
- exclude
- include
- - include_and_require
type: string
+ x-stripeBypassValidation: true
rendering:
description: >-
The rendering-related settings that control how the invoice
@@ -64537,21 +73027,6 @@ paths:
type: object
title: rendering_param
type: object
- rendering_options:
- anyOf:
- - properties:
- amount_tax_display:
- enum:
- - ''
- - exclude_tax
- - include_inclusive_tax
- type: string
- title: rendering_options_param
- type: object
- - enum:
- - ''
- type: string
- description: Options for invoice PDF rendering.
shipping_cost:
description: Settings for the cost of shipping for this invoice.
properties:
@@ -64875,14 +73350,12 @@ paths:
You can preview the effects of updating a subscription, including a
preview of what proration will take place. To ensure that the actual
proration is calculated exactly the same as the previewed proration, you
- should pass a proration_date
parameter when doing the
- actual subscription update. The value passed in should be the same as
- the subscription_proration_date
returned on the upcoming
- invoice resource. The recommended way to get only the prorations being
- previewed is to consider only proration line items where
- period[start]
is equal to the
- subscription_proration_date
on the upcoming invoice
- resource.
+ should pass the subscription_proration_date
parameter when
+ doing the actual subscription update. The recommended way to get only
+ the prorations being previewed is to consider only proration line items
+ where period[start]
is equal to the
+ subscription_proration_date
value passed in the
+ request.
operationId: GetInvoicesUpcoming
parameters:
- description: Settings for automatic tax lookup for this invoice preview.
@@ -64894,19 +73367,28 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
type: object
style: deepObject
- description: >-
- The code of the coupon to apply. If `subscription` or
- `subscription_items` is provided, the invoice returned will preview
- updating or creating a subscription with that coupon. Otherwise, it
- will preview applying that coupon to the customer for the next
- upcoming invoice from among the customer's subscriptions. The
- invoice can be previewed without a coupon by passing this value as
- an empty string.
+ The ID of the coupon to apply to this phase of the subscription
+ schedule. This field has been deprecated and will be removed in a
+ future API version. Use `discounts` instead.
in: query
name: coupon
required: false
@@ -65077,6 +73559,7 @@ paths:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -65114,12 +73597,10 @@ paths:
style: deepObject
- description: >-
The coupons to redeem into discounts for the invoice preview. If not
- specified, inherits the discount from the customer or subscription.
- This only works for coupons directly applied to the invoice. To
- apply a coupon to a subscription, you must use the `coupon`
- parameter instead. Pass an empty string to avoid inheriting any
- discounts. To preview the upcoming invoice for a subscription that
- hasn't been created, use `coupon` instead.
+ specified, inherits the discount from the subscription or customer.
+ This works for both coupons directly applied to an invoice and
+ coupons applied to a subscription. Pass an empty string to avoid
+ inheriting any discounts.
explode: true
in: query
name: discounts
@@ -65134,6 +73615,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -65181,6 +73665,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -65269,6 +73756,45 @@ paths:
type: object
type: array
style: deepObject
+ - description: >-
+ The connected account that issues the invoice. The invoice is
+ presented with the branding and support information of the specified
+ account.
+ explode: true
+ in: query
+ name: issuer
+ required: false
+ schema:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ style: deepObject
+ - description: >-
+ The account (if any) for which the funds of the invoice payment are
+ intended. If set, the invoice will be presented with the branding
+ and support information of the specified account. See the [Invoices
+ with Connect](https://stripe.com/docs/billing/invoices/connect)
+ documentation for details.
+ explode: true
+ in: query
+ name: on_behalf_of
+ required: false
+ schema:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ style: deepObject
- description: >-
The identifier of the schedule whose upcoming invoice you'd like to
retrieve. Cannot be used with subscription or subscription fields.
@@ -65316,9 +73842,11 @@ paths:
type: integer
style: deepObject
- description: >-
- Timestamp indicating when the subscription should be scheduled to
- cancel. Will prorate if within the current period and prorations
- have been enabled using `proration_behavior`.
+ A timestamp at which the subscription should cancel. If set to a
+ date before the current period ends, this will cause a proration if
+ prorations have been enabled using `proration_behavior`. If set
+ during a future period, this will always cause a proration for that
+ period.
explode: true
in: query
name: subscription_cancel_at
@@ -65391,6 +73919,25 @@ paths:
type: boolean
deleted:
type: boolean
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
id:
maxLength: 5000
type: string
@@ -65461,7 +74008,7 @@ paths:
style: deepObject
- description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial), or if an
item's `quantity` changes. The default value is `create_prorations`.
@@ -65504,7 +74051,7 @@ paths:
maxLength: 5000
type: string
style: form
- - description: Date a subscription is intended to start (can be future or past)
+ - description: Date a subscription is intended to start (can be future or past).
in: query
name: subscription_start_date
required: false
@@ -65583,19 +74130,28 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
type: object
style: deepObject
- description: >-
- The code of the coupon to apply. If `subscription` or
- `subscription_items` is provided, the invoice returned will preview
- updating or creating a subscription with that coupon. Otherwise, it
- will preview applying that coupon to the customer for the next
- upcoming invoice from among the customer's subscriptions. The
- invoice can be previewed without a coupon by passing this value as
- an empty string.
+ The ID of the coupon to apply to this phase of the subscription
+ schedule. This field has been deprecated and will be removed in a
+ future API version. Use `discounts` instead.
in: query
name: coupon
required: false
@@ -65766,6 +74322,7 @@ paths:
- my_itn
- my_sst
- no_vat
+ - no_voec
- nz_gst
- pe_ruc
- ph_tin
@@ -65803,12 +74360,10 @@ paths:
style: deepObject
- description: >-
The coupons to redeem into discounts for the invoice preview. If not
- specified, inherits the discount from the customer or subscription.
- This only works for coupons directly applied to the invoice. To
- apply a coupon to a subscription, you must use the `coupon`
- parameter instead. Pass an empty string to avoid inheriting any
- discounts. To preview the upcoming invoice for a subscription that
- hasn't been created, use `coupon` instead.
+ specified, inherits the discount from the subscription or customer.
+ This works for both coupons directly applied to an invoice and
+ coupons applied to a subscription. Pass an empty string to avoid
+ inheriting any discounts.
explode: true
in: query
name: discounts
@@ -65823,6 +74378,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -65883,6 +74441,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -65971,6 +74532,28 @@ paths:
type: object
type: array
style: deepObject
+ - description: >-
+ The connected account that issues the invoice. The invoice is
+ presented with the branding and support information of the specified
+ account.
+ explode: true
+ in: query
+ name: issuer
+ required: false
+ schema:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ style: deepObject
- description: >-
A limit on the number of objects to be returned. Limit can range
between 1 and 100, and the default is 10.
@@ -65980,6 +74563,23 @@ paths:
schema:
type: integer
style: form
+ - description: >-
+ The account (if any) for which the funds of the invoice payment are
+ intended. If set, the invoice will be presented with the branding
+ and support information of the specified account. See the [Invoices
+ with Connect](https://stripe.com/docs/billing/invoices/connect)
+ documentation for details.
+ explode: true
+ in: query
+ name: on_behalf_of
+ required: false
+ schema:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ style: deepObject
- description: >-
The identifier of the schedule whose upcoming invoice you'd like to
retrieve. Cannot be used with subscription or subscription fields.
@@ -66040,9 +74640,11 @@ paths:
type: integer
style: deepObject
- description: >-
- Timestamp indicating when the subscription should be scheduled to
- cancel. Will prorate if within the current period and prorations
- have been enabled using `proration_behavior`.
+ A timestamp at which the subscription should cancel. If set to a
+ date before the current period ends, this will cause a proration if
+ prorations have been enabled using `proration_behavior`. If set
+ during a future period, this will always cause a proration for that
+ period.
explode: true
in: query
name: subscription_cancel_at
@@ -66115,6 +74717,25 @@ paths:
type: boolean
deleted:
type: boolean
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
id:
maxLength: 5000
type: string
@@ -66185,7 +74806,7 @@ paths:
style: deepObject
- description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial), or if an
item's `quantity` changes. The default value is `create_prorations`.
@@ -66228,7 +74849,7 @@ paths:
maxLength: 5000
type: string
style: form
- - description: Date a subscription is intended to start (can be future or past)
+ - description: Date a subscription is intended to start (can be future or past).
in: query
name: subscription_start_date
required: false
@@ -66456,9 +75077,15 @@ paths:
expand:
explode: true
style: deepObject
+ issuer:
+ explode: true
+ style: deepObject
metadata:
explode: true
style: deepObject
+ number:
+ explode: true
+ style: deepObject
on_behalf_of:
explode: true
style: deepObject
@@ -66468,9 +75095,6 @@ paths:
rendering:
explode: true
style: deepObject
- rendering_options:
- explode: true
- style: deepObject
shipping_cost:
explode: true
style: deepObject
@@ -66515,6 +75139,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
@@ -66532,10 +75169,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -66610,6 +75247,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -66648,6 +75288,23 @@ paths:
description: Footer to be displayed on the invoice.
maxLength: 5000
type: string
+ issuer:
+ description: >-
+ The connected account that issues the invoice. The invoice
+ is presented with the branding and support information of
+ the specified account.
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
metadata:
anyOf:
- additionalProperties:
@@ -66664,6 +75321,23 @@ paths:
format. Individual keys can be unset by posting an empty
value to them. All keys can be unset by posting an empty
value to `metadata`.
+ number:
+ anyOf:
+ - maxLength: 26
+ type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Set the number for this invoice. If no number is present
+ then a number will be assigned automatically when the
+ invoice is finalized. In many markets, regulations require
+ invoices to be unique, sequential and / or gapless. You are
+ responsible for ensuring this is true across all your
+ different invoicing systems in the event that you edit the
+ invoice number using our API. If you use only Stripe for
+ your invoices and do not change invoice numbers, Stripe
+ handles this aspect of compliance for you automatically.
on_behalf_of:
anyOf:
- type: string
@@ -66765,6 +75439,7 @@ paths:
enum:
- any
- automatic
+ - challenge
type: string
title: invoice_payment_method_options_param
type: object
@@ -66804,6 +75479,14 @@ paths:
- enum:
- ''
type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -66824,6 +75507,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -66857,12 +75541,14 @@ paths:
- card
- cashapp
- customer_balance
+ - eps
- fpx
- giropay
- grabpay
- ideal
- konbini
- link
+ - p24
- paynow
- paypal
- promptpay
@@ -66902,21 +75588,6 @@ paths:
type: object
title: rendering_param
type: object
- rendering_options:
- anyOf:
- - properties:
- amount_tax_display:
- enum:
- - ''
- - exclude_tax
- - include_inclusive_tax
- type: string
- title: rendering_options_param
- type: object
- - enum:
- - ''
- type: string
- description: Options for invoice PDF rendering.
shipping_cost:
anyOf:
- properties:
@@ -67277,6 +75948,312 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ '/v1/invoices/{invoice}/lines/{line_item_id}':
+ post:
+ description: >-
+ Updates an invoice’s line item. Some fields, such as
+ tax_amounts
, only live on the invoice line item,
+
+ so they can only be updated through this endpoint. Other fields, such as
+ amount
, live on both the invoice
+
+ item and the invoice line item, so updates on this endpoint will
+ propagate to the invoice item as well.
+
+ Updating an invoice’s line item is only possible before the invoice is
+ finalized.
+ operationId: PostInvoicesInvoiceLinesLineItemId
+ parameters:
+ - description: Invoice ID of line item
+ in: path
+ name: invoice
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: Invoice line item ID
+ in: path
+ name: line_item_id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ discounts:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ period:
+ explode: true
+ style: deepObject
+ price_data:
+ explode: true
+ style: deepObject
+ tax_amounts:
+ explode: true
+ style: deepObject
+ tax_rates:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ amount:
+ description: >-
+ The integer amount in cents (or local equivalent) of the
+ charge to be applied to the upcoming invoice. If you want to
+ apply a credit to the customer's account, pass a negative
+ amount.
+ type: integer
+ description:
+ description: >-
+ An arbitrary string which you can attach to the invoice
+ item. The description is displayed in the invoice for easy
+ tracking.
+ maxLength: 5000
+ type: string
+ discountable:
+ description: >-
+ Controls whether discounts apply to this line item. Defaults
+ to false for prorations or negative line items, and true for
+ all other line items. Cannot be set to true for prorations.
+ type: boolean
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons, promotion codes & existing discounts which
+ apply to the line item. Item discounts are applied before
+ invoice discounts. Pass an empty string to remove
+ previously-defined discounts.
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ period:
+ description: >-
+ The period associated with this invoice item. When set to
+ different values, the period will be rendered on the
+ invoice. If you have [Stripe Revenue
+ Recognition](https://stripe.com/docs/revenue-recognition)
+ enabled, the period will be used to recognize and defer
+ revenue. See the [Revenue Recognition
+ documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing)
+ for details.
+ properties:
+ end:
+ format: unix-time
+ type: integer
+ start:
+ format: unix-time
+ type: integer
+ required:
+ - end
+ - start
+ title: period
+ type: object
+ price:
+ description: The ID of the price object.
+ maxLength: 5000
+ type: string
+ price_data:
+ description: >-
+ Data used to generate a new
+ [Price](https://stripe.com/docs/api/prices) object inline.
+ properties:
+ currency:
+ type: string
+ product:
+ maxLength: 5000
+ type: string
+ product_data:
+ properties:
+ description:
+ maxLength: 40000
+ type: string
+ images:
+ items:
+ type: string
+ type: array
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
+ name:
+ maxLength: 5000
+ type: string
+ tax_code:
+ maxLength: 5000
+ type: string
+ required:
+ - name
+ title: product_data
+ type: object
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
+ type: string
+ unit_amount:
+ type: integer
+ unit_amount_decimal:
+ format: decimal
+ type: string
+ required:
+ - currency
+ title: one_time_price_data_with_product_data
+ type: object
+ quantity:
+ description: >-
+ Non-negative integer. The quantity of units for the line
+ item.
+ type: integer
+ tax_amounts:
+ anyOf:
+ - items:
+ properties:
+ amount:
+ type: integer
+ tax_rate_data:
+ properties:
+ country:
+ maxLength: 5000
+ type: string
+ description:
+ maxLength: 5000
+ type: string
+ display_name:
+ maxLength: 50
+ type: string
+ inclusive:
+ type: boolean
+ jurisdiction:
+ maxLength: 50
+ type: string
+ percentage:
+ type: number
+ state:
+ maxLength: 2
+ type: string
+ tax_type:
+ enum:
+ - amusement_tax
+ - communications_tax
+ - gst
+ - hst
+ - igst
+ - jct
+ - lease_tax
+ - pst
+ - qst
+ - rst
+ - sales_tax
+ - vat
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - display_name
+ - inclusive
+ - percentage
+ title: tax_rate_data_param
+ type: object
+ taxable_amount:
+ type: integer
+ required:
+ - amount
+ - tax_rate_data
+ - taxable_amount
+ title: tax_amount_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ A list of up to 10 tax amounts for this line item. This can
+ be useful if you calculate taxes on your own or use a
+ third-party to calculate them. You cannot set tax amounts if
+ any line item has
+ [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates)
+ or if the invoice has
+ [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates)
+ or uses [automatic
+ tax](https://stripe.com/docs/tax/invoicing). Pass an empty
+ string to remove previously defined tax amounts.
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The tax rates which apply to the line item. When set, the
+ `default_tax_rates` on the invoice do not apply to this line
+ item. Pass an empty string to remove previously-defined tax
+ rates.
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/line_item'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
'/v1/invoices/{invoice}/mark_uncollectible':
post:
description: >-
@@ -67490,6 +76467,14 @@ paths:
invoice is similar to deletion, however it
only applies to finalized invoices and maintains a papertrail where the
invoice can still be found.
+
+
+ Consult with local regulations to determine whether and how an
+ invoice might be amended, canceled, or voided in the jurisdiction you’re
+ doing business in. You might need to issue
+ another invoice or credit note
+ instead. Stripe recommends that you consult with your legal counsel for
+ advice specific to your business.
operationId: PostInvoicesInvoiceVoid
parameters:
- in: path
@@ -67799,6 +76784,7 @@ paths:
description: Error response.
'/v1/issuing/authorizations/{authorization}/approve':
post:
+ deprecated: true
description: >-
[Deprecated] Approves a pending Issuing Authorization
object. This request should be made within the timeout window of the -
[Deprecated] Declines a pending Issuing Authorization
object. This request should be made within the timeout window of the -
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -70712,6 +79726,12 @@ paths:
metadata:
explode: true
style: deepObject
+ pin:
+ explode: true
+ style: deepObject
+ second_line:
+ explode: true
+ style: deepObject
shipping:
explode: true
style: deepObject
@@ -70751,6 +79771,18 @@ paths:
value to them. All keys can be unset by posting an empty
value to `metadata`.
type: object
+ personalization_design:
+ description: The personalization design object belonging to this card.
+ maxLength: 5000
+ type: string
+ pin:
+ description: The desired PIN for this card.
+ properties:
+ encrypted_number:
+ maxLength: 5000
+ type: string
+ title: encrypted_pin_param
+ type: object
replacement_for:
description: The card this is meant to be a replacement for (if any).
maxLength: 5000
@@ -70766,6 +79798,14 @@ paths:
- stolen
type: string
x-stripeBypassValidation: true
+ second_line:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ description: The second line to print on the card.
shipping:
description: The address where the card will be shipped.
properties:
@@ -71142,6 +80182,11 @@ paths:
maxLength: 5000
type: string
type: array
+ allowed_merchant_countries:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
blocked_categories:
items:
enum:
@@ -71451,6 +80496,11 @@ paths:
maxLength: 5000
type: string
type: array
+ blocked_merchant_countries:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
spending_limits:
items:
properties:
@@ -71931,6 +80981,9 @@ paths:
format. Individual keys can be unset by posting an empty
value to them. All keys can be unset by posting an empty
value to `metadata`.
+ personalization_design:
+ maxLength: 5000
+ type: string
pin:
description: The desired new PIN for this card.
properties:
@@ -72254,6 +81307,11 @@ paths:
maxLength: 5000
type: string
type: array
+ allowed_merchant_countries:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
blocked_categories:
items:
enum:
@@ -72563,6 +81621,11 @@ paths:
maxLength: 5000
type: string
type: array
+ blocked_merchant_countries:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
spending_limits:
items:
properties:
@@ -72939,7 +82002,7 @@ paths:
operationId: GetIssuingDisputes
parameters:
- description: >-
- Select Issuing disputes that were created during the given date
+ Only return Issuing disputes that were created during the given date
interval.
explode: true
in: query
@@ -73988,36 +83051,14 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/issuing/settlements:
+ /v1/issuing/personalization_designs:
get:
description: >-
- Returns a list of Issuing Settlement
objects. The
- objects are sorted in descending order by creation date, with the most
- recently created object appearing first.
- operationId: GetIssuingSettlements
+ Returns a list of personalization design objects. The objects are
+ sorted in descending order by creation date, with the most recently
+ created object appearing first.
+ operationId: GetIssuingPersonalizationDesigns
parameters:
- - description: >-
- Only return issuing settlements that were created during the given
- date interval.
- explode: true
- in: query
- name: created
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -74051,6 +83092,31 @@ paths:
schema:
type: integer
style: form
+ - description: Only return personalization designs with the given lookup keys.
+ explode: true
+ in: query
+ name: lookup_keys
+ required: false
+ schema:
+ items:
+ maxLength: 200
+ type: string
+ type: array
+ style: deepObject
+ - description: Only return personalization designs with the given preferences.
+ explode: true
+ in: query
+ name: preferences
+ required: false
+ schema:
+ properties:
+ is_default:
+ type: boolean
+ is_platform_default:
+ type: boolean
+ title: preferences_list_param
+ type: object
+ style: deepObject
- description: >-
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -74064,6 +83130,18 @@ paths:
maxLength: 5000
type: string
style: form
+ - description: Only return personalization designs with the given status.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - inactive
+ - rejected
+ - review
+ type: string
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -74082,7 +83160,7 @@ paths:
properties:
data:
items:
- $ref: '#/components/schemas/issuing.settlement'
+ $ref: '#/components/schemas/issuing.personalization_design'
type: array
has_more:
description: >-
@@ -74099,14 +83177,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/issuing/settlements
+ pattern: ^/v1/issuing/personalization_designs
type: string
required:
- data
- has_more
- object
- url
- title: IssuingSettlementList
+ title: IssuingPersonalizationDesignList
type: object
x-expandableFields:
- data
@@ -74117,10 +83195,142 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/issuing/settlements/{settlement}':
+ post:
+ description: Creates a personalization design object.
+ operationId: PostIssuingPersonalizationDesigns
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ carrier_text:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ preferences:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ card_logo:
+ description: >-
+ The file for the card logo, for use with physical bundles
+ that support card logos. Must have a `purpose` value of
+ `issuing_logo`.
+ type: string
+ carrier_text:
+ description: >-
+ Hash containing carrier text, for use with physical bundles
+ that support carrier text.
+ properties:
+ footer_body:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ footer_title:
+ anyOf:
+ - maxLength: 30
+ type: string
+ - enum:
+ - ''
+ type: string
+ header_body:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ header_title:
+ anyOf:
+ - maxLength: 30
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: carrier_text_param
+ type: object
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ lookup_key:
+ description: >-
+ A lookup key used to retrieve personalization designs
+ dynamically from a static string. This may be up to 200
+ characters.
+ maxLength: 200
+ type: string
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ name:
+ description: Friendly display name.
+ maxLength: 200
+ type: string
+ physical_bundle:
+ description: >-
+ The physical bundle object belonging to this personalization
+ design.
+ maxLength: 5000
+ type: string
+ preferences:
+ description: >-
+ Information on whether this personalization design is used
+ to create cards when one is not specified.
+ properties:
+ is_default:
+ type: boolean
+ required:
+ - is_default
+ title: preferences_param
+ type: object
+ transfer_lookup_key:
+ description: >-
+ If set to true, will atomically remove the lookup key from
+ the existing personalization design, and assign it to this
+ personalization design.
+ type: boolean
+ required:
+ - physical_bundle
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.personalization_design'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/issuing/personalization_designs/{personalization_design}':
get:
- description: Retrieves an Issuing Settlement
object.
- operationId: GetIssuingSettlementsSettlement
+ description: Retrieves a personalization design object.
+ operationId: GetIssuingPersonalizationDesignsPersonalizationDesign
parameters:
- description: Specifies which fields in the response should be expanded.
explode: true
@@ -74134,7 +83344,7 @@ paths:
type: array
style: deepObject
- in: path
- name: settlement
+ name: personalization_design
required: true
schema:
maxLength: 5000
@@ -74154,7 +83364,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/issuing.settlement'
+ $ref: '#/components/schemas/issuing.personalization_design'
description: Successful response.
default:
content:
@@ -74163,14 +83373,11 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: >-
- Updates the specified Issuing Settlement
object by
- setting the values of the parameters passed. Any parameters not provided
- will be left unchanged.
- operationId: PostIssuingSettlementsSettlement
+ description: Updates a card personalization object.
+ operationId: PostIssuingPersonalizationDesignsPersonalizationDesign
parameters:
- in: path
- name: settlement
+ name: personalization_design
required: true
schema:
maxLength: 5000
@@ -74180,21 +83387,96 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
+ card_logo:
+ explode: true
+ style: deepObject
+ carrier_text:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
+ lookup_key:
+ explode: true
+ style: deepObject
metadata:
explode: true
style: deepObject
+ name:
+ explode: true
+ style: deepObject
+ preferences:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
+ card_logo:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The file for the card logo, for use with physical bundles
+ that support card logos. Must have a `purpose` value of
+ `issuing_logo`.
+ carrier_text:
+ anyOf:
+ - properties:
+ footer_body:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ footer_title:
+ anyOf:
+ - maxLength: 30
+ type: string
+ - enum:
+ - ''
+ type: string
+ header_body:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ header_title:
+ anyOf:
+ - maxLength: 30
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: carrier_text_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Hash containing carrier text, for use with physical bundles
+ that support carrier text.
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
+ lookup_key:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ A lookup key used to retrieve personalization designs
+ dynamically from a static string. This may be up to 200
+ characters.
metadata:
additionalProperties:
type: string
@@ -74207,6 +83489,39 @@ paths:
value to them. All keys can be unset by posting an empty
value to `metadata`.
type: object
+ name:
+ anyOf:
+ - maxLength: 200
+ type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Friendly display name. Providing an empty string will set
+ the field to null.
+ physical_bundle:
+ description: >-
+ The physical bundle object belonging to this personalization
+ design.
+ maxLength: 5000
+ type: string
+ preferences:
+ description: >-
+ Information on whether this personalization design is used
+ to create cards when one is not specified.
+ properties:
+ is_default:
+ type: boolean
+ required:
+ - is_default
+ title: preferences_param
+ type: object
+ transfer_lookup_key:
+ description: >-
+ If set to true, will atomically remove the lookup key from
+ the existing personalization design, and assign it to this
+ personalization design.
+ type: boolean
type: object
required: false
responses:
@@ -74214,7 +83529,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/issuing.settlement'
+ $ref: '#/components/schemas/issuing.personalization_design'
description: Successful response.
default:
content:
@@ -74222,52 +83537,14 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/issuing/transactions:
+ /v1/issuing/physical_bundles:
get:
description: >-
- Returns a list of Issuing Transaction
objects. The
- objects are sorted in descending order by creation date, with the most
- recently created object appearing first.
- operationId: GetIssuingTransactions
+ Returns a list of physical bundle objects. The objects are sorted in
+ descending order by creation date, with the most recently created object
+ appearing first.
+ operationId: GetIssuingPhysicalBundles
parameters:
- - description: Only return transactions that belong to the given card.
- in: query
- name: card
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- - description: Only return transactions that belong to the given cardholder.
- in: query
- name: cardholder
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- - description: >-
- Only return transactions that were created during the given date
- interval.
- explode: true
- in: query
- name: created
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -74314,16 +83591,25 @@ paths:
maxLength: 5000
type: string
style: form
- - description: >-
- Only return transactions that have the given type. One of `capture`
- or `refund`.
+ - description: Only return physical bundles with the given status.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - inactive
+ - review
+ type: string
+ style: form
+ - description: Only return physical bundles with the given type.
in: query
name: type
required: false
schema:
enum:
- - capture
- - refund
+ - custom
+ - standard
type: string
style: form
requestBody:
@@ -74344,7 +83630,7 @@ paths:
properties:
data:
items:
- $ref: '#/components/schemas/issuing.transaction'
+ $ref: '#/components/schemas/issuing.physical_bundle'
type: array
has_more:
description: >-
@@ -74361,14 +83647,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/issuing/transactions
+ pattern: ^/v1/issuing/physical_bundles
type: string
required:
- data
- has_more
- object
- url
- title: IssuingTransactionList
+ title: IssuingPhysicalBundleList
type: object
x-expandableFields:
- data
@@ -74379,240 +83665,10 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/issuing/transactions/{transaction}':
- get:
- description: Retrieves an Issuing Transaction
object.
- operationId: GetIssuingTransactionsTransaction
- parameters:
- - description: Specifies which fields in the response should be expanded.
- explode: true
- in: query
- name: expand
- required: false
- schema:
- items:
- maxLength: 5000
- type: string
- type: array
- style: deepObject
- - in: path
- name: transaction
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding: {}
- schema:
- additionalProperties: false
- properties: {}
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/issuing.transaction'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- post:
- description: >-
- Updates the specified Issuing Transaction
object by
- setting the values of the parameters passed. Any parameters not provided
- will be left unchanged.
- operationId: PostIssuingTransactionsTransaction
- parameters:
- - in: path
- name: transaction
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- metadata:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- metadata:
- anyOf:
- - additionalProperties:
- type: string
- type: object
- - enum:
- - ''
- type: string
- description: >-
- Set of [key-value
- pairs](https://stripe.com/docs/api/metadata) that you can
- attach to an object. This can be useful for storing
- additional information about the object in a structured
- format. Individual keys can be unset by posting an empty
- value to them. All keys can be unset by posting an empty
- value to `metadata`.
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/issuing.transaction'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- /v1/link_account_sessions:
- post:
- description: >-
- To launch the Financial Connections authorization flow, create a
- Session
. The session’s client_secret
can be
- used to launch the flow using Stripe.js.
- operationId: PostLinkAccountSessions
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- account_holder:
- explode: true
- style: deepObject
- expand:
- explode: true
- style: deepObject
- filters:
- explode: true
- style: deepObject
- permissions:
- explode: true
- style: deepObject
- prefetch:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- account_holder:
- description: The account holder to link accounts for.
- properties:
- account:
- maxLength: 5000
- type: string
- customer:
- maxLength: 5000
- type: string
- type:
- enum:
- - account
- - customer
- type: string
- required:
- - type
- title: accountholder_params
- type: object
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- filters:
- description: Filters to restrict the kinds of accounts to collect.
- properties:
- countries:
- items:
- maxLength: 5000
- type: string
- type: array
- required:
- - countries
- title: filters_params
- type: object
- permissions:
- description: >-
- List of data features that you would like to request access
- to.
-
-
- Possible values are `balances`, `transactions`, `ownership`,
- and `payment_method`.
- items:
- enum:
- - balances
- - ownership
- - payment_method
- - transactions
- maxLength: 5000
- type: string
- x-stripeBypassValidation: true
- type: array
- prefetch:
- description: >-
- List of data features that you would like to retrieve upon
- account creation.
- items:
- enum:
- - balances
- - ownership
- type: string
- x-stripeBypassValidation: true
- type: array
- return_url:
- description: >-
- For webview integrations only. Upon completing OAuth login
- in the native browser, the user will be redirected to this
- URL to return to your app.
- maxLength: 5000
- type: string
- required:
- - account_holder
- - permissions
- type: object
- required: true
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/financial_connections.session'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/link_account_sessions/{session}':
+ '/v1/issuing/physical_bundles/{physical_bundle}':
get:
- description: >-
- Retrieves the details of a Financial Connections
- Session
- operationId: GetLinkAccountSessionsSession
+ description: Retrieves a physical bundle object.
+ operationId: GetIssuingPhysicalBundlesPhysicalBundle
parameters:
- description: Specifies which fields in the response should be expanded.
explode: true
@@ -74626,7 +83682,7 @@ paths:
type: array
style: deepObject
- in: path
- name: session
+ name: physical_bundle
required: true
schema:
maxLength: 5000
@@ -74646,7 +83702,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/financial_connections.session'
+ $ref: '#/components/schemas/issuing.physical_bundle'
description: Successful response.
default:
content:
@@ -74654,31 +83710,35 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/linked_accounts:
+ /v1/issuing/settlements:
get:
description: >-
- Returns a list of Financial Connections Account
- objects.
- operationId: GetLinkedAccounts
+ Returns a list of Issuing Settlement
objects. The
+ objects are sorted in descending order by creation date, with the most
+ recently created object appearing first.
+ operationId: GetIssuingSettlements
parameters:
- description: >-
- If present, only return accounts that belong to the specified
- account holder. `account_holder[customer]` and
- `account_holder[account]` are mutually exclusive.
+ Only return issuing settlements that were created during the given
+ date interval.
explode: true
in: query
- name: account_holder
+ name: created
required: false
schema:
- properties:
- account:
- maxLength: 5000
- type: string
- customer:
- maxLength: 5000
- type: string
- title: accountholder_params
- type: object
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
@@ -74713,16 +83773,6 @@ paths:
schema:
type: integer
style: form
- - description: >-
- If present, only return accounts that were collected as part of the
- given session.
- in: query
- name: session
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- description: >-
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -74753,9 +83803,8 @@ paths:
description: ''
properties:
data:
- description: Details about each object.
items:
- $ref: '#/components/schemas/financial_connections.account'
+ $ref: '#/components/schemas/issuing.settlement'
type: array
has_more:
description: >-
@@ -74772,14 +83821,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/financial_connections/accounts
+ pattern: ^/v1/issuing/settlements
type: string
required:
- data
- has_more
- object
- url
- title: BankConnectionsResourceLinkedAccountList
+ title: IssuingSettlementList
type: object
x-expandableFields:
- data
@@ -74790,20 +83839,11 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/linked_accounts/{account}':
+ '/v1/issuing/settlements/{settlement}':
get:
- description: >-
- Retrieves the details of an Financial Connections
- Account
.
- operationId: GetLinkedAccountsAccount
+ description: Retrieves an Issuing Settlement
object.
+ operationId: GetIssuingSettlementsSettlement
parameters:
- - in: path
- name: account
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -74815,6 +83855,13 @@ paths:
type: string
type: array
style: deepObject
+ - in: path
+ name: settlement
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -74829,7 +83876,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/financial_connections.account'
+ $ref: '#/components/schemas/issuing.settlement'
description: Successful response.
default:
content:
@@ -74837,16 +83884,15 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/linked_accounts/{account}/disconnect':
post:
description: >-
- Disables your access to a Financial Connections Account
.
- You will no longer be able to access data associated with the account
- (e.g. balances, transactions).
- operationId: PostLinkedAccountsAccountDisconnect
+ Updates the specified Issuing Settlement
object by
+ setting the values of the parameters passed. Any parameters not provided
+ will be left unchanged.
+ operationId: PostIssuingSettlementsSettlement
parameters:
- in: path
- name: account
+ name: settlement
required: true
schema:
maxLength: 5000
@@ -74859,6 +83905,9 @@ paths:
expand:
explode: true
style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
@@ -74868,6 +83917,18 @@ paths:
maxLength: 5000
type: string
type: array
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
type: object
required: false
responses:
@@ -74875,7 +83936,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/financial_connections.account'
+ $ref: '#/components/schemas/issuing.settlement'
description: Successful response.
default:
content:
@@ -74883,18 +83944,41 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/linked_accounts/{account}/owners':
+ /v1/issuing/tokens:
get:
- description: Lists all owners for a given Account
- operationId: GetLinkedAccountsAccountOwners
+ description: Lists all Issuing Token
objects for a given card.
+ operationId: GetIssuingTokens
parameters:
- - in: path
- name: account
+ - description: The Issuing card identifier to list tokens for.
+ in: query
+ name: card
required: true
schema:
maxLength: 5000
type: string
- style: simple
+ style: form
+ - description: >-
+ Only return Issuing tokens that were created during the given date
+ interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -74928,14 +84012,6 @@ paths:
schema:
type: integer
style: form
- - description: The ID of the ownership object to fetch owners from.
- in: query
- name: ownership
- required: true
- schema:
- maxLength: 5000
- type: string
- style: form
- description: >-
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -74949,6 +84025,18 @@ paths:
maxLength: 5000
type: string
style: form
+ - description: Select Issuing tokens with the given status.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - deleted
+ - requested
+ - suspended
+ type: string
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -74966,9 +84054,8 @@ paths:
description: ''
properties:
data:
- description: Details about each object.
items:
- $ref: '#/components/schemas/financial_connections.account_owner'
+ $ref: '#/components/schemas/issuing.token'
type: array
has_more:
description: >-
@@ -74991,7 +84078,7 @@ paths:
- has_more
- object
- url
- title: BankConnectionsResourceOwnerList
+ title: IssuingNetworkTokenList
type: object
x-expandableFields:
- data
@@ -75002,15 +84089,24 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/linked_accounts/{account}/refresh':
- post:
- description: >-
- Refreshes the data associated with a Financial Connections
- Account
.
- operationId: PostLinkedAccountsAccountRefresh
+ '/v1/issuing/tokens/{token}':
+ get:
+ description: Retrieves an Issuing Token
object.
+ operationId: GetIssuingTokensToken
parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
- in: path
- name: account
+ name: token
required: true
schema:
maxLength: 5000
@@ -75019,41 +84115,18 @@ paths:
requestBody:
content:
application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- features:
- explode: true
- style: deepObject
+ encoding: {}
schema:
additionalProperties: false
- properties:
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- features:
- description: The list of account features that you would like to refresh.
- items:
- enum:
- - balance
- - ownership
- type: string
- x-stripeBypassValidation: true
- type: array
- required:
- - features
+ properties: {}
type: object
- required: true
+ required: false
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/financial_connections.account'
+ $ref: '#/components/schemas/issuing.token'
description: Successful response.
default:
content:
@@ -75061,43 +84134,52 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/mandates/{mandate}':
- get:
- description: Retrieves a Mandate object.
- operationId: GetMandatesMandate
+ post:
+ description: >-
+ Attempts to update the specified Issuing Token
object to
+ the status specified.
+ operationId: PostIssuingTokensToken
parameters:
- - description: Specifies which fields in the response should be expanded.
- explode: true
- in: query
- name: expand
- required: false
- schema:
- items:
- maxLength: 5000
- type: string
- type: array
- style: deepObject
- in: path
- name: mandate
+ name: token
required: true
schema:
+ maxLength: 5000
type: string
style: simple
requestBody:
content:
application/x-www-form-urlencoded:
- encoding: {}
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
- properties: {}
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ status:
+ description: Specifies which status the token should be updated to.
+ enum:
+ - active
+ - deleted
+ - suspended
+ type: string
+ required:
+ - status
type: object
- required: false
+ required: true
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/mandate'
+ $ref: '#/components/schemas/issuing.token'
description: Successful response.
default:
content:
@@ -75105,15 +84187,33 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/payment_intents:
+ /v1/issuing/transactions:
get:
- description: Returns a list of PaymentIntents.
- operationId: GetPaymentIntents
+ description: >-
+ Returns a list of Issuing Transaction
objects. The
+ objects are sorted in descending order by creation date, with the most
+ recently created object appearing first.
+ operationId: GetIssuingTransactions
parameters:
- - description: >-
- A filter on the list, based on the object `created` field. The value
- can be a string with an integer Unix timestamp, or it can be a
- dictionary with a number of different query options.
+ - description: Only return transactions that belong to the given card.
+ in: query
+ name: card
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Only return transactions that belong to the given cardholder.
+ in: query
+ name: cardholder
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ Only return transactions that were created during the given date
+ interval.
explode: true
in: query
name: created
@@ -75133,16 +84233,6 @@ paths:
type: object
- type: integer
style: deepObject
- - description: >-
- Only return PaymentIntents for the customer specified by this
- customer ID.
- in: query
- name: customer
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -75189,6 +84279,18 @@ paths:
maxLength: 5000
type: string
style: form
+ - description: >-
+ Only return transactions that have the given type. One of `capture`
+ or `refund`.
+ in: query
+ name: type
+ required: false
+ schema:
+ enum:
+ - capture
+ - refund
+ type: string
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -75207,7 +84309,7 @@ paths:
properties:
data:
items:
- $ref: '#/components/schemas/payment_intent'
+ $ref: '#/components/schemas/issuing.transaction'
type: array
has_more:
description: >-
@@ -75224,14 +84326,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/payment_intents
+ pattern: ^/v1/issuing/transactions
type: string
required:
- data
- has_more
- object
- url
- title: PaymentFlowsPaymentIntentList
+ title: IssuingTransactionList
type: object
x-expandableFields:
- data
@@ -75242,379 +84344,1259 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ '/v1/issuing/transactions/{transaction}':
+ get:
+ description: Retrieves an Issuing Transaction
object.
+ operationId: GetIssuingTransactionsTransaction
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: transaction
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.transaction'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
post:
description: >-
- Creates a PaymentIntent object.
-
-
- After the PaymentIntent is created, attach a payment method and confirm
-
- to continue the payment. You can read more about the different payment
- flows
-
- available via the Payment Intents API here.
-
-
- When confirm=true
is used during creation, it is
- equivalent to creating
-
- and confirming the PaymentIntent in the same call. You may use any
- parameters
-
- available in the confirm
- API when confirm=true
-
- is supplied.
- operationId: PostPaymentIntents
+ Updates the specified Issuing Transaction
object by
+ setting the values of the parameters passed. Any parameters not provided
+ will be left unchanged.
+ operationId: PostIssuingTransactionsTransaction
+ parameters:
+ - in: path
+ name: transaction
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
encoding:
- automatic_payment_methods:
- explode: true
- style: deepObject
expand:
explode: true
style: deepObject
- mandate_data:
- explode: true
- style: deepObject
metadata:
explode: true
style: deepObject
- off_session:
- explode: true
- style: deepObject
- payment_method_data:
- explode: true
- style: deepObject
- payment_method_options:
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.transaction'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/link_account_sessions:
+ post:
+ description: >-
+ To launch the Financial Connections authorization flow, create a
+ Session
. The session’s client_secret
can be
+ used to launch the flow using Stripe.js.
+ operationId: PostLinkAccountSessions
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ account_holder:
explode: true
style: deepObject
- payment_method_types:
+ expand:
explode: true
style: deepObject
- radar_options:
+ filters:
explode: true
style: deepObject
- shipping:
+ permissions:
explode: true
style: deepObject
- transfer_data:
+ prefetch:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
- amount:
- description: >-
- Amount intended to be collected by this PaymentIntent. A
- positive integer representing how much to charge in the
- [smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal)
- (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a
- zero-decimal currency). The minimum amount is $0.50 US or
- [equivalent in charge
- currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts).
- The amount value supports up to eight digits (e.g., a value
- of 99999999 for a USD charge of $999,999.99).
- type: integer
- application_fee_amount:
- description: >-
- The amount of the application fee (if any) that will be
- requested to be applied to the payment and transferred to
- the application owner's Stripe account. The amount of the
- application fee collected will be capped at the total
- payment amount. For more information, see the PaymentIntents
- [use case for connected
- accounts](https://stripe.com/docs/payments/connected-accounts).
- type: integer
- automatic_payment_methods:
- description: >-
- When enabled, this PaymentIntent will accept payment methods
- that you have enabled in the Dashboard and are compatible
- with this PaymentIntent's other parameters.
+ account_holder:
+ description: The account holder to link accounts for.
properties:
- allow_redirects:
+ account:
+ maxLength: 5000
+ type: string
+ customer:
+ maxLength: 5000
+ type: string
+ type:
enum:
- - always
- - never
+ - account
+ - customer
type: string
- enabled:
- type: boolean
required:
- - enabled
- title: automatic_payment_methods_param
+ - type
+ title: accountholder_params
type: object
- capture_method:
- description: >-
- Controls when the funds will be captured from the customer's
- account.
- enum:
- - automatic
- - automatic_async
- - manual
- type: string
- confirm:
- description: >-
- Set to `true` to attempt to
- [confirm](https://stripe.com/docs/api/payment_intents/confirm)
- this PaymentIntent immediately. This parameter defaults to
- `false`. When creating and confirming a PaymentIntent at the
- same time, parameters available in the
- [confirm](https://stripe.com/docs/api/payment_intents/confirm)
- API may also be provided.
- type: boolean
- confirmation_method:
- enum:
- - automatic
- - manual
- type: string
- currency:
- description: >-
- Three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
- type: string
- customer:
- description: >-
- ID of the Customer this PaymentIntent belongs to, if one
- exists.
-
-
- Payment methods attached to other Customers cannot be used
- with this PaymentIntent.
-
-
- If present in combination with
- [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage),
- this PaymentIntent's payment method will be attached to the
- Customer after the PaymentIntent has been confirmed and any
- required actions from the user are complete.
- maxLength: 5000
- type: string
- description:
- description: >-
- An arbitrary string attached to the object. Often useful for
- displaying to users.
- maxLength: 1000
- type: string
- error_on_requires_action:
- description: >-
- Set to `true` to fail the payment attempt if the
- PaymentIntent transitions into `requires_action`. This
- parameter is intended for simpler integrations that do not
- handle customer actions, like [saving cards without
- authentication](https://stripe.com/docs/payments/save-card-without-authentication).
- This parameter can only be used with
- [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
- type: boolean
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
- mandate:
- description: >-
- ID of the mandate to be used for this payment. This
- parameter can only be used with
- [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
- maxLength: 5000
- type: string
- mandate_data:
- anyOf:
- - properties:
- customer_acceptance:
- properties:
- accepted_at:
- format: unix-time
- type: integer
- offline:
- properties: {}
- title: offline_param
- type: object
- online:
- properties:
- ip_address:
- type: string
- user_agent:
- maxLength: 5000
- type: string
- required:
- - ip_address
- - user_agent
- title: online_param
- type: object
- type:
- enum:
- - offline
- - online
- maxLength: 5000
- type: string
- required:
- - type
- title: customer_acceptance_param
- type: object
- required:
- - customer_acceptance
- title: secret_key_param
- type: object
- - enum:
- - ''
- type: string
- description: >-
- This hash contains details about the Mandate to create. This
- parameter can only be used with
- [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
- metadata:
- additionalProperties:
- type: string
- description: >-
- Set of [key-value
- pairs](https://stripe.com/docs/api/metadata) that you can
- attach to an object. This can be useful for storing
- additional information about the object in a structured
- format. Individual keys can be unset by posting an empty
- value to them. All keys can be unset by posting an empty
- value to `metadata`.
+ filters:
+ description: Filters to restrict the kinds of accounts to collect.
+ properties:
+ countries:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ required:
+ - countries
+ title: filters_params
type: object
- off_session:
- anyOf:
- - type: boolean
- - enum:
- - one_off
- - recurring
- maxLength: 5000
- type: string
- description: >-
- Set to `true` to indicate that the customer is not in your
- checkout flow during this payment attempt, and therefore is
- unable to authenticate. This parameter is intended for
- scenarios where you collect card details and [charge them
- later](https://stripe.com/docs/payments/cards/charging-saved-cards).
- This parameter can only be used with
- [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
- on_behalf_of:
- description: >-
- The Stripe account ID for which these funds are intended.
- For details, see the PaymentIntents [use case for connected
- accounts](https://stripe.com/docs/payments/connected-accounts).
- type: string
- payment_method:
+ permissions:
description: >-
- ID of the payment method (a PaymentMethod, Card, or
- [compatible
- Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility)
- object) to attach to this PaymentIntent.
+ List of data features that you would like to request access
+ to.
- If this parameter is omitted with `confirm=true`,
- `customer.default_source` will be attached as this
- PaymentIntent's payment instrument to improve the migration
- experience for users of the Charges API. We recommend that
- you explicitly provide the `payment_method` going forward.
- maxLength: 5000
- type: string
- payment_method_configuration:
+ Possible values are `balances`, `transactions`, `ownership`,
+ and `payment_method`.
+ items:
+ enum:
+ - balances
+ - ownership
+ - payment_method
+ - transactions
+ maxLength: 5000
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ prefetch:
description: >-
- The ID of the payment method configuration to use with this
- PaymentIntent.
- maxLength: 100
- type: string
- payment_method_data:
+ List of data features that you would like to retrieve upon
+ account creation.
+ items:
+ enum:
+ - balances
+ - ownership
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ return_url:
description: >-
- If provided, this hash will be used to create a
- PaymentMethod. The new PaymentMethod will appear
-
- in the
- [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
-
- property on the PaymentIntent.
- properties:
- acss_debit:
- properties:
- account_number:
- maxLength: 5000
- type: string
- institution_number:
- maxLength: 5000
- type: string
- transit_number:
- maxLength: 5000
- type: string
- required:
- - account_number
- - institution_number
- - transit_number
- title: payment_method_param
- type: object
- affirm:
- properties: {}
- title: param
- type: object
- afterpay_clearpay:
- properties: {}
- title: param
- type: object
- alipay:
- properties: {}
- title: param
- type: object
- au_becs_debit:
- properties:
- account_number:
- maxLength: 5000
- type: string
- bsb_number:
- maxLength: 5000
- type: string
- required:
- - account_number
- - bsb_number
- title: param
- type: object
- bacs_debit:
- properties:
- account_number:
- maxLength: 5000
- type: string
- sort_code:
- maxLength: 5000
- type: string
- title: param
- type: object
- bancontact:
- properties: {}
- title: param
- type: object
- billing_details:
- properties:
- address:
- anyOf:
- - properties:
- city:
- maxLength: 5000
- type: string
- country:
- maxLength: 5000
- type: string
- line1:
- maxLength: 5000
- type: string
- line2:
- maxLength: 5000
- type: string
- postal_code:
- maxLength: 5000
- type: string
- state:
- maxLength: 5000
- type: string
- title: billing_details_address
+ For webview integrations only. Upon completing OAuth login
+ in the native browser, the user will be redirected to this
+ URL to return to your app.
+ maxLength: 5000
+ type: string
+ required:
+ - account_holder
+ - permissions
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.session'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/link_account_sessions/{session}':
+ get:
+ description: >-
+ Retrieves the details of a Financial Connections
+ Session
+ operationId: GetLinkAccountSessionsSession
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: session
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.session'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/linked_accounts:
+ get:
+ description: >-
+ Returns a list of Financial Connections Account
+ objects.
+ operationId: GetLinkedAccounts
+ parameters:
+ - description: >-
+ If present, only return accounts that belong to the specified
+ account holder. `account_holder[customer]` and
+ `account_holder[account]` are mutually exclusive.
+ explode: true
+ in: query
+ name: account_holder
+ required: false
+ schema:
+ properties:
+ account:
+ maxLength: 5000
+ type: string
+ customer:
+ maxLength: 5000
+ type: string
+ title: accountholder_params
+ type: object
+ style: deepObject
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ If present, only return accounts that were collected as part of the
+ given session.
+ in: query
+ name: session
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ $ref: '#/components/schemas/financial_connections.account'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/financial_connections/accounts
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: BankConnectionsResourceLinkedAccountList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/linked_accounts/{account}':
+ get:
+ description: >-
+ Retrieves the details of an Financial Connections
+ Account
.
+ operationId: GetLinkedAccountsAccount
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.account'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/linked_accounts/{account}/disconnect':
+ post:
+ description: >-
+ Disables your access to a Financial Connections Account
.
+ You will no longer be able to access data associated with the account
+ (e.g. balances, transactions).
+ operationId: PostLinkedAccountsAccountDisconnect
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.account'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/linked_accounts/{account}/owners':
+ get:
+ description: Lists all owners for a given Account
+ operationId: GetLinkedAccountsAccountOwners
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: The ID of the ownership object to fetch owners from.
+ in: query
+ name: ownership
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ $ref: '#/components/schemas/financial_connections.account_owner'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: BankConnectionsResourceOwnerList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/linked_accounts/{account}/refresh':
+ post:
+ description: >-
+ Refreshes the data associated with a Financial Connections
+ Account
.
+ operationId: PostLinkedAccountsAccountRefresh
+ parameters:
+ - in: path
+ name: account
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ features:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ features:
+ description: The list of account features that you would like to refresh.
+ items:
+ enum:
+ - balance
+ - ownership
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ required:
+ - features
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/financial_connections.account'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/mandates/{mandate}':
+ get:
+ description: Retrieves a Mandate object.
+ operationId: GetMandatesMandate
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: mandate
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/mandate'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/payment_intents:
+ get:
+ description: Returns a list of PaymentIntents.
+ operationId: GetPaymentIntents
+ parameters:
+ - description: >-
+ A filter on the list, based on the object `created` field. The value
+ can be a string with an integer Unix timestamp or a dictionary with
+ a number of different query options.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ Only return PaymentIntents for the customer that this customer ID
+ specifies.
+ in: query
+ name: customer
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/payment_intent'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/payment_intents
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: PaymentFlowsPaymentIntentList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ post:
+ description: >-
+ Creates a PaymentIntent object.
+
+
+ After the PaymentIntent is created, attach a payment method and confirm
+
+ to continue the payment. Learn more about the available payment flows
+
+ with the Payment Intents API.
+
+
+ When you use confirm=true
during creation, it’s
+ equivalent to creating
+
+ and confirming the PaymentIntent in the same call. You can use any
+ parameters
+
+ available in the confirm
+ API when you supply
+
+ confirm=true
.
+ operationId: PostPaymentIntents
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ automatic_payment_methods:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ mandate_data:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ off_session:
+ explode: true
+ style: deepObject
+ payment_method_data:
+ explode: true
+ style: deepObject
+ payment_method_options:
+ explode: true
+ style: deepObject
+ payment_method_types:
+ explode: true
+ style: deepObject
+ radar_options:
+ explode: true
+ style: deepObject
+ shipping:
+ explode: true
+ style: deepObject
+ transfer_data:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ amount:
+ description: >-
+ Amount intended to be collected by this PaymentIntent. A
+ positive integer representing how much to charge in the
+ [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal)
+ (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a
+ zero-decimal currency). The minimum amount is $0.50 US or
+ [equivalent in charge
+ currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts).
+ The amount value supports up to eight digits (e.g., a value
+ of 99999999 for a USD charge of $999,999.99).
+ type: integer
+ application_fee_amount:
+ description: >-
+ The amount of the application fee (if any) that will be
+ requested to be applied to the payment and transferred to
+ the application owner's Stripe account. The amount of the
+ application fee collected will be capped at the total
+ payment amount. For more information, see the PaymentIntents
+ [use case for connected
+ accounts](https://stripe.com/docs/payments/connected-accounts).
+ type: integer
+ automatic_payment_methods:
+ description: >-
+ When you enable this parameter, this PaymentIntent accepts
+ payment methods that you enable in the Dashboard and that
+ are compatible with this PaymentIntent's other parameters.
+ properties:
+ allow_redirects:
+ enum:
+ - always
+ - never
+ type: string
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: automatic_payment_methods_param
+ type: object
+ capture_method:
+ description: >-
+ Controls when the funds will be captured from the customer's
+ account.
+ enum:
+ - automatic
+ - automatic_async
+ - manual
+ type: string
+ confirm:
+ description: >-
+ Set to `true` to attempt to [confirm this
+ PaymentIntent](https://stripe.com/docs/api/payment_intents/confirm)
+ immediately. This parameter defaults to `false`. When
+ creating and confirming a PaymentIntent at the same time,
+ you can also provide the parameters available in the
+ [Confirm
+ API](https://stripe.com/docs/api/payment_intents/confirm).
+ type: boolean
+ confirmation_method:
+ description: >-
+ Describes whether we can confirm this PaymentIntent
+ automatically, or if it requires customer action to confirm
+ the payment.
+ enum:
+ - automatic
+ - manual
+ type: string
+ confirmation_token:
+ description: >-
+ ID of the ConfirmationToken used to confirm this
+ PaymentIntent.
+
+
+ If the provided ConfirmationToken contains properties that
+ are also being provided in this request, such as
+ `payment_method`, then the values in this request will take
+ precedence.
+ maxLength: 5000
+ type: string
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ type: string
+ customer:
+ description: >-
+ ID of the Customer this PaymentIntent belongs to, if one
+ exists.
+
+
+ Payment methods attached to other Customers cannot be used
+ with this PaymentIntent.
+
+
+ If present in combination with
+ [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage),
+ this PaymentIntent's payment method will be attached to the
+ Customer after the PaymentIntent has been confirmed and any
+ required actions from the user are complete.
+ maxLength: 5000
+ type: string
+ description:
+ description: >-
+ An arbitrary string attached to the object. Often useful for
+ displaying to users.
+ maxLength: 1000
+ type: string
+ error_on_requires_action:
+ description: >-
+ Set to `true` to fail the payment attempt if the
+ PaymentIntent transitions into `requires_action`. Use this
+ parameter for simpler integrations that don't handle
+ customer actions, such as [saving cards without
+ authentication](https://stripe.com/docs/payments/save-card-without-authentication).
+ This parameter can only be used with
+ [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
+ type: boolean
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ mandate:
+ description: >-
+ ID of the mandate that's used for this payment. This
+ parameter can only be used with
+ [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
+ maxLength: 5000
+ type: string
+ mandate_data:
+ anyOf:
+ - properties:
+ customer_acceptance:
+ properties:
+ accepted_at:
+ format: unix-time
+ type: integer
+ offline:
+ properties: {}
+ title: offline_param
+ type: object
+ online:
+ properties:
+ ip_address:
+ type: string
+ user_agent:
+ maxLength: 5000
+ type: string
+ required:
+ - ip_address
+ - user_agent
+ title: online_param
+ type: object
+ type:
+ enum:
+ - offline
+ - online
+ maxLength: 5000
+ type: string
+ required:
+ - type
+ title: customer_acceptance_param
+ type: object
+ required:
+ - customer_acceptance
+ title: secret_key_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ This hash contains details about the Mandate to create. This
+ parameter can only be used with
+ [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ off_session:
+ anyOf:
+ - type: boolean
+ - enum:
+ - one_off
+ - recurring
+ maxLength: 5000
+ type: string
+ description: >-
+ Set to `true` to indicate that the customer isn't in your
+ checkout flow during this payment attempt and can't
+ authenticate. Use this parameter in scenarios where you
+ collect card details and [charge them
+ later](https://stripe.com/docs/payments/cards/charging-saved-cards).
+ This parameter can only be used with
+ [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
+ on_behalf_of:
+ description: >-
+ The Stripe account ID that these funds are intended for.
+ Learn more about the [use case for connected
+ accounts](https://stripe.com/docs/payments/connected-accounts).
+ type: string
+ payment_method:
+ description: >-
+ ID of the payment method (a PaymentMethod, Card, or
+ [compatible
+ Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility)
+ object) to attach to this PaymentIntent.
+
+
+ If you omit this parameter with `confirm=true`,
+ `customer.default_source` attaches as this PaymentIntent's
+ payment instrument to improve migration for users of the
+ Charges API. We recommend that you explicitly provide the
+ `payment_method` moving forward.
+ maxLength: 5000
+ type: string
+ payment_method_configuration:
+ description: >-
+ The ID of the payment method configuration to use with this
+ PaymentIntent.
+ maxLength: 100
+ type: string
+ payment_method_data:
+ description: >-
+ If provided, this hash will be used to create a
+ PaymentMethod. The new PaymentMethod will appear
+
+ in the
+ [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
+
+ property on the PaymentIntent.
+ properties:
+ acss_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ institution_number:
+ maxLength: 5000
+ type: string
+ transit_number:
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - institution_number
+ - transit_number
+ title: payment_method_param
+ type: object
+ affirm:
+ properties: {}
+ title: param
+ type: object
+ afterpay_clearpay:
+ properties: {}
+ title: param
+ type: object
+ alipay:
+ properties: {}
+ title: param
+ type: object
+ au_becs_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ bsb_number:
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - bsb_number
+ title: param
+ type: object
+ bacs_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ sort_code:
+ maxLength: 5000
+ type: string
+ title: param
+ type: object
+ bancontact:
+ properties: {}
+ title: param
+ type: object
+ billing_details:
+ properties:
+ address:
+ anyOf:
+ - properties:
+ city:
+ maxLength: 5000
+ type: string
+ country:
+ maxLength: 5000
+ type: string
+ line1:
+ maxLength: 5000
+ type: string
+ line2:
+ maxLength: 5000
+ type: string
+ postal_code:
+ maxLength: 5000
+ type: string
+ state:
+ maxLength: 5000
+ type: string
+ title: billing_details_address
type: object
- enum:
- ''
@@ -75751,6 +85733,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -75796,6 +85779,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -75828,6 +85815,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -75854,7 +85842,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -75880,6 +85872,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -75901,14 +85897,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -75951,7 +85950,7 @@ paths:
type: object
payment_method_options:
description: >-
- Payment-method-specific configuration for this
+ Payment method-specific configuration for this
PaymentIntent.
properties:
acss_debit:
@@ -76113,6 +86112,12 @@ paths:
code:
maxLength: 5000
type: string
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ type: string
+ x-stripeBypassValidation: true
title: payment_intent_payment_method_options_param
type: object
- enum:
@@ -76235,13 +86240,35 @@ paths:
maxLength: 5000
type: string
x-stripeBypassValidation: true
+ request_extended_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_incremental_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_multicapture:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_overcapture:
+ enum:
+ - if_available
+ - never
+ type: string
request_three_d_secure:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ require_cvc_recollection:
+ type: boolean
setup_future_usage:
enum:
- ''
@@ -76263,6 +86290,78 @@ paths:
- enum:
- ''
type: string
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ exemption_indicator:
+ enum:
+ - low_risk
+ - none
+ type: string
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - cryptogram
+ - transaction_id
+ - version
+ title: payment_method_options_param
+ type: object
title: payment_intent_param
type: object
- enum:
@@ -76483,6 +86582,7 @@ paths:
enum:
- none
type: string
+ x-stripeBypassValidation: true
title: payment_method_options_param
type: object
- enum:
@@ -76546,6 +86646,23 @@ paths:
- enum:
- ''
type: string
+ mobilepay:
+ anyOf:
+ - properties:
+ capture_method:
+ enum:
+ - ''
+ - manual
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
oxxo:
anyOf:
- properties:
@@ -76665,6 +86782,20 @@ paths:
- enum:
- ''
type: string
+ revolut_pay:
+ anyOf:
+ - properties:
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ - off_session
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
sepa_debit:
anyOf:
- properties:
@@ -76709,6 +86840,25 @@ paths:
- enum:
- ''
type: string
+ swish:
+ anyOf:
+ - properties:
+ reference:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_intent_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -76729,6 +86879,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -76737,6 +86888,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -76813,9 +86974,9 @@ paths:
type: object
payment_method_types:
description: >-
- The list of payment method types (e.g. card) that this
- PaymentIntent is allowed to use. If this is not provided,
- defaults to ["card"]. Use automatic_payment_methods to
+ The list of payment method types (for example, a card) that
+ this PaymentIntent can use. If you don't provide this, it
+ defaults to ["card"]. Use `automatic_payment_methods` to
manage payment methods from the [Stripe
Dashboard](https://dashboard.stripe.com/settings/payment_methods).
items:
@@ -76824,9 +86985,8 @@ paths:
type: array
radar_options:
description: >-
- Options to configure Radar. See [Radar
- Session](https://stripe.com/docs/radar/radar-session) for
- more information.
+ Options to configure Radar. Learn more about [Radar
+ Sessions](https://stripe.com/docs/radar/radar-session).
properties:
session:
maxLength: 5000
@@ -76835,10 +86995,9 @@ paths:
type: object
receipt_email:
description: >-
- Email address that the receipt for the resulting payment
- will be sent to. If `receipt_email` is specified for a
- payment in live mode, a receipt will be sent regardless of
- your [email
+ Email address to send the receipt to. If you specify
+ `receipt_email` for a payment in live mode, you send a
+ receipt regardless of your [email
settings](https://dashboard.stripe.com/account/emails).
type: string
return_url:
@@ -76919,9 +87078,12 @@ paths:
type: object
statement_descriptor:
description: >-
- For non-card charges, you can use this value as the complete
- description that appears on your customers’ statements. Must
- contain at least one letter, maximum 22 characters.
+ For card charges, use
+ [statement_descriptor_suffix](https://stripe.com/docs/payments/account/statement-descriptors#dynamic).
+ Otherwise, you can use this value as the complete
+ description of a charge on your customers' statements. It
+ must contain at least one letter and be 1–22 characters
+ long.
maxLength: 22
type: string
statement_descriptor_suffix:
@@ -76929,17 +87091,16 @@ paths:
Provides information about a card payment that customers see
on their statements. Concatenated with the prefix (shortened
descriptor) or statement descriptor that’s set on the
- account to form the complete statement descriptor. Maximum
- 22 characters for the concatenated descriptor.
+ account to form the complete statement descriptor. The
+ concatenated descriptor must contain 1-22 characters.
maxLength: 22
type: string
transfer_data:
description: >-
- The parameters used to automatically create a Transfer when
- the payment succeeds.
+ The parameters that you can use to automatically create a
+ Transfer.
- For more information, see the PaymentIntents [use case for
- connected
+ Learn more about the [use case for connected
accounts](https://stripe.com/docs/payments/connected-accounts).
properties:
amount:
@@ -76953,9 +87114,8 @@ paths:
transfer_group:
description: >-
A string that identifies the resulting payment as part of a
- group. See the PaymentIntents [use case for connected
- accounts](https://stripe.com/docs/connect/separate-charges-and-transfers)
- for details.
+ group. Learn more about the [use case for connected
+ accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
type: string
use_stripe_sdk:
description: >-
@@ -77115,7 +87275,7 @@ paths:
operationId: GetPaymentIntentsIntent
parameters:
- description: >-
- The client secret of the PaymentIntent. It's required if you use a
+ The client secret of the PaymentIntent. We require it if you use a
publishable key to retrieve the source.
in: query
name: client_secret
@@ -77553,6 +87713,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -77598,6 +87759,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -77630,6 +87795,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -77656,7 +87822,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -77682,6 +87852,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -77703,14 +87877,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -77915,6 +88092,12 @@ paths:
code:
maxLength: 5000
type: string
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ type: string
+ x-stripeBypassValidation: true
title: payment_intent_payment_method_options_param
type: object
- enum:
@@ -78037,13 +88220,35 @@ paths:
maxLength: 5000
type: string
x-stripeBypassValidation: true
+ request_extended_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_incremental_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_multicapture:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_overcapture:
+ enum:
+ - if_available
+ - never
+ type: string
request_three_d_secure:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ require_cvc_recollection:
+ type: boolean
setup_future_usage:
enum:
- ''
@@ -78065,6 +88270,78 @@ paths:
- enum:
- ''
type: string
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ exemption_indicator:
+ enum:
+ - low_risk
+ - none
+ type: string
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - cryptogram
+ - transaction_id
+ - version
+ title: payment_method_options_param
+ type: object
title: payment_intent_param
type: object
- enum:
@@ -78285,6 +88562,7 @@ paths:
enum:
- none
type: string
+ x-stripeBypassValidation: true
title: payment_method_options_param
type: object
- enum:
@@ -78348,6 +88626,23 @@ paths:
- enum:
- ''
type: string
+ mobilepay:
+ anyOf:
+ - properties:
+ capture_method:
+ enum:
+ - ''
+ - manual
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
oxxo:
anyOf:
- properties:
@@ -78467,6 +88762,20 @@ paths:
- enum:
- ''
type: string
+ revolut_pay:
+ anyOf:
+ - properties:
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ - off_session
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
sepa_debit:
anyOf:
- properties:
@@ -78511,6 +88820,25 @@ paths:
- enum:
- ''
type: string
+ swish:
+ anyOf:
+ - properties:
+ reference:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_intent_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -78531,6 +88859,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -78539,6 +88868,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -78714,9 +89053,12 @@ paths:
description: Shipping information for this PaymentIntent.
statement_descriptor:
description: >-
- For non-card charges, you can use this value as the complete
- description that appears on your customers’ statements. Must
- contain at least one letter, maximum 22 characters.
+ For card charges, use
+ [statement_descriptor_suffix](https://stripe.com/docs/payments/account/statement-descriptors#dynamic).
+ Otherwise, you can use this value as the complete
+ description of a charge on your customers' statements. It
+ must contain at least one letter and be 1–22 characters
+ long.
maxLength: 22
type: string
statement_descriptor_suffix:
@@ -78764,8 +89106,8 @@ paths:
'/v1/payment_intents/{intent}/apply_customer_balance':
post:
description: >-
- Manually reconcile the remaining amount for a customer_balance
- PaymentIntent.
+ Manually reconcile the remaining amount for a
+ customer_balance
PaymentIntent.
operationId: PostPaymentIntentsIntentApplyCustomerBalance
parameters:
- in: path
@@ -78787,22 +89129,22 @@ paths:
properties:
amount:
description: >-
- Amount intended to be applied to this PaymentIntent from the
- customer’s cash balance.
+ Amount that you intend to apply to this PaymentIntent from
+ the customer’s cash balance.
A positive integer representing how much to charge in the
[smallest currency
- unit](https://stripe.com/docs/currencies#zero-decimal)
- (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a
- zero-decimal currency).
+ unit](https://stripe.com/docs/currencies#zero-decimal) (for
+ example, 100 cents to charge 1 USD or 100 to charge 100 JPY,
+ a zero-decimal currency).
The maximum amount is the amount of the PaymentIntent.
- When omitted, the amount defaults to the remaining amount
- requested on the PaymentIntent.
+ When you omit the amount, it defaults to the remaining
+ amount requested on the PaymentIntent.
type: integer
currency:
description: >-
@@ -78835,21 +89177,21 @@ paths:
'/v1/payment_intents/{intent}/cancel':
post:
description: >-
- A PaymentIntent object can be canceled when it is in one of these
+
You can cancel a PaymentIntent object when it’s in one of these
statuses: requires_payment_method
,
requires_capture
, requires_confirmation
,
requires_action
or, in
rare cases, processing
.
- Once canceled, no additional charges will be made by the
- PaymentIntent and any operations on the PaymentIntent will fail with an
+
After it’s canceled, no additional charges are made by the
+ PaymentIntent and any operations on the PaymentIntent fail with an
error. For PaymentIntents with a status
of
requires_capture
, the remaining
- amount_capturable
will automatically be refunded.
+ amount_capturable
is automatically refunded.
- You cannot cancel the PaymentIntent for a Checkout Session. You can’t cancel the PaymentIntent for a Checkout Session. Expire the Checkout
Session instead.
operationId: PostPaymentIntentsIntentCancel
@@ -78873,8 +89215,8 @@ paths:
properties:
cancellation_reason:
description: >-
- Reason for canceling this PaymentIntent. Possible values are
- `duplicate`, `fraudulent`, `requested_by_customer`, or
+ Reason for canceling this PaymentIntent. Possible values
+ are: `duplicate`, `fraudulent`, `requested_by_customer`, or
`abandoned`
enum:
- abandoned
@@ -78912,8 +89254,8 @@ paths:
status is requires_capture
.
- Uncaptured PaymentIntents will be canceled a set number of days after
- they are created (7 by default).
+ Uncaptured PaymentIntents are cancelled a set number of days (7 by
+ default) after their creation.
Learn more about separate
@@ -78947,8 +89289,8 @@ paths:
description: >-
The amount to capture from the PaymentIntent, which must be
less than or equal to the original amount. Any additional
- amount will be automatically refunded. Defaults to the full
- `amount_capturable` if not provided.
+ amount is automatically refunded. Defaults to the full
+ `amount_capturable` if it's not provided.
type: integer
application_fee_amount:
description: >-
@@ -78966,6 +89308,16 @@ paths:
maxLength: 5000
type: string
type: array
+ final_capture:
+ description: >-
+ Defaults to `true`. When capturing a PaymentIntent, setting
+ `final_capture` to `false` notifies Stripe to not release
+ the remaining uncaptured funds to make sure that they're
+ captured in future requests. You can only use this setting
+ when
+ [multicapture](https://stripe.com/docs/payments/multicapture)
+ is available for PaymentIntents.
+ type: boolean
metadata:
anyOf:
- additionalProperties:
@@ -78984,9 +89336,12 @@ paths:
value to `metadata`.
statement_descriptor:
description: >-
- For non-card charges, you can use this value as the complete
- description that appears on your customers’ statements. Must
- contain at least one letter, maximum 22 characters.
+ For card charges, use
+ [statement_descriptor_suffix](https://stripe.com/docs/payments/account/statement-descriptors#dynamic).
+ Otherwise, you can use this value as the complete
+ description of a charge on your customers' statements. It
+ must contain at least one letter and be 1–22 characters
+ long.
maxLength: 22
type: string
statement_descriptor_suffix:
@@ -78994,17 +89349,16 @@ paths:
Provides information about a card payment that customers see
on their statements. Concatenated with the prefix (shortened
descriptor) or statement descriptor that’s set on the
- account to form the complete statement descriptor. Maximum
- 22 characters for the concatenated descriptor.
+ account to form the complete statement descriptor. The
+ concatenated descriptor must be 1-22 characters long.
maxLength: 22
type: string
transfer_data:
description: >-
- The parameters used to automatically create a Transfer when
- the payment
+ The parameters that you can use to automatically create a
+ transfer after the payment
- is captured. For more information, see the PaymentIntents
- [use case for connected
+ is captured. Learn more about the [use case for connected
accounts](https://stripe.com/docs/payments/connected-accounts).
properties:
amount:
@@ -79083,11 +89437,7 @@ paths:
explicitly re-confirm the PaymentIntent to initiate the next payment
- attempt. Read the expanded
- documentation
-
- to learn more about manual confirmation.
+ attempt.
operationId: PostPaymentIntentsIntentConfirm
parameters:
- in: path
@@ -79144,6 +89494,18 @@ paths:
description: The client secret of the PaymentIntent.
maxLength: 5000
type: string
+ confirmation_token:
+ description: >-
+ ID of the ConfirmationToken used to confirm this
+ PaymentIntent.
+
+
+ If the provided ConfirmationToken contains properties that
+ are also being provided in this request, such as
+ `payment_method`, then the values in this request will take
+ precedence.
+ maxLength: 5000
+ type: string
error_on_requires_action:
description: >-
Set to `true` to fail the payment attempt if the
@@ -79159,7 +89521,7 @@ paths:
type: string
type: array
mandate:
- description: ID of the mandate to be used for this payment.
+ description: ID of the mandate that's used for this payment.
maxLength: 5000
type: string
mandate_data:
@@ -79203,7 +89565,8 @@ paths:
- enum:
- ''
type: string
- - properties:
+ - description: This hash contains details about the Mandate to create
+ properties:
customer_acceptance:
properties:
online:
@@ -79229,7 +89592,6 @@ paths:
- customer_acceptance
title: client_key_param
type: object
- description: This hash contains details about the Mandate to create
off_session:
anyOf:
- type: boolean
@@ -79239,10 +89601,10 @@ paths:
maxLength: 5000
type: string
description: >-
- Set to `true` to indicate that the customer is not in your
- checkout flow during this payment attempt, and therefore is
- unable to authenticate. This parameter is intended for
- scenarios where you collect card details and [charge them
+ Set to `true` to indicate that the customer isn't in your
+ checkout flow during this payment attempt and can't
+ authenticate. Use this parameter in scenarios where you
+ collect card details and [charge them
later](https://stripe.com/docs/payments/cards/charging-saved-cards).
payment_method:
description: >-
@@ -79478,6 +89840,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -79523,6 +89886,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -79555,6 +89922,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -79581,7 +89949,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -79607,6 +89979,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -79628,14 +90004,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -79678,7 +90057,7 @@ paths:
type: object
payment_method_options:
description: >-
- Payment-method-specific configuration for this
+ Payment method-specific configuration for this
PaymentIntent.
properties:
acss_debit:
@@ -79840,6 +90219,12 @@ paths:
code:
maxLength: 5000
type: string
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ type: string
+ x-stripeBypassValidation: true
title: payment_intent_payment_method_options_param
type: object
- enum:
@@ -79962,13 +90347,35 @@ paths:
maxLength: 5000
type: string
x-stripeBypassValidation: true
+ request_extended_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_incremental_authorization:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_multicapture:
+ enum:
+ - if_available
+ - never
+ type: string
+ request_overcapture:
+ enum:
+ - if_available
+ - never
+ type: string
request_three_d_secure:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ require_cvc_recollection:
+ type: boolean
setup_future_usage:
enum:
- ''
@@ -79990,6 +90397,78 @@ paths:
- enum:
- ''
type: string
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ exemption_indicator:
+ enum:
+ - low_risk
+ - none
+ type: string
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - cryptogram
+ - transaction_id
+ - version
+ title: payment_method_options_param
+ type: object
title: payment_intent_param
type: object
- enum:
@@ -80210,6 +90689,7 @@ paths:
enum:
- none
type: string
+ x-stripeBypassValidation: true
title: payment_method_options_param
type: object
- enum:
@@ -80273,6 +90753,23 @@ paths:
- enum:
- ''
type: string
+ mobilepay:
+ anyOf:
+ - properties:
+ capture_method:
+ enum:
+ - ''
+ - manual
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
oxxo:
anyOf:
- properties:
@@ -80392,6 +90889,20 @@ paths:
- enum:
- ''
type: string
+ revolut_pay:
+ anyOf:
+ - properties:
+ setup_future_usage:
+ enum:
+ - ''
+ - none
+ - off_session
+ type: string
+ title: payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
sepa_debit:
anyOf:
- properties:
@@ -80436,6 +90947,25 @@ paths:
- enum:
- ''
type: string
+ swish:
+ anyOf:
+ - properties:
+ reference:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ setup_future_usage:
+ enum:
+ - none
+ type: string
+ title: payment_intent_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -80456,6 +90986,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -80464,6 +90995,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -80540,10 +91081,9 @@ paths:
type: object
payment_method_types:
description: >-
- The list of payment method types (e.g. card) that this
- PaymentIntent is allowed to use. Use
- automatic_payment_methods to manage payment methods from the
- [Stripe
+ The list of payment method types (for example, a card) that
+ this PaymentIntent can use. Use `automatic_payment_methods`
+ to manage payment methods from the [Stripe
Dashboard](https://dashboard.stripe.com/settings/payment_methods).
items:
maxLength: 5000
@@ -80551,9 +91091,8 @@ paths:
type: array
radar_options:
description: >-
- Options to configure Radar. See [Radar
- Session](https://stripe.com/docs/radar/radar-session) for
- more information.
+ Options to configure Radar. Learn more about [Radar
+ Sessions](https://stripe.com/docs/radar/radar-session).
properties:
session:
maxLength: 5000
@@ -80701,10 +91240,10 @@ paths:
Incremental authorizations attempt to increase the authorized amount
on
- your customer’s card to the new, higher amount
provided. As
- with the
+ your customer’s card to the new, higher amount
provided.
+ Similar to the
- initial authorization, incremental authorizations may be declined. A
+ initial authorization, incremental authorizations can be declined. A
single PaymentIntent can call this endpoint multiple times to further
@@ -80712,19 +91251,18 @@ paths:
If the incremental authorization succeeds, the PaymentIntent object
- is
- returned with the updated
+ returns with the updated
amount.
If the incremental authorization fails, a
- card_declined error is
- returned, and no
+ card_declined error
+ returns, and no other
- fields on the PaymentIntent or Charge are updated. The PaymentIntent
+ fields on the PaymentIntent or Charge update. The PaymentIntent
object remains capturable for the previously authorized amount.
@@ -80732,7 +91270,7 @@ paths:
Each PaymentIntent can have a maximum of 10 incremental authorization
attempts, including declines.
- Once captured, a PaymentIntent can no longer be incremented.
+ After it’s captured, a PaymentIntent can no longer be incremented.
Learn more about -
- The updated total amount you intend to collect from the
+ The updated total amount that you intend to collect from the
cardholder. This amount must be greater than the currently
authorized amount.
type: integer
@@ -80805,18 +91343,20 @@ paths:
type: object
statement_descriptor:
description: >-
- For non-card charges, you can use this value as the complete
- description that appears on your customers’ statements. Must
- contain at least one letter, maximum 22 characters.
+ For card charges, use
+ [statement_descriptor_suffix](https://stripe.com/docs/payments/account/statement-descriptors#dynamic).
+ Otherwise, you can use this value as the complete
+ description of a charge on your customers' statements. It
+ must contain at least one letter and be 1–22 characters
+ long.
maxLength: 22
type: string
transfer_data:
description: >-
- The parameters used to automatically create a Transfer when
+ The parameters used to automatically create a transfer after
the payment is captured.
- For more information, see the PaymentIntents [use case for
- connected
+ Learn more about the [use case for connected
accounts](https://stripe.com/docs/payments/connected-accounts).
properties:
amount:
@@ -81059,6 +91599,9 @@ paths:
phone_number_collection:
explode: true
style: deepObject
+ restrictions:
+ explode: true
+ style: deepObject
shipping_address_collection:
explode: true
style: deepObject
@@ -81128,12 +91671,27 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_params
type: object
billing_address_collection:
- description: Configuration for collecting the customer's billing address.
+ description: >-
+ Configuration for collecting the customer's billing address.
+ Defaults to `auto`.
enum:
- auto
- required
@@ -81141,6 +91699,17 @@ paths:
consent_collection:
description: Configure fields to gather active consent from customers.
properties:
+ payment_method_reuse_agreement:
+ properties:
+ position:
+ enum:
+ - auto
+ - hidden
+ type: string
+ required:
+ - position
+ title: payment_method_reuse_agreement_params
+ type: object
promotions:
enum:
- auto
@@ -81164,7 +91733,7 @@ paths:
custom_fields:
description: >-
Collect additional information from your customer using
- custom fields. Up to 2 fields are supported.
+ custom fields. Up to 3 fields are supported.
items:
properties:
dropdown:
@@ -81241,6 +91810,19 @@ paths:
Display additional text for your customers using custom
text.
properties:
+ after_submit:
+ anyOf:
+ - properties:
+ message:
+ maxLength: 1200
+ type: string
+ required:
+ - message
+ title: custom_text_position_param
+ type: object
+ - enum:
+ - ''
+ type: string
shipping_address:
anyOf:
- properties:
@@ -81298,6 +91880,12 @@ paths:
maxLength: 5000
type: string
type: array
+ inactive_message:
+ description: >-
+ The custom message to be displayed to a customer when a
+ payment link is no longer active.
+ maxLength: 500
+ type: string
invoice_creation:
description: Generate a post-purchase Invoice for one-time payments.
properties:
@@ -81319,10 +91907,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -81339,6 +91927,19 @@ paths:
footer:
maxLength: 5000
type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
metadata:
anyOf:
- additionalProperties:
@@ -81426,11 +92027,27 @@ paths:
- automatic_async
- manual
type: string
+ description:
+ maxLength: 1000
+ type: string
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
setup_future_usage:
enum:
- off_session
- on_session
type: string
+ statement_descriptor:
+ maxLength: 22
+ type: string
+ statement_descriptor_suffix:
+ maxLength: 22
+ type: string
+ transfer_group:
+ maxLength: 5000
+ type: string
title: payment_intent_data_params
type: object
payment_method_collection:
@@ -81442,7 +92059,8 @@ paths:
discount.
- Can only be set in `subscription` mode.
+ Can only be set in `subscription` mode. Defaults to
+ `always`.
If you'd like information on how to collect a payment method
@@ -81489,6 +92107,7 @@ paths:
- promptpay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
type: string
@@ -81508,6 +92127,21 @@ paths:
- enabled
title: phone_number_collection_params
type: object
+ restrictions:
+ description: Settings that restrict the usage of a payment link.
+ properties:
+ completed_sessions:
+ properties:
+ limit:
+ type: integer
+ required:
+ - limit
+ title: completed_sessions_params
+ type: object
+ required:
+ - completed_sessions
+ title: restrictions_params
+ type: object
shipping_address_collection:
description: >-
Configuration for collecting the customer's shipping
@@ -81795,8 +92429,47 @@ paths:
description:
maxLength: 500
type: string
+ invoice_settings:
+ properties:
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: subscription_data_invoice_settings_params
+ type: object
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
trial_period_days:
type: integer
+ trial_settings:
+ properties:
+ end_behavior:
+ properties:
+ missing_payment_method:
+ enum:
+ - cancel
+ - create_invoice
+ - pause
+ type: string
+ required:
+ - missing_payment_method
+ title: end_behavior
+ type: object
+ required:
+ - end_behavior
+ title: trial_settings_config
+ type: object
title: subscription_data_params
type: object
tax_id_collection:
@@ -81914,6 +92587,9 @@ paths:
expand:
explode: true
style: deepObject
+ inactive_message:
+ explode: true
+ style: deepObject
invoice_creation:
explode: true
style: deepObject
@@ -81923,12 +92599,21 @@ paths:
metadata:
explode: true
style: deepObject
+ payment_intent_data:
+ explode: true
+ style: deepObject
payment_method_types:
explode: true
style: deepObject
+ restrictions:
+ explode: true
+ style: deepObject
shipping_address_collection:
explode: true
style: deepObject
+ subscription_data:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
@@ -81974,12 +92659,27 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_params
type: object
billing_address_collection:
- description: Configuration for collecting the customer's billing address.
+ description: >-
+ Configuration for collecting the customer's billing address.
+ Defaults to `auto`.
enum:
- auto
- required
@@ -82062,12 +92762,25 @@ paths:
type: string
description: >-
Collect additional information from your customer using
- custom fields. Up to 2 fields are supported.
+ custom fields. Up to 3 fields are supported.
custom_text:
description: >-
Display additional text for your customers using custom
text.
properties:
+ after_submit:
+ anyOf:
+ - properties:
+ message:
+ maxLength: 1200
+ type: string
+ required:
+ - message
+ title: custom_text_position_param
+ type: object
+ - enum:
+ - ''
+ type: string
shipping_address:
anyOf:
- properties:
@@ -82125,6 +92838,16 @@ paths:
maxLength: 5000
type: string
type: array
+ inactive_message:
+ anyOf:
+ - maxLength: 500
+ type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The custom message to be displayed to a customer when a
+ payment link is no longer active.
invoice_creation:
description: Generate a post-purchase Invoice for one-time payments.
properties:
@@ -82146,10 +92869,10 @@ paths:
- items:
properties:
name:
- maxLength: 30
+ maxLength: 40
type: string
value:
- maxLength: 30
+ maxLength: 140
type: string
required:
- name
@@ -82166,6 +92889,19 @@ paths:
footer:
maxLength: 5000
type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
metadata:
anyOf:
- additionalProperties:
@@ -82238,6 +92974,49 @@ paths:
sessions](https://stripe.com/docs/api/checkout/sessions)
created by this payment link.
type: object
+ payment_intent_data:
+ description: >-
+ A subset of parameters to be passed to PaymentIntent
+ creation for Checkout Sessions in `payment` mode.
+ properties:
+ description:
+ anyOf:
+ - maxLength: 1000
+ type: string
+ - enum:
+ - ''
+ type: string
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ statement_descriptor:
+ anyOf:
+ - maxLength: 22
+ type: string
+ - enum:
+ - ''
+ type: string
+ statement_descriptor_suffix:
+ anyOf:
+ - maxLength: 22
+ type: string
+ - enum:
+ - ''
+ type: string
+ transfer_group:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: payment_intent_data_update_params
+ type: object
payment_method_collection:
description: >-
Specify whether Checkout should collect a payment method.
@@ -82247,7 +93026,8 @@ paths:
discount.
- Can only be set in `subscription` mode.
+ Can only be set in `subscription` mode. Defaults to
+ `always`.
If you'd like information on how to collect a payment method
@@ -82288,6 +93068,7 @@ paths:
- promptpay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
type: string
@@ -82301,6 +93082,25 @@ paths:
Pass an empty string to enable dynamic payment methods that
use your [payment method
settings](https://dashboard.stripe.com/settings/payment_methods).
+ restrictions:
+ anyOf:
+ - properties:
+ completed_sessions:
+ properties:
+ limit:
+ type: integer
+ required:
+ - limit
+ title: completed_sessions_params
+ type: object
+ required:
+ - completed_sessions
+ title: restrictions_params
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: Settings that restrict the usage of a payment link.
shipping_address_collection:
anyOf:
- properties:
@@ -82556,6 +93356,61 @@ paths:
description: >-
Configuration for collecting the customer's shipping
address.
+ subscription_data:
+ description: >-
+ When creating a subscription, the specified configuration
+ data will be used. There must be at least one line item with
+ a recurring price to use `subscription_data`.
+ properties:
+ invoice_settings:
+ properties:
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: subscription_data_invoice_settings_params
+ type: object
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ trial_settings:
+ anyOf:
+ - properties:
+ end_behavior:
+ properties:
+ missing_payment_method:
+ enum:
+ - cancel
+ - create_invoice
+ - pause
+ type: string
+ required:
+ - missing_payment_method
+ title: end_behavior
+ type: object
+ required:
+ - end_behavior
+ title: trial_settings_config
+ type: object
+ - enum:
+ - ''
+ type: string
+ title: subscription_data_update_params
+ type: object
type: object
required: false
responses:
@@ -82816,6 +93671,9 @@ paths:
cashapp:
explode: true
style: deepObject
+ customer_balance:
+ explode: true
+ style: deepObject
eps:
explode: true
style: deepObject
@@ -82864,6 +93722,9 @@ paths:
promptpay:
explode: true
style: deepObject
+ revolut_pay:
+ explode: true
+ style: deepObject
sepa_debit:
explode: true
style: deepObject
@@ -82876,6 +93737,9 @@ paths:
wechat_pay:
explode: true
style: deepObject
+ zip:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
@@ -83167,6 +94031,27 @@ paths:
type: object
title: payment_method_param
type: object
+ customer_balance:
+ description: >-
+ Uses a customer’s [cash
+ balance](https://stripe.com/docs/payments/customer-balance)
+ for the payment. The cash balance can be funded via a bank
+ transfer. Check this
+ [page](https://stripe.com/docs/payments/bank-transfers) for
+ more details.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
eps:
description: >-
EPS is an Austria-based payment method that allows customers
@@ -83313,8 +94198,10 @@ paths:
description: >-
JCB is a credit card company based in Japan. JCB is
currently available in Japan to businesses approved by JCB,
- and available to all businesses in the US, Canada,
- Australia, New Zealand, UK, and Ireland. Check this
+ and available to all businesses in Australia, Canada, Hong
+ Kong, Japan, New Zealand, Singapore, Switzerland, United
+ Kingdom, United States, and all countries in the European
+ Economic Area except Iceland. Check this
[page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments)
for more details.
properties:
@@ -83505,6 +94392,26 @@ paths:
type: object
title: payment_method_param
type: object
+ revolut_pay:
+ description: >-
+ Revolut Pay, developed by Revolut, a global finance app, is
+ a digital wallet payment method. Revolut Pay uses the
+ customer’s stored balance or cards to fund the payment, and
+ offers the option for non-Revolut customers to save their
+ details after their first purchase.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
sepa_debit:
description: >-
The [Single Euro Payments Area
@@ -83596,6 +94503,25 @@ paths:
type: object
title: payment_method_param
type: object
+ zip:
+ description: >-
+ Zip gives your customers a way to split purchases over a
+ series of payments. Check this
+ [page](https://stripe.com/docs/payments/zip) for more
+ details like country availability.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
type: object
required: false
responses:
@@ -83713,6 +94639,9 @@ paths:
cashapp:
explode: true
style: deepObject
+ customer_balance:
+ explode: true
+ style: deepObject
eps:
explode: true
style: deepObject
@@ -83761,6 +94690,9 @@ paths:
promptpay:
explode: true
style: deepObject
+ revolut_pay:
+ explode: true
+ style: deepObject
sepa_debit:
explode: true
style: deepObject
@@ -83773,6 +94705,9 @@ paths:
wechat_pay:
explode: true
style: deepObject
+ zip:
+ explode: true
+ style: deepObject
schema:
additionalProperties: false
properties:
@@ -84067,6 +95002,27 @@ paths:
type: object
title: payment_method_param
type: object
+ customer_balance:
+ description: >-
+ Uses a customer’s [cash
+ balance](https://stripe.com/docs/payments/customer-balance)
+ for the payment. The cash balance can be funded via a bank
+ transfer. Check this
+ [page](https://stripe.com/docs/payments/bank-transfers) for
+ more details.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
eps:
description: >-
EPS is an Austria-based payment method that allows customers
@@ -84213,8 +95169,10 @@ paths:
description: >-
JCB is a credit card company based in Japan. JCB is
currently available in Japan to businesses approved by JCB,
- and available to all businesses in the US, Canada,
- Australia, New Zealand, UK, and Ireland. Check this
+ and available to all businesses in Australia, Canada, Hong
+ Kong, Japan, New Zealand, Singapore, Switzerland, United
+ Kingdom, United States, and all countries in the European
+ Economic Area except Iceland. Check this
[page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments)
for more details.
properties:
@@ -84399,6 +95357,26 @@ paths:
type: object
title: payment_method_param
type: object
+ revolut_pay:
+ description: >-
+ Revolut Pay, developed by Revolut, a global finance app, is
+ a digital wallet payment method. Revolut Pay uses the
+ customer’s stored balance or cards to fund the payment, and
+ offers the option for non-Revolut customers to save their
+ details after their first purchase.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
sepa_debit:
description: >-
The [Single Euro Payments Area
@@ -84490,6 +95468,25 @@ paths:
type: object
title: payment_method_param
type: object
+ zip:
+ description: >-
+ Zip gives your customers a way to split purchases over a
+ series of payments. Check this
+ [page](https://stripe.com/docs/payments/zip) for more
+ details like country availability.
+ properties:
+ display_preference:
+ properties:
+ preference:
+ enum:
+ - none
+ - 'off'
+ - 'on'
+ type: string
+ title: display_preference_param
+ type: object
+ title: payment_method_param
+ type: object
type: object
required: false
responses:
@@ -84918,14 +95915,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -85074,6 +96074,9 @@ paths:
metadata:
explode: true
style: deepObject
+ mobilepay:
+ explode: true
+ style: deepObject
oxxo:
explode: true
style: deepObject
@@ -85095,12 +96098,18 @@ paths:
radar_options:
explode: true
style: deepObject
+ revolut_pay:
+ explode: true
+ style: deepObject
sepa_debit:
explode: true
style: deepObject
sofort:
explode: true
style: deepObject
+ swish:
+ explode: true
+ style: deepObject
us_bank_account:
explode: true
style: deepObject
@@ -85273,6 +96282,16 @@ paths:
type: integer
exp_year:
type: integer
+ networks:
+ properties:
+ preferred:
+ enum:
+ - cartes_bancaires
+ - mastercard
+ - visa
+ type: string
+ title: networks_params
+ type: object
number:
maxLength: 5000
type: string
@@ -85431,6 +96450,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -85496,6 +96516,13 @@ paths:
value to them. All keys can be unset by posting an empty
value to `metadata`.
type: object
+ mobilepay:
+ description: >-
+ If this is a `mobilepay` PaymentMethod, this hash contains
+ details about the MobilePay payment method.
+ properties: {}
+ title: param
+ type: object
oxxo:
description: >-
If this is an `oxxo` PaymentMethod, this hash contains
@@ -85534,6 +96561,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -85580,7 +96608,14 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ description: >-
+ If this is a `Revolut Pay` PaymentMethod, this hash contains
+ details about the Revolut Pay payment method.
+ properties: {}
+ title: param
type: object
sepa_debit:
description: >-
@@ -85612,6 +96647,13 @@ paths:
- country
title: param
type: object
+ swish:
+ description: >-
+ If this is a `swish` PaymentMethod, this hash contains
+ details about the Swish payment method.
+ properties: {}
+ title: param
+ type: object
type:
description: >-
The type of the PaymentMethod. An additional hash is
@@ -85639,14 +96681,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -85857,6 +96902,17 @@ paths:
type: integer
exp_year:
type: integer
+ networks:
+ properties:
+ preferred:
+ enum:
+ - ''
+ - cartes_bancaires
+ - mastercard
+ - visa
+ type: string
+ title: networks_update_api_param
+ type: object
title: update_api_param
type: object
expand:
@@ -85898,6 +96954,11 @@ paths:
- company
- individual
type: string
+ account_type:
+ enum:
+ - checking
+ - savings
+ type: string
title: update_param
type: object
type: object
@@ -86049,7 +97110,10 @@ paths:
with the most recently created payouts appearing first.
operationId: GetPayouts
parameters:
- - explode: true
+ - description: >-
+ Only return payouts that are expected to arrive during the given
+ date interval.
+ explode: true
in: query
name: arrival_date
required: false
@@ -86068,7 +97132,10 @@ paths:
type: object
- type: integer
style: deepObject
- - explode: true
+ - description: >-
+ Only return payouts that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -86443,9 +97510,9 @@ paths:
'/v1/payouts/{payout}/cancel':
post:
description: >-
- You can cancel a previously created payout if it hasn’t been paid out
- yet. Stripe refunds the funds to your available balance. You can’t
- cancel automatic Stripe payouts.
+ You can cancel a previously created payout if its status is
+ pending
. Stripe refunds the funds to your available
+ balance. You can’t cancel automatic Stripe payouts.
operationId: PostPayoutsPayoutCancel
parameters:
- in: path
@@ -86491,8 +97558,8 @@ paths:
description: >-
Reverses a payout by debiting the destination bank account. At this
time, you can only reverse payouts for connected accounts to US bank
- accounts. If the payout is in the pending
status, use
- /v1/payouts/:id/cancel
instead.
+ accounts. If the payout is manual and in the pending
+ status, use /v1/payouts/:id/cancel
instead.
By requesting a reversal through
@@ -86810,8 +97877,8 @@ paths:
description: >-
The number of intervals between subscription billings. For
example, `interval=month` and `interval_count=3` bills every
- 3 months. Maximum of one year interval allowed (1 year, 12
- months, or 52 weeks).
+ 3 months. Maximum of three years interval allowed (3 years,
+ 36 months, or 156 weeks).
type: integer
metadata:
anyOf:
@@ -86829,6 +97896,10 @@ paths:
format. Individual keys can be unset by posting an empty
value to them. All keys can be unset by posting an empty
value to `metadata`.
+ meter:
+ description: The meter tracking the usage of a metered price
+ maxLength: 5000
+ type: string
nickname:
description: 'A brief description of the plan, hidden from customers.'
maxLength: 5000
@@ -87132,7 +98203,11 @@ paths:
description: Error response.
/v1/prices:
get:
- description:
Returns a list of your prices.
+ description: >-
+ Returns a list of your active prices, excluding inline
+ prices. For the list of inactive prices, set active
to
+ false.
operationId: GetPrices
parameters:
- description: >-
@@ -87240,6 +98315,9 @@ paths:
- week
- year
type: string
+ meter:
+ maxLength: 5000
+ type: string
usage_type:
enum:
- licensed
@@ -87549,6 +98627,9 @@ paths:
type: string
interval_count:
type: integer
+ meter:
+ maxLength: 5000
+ type: string
usage_type:
enum:
- licensed
@@ -88306,8 +99387,8 @@ paths:
type: array
features:
description: >-
- A list of up to 15 features for this product. These are
- displayed in [pricing
+ A list of up to 15 marketing features for this product.
+ These are displayed in [pricing
tables](https://stripe.com/docs/payments/checkout/pricing-table).
items:
properties:
@@ -88707,8 +99788,8 @@ paths:
- ''
type: string
description: >-
- A list of up to 15 features for this product. These are
- displayed in [pricing
+ A list of up to 15 marketing features for this product.
+ These are displayed in [pricing
tables](https://stripe.com/docs/payments/checkout/pricing-table).
images:
anyOf:
@@ -89452,6 +100533,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
@@ -89512,6 +100606,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -89583,6 +100680,19 @@ paths:
properties:
days_until_due:
type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
title: quote_param
type: object
line_items:
@@ -89592,6 +100702,25 @@ paths:
quantity, and the resulting cost.
items:
properties:
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
price:
maxLength: 5000
type: string
@@ -89690,6 +100819,10 @@ paths:
- enum:
- ''
type: string
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
trial_period_days:
anyOf:
- type: integer
@@ -89874,6 +101007,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_param
@@ -89929,6 +101075,9 @@ paths:
discount:
maxLength: 5000
type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
title: discounts_data_param
type: object
type: array
@@ -89972,6 +101121,19 @@ paths:
properties:
days_until_due:
type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
title: quote_param
type: object
line_items:
@@ -89981,6 +101143,25 @@ paths:
quantity, and the resulting cost.
items:
properties:
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
id:
maxLength: 5000
type: string
@@ -90086,6 +101267,10 @@ paths:
- enum:
- ''
type: string
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
trial_period_days:
anyOf:
- type: integer
@@ -90497,7 +101682,10 @@ paths:
description: Error response.
'/v1/quotes/{quote}/pdf':
get:
- description: Download the PDF for a finalized quote
+ description: >-
+ Download the PDF for a finalized quote. Explanation for special
+ handling can be found here
operationId: GetQuotesQuotePdf
parameters:
- description: Specifies which fields in the response should be expanded.
@@ -90541,6 +101729,8 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ servers:
+ - url: 'https://files.stripe.com/'
/v1/radar/early_fraud_warnings:
get:
description: Returns a list of early fraud warnings.
@@ -90555,6 +101745,28 @@ paths:
schema:
type: string
style: form
+ - description: >-
+ Only return early fraud warnings that were created during the given
+ date interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -90723,7 +101935,8 @@ paths:
created object appearing first.
operationId: GetRadarValueListItems
parameters:
- - explode: true
+ - description: Only return items that were created during the given date interval.
+ explode: true
in: query
name: created
required: false
@@ -91016,7 +102229,10 @@ paths:
maxLength: 800
type: string
style: form
- - explode: true
+ - description: >-
+ Only return value lists that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -91369,10 +102585,9 @@ paths:
/v1/refunds:
get:
description: >-
- Returns a list of all refunds you’ve previously created. The refunds
- are returned in sorted order, with the most recent refunds appearing
- first. For convenience, the 10 most recent refunds are always available
- by default on the charge object.
+ Returns a list of all refunds you created. We return the refunds in
+ sorted order, with the most recent refunds appearing first The 10 most
+ recent refunds are always available by default on the Charge object.
operationId: GetRefunds
parameters:
- description: Only return refunds for the charge specified by this charge ID.
@@ -91382,7 +102597,10 @@ paths:
schema:
type: string
style: form
- - explode: true
+ - description: >-
+ Only return refunds that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -91507,7 +102725,30 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: Create a refund.
+ description: >-
+ When you create a new refund, you must specify a Charge or a
+ PaymentIntent object on which to create it.
+
+
+ Creating a new refund will refund a charge that has previously been
+ created but not yet refunded.
+
+ Funds will be refunded to the credit or debit card that was originally
+ charged.
+
+
+ You can optionally refund only part of a charge.
+
+ You can do so multiple times, until the entire charge has been
+ refunded.
+
+
+ Once entirely refunded, a charge can’t be refunded again.
+
+ This method will raise an error when called on an already-refunded
+ charge,
+
+ or when trying to refund more money than is left on a charge.
operationId: PostRefunds
requestBody:
content:
@@ -91523,9 +102764,9 @@ paths:
additionalProperties: false
properties:
amount:
- description: A positive integer representing how much to refund.
type: integer
charge:
+ description: The identifier of the charge to refund.
maxLength: 5000
type: string
currency:
@@ -91573,9 +102814,18 @@ paths:
- customer_balance
type: string
payment_intent:
+ description: The identifier of the PaymentIntent to refund.
maxLength: 5000
type: string
reason:
+ description: >-
+ String indicating the reason for the refund. If set,
+ possible values are `duplicate`, `fraudulent`, and
+ `requested_by_customer`. If you believe the charge to be
+ fraudulent, specifying `fraudulent` as the reason will add
+ the associated card and email to your [block
+ lists](https://stripe.com/docs/radar/lists), and will also
+ help us improve our fraud detection algorithms.
enum:
- duplicate
- fraudulent
@@ -91583,8 +102833,22 @@ paths:
maxLength: 5000
type: string
refund_application_fee:
+ description: >-
+ Boolean indicating whether the application fee should be
+ refunded when refunding this charge. If a full charge refund
+ is given, the full application fee will be refunded.
+ Otherwise, the application fee will be refunded in an amount
+ proportional to the amount of the charge refunded. An
+ application fee can be refunded only by the application that
+ created the charge.
type: boolean
reverse_transfer:
+ description: >-
+ Boolean indicating whether the transfer should be reversed
+ when refunding this charge. The transfer will be reversed
+ proportionally to the amount being refunded (either the
+ entire or partial amount).
A transfer can be reversed
+ only by the application that created the charge.
type: boolean
type: object
required: false
@@ -91647,8 +102911,9 @@ paths:
description: Error response.
post:
description: >-
- Updates the specified refund by setting the values of the parameters
- passed. Any parameters not provided will be left unchanged.
+ Updates the refund that you specify by setting the values of the
+ passed parameters. Any parameters that you don’t provide remain
+ unchanged.
This request only accepts metadata
as an argument.
@@ -91716,8 +102981,8 @@ paths:
Cancels a refund with a status of requires_action
.
- Refunds in other states cannot be canceled, and only refunds for
- payment methods that require customer action will enter the
+
You can’t cancel refunds in other states. Only refunds for payment
+ methods that require customer action can enter the
requires_action
state.
operationId: PostRefundsRefundCancel
parameters:
@@ -91765,7 +103030,10 @@ paths:
first.
operationId: GetReportingReportRuns
parameters:
- - explode: true
+ - description: >-
+ Only return Report Runs that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -91941,6 +103209,8 @@ paths:
- anticipation_repayment
- charge
- charge_failure
+ - climate_order_purchase
+ - climate_order_refund
- connect_collection_transfer
- connect_reserved_funds
- contribution
@@ -91956,7 +103226,6 @@ paths:
- issuing_dispute
- issuing_transaction
- network_cost
- - obligation
- other_adjustment
- partial_capture_reversal
- payout
@@ -91971,6 +103240,7 @@ paths:
- topup_reversal
- transfer
- transfer_reversal
+ - unreconciled_customer_funds
maxLength: 5000
type: string
x-stripeBypassValidation: true
@@ -92770,7 +104040,10 @@ paths:
appearing first.
operationId: GetReviews
parameters:
- - explode: true
+ - description: >-
+ Only return reviews that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -93203,7 +104476,7 @@ paths:
type: integer
style: form
- description: >-
- Only return SetupIntents associated with the specified payment
+ Only return SetupIntents that associate with the specified payment
method.
in: query
name: payment_method
@@ -93283,10 +104556,10 @@ paths:
Creates a SetupIntent object.
- After the SetupIntent is created, attach a payment method and After you create the SetupIntent, attach a payment method and confirm
- to collect any required permissions to charge the payment method
+ it to collect any required permissions to charge the payment method
later.
operationId: PostSetupIntents
requestBody:
@@ -93337,9 +104610,9 @@ paths:
type: boolean
automatic_payment_methods:
description: >-
- When enabled, this SetupIntent will accept payment methods
- that you have enabled in the Dashboard and are compatible
- with this SetupIntent's other parameters.
+ When you enable this parameter, this SetupIntent accepts
+ payment methods that you enable in the Dashboard and that
+ are compatible with its other parameters.
properties:
allow_redirects:
enum:
@@ -93355,10 +104628,22 @@ paths:
confirm:
description: >-
Set to `true` to attempt to confirm this SetupIntent
- immediately. This parameter defaults to `false`. If the
- payment method attached is a card, a return_url may be
- provided in case additional authentication is required.
+ immediately. This parameter defaults to `false`. If a card
+ is the attached payment method, you can provide a
+ `return_url` in case further authentication is necessary.
type: boolean
+ confirmation_token:
+ description: >-
+ ID of the ConfirmationToken used to confirm this
+ SetupIntent.
+
+
+ If the provided ConfirmationToken contains properties that
+ are also being provided in this request, such as
+ `payment_method`, then the values in this request will take
+ precedence.
+ maxLength: 5000
+ type: string
customer:
description: >-
ID of the Customer this SetupIntent belongs to, if one
@@ -93442,7 +104727,7 @@ paths:
- ''
type: string
description: >-
- This hash contains details about the Mandate to create. This
+ This hash contains details about the mandate to create. This
parameter can only be used with
[`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
metadata:
@@ -93458,7 +104743,7 @@ paths:
value to `metadata`.
type: object
on_behalf_of:
- description: The Stripe account ID for which this SetupIntent is created.
+ description: The Stripe account ID created for this SetupIntent.
type: string
payment_method:
description: >-
@@ -93469,7 +104754,7 @@ paths:
payment_method_configuration:
description: >-
The ID of the payment method configuration to use with this
- Setup Intent.
+ SetupIntent.
maxLength: 100
type: string
payment_method_data:
@@ -93696,6 +104981,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -93741,6 +105027,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -93773,6 +105063,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -93799,7 +105090,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -93825,6 +105120,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -93846,14 +105145,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -93895,7 +105197,7 @@ paths:
title: payment_method_data_params
type: object
payment_method_options:
- description: Payment-method-specific configuration for this SetupIntent.
+ description: Payment method-specific configuration for this SetupIntent.
properties:
acss_debit:
properties:
@@ -94015,11 +105317,78 @@ paths:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ title: setup_intent_payment_method_options_param
+ type: object
title: setup_intent_param
type: object
+ card_present:
+ properties: {}
+ title: setup_intent_payment_method_options_param
+ type: object
link:
properties: {}
title: setup_intent_payment_method_options_param
@@ -94058,6 +105427,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -94066,6 +105436,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -94090,8 +105470,8 @@ paths:
type: object
payment_method_types:
description: >-
- The list of payment method types (e.g. card) that this
- SetupIntent is allowed to use. If this is not provided,
+ The list of payment method types (for example, card) that
+ this SetupIntent can use. If you don't provide this, it
defaults to ["card"].
items:
maxLength: 5000
@@ -94101,15 +105481,15 @@ paths:
description: >-
The URL to redirect your customer back to after they
authenticate or cancel their payment on the payment method's
- app or site. If you'd prefer to redirect to a mobile
- application, you can alternatively supply an application URI
- scheme. This parameter can only be used with
+ app or site. To redirect to a mobile application, you can
+ alternatively supply an application URI scheme. This
+ parameter can only be used with
[`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
type: string
single_use:
description: >-
- If this hash is populated, this SetupIntent will generate a
- single_use Mandate on success.
+ If you populate this hash, this SetupIntent generates a
+ `single_use` mandate after successful completion.
properties:
amount:
type: integer
@@ -94168,8 +105548,8 @@ paths:
operationId: GetSetupIntentsIntent
parameters:
- description: >-
- The client secret of the SetupIntent. Required if a publishable key
- is used to retrieve the SetupIntent.
+ The client secret of the SetupIntent. We require this string if you
+ use a publishable key to retrieve the SetupIntent.
in: query
name: client_secret
required: false
@@ -94558,6 +105938,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -94603,6 +105984,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -94635,6 +106020,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -94661,7 +106047,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -94687,6 +106077,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -94708,14 +106102,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -94757,7 +106154,7 @@ paths:
title: payment_method_data_params
type: object
payment_method_options:
- description: Payment-method-specific configuration for this SetupIntent.
+ description: Payment method-specific configuration for this SetupIntent.
properties:
acss_debit:
properties:
@@ -94877,11 +106274,78 @@ paths:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ title: setup_intent_payment_method_options_param
+ type: object
title: setup_intent_param
type: object
+ card_present:
+ properties: {}
+ title: setup_intent_payment_method_options_param
+ type: object
link:
properties: {}
title: setup_intent_payment_method_options_param
@@ -94920,6 +106384,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -94928,6 +106393,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -94952,9 +106427,9 @@ paths:
type: object
payment_method_types:
description: >-
- The list of payment method types (e.g. card) that this
- SetupIntent is allowed to set up. If this is not provided,
- defaults to ["card"].
+ The list of payment method types (for example, card) that
+ this SetupIntent can set up. If you don't provide this
+ array, it defaults to ["card"].
items:
maxLength: 5000
type: string
@@ -94977,14 +106452,14 @@ paths:
'/v1/setup_intents/{intent}/cancel':
post:
description: >-
- A SetupIntent object can be canceled when it is in one of these
+
You can cancel a SetupIntent object when it’s in one of these
statuses: requires_payment_method
,
requires_confirmation
, or requires_action
.
- Once canceled, setup is abandoned and any operations on the
- SetupIntent will fail with an error.
+ After you cancel it, setup is abandoned and any operations on the
+ SetupIntent fail with an error.
operationId: PostSetupIntentsIntentCancel
parameters:
- in: path
@@ -95006,7 +106481,7 @@ paths:
properties:
cancellation_reason:
description: >-
- Reason for canceling this SetupIntent. Possible values are
+ Reason for canceling this SetupIntent. Possible values are:
`abandoned`, `requested_by_customer`, or `duplicate`
enum:
- abandoned
@@ -95097,6 +106572,18 @@ paths:
description: The client secret of the SetupIntent.
maxLength: 5000
type: string
+ confirmation_token:
+ description: >-
+ ID of the ConfirmationToken used to confirm this
+ SetupIntent.
+
+
+ If the provided ConfirmationToken contains properties that
+ are also being provided in this request, such as
+ `payment_method`, then the values in this request will take
+ precedence.
+ maxLength: 5000
+ type: string
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -95144,7 +106631,8 @@ paths:
- enum:
- ''
type: string
- - properties:
+ - description: This hash contains details about the Mandate to create
+ properties:
customer_acceptance:
properties:
online:
@@ -95170,7 +106658,6 @@ paths:
- customer_acceptance
title: client_key_param
type: object
- description: This hash contains details about the Mandate to create
payment_method:
description: >-
ID of the payment method (a PaymentMethod, Card, or saved
@@ -95401,6 +106888,7 @@ paths:
- knab
- moneyou
- n26
+ - nn
- rabobank
- regiobank
- revolut
@@ -95446,6 +106934,10 @@ paths:
additionalProperties:
type: string
type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
oxxo:
properties: {}
title: param
@@ -95478,6 +106970,7 @@ paths:
- santander_przelew24
- tmobile_usbugi_bankowe
- toyota_bank
+ - velobank
- volkswagen_bank
type: string
x-stripeBypassValidation: true
@@ -95504,7 +106997,11 @@ paths:
session:
maxLength: 5000
type: string
- title: radar_options
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
type: object
sepa_debit:
properties:
@@ -95530,6 +107027,10 @@ paths:
- country
title: param
type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
type:
enum:
- acss_debit
@@ -95551,14 +107052,17 @@ paths:
- klarna
- konbini
- link
+ - mobilepay
- oxxo
- p24
- paynow
- paypal
- pix
- promptpay
+ - revolut_pay
- sepa_debit
- sofort
+ - swish
- us_bank_account
- wechat_pay
- zip
@@ -95600,7 +107104,7 @@ paths:
title: payment_method_data_params
type: object
payment_method_options:
- description: Payment-method-specific configuration for this SetupIntent.
+ description: Payment method-specific configuration for this SetupIntent.
properties:
acss_debit:
properties:
@@ -95720,11 +107224,78 @@ paths:
enum:
- any
- automatic
- maxLength: 5000
+ - challenge
type: string
x-stripeBypassValidation: true
+ three_d_secure:
+ properties:
+ ares_trans_status:
+ enum:
+ - A
+ - C
+ - I
+ - 'N'
+ - R
+ - U
+ - 'Y'
+ type: string
+ cryptogram:
+ maxLength: 5000
+ type: string
+ electronic_commerce_indicator:
+ enum:
+ - '01'
+ - '02'
+ - '05'
+ - '06'
+ - '07'
+ type: string
+ x-stripeBypassValidation: true
+ network_options:
+ properties:
+ cartes_bancaires:
+ properties:
+ cb_avalgo:
+ enum:
+ - '0'
+ - '1'
+ - '2'
+ - '3'
+ - '4'
+ - A
+ type: string
+ cb_exemption:
+ maxLength: 4
+ type: string
+ cb_score:
+ type: integer
+ required:
+ - cb_avalgo
+ title: cartes_bancaires_network_options_param
+ type: object
+ title: network_options_param
+ type: object
+ requestor_challenge_indicator:
+ maxLength: 2
+ type: string
+ transaction_id:
+ maxLength: 5000
+ type: string
+ version:
+ enum:
+ - 1.0.2
+ - 2.1.0
+ - 2.2.0
+ type: string
+ x-stripeBypassValidation: true
+ title: setup_intent_payment_method_options_param
+ type: object
title: setup_intent_param
type: object
+ card_present:
+ properties: {}
+ title: setup_intent_payment_method_options_param
+ type: object
link:
properties: {}
title: setup_intent_payment_method_options_param
@@ -95763,6 +107334,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -95771,6 +107343,16 @@ paths:
type: string
title: linked_account_options_param
type: object
+ mandate_options:
+ properties:
+ collection_method:
+ enum:
+ - ''
+ - paper
+ type: string
+ x-stripeBypassValidation: true
+ title: mandate_options_param
+ type: object
networks:
properties:
requested:
@@ -97554,6 +109136,9 @@ paths:
billing_thresholds:
explode: true
style: deepObject
+ discounts:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
@@ -97586,6 +109171,28 @@ paths:
subscription advanced to a new billing period. When
updating, pass an empty string to remove previously-defined
thresholds.
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription
+ item.
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -97698,7 +109305,7 @@ paths:
proration_behavior:
description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial),
or if an item's `quantity` changes. The default value is
@@ -97788,7 +109395,7 @@ paths:
proration_behavior:
description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial),
or if an item's `quantity` changes. The default value is
@@ -97887,6 +109494,9 @@ paths:
billing_thresholds:
explode: true
style: deepObject
+ discounts:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
@@ -97919,6 +109529,28 @@ paths:
subscription advanced to a new billing period. When
updating, pass an empty string to remove previously-defined
thresholds.
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription
+ item.
expand:
description: Specifies which fields in the response should be expanded.
items:
@@ -98043,54 +109675,280 @@ paths:
proration_behavior:
description: >-
Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
when the billing cycle changes (e.g., when switching plans,
resetting `billing_cycle_anchor=now`, or starting a trial),
or if an item's `quantity` changes. The default value is
`create_prorations`.
enum:
- - always_invoice
- - create_prorations
- - none
+ - always_invoice
+ - create_prorations
+ - none
+ type: string
+ proration_date:
+ description: >-
+ If set, the proration will be calculated as though the
+ subscription was updated at the given time. This can be used
+ to apply the same proration that was previewed with the
+ [upcoming
+ invoice](https://stripe.com/docs/api#retrieve_customer_invoice)
+ endpoint.
+ format: unix-time
+ type: integer
+ quantity:
+ description: >-
+ The quantity you'd like to apply to the subscription item
+ you're creating.
+ type: integer
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ A list of [Tax Rate](https://stripe.com/docs/api/tax_rates)
+ ids. These Tax Rates will override the
+ [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates)
+ on the Subscription. When updating, pass an empty string to
+ remove previously-defined tax rates.
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription_item'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/subscription_items/{subscription_item}/usage_record_summaries':
+ get:
+ description: >-
+ For the specified subscription item, returns a list of summary
+ objects. Each object in the list provides usage information that’s been
+ summarized from multiple usage records and over a subscription billing
+ period (e.g., 15 usage records in the month of September).
+
+
+ The list is sorted in reverse-chronological order (newest first). The
+ first list item represents the most current usage period that hasn’t
+ ended yet. Since new usage records can still be added, the returned
+ summary information for the subscription item’s ID should be seen as
+ unstable until the subscription billing period ends.
+ operationId: GetSubscriptionItemsSubscriptionItemUsageRecordSummaries
+ parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - in: path
+ name: subscription_item
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/usage_record_summary'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: UsageEventsResourceUsageRecordSummaryList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/subscription_items/{subscription_item}/usage_records':
+ post:
+ description: >-
+ Creates a usage record for a specified subscription item and date,
+ and fills it with a quantity.
+
+
+ Usage records provide quantity
information that Stripe
+ uses to track how much a customer is using your service. With usage
+ information and the pricing model set up by the metered
+ billing plan, Stripe helps you send accurate invoices to your
+ customers.
+
+
+ The default calculation for usage is to add up all the
+ quantity
values of the usage records within a billing
+ period. You can change this default behavior with the billing plan’s
+ aggregate_usage
parameter.
+ When there is more than one usage record with the same timestamp, Stripe
+ adds the quantity
values together. In most cases, this is
+ the desired resolution, however, you can change this behavior with the
+ action
parameter.
+
+
+ The default pricing model for metered billing is per-unit
+ pricing. For finer granularity, you can configure metered billing to
+ have a tiered
+ pricing model.
+ operationId: PostSubscriptionItemsSubscriptionItemUsageRecords
+ parameters:
+ - in: path
+ name: subscription_item
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ timestamp:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ action:
+ description: >-
+ Valid values are `increment` (default) or `set`. When using
+ `increment` the specified `quantity` will be added to the
+ usage at the specified timestamp. The `set` action will
+ overwrite the usage quantity at that timestamp. If the
+ subscription has [billing
+ thresholds](https://stripe.com/docs/api/subscriptions/object#subscription_object-billing_thresholds),
+ `increment` is the only allowed value.
+ enum:
+ - increment
+ - set
type: string
- proration_date:
- description: >-
- If set, the proration will be calculated as though the
- subscription was updated at the given time. This can be used
- to apply the same proration that was previewed with the
- [upcoming
- invoice](https://stripe.com/docs/api#retrieve_customer_invoice)
- endpoint.
- format: unix-time
- type: integer
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
quantity:
- description: >-
- The quantity you'd like to apply to the subscription item
- you're creating.
+ description: The usage quantity for the specified timestamp.
type: integer
- tax_rates:
+ timestamp:
anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- enum:
- - ''
+ - now
+ maxLength: 5000
type: string
+ - format: unix-time
+ type: integer
description: >-
- A list of [Tax Rate](https://stripe.com/docs/api/tax_rates)
- ids. These Tax Rates will override the
- [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates)
- on the Subscription. When updating, pass an empty string to
- remove previously-defined tax rates.
+ The timestamp for the usage event. This timestamp must be
+ within the current billing period of the subscription of the
+ provided `subscription_item`, and must not be in the future.
+ When passing `"now"`, Stripe records usage for the current
+ time. Default is `"now"` if a value is not provided.
+ required:
+ - quantity
type: object
- required: false
+ required: true
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/subscription_item'
+ $ref: '#/components/schemas/usage_record'
description: Successful response.
default:
content:
@@ -98098,22 +109956,85 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/subscription_items/{subscription_item}/usage_record_summaries':
+ /v1/subscription_schedules:
get:
- description: >-
- For the specified subscription item, returns a list of summary
- objects. Each object in the list provides usage information that’s been
- summarized from multiple usage records and over a subscription billing
- period (e.g., 15 usage records in the month of September).
-
-
- The list is sorted in reverse-chronological order (newest first). The
- first list item represents the most current usage period that hasn’t
- ended yet. Since new usage records can still be added, the returned
- summary information for the subscription item’s ID should be seen as
- unstable until the subscription billing period ends.
- operationId: GetSubscriptionItemsSubscriptionItemUsageRecordSummaries
+ description: Retrieves the list of your subscription schedules.
+ operationId: GetSubscriptionSchedules
parameters:
+ - description: >-
+ Only return subscription schedules that were created canceled the
+ given date interval.
+ explode: true
+ in: query
+ name: canceled_at
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ Only return subscription schedules that completed during the given
+ date interval.
+ explode: true
+ in: query
+ name: completed_at
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: >-
+ Only return subscription schedules that were created during the
+ given date interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: Only return subscription schedules for the given customer.
+ in: query
+ name: customer
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
defines your place in the list. For instance, if you make a list
@@ -98147,6 +110068,35 @@ paths:
schema:
type: integer
style: form
+ - description: >-
+ Only return subscription schedules that were released during the
+ given date interval.
+ explode: true
+ in: query
+ name: released_at
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: Only return subscription schedules that have not started yet.
+ in: query
+ name: scheduled
+ required: false
+ schema:
+ type: boolean
+ style: form
- description: >-
A cursor for use in pagination. `starting_after` is an object ID
that defines your place in the list. For instance, if you make a
@@ -98160,12 +110110,6 @@ paths:
maxLength: 5000
type: string
style: form
- - in: path
- name: subscription_item
- required: true
- schema:
- type: string
- style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -98184,7 +110128,7 @@ paths:
properties:
data:
items:
- $ref: '#/components/schemas/usage_record_summary'
+ $ref: '#/components/schemas/subscription_schedule'
type: array
has_more:
description: >-
@@ -98201,13 +110145,14 @@ paths:
url:
description: The URL where this list can be accessed.
maxLength: 5000
+ pattern: ^/v1/subscription_schedules
type: string
required:
- data
- has_more
- object
- url
- title: UsageEventsResourceUsageRecordSummaryList
+ title: SubscriptionSchedulesResourceScheduleList
type: object
x-expandableFields:
- data
@@ -98218,71 +110163,162 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/subscription_items/{subscription_item}/usage_records':
post:
description: >-
- Creates a usage record for a specified subscription item and date,
- and fills it with a quantity.
-
-
- Usage records provide quantity
information that Stripe
- uses to track how much a customer is using your service. With usage
- information and the pricing model set up by the metered
- billing plan, Stripe helps you send accurate invoices to your
- customers.
-
-
- The default calculation for usage is to add up all the
- quantity
values of the usage records within a billing
- period. You can change this default behavior with the billing plan’s
- aggregate_usage
parameter.
- When there is more than one usage record with the same timestamp, Stripe
- adds the quantity
values together. In most cases, this is
- the desired resolution, however, you can change this behavior with the
- action
parameter.
-
-
- The default pricing model for metered billing is per-unit
- pricing. For finer granularity, you can configure metered billing to
- have a tiered
- pricing model.
- operationId: PostSubscriptionItemsSubscriptionItemUsageRecords
- parameters:
- - in: path
- name: subscription_item
- required: true
- schema:
- type: string
- style: simple
+ Creates a new subscription schedule object. Each customer can have up
+ to 500 active or scheduled subscriptions.
+ operationId: PostSubscriptionSchedules
requestBody:
content:
application/x-www-form-urlencoded:
encoding:
+ default_settings:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
- timestamp:
+ metadata:
+ explode: true
+ style: deepObject
+ phases:
+ explode: true
+ style: deepObject
+ start_date:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
- action:
+ customer:
description: >-
- Valid values are `increment` (default) or `set`. When using
- `increment` the specified `quantity` will be added to the
- usage at the specified timestamp. The `set` action will
- overwrite the usage quantity at that timestamp. If the
- subscription has [billing
- thresholds](https://stripe.com/docs/api/subscriptions/object#subscription_object-billing_thresholds),
- `increment` is the only allowed value.
+ The identifier of the customer to create the subscription
+ schedule for.
+ maxLength: 5000
+ type: string
+ default_settings:
+ description: >-
+ Object representing the subscription schedule's default
+ settings.
+ properties:
+ application_fee_percent:
+ type: number
+ automatic_tax:
+ properties:
+ enabled:
+ type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ required:
+ - enabled
+ title: automatic_tax_config
+ type: object
+ billing_cycle_anchor:
+ enum:
+ - automatic
+ - phase_start
+ type: string
+ billing_thresholds:
+ anyOf:
+ - properties:
+ amount_gte:
+ type: integer
+ reset_billing_cycle_anchor:
+ type: boolean
+ title: billing_thresholds_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ collection_method:
+ enum:
+ - charge_automatically
+ - send_invoice
+ type: string
+ default_payment_method:
+ maxLength: 5000
+ type: string
+ description:
+ anyOf:
+ - maxLength: 500
+ type: string
+ - enum:
+ - ''
+ type: string
+ invoice_settings:
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ days_until_due:
+ type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: subscription_schedule_default_settings_param
+ type: object
+ on_behalf_of:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ transfer_data:
+ anyOf:
+ - properties:
+ amount_percent:
+ type: number
+ destination:
+ type: string
+ required:
+ - destination
+ title: transfer_data_specs
+ type: object
+ - enum:
+ - ''
+ type: string
+ title: default_settings_params
+ type: object
+ end_behavior:
+ description: >-
+ Behavior of the subscription schedule and underlying
+ subscription when it ends. Possible values are `release` or
+ `cancel` with the default being `release`. `release` will
+ end the subscription schedule and keep the underlying
+ subscription running. `cancel` will end the subscription
+ schedule and cancel the underlying subscription.
enum:
- - increment
- - set
+ - cancel
+ - none
+ - release
+ - renew
type: string
expand:
description: Specifies which fields in the response should be expanded.
@@ -98290,32 +110326,370 @@ paths:
maxLength: 5000
type: string
type: array
- quantity:
- description: The usage quantity for the specified timestamp.
- type: integer
- timestamp:
+ from_subscription:
+ description: >-
+ Migrate an existing subscription to be managed by a
+ subscription schedule. If this parameter is set, a
+ subscription schedule will be created using the
+ subscription's item(s), set to auto-renew using the
+ subscription's interval. When using this parameter, other
+ parameters (such as phase values) cannot be set. To create a
+ subscription schedule with other modifications, we recommend
+ making two separate API calls.
+ maxLength: 5000
+ type: string
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ phases:
+ description: >-
+ List representing phases of the subscription schedule. Each
+ phase can be customized to have different durations, plans,
+ and coupons. If there are multiple phases, the `end_date` of
+ one phase will always equal the `start_date` of the next
+ phase.
+ items:
+ properties:
+ add_invoice_items:
+ items:
+ properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ price:
+ maxLength: 5000
+ type: string
+ price_data:
+ properties:
+ currency:
+ type: string
+ product:
+ maxLength: 5000
+ type: string
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
+ type: string
+ unit_amount:
+ type: integer
+ unit_amount_decimal:
+ format: decimal
+ type: string
+ required:
+ - currency
+ - product
+ title: one_time_price_data_with_negative_amounts
+ type: object
+ quantity:
+ type: integer
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ title: add_invoice_item_entry
+ type: object
+ type: array
+ application_fee_percent:
+ type: number
+ automatic_tax:
+ properties:
+ enabled:
+ type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ required:
+ - enabled
+ title: automatic_tax_config
+ type: object
+ billing_cycle_anchor:
+ enum:
+ - automatic
+ - phase_start
+ type: string
+ billing_thresholds:
+ anyOf:
+ - properties:
+ amount_gte:
+ type: integer
+ reset_billing_cycle_anchor:
+ type: boolean
+ title: billing_thresholds_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ collection_method:
+ enum:
+ - charge_automatically
+ - send_invoice
+ type: string
+ coupon:
+ maxLength: 5000
+ type: string
+ currency:
+ type: string
+ default_payment_method:
+ maxLength: 5000
+ type: string
+ default_tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ description:
+ anyOf:
+ - maxLength: 500
+ type: string
+ - enum:
+ - ''
+ type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ end_date:
+ format: unix-time
+ type: integer
+ invoice_settings:
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ days_until_due:
+ type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: invoice_settings
+ type: object
+ items:
+ items:
+ properties:
+ billing_thresholds:
+ anyOf:
+ - properties:
+ usage_gte:
+ type: integer
+ required:
+ - usage_gte
+ title: item_billing_thresholds_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
+ price:
+ maxLength: 5000
+ type: string
+ price_data:
+ properties:
+ currency:
+ type: string
+ product:
+ maxLength: 5000
+ type: string
+ recurring:
+ properties:
+ interval:
+ enum:
+ - day
+ - month
+ - week
+ - year
+ type: string
+ interval_count:
+ type: integer
+ required:
+ - interval
+ title: recurring_adhoc
+ type: object
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
+ type: string
+ unit_amount:
+ type: integer
+ unit_amount_decimal:
+ format: decimal
+ type: string
+ required:
+ - currency
+ - product
+ - recurring
+ title: recurring_price_data
+ type: object
+ quantity:
+ type: integer
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ title: configuration_item_params
+ type: object
+ type: array
+ iterations:
+ type: integer
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
+ on_behalf_of:
+ type: string
+ proration_behavior:
+ enum:
+ - always_invoice
+ - create_prorations
+ - none
+ type: string
+ transfer_data:
+ properties:
+ amount_percent:
+ type: number
+ destination:
+ type: string
+ required:
+ - destination
+ title: transfer_data_specs
+ type: object
+ trial:
+ type: boolean
+ trial_end:
+ format: unix-time
+ type: integer
+ required:
+ - items
+ title: phase_configuration_params
+ type: object
+ type: array
+ start_date:
anyOf:
+ - format: unix-time
+ type: integer
- enum:
- now
maxLength: 5000
type: string
- - type: integer
description: >-
- The timestamp for the usage event. This timestamp must be
- within the current billing period of the subscription of the
- provided `subscription_item`, and must not be in the future.
- When passing `"now"`, Stripe records usage for the current
- time. Default is `"now"` if a value is not provided.
- required:
- - quantity
+ When the subscription schedule starts. We recommend using
+ `now` so that it starts the subscription immediately. You
+ can also use a Unix timestamp to backdate the subscription
+ so that it starts on a past date, or set a future date for
+ the subscription to start on.
type: object
- required: true
+ required: false
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/usage_record'
+ $ref: '#/components/schemas/subscription_schedule'
description: Successful response.
default:
content:
@@ -98323,98 +110697,14 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/subscription_schedules:
+ '/v1/subscription_schedules/{schedule}':
get:
- description: Retrieves the list of your subscription schedules.
- operationId: GetSubscriptionSchedules
+ description: >-
+ Retrieves the details of an existing subscription schedule. You only
+ need to supply the unique subscription schedule identifier that was
+ returned upon subscription schedule creation.
+ operationId: GetSubscriptionSchedulesSchedule
parameters:
- - description: >-
- Only return subscription schedules that were created canceled the
- given date interval.
- explode: true
- in: query
- name: canceled_at
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - description: >-
- Only return subscription schedules that completed during the given
- date interval.
- explode: true
- in: query
- name: completed_at
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - description: >-
- Only return subscription schedules that were created during the
- given date interval.
- explode: true
- in: query
- name: created
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - description: Only return subscription schedules for the given customer.
- in: query
- name: customer
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- - description: >-
- A cursor for use in pagination. `ending_before` is an object ID that
- defines your place in the list. For instance, if you make a list
- request and receive 100 objects, starting with `obj_bar`, your
- subsequent call can include `ending_before=obj_bar` in order to
- fetch the previous page of the list.
- in: query
- name: ending_before
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -98426,57 +110716,13 @@ paths:
type: string
type: array
style: deepObject
- - description: >-
- A limit on the number of objects to be returned. Limit can range
- between 1 and 100, and the default is 10.
- in: query
- name: limit
- required: false
- schema:
- type: integer
- style: form
- - description: >-
- Only return subscription schedules that were released during the
- given date interval.
- explode: true
- in: query
- name: released_at
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - description: Only return subscription schedules that have not started yet.
- in: query
- name: scheduled
- required: false
- schema:
- type: boolean
- style: form
- - description: >-
- A cursor for use in pagination. `starting_after` is an object ID
- that defines your place in the list. For instance, if you make a
- list request and receive 100 objects, ending with `obj_foo`, your
- subsequent call can include `starting_after=obj_foo` in order to
- fetch the next page of the list.
- in: query
- name: starting_after
- required: false
+ - in: path
+ name: schedule
+ required: true
schema:
maxLength: 5000
type: string
- style: form
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -98491,38 +110737,7 @@ paths:
content:
application/json:
schema:
- description: ''
- properties:
- data:
- items:
- $ref: '#/components/schemas/subscription_schedule'
- type: array
- has_more:
- description: >-
- True if this list has another page of items after this one
- that can be fetched.
- type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same
- type share the same value. Always has the value `list`.
- enum:
- - list
- type: string
- url:
- description: The URL where this list can be accessed.
- maxLength: 5000
- pattern: ^/v1/subscription_schedules
- type: string
- required:
- - data
- - has_more
- - object
- - url
- title: SubscriptionSchedulesResourceScheduleList
- type: object
- x-expandableFields:
- - data
+ $ref: '#/components/schemas/subscription_schedule'
description: Successful response.
default:
content:
@@ -98531,10 +110746,16 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: >-
- Creates a new subscription schedule object. Each customer can have up
- to 500 active or scheduled subscriptions.
- operationId: PostSubscriptionSchedules
+ description: Updates an existing subscription schedule.
+ operationId: PostSubscriptionSchedulesSchedule
+ parameters:
+ - in: path
+ name: schedule
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -98551,18 +110772,9 @@ paths:
phases:
explode: true
style: deepObject
- start_date:
- explode: true
- style: deepObject
schema:
additionalProperties: false
properties:
- customer:
- description: >-
- The identifier of the customer to create the subscription
- schedule for.
- maxLength: 5000
- type: string
default_settings:
description: >-
Object representing the subscription schedule's default
@@ -98574,6 +110786,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_config
@@ -98612,8 +110837,30 @@ paths:
type: string
invoice_settings:
properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
days_until_due:
type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
title: subscription_schedule_default_settings_param
type: object
on_behalf_of:
@@ -98644,7 +110891,7 @@ paths:
subscription when it ends. Possible values are `release` or
`cancel` with the default being `release`. `release` will
end the subscription schedule and keep the underlying
- subscription running.`cancel` will end the subscription
+ subscription running. `cancel` will end the subscription
schedule and cancel the underlying subscription.
enum:
- cancel
@@ -98658,18 +110905,6 @@ paths:
maxLength: 5000
type: string
type: array
- from_subscription:
- description: >-
- Migrate an existing subscription to be managed by a
- subscription schedule. If this parameter is set, a
- subscription schedule will be created using the
- subscription's item(s), set to auto-renew using the
- subscription's interval. When using this parameter, other
- parameters (such as phase values) cannot be set. To create a
- subscription schedule with other modifications, we recommend
- making two separate API calls.
- maxLength: 5000
- type: string
metadata:
anyOf:
- additionalProperties:
@@ -98692,12 +110927,27 @@ paths:
phase can be customized to have different durations, plans,
and coupons. If there are multiple phases, the `end_date` of
one phase will always equal the `start_date` of the next
- phase.
+ phase. Note that past phases can be omitted.
items:
properties:
add_invoice_items:
items:
properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
price:
maxLength: 5000
type: string
@@ -98744,6 +110994,19 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_config
@@ -98773,8 +111036,6 @@ paths:
coupon:
maxLength: 5000
type: string
- currency:
- type: string
default_payment_method:
maxLength: 5000
type: string
@@ -98794,13 +111055,59 @@ paths:
- enum:
- ''
type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
end_date:
- format: unix-time
- type: integer
+ anyOf:
+ - format: unix-time
+ type: integer
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
invoice_settings:
properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
days_until_due:
type: integer
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
title: invoice_settings
type: object
items:
@@ -98818,6 +111125,25 @@ paths:
- enum:
- ''
type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
metadata:
additionalProperties:
type: string
@@ -98892,6 +111218,14 @@ paths:
- create_prorations
- none
type: string
+ start_date:
+ anyOf:
+ - format: unix-time
+ type: integer
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
transfer_data:
properties:
amount_percent:
@@ -98905,26 +111239,28 @@ paths:
trial:
type: boolean
trial_end:
- format: unix-time
- type: integer
+ anyOf:
+ - format: unix-time
+ type: integer
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
required:
- items
title: phase_configuration_params
type: object
type: array
- start_date:
- anyOf:
- - type: integer
- - enum:
- - now
- maxLength: 5000
- type: string
+ proration_behavior:
description: >-
- When the subscription schedule starts. We recommend using
- `now` so that it starts the subscription immediately. You
- can also use a Unix timestamp to backdate the subscription
- so that it starts on a past date, or set a future date for
- the subscription to start on.
+ If the update changes the current phase, indicates whether
+ the changes should be prorated. The default value is
+ `create_prorations`.
+ enum:
+ - always_invoice
+ - create_prorations
+ - none
+ type: string
type: object
required: false
responses:
@@ -98940,14 +111276,235 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/subscription_schedules/{schedule}':
+ '/v1/subscription_schedules/{schedule}/cancel':
+ post:
+ description: >-
+ Cancels a subscription schedule and its associated subscription
+ immediately (if the subscription schedule has an active subscription). A
+ subscription schedule can only be canceled if its status is
+ not_started
or active
.
+ operationId: PostSubscriptionSchedulesScheduleCancel
+ parameters:
+ - in: path
+ name: schedule
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ invoice_now:
+ description: >-
+ If the subscription schedule is `active`, indicates if a
+ final invoice will be generated that contains any
+ un-invoiced metered usage and new/pending proration invoice
+ items. Defaults to `true`.
+ type: boolean
+ prorate:
+ description: >-
+ If the subscription schedule is `active`, indicates if the
+ cancellation should be prorated. Defaults to `true`.
+ type: boolean
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription_schedule'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/subscription_schedules/{schedule}/release':
+ post:
+ description: >-
+ Releases the subscription schedule immediately, which will stop
+ scheduling of its phases, but leave any existing subscription in place.
+ A schedule can only be released if its status is
+ not_started
or active
. If the subscription
+ schedule is currently associated with a subscription, releasing it will
+ remove its subscription
property and set the subscription’s
+ ID to the released_subscription
property.
+ operationId: PostSubscriptionSchedulesScheduleRelease
+ parameters:
+ - in: path
+ name: schedule
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ preserve_cancel_date:
+ description: >-
+ Keep any cancellation on the subscription that the schedule
+ has set
+ type: boolean
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription_schedule'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/subscriptions:
get:
description: >-
- Retrieves the details of an existing subscription schedule. You only
- need to supply the unique subscription schedule identifier that was
- returned upon subscription schedule creation.
- operationId: GetSubscriptionSchedulesSchedule
+ By default, returns a list of subscriptions that have not been
+ canceled. In order to list canceled subscriptions, specify
+ status=canceled
.
+ operationId: GetSubscriptions
parameters:
+ - description: Filter subscriptions by their automatic tax settings.
+ explode: true
+ in: query
+ name: automatic_tax
+ required: false
+ schema:
+ properties:
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: automatic_tax_filter_params
+ type: object
+ style: deepObject
+ - description: >-
+ The collection method of the subscriptions to retrieve. Either
+ `charge_automatically` or `send_invoice`.
+ in: query
+ name: collection_method
+ required: false
+ schema:
+ enum:
+ - charge_automatically
+ - send_invoice
+ type: string
+ style: form
+ - description: >-
+ Only return subscriptions that were created during the given date
+ interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - explode: true
+ in: query
+ name: current_period_end
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - explode: true
+ in: query
+ name: current_period_start
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
+ - description: The ID of the customer whose subscriptions will be retrieved.
+ in: query
+ name: customer
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -98959,13 +111516,74 @@ paths:
type: string
type: array
style: deepObject
- - in: path
- name: schedule
- required: true
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: Filter for subscriptions that contain this recurring price ID.
+ in: query
+ name: price
+ required: false
schema:
maxLength: 5000
type: string
- style: simple
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: >-
+ The status of the subscriptions to retrieve. Passing in a value of
+ `canceled` will return all canceled subscriptions, including those
+ belonging to deleted customers. Pass `ended` to find subscriptions
+ that are canceled and subscriptions that are expired due to
+ [incomplete
+ payment](https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses).
+ Passing in a value of `all` will return subscriptions of all
+ statuses. If no value is supplied, all subscriptions that have not
+ been canceled are returned.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - all
+ - canceled
+ - ended
+ - incomplete
+ - incomplete_expired
+ - past_due
+ - paused
+ - trialing
+ - unpaid
+ type: string
+ style: form
+ - description: >-
+ Filter for subscriptions that are associated with the specified test
+ clock. The response will not include subscriptions with test clocks
+ if this and the customer parameter is not set.
+ in: query
+ name: test_clock
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -98980,7 +111598,38 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/subscription_schedule'
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/subscription'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/subscriptions
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: SubscriptionsSubscriptionList
+ type: object
+ x-expandableFields:
+ - data
description: Successful response.
default:
content:
@@ -98989,517 +111638,918 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: Updates an existing subscription schedule.
- operationId: PostSubscriptionSchedulesSchedule
- parameters:
- - in: path
- name: schedule
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
+ description: >-
+ Creates a new subscription on an existing customer. Each customer can
+ have up to 500 active or scheduled subscriptions.
+
+
+ When you create a subscription with
+ collection_method=charge_automatically
, the first invoice
+ is finalized as part of the request.
+
+ The payment_behavior
parameter determines the exact
+ behavior of the initial payment.
+
+
+ To start subscriptions where the first invoice always begins in a
+ draft
status, use subscription
+ schedules instead.
+
+ Schedules provide the flexibility to model more complex billing
+ configurations that change over time.
+ operationId: PostSubscriptions
requestBody:
content:
application/x-www-form-urlencoded:
encoding:
- default_settings:
+ add_invoice_items:
+ explode: true
+ style: deepObject
+ application_fee_percent:
+ explode: true
+ style: deepObject
+ automatic_tax:
+ explode: true
+ style: deepObject
+ billing_cycle_anchor_config:
+ explode: true
+ style: deepObject
+ billing_thresholds:
+ explode: true
+ style: deepObject
+ default_tax_rates:
+ explode: true
+ style: deepObject
+ discounts:
explode: true
style: deepObject
expand:
explode: true
style: deepObject
+ invoice_settings:
+ explode: true
+ style: deepObject
+ items:
+ explode: true
+ style: deepObject
metadata:
explode: true
style: deepObject
- phases:
+ on_behalf_of:
+ explode: true
+ style: deepObject
+ payment_settings:
+ explode: true
+ style: deepObject
+ pending_invoice_item_interval:
+ explode: true
+ style: deepObject
+ transfer_data:
+ explode: true
+ style: deepObject
+ trial_end:
+ explode: true
+ style: deepObject
+ trial_settings:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
- default_settings:
+ add_invoice_items:
+ description: >-
+ A list of prices and quantities that will generate invoice
+ items appended to the next invoice for this subscription.
+ You may pass up to 20 items.
+ items:
+ properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ price:
+ maxLength: 5000
+ type: string
+ price_data:
+ properties:
+ currency:
+ type: string
+ product:
+ maxLength: 5000
+ type: string
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
+ type: string
+ unit_amount:
+ type: integer
+ unit_amount_decimal:
+ format: decimal
+ type: string
+ required:
+ - currency
+ - product
+ title: one_time_price_data_with_negative_amounts
+ type: object
+ quantity:
+ type: integer
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ title: add_invoice_item_entry
+ type: object
+ type: array
+ application_fee_percent:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
+ description: >-
+ A non-negative decimal between 0 and 100, with at most two
+ decimal places. This represents the percentage of the
+ subscription invoice total that will be transferred to the
+ application owner's Stripe account. The request must be made
+ by a platform account on a connected account in order to set
+ an application fee percentage. For more information, see the
+ application fees
+ [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
+ automatic_tax:
description: >-
- Object representing the subscription schedule's default
- settings.
+ Automatic tax settings for this subscription. We recommend
+ you only include this parameter when the existing value is
+ being changed.
properties:
- application_fee_percent:
- type: number
- automatic_tax:
+ enabled:
+ type: boolean
+ liability:
properties:
- enabled:
- type: boolean
- required:
- - enabled
- title: automatic_tax_config
- type: object
- billing_cycle_anchor:
- enum:
- - automatic
- - phase_start
- type: string
- billing_thresholds:
- anyOf:
- - properties:
- amount_gte:
- type: integer
- reset_billing_cycle_anchor:
- type: boolean
- title: billing_thresholds_param
- type: object
- - enum:
- - ''
- type: string
- collection_method:
- enum:
- - charge_automatically
- - send_invoice
- type: string
- default_payment_method:
- maxLength: 5000
- type: string
- description:
- anyOf:
- - maxLength: 500
+ account:
type: string
- - enum:
- - ''
+ type:
+ enum:
+ - account
+ - self
type: string
- invoice_settings:
- properties:
- days_until_due:
- type: integer
- title: subscription_schedule_default_settings_param
+ required:
+ - type
+ title: param
type: object
- on_behalf_of:
- anyOf:
- - type: string
- - enum:
- - ''
- type: string
- transfer_data:
- anyOf:
- - properties:
- amount_percent:
- type: number
- destination:
- type: string
- required:
- - destination
- title: transfer_data_specs
- type: object
- - enum:
- - ''
- type: string
- title: default_settings_params
+ required:
+ - enabled
+ title: automatic_tax_config
type: object
- end_behavior:
+ backdate_start_date:
description: >-
- Behavior of the subscription schedule and underlying
- subscription when it ends. Possible values are `release` or
- `cancel` with the default being `release`. `release` will
- end the subscription schedule and keep the underlying
- subscription running.`cancel` will end the subscription
- schedule and cancel the underlying subscription.
+ For new subscriptions, a past timestamp to backdate the
+ subscription's start date to. If set, the first invoice will
+ contain a proration for the timespan between the start date
+ and the current time. Can be combined with trials and the
+ billing cycle anchor.
+ format: unix-time
+ type: integer
+ billing_cycle_anchor:
+ description: >-
+ A future timestamp in UTC format to anchor the
+ subscription's [billing
+ cycle](https://stripe.com/docs/subscriptions/billing-cycle).
+ The anchor is the reference point that aligns future billing
+ cycle dates. It sets the day of week for `week` intervals,
+ the day of month for `month` and `year` intervals, and the
+ month of year for `year` intervals.
+ format: unix-time
+ type: integer
+ x-stripeBypassValidation: true
+ billing_cycle_anchor_config:
+ description: >-
+ Mutually exclusive with billing_cycle_anchor and only valid
+ with monthly and yearly price intervals. When provided, the
+ billing_cycle_anchor is set to the next occurence of the
+ day_of_month at the hour, minute, and second UTC.
+ properties:
+ day_of_month:
+ type: integer
+ hour:
+ type: integer
+ minute:
+ type: integer
+ month:
+ type: integer
+ second:
+ type: integer
+ required:
+ - day_of_month
+ title: billing_cycle_anchor_config_param
+ type: object
+ billing_thresholds:
+ anyOf:
+ - properties:
+ amount_gte:
+ type: integer
+ reset_billing_cycle_anchor:
+ type: boolean
+ title: billing_thresholds_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Define thresholds at which an invoice will be sent, and the
+ subscription advanced to a new billing period. Pass an empty
+ string to remove previously-defined thresholds.
+ cancel_at:
+ description: >-
+ A timestamp at which the subscription should cancel. If set
+ to a date before the current period ends, this will cause a
+ proration if prorations have been enabled using
+ `proration_behavior`. If set during a future period, this
+ will always cause a proration for that period.
+ format: unix-time
+ type: integer
+ cancel_at_period_end:
+ description: >-
+ Boolean indicating whether this subscription should cancel
+ at the end of the current period.
+ type: boolean
+ collection_method:
+ description: >-
+ Either `charge_automatically`, or `send_invoice`. When
+ charging automatically, Stripe will attempt to pay this
+ subscription at the end of the cycle using the default
+ source attached to the customer. When sending an invoice,
+ Stripe will email your customer an invoice with payment
+ instructions and mark the subscription as `active`. Defaults
+ to `charge_automatically`.
enum:
- - cancel
- - none
- - release
- - renew
+ - charge_automatically
+ - send_invoice
+ type: string
+ coupon:
+ description: >-
+ The ID of the coupon to apply to this subscription. A coupon
+ applied to a subscription will only affect invoices created
+ for that particular subscription. This field has been
+ deprecated and will be removed in a future API version. Use
+ `discounts` instead.
+ maxLength: 5000
+ type: string
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ type: string
+ customer:
+ description: The identifier of the customer to subscribe.
+ maxLength: 5000
+ type: string
+ days_until_due:
+ description: >-
+ Number of days a customer has to pay invoices generated by
+ this subscription. Valid only for subscriptions where
+ `collection_method` is set to `send_invoice`.
+ type: integer
+ default_payment_method:
+ description: >-
+ ID of the default payment method for the subscription. It
+ must belong to the customer associated with the
+ subscription. This takes precedence over `default_source`.
+ If neither are set, invoices will use the customer's
+ [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
+ or
+ [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
+ maxLength: 5000
+ type: string
+ default_source:
+ description: >-
+ ID of the default payment source for the subscription. It
+ must belong to the customer associated with the subscription
+ and be in a chargeable state. If `default_payment_method` is
+ also set, `default_payment_method` will take precedence. If
+ neither are set, invoices will use the customer's
+ [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
+ or
+ [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
+ maxLength: 5000
+ type: string
+ default_tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The tax rates that will apply to any subscription item that
+ does not have `tax_rates` set. Invoices created will have
+ their `default_tax_rates` populated from the subscription.
+ description:
+ description: >-
+ The subscription's description, meant to be displayable to
+ the customer. Use this field to optionally store an
+ explanation of the subscription for rendering in Stripe
+ surfaces and certain local payment methods UIs.
+ maxLength: 500
type: string
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription.
+ If not specified or empty, inherits the discount from the
+ subscription's customer.
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
- metadata:
- anyOf:
- - additionalProperties:
- type: string
+ invoice_settings:
+ description: All invoices will be billed using the specified settings.
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
type: object
- - enum:
- - ''
- type: string
- description: >-
- Set of [key-value
- pairs](https://stripe.com/docs/api/metadata) that you can
- attach to an object. This can be useful for storing
- additional information about the object in a structured
- format. Individual keys can be unset by posting an empty
- value to them. All keys can be unset by posting an empty
- value to `metadata`.
- phases:
+ title: invoice_settings_param
+ type: object
+ items:
description: >-
- List representing phases of the subscription schedule. Each
- phase can be customized to have different durations, plans,
- and coupons. If there are multiple phases, the `end_date` of
- one phase will always equal the `start_date` of the next
- phase. Note that past phases can be omitted.
+ A list of up to 20 subscription items, each with an attached
+ price.
items:
properties:
- add_invoice_items:
- items:
- properties:
- price:
- maxLength: 5000
- type: string
- price_data:
- properties:
- currency:
- type: string
- product:
- maxLength: 5000
- type: string
- tax_behavior:
- enum:
- - exclusive
- - inclusive
- - unspecified
- type: string
- unit_amount:
- type: integer
- unit_amount_decimal:
- format: decimal
- type: string
- required:
- - currency
- - product
- title: one_time_price_data_with_negative_amounts
- type: object
- quantity:
- type: integer
- tax_rates:
- anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- - enum:
- - ''
- type: string
- title: add_invoice_item_entry
- type: object
- type: array
- application_fee_percent:
- type: number
- automatic_tax:
- properties:
- enabled:
- type: boolean
- required:
- - enabled
- title: automatic_tax_config
- type: object
- billing_cycle_anchor:
- enum:
- - automatic
- - phase_start
- type: string
billing_thresholds:
anyOf:
- properties:
- amount_gte:
+ usage_gte:
type: integer
- reset_billing_cycle_anchor:
- type: boolean
- title: billing_thresholds_param
+ required:
+ - usage_gte
+ title: item_billing_thresholds_param
type: object
- enum:
- ''
type: string
- collection_method:
- enum:
- - charge_automatically
- - send_invoice
- type: string
- coupon:
- maxLength: 5000
- type: string
- default_payment_method:
- maxLength: 5000
- type: string
- default_tax_rates:
+ discounts:
anyOf:
- items:
- maxLength: 5000
- type: string
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
type: array
- enum:
- ''
type: string
- description:
- anyOf:
- - maxLength: 500
- type: string
- - enum:
- - ''
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
+ price:
+ maxLength: 5000
+ type: string
+ price_data:
+ properties:
+ currency:
type: string
- end_date:
- anyOf:
- - type: integer
- - enum:
- - now
+ product:
maxLength: 5000
type: string
- invoice_settings:
- properties:
- days_until_due:
+ recurring:
+ properties:
+ interval:
+ enum:
+ - day
+ - month
+ - week
+ - year
+ type: string
+ interval_count:
+ type: integer
+ required:
+ - interval
+ title: recurring_adhoc
+ type: object
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ - unspecified
+ type: string
+ unit_amount:
type: integer
- title: invoice_settings
+ unit_amount_decimal:
+ format: decimal
+ type: string
+ required:
+ - currency
+ - product
+ - recurring
+ title: recurring_price_data
type: object
- items:
- items:
- properties:
- billing_thresholds:
- anyOf:
- - properties:
- usage_gte:
- type: integer
- required:
- - usage_gte
- title: item_billing_thresholds_param
+ quantity:
+ type: integer
+ tax_rates:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ title: subscription_item_create_params
+ type: object
+ type: array
+ metadata:
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ off_session:
+ description: >-
+ Indicates if a customer is on or off-session while an
+ invoice payment is attempted.
+ type: boolean
+ on_behalf_of:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The account on behalf of which to charge, for each of the
+ subscription's invoices.
+ payment_behavior:
+ description: >-
+ Only applies to subscriptions with
+ `collection_method=charge_automatically`.
+
+
+ Use `allow_incomplete` to create Subscriptions with
+ `status=incomplete` if the first invoice can't be paid.
+ Creating Subscriptions with this status allows you to manage
+ scenarios where additional customer actions are needed to
+ pay a subscription's invoice. For example, SCA regulation
+ may require 3DS authentication to complete payment. See the
+ [SCA Migration
+ Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication)
+ for Billing to learn more. This is the default behavior.
+
+
+ Use `default_incomplete` to create Subscriptions with
+ `status=incomplete` when the first invoice requires payment,
+ otherwise start as active. Subscriptions transition to
+ `status=active` when successfully confirming the
+ PaymentIntent on the first invoice. This allows simpler
+ management of scenarios where additional customer actions
+ are needed to pay a subscription’s invoice, such as failed
+ payments, [SCA
+ regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication),
+ or collecting a mandate for a bank debit payment method. If
+ the PaymentIntent is not confirmed within 23 hours
+ Subscriptions transition to `status=incomplete_expired`,
+ which is a terminal state.
+
+
+ Use `error_if_incomplete` if you want Stripe to return an
+ HTTP 402 status code if a subscription's first invoice can't
+ be paid. For example, if a payment method requires 3DS
+ authentication due to SCA regulation and further customer
+ action is needed, this parameter doesn't create a
+ Subscription and returns an error instead. This was the
+ default behavior for API versions prior to 2019-03-14. See
+ the [changelog](https://stripe.com/docs/upgrades#2019-03-14)
+ to learn more.
+
+
+ `pending_if_incomplete` is only used with updates and cannot
+ be passed when creating a Subscription.
+
+
+ Subscriptions with `collection_method=send_invoice` are
+ automatically activated regardless of the first Invoice
+ status.
+ enum:
+ - allow_incomplete
+ - default_incomplete
+ - error_if_incomplete
+ - pending_if_incomplete
+ type: string
+ payment_settings:
+ description: >-
+ Payment settings to pass to invoices created by the
+ subscription.
+ properties:
+ payment_method_options:
+ properties:
+ acss_debit:
+ anyOf:
+ - properties:
+ mandate_options:
+ properties:
+ transaction_type:
+ enum:
+ - business
+ - personal
+ type: string
+ title: mandate_options_param
type: object
- - enum:
- - ''
+ verification_method:
+ enum:
+ - automatic
+ - instant
+ - microdeposits
type: string
- metadata:
- additionalProperties:
- type: string
+ x-stripeBypassValidation: true
+ title: invoice_payment_method_options_param
type: object
- price:
- maxLength: 5000
+ - enum:
+ - ''
type: string
- price_data:
- properties:
- currency:
- type: string
- product:
- maxLength: 5000
+ bancontact:
+ anyOf:
+ - properties:
+ preferred_language:
+ enum:
+ - de
+ - en
+ - fr
+ - nl
type: string
- recurring:
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ card:
+ anyOf:
+ - properties:
+ mandate_options:
properties:
- interval:
+ amount:
+ type: integer
+ amount_type:
enum:
- - day
- - month
- - week
- - year
+ - fixed
+ - maximum
type: string
- interval_count:
- type: integer
- required:
- - interval
- title: recurring_adhoc
+ description:
+ maxLength: 200
+ type: string
+ title: mandate_options_param
type: object
- tax_behavior:
+ network:
enum:
- - exclusive
- - inclusive
- - unspecified
+ - amex
+ - cartes_bancaires
+ - diners
+ - discover
+ - eftpos_au
+ - interac
+ - jcb
+ - mastercard
+ - unionpay
+ - unknown
+ - visa
+ maxLength: 5000
type: string
- unit_amount:
- type: integer
- unit_amount_decimal:
- format: decimal
+ x-stripeBypassValidation: true
+ request_three_d_secure:
+ enum:
+ - any
+ - automatic
+ - challenge
type: string
- required:
- - currency
- - product
- - recurring
- title: recurring_price_data
+ title: subscription_payment_method_options_param
type: object
- quantity:
- type: integer
- tax_rates:
- anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- - enum:
- - ''
+ - enum:
+ - ''
+ type: string
+ customer_balance:
+ anyOf:
+ - properties:
+ bank_transfer:
+ properties:
+ eu_bank_transfer:
+ properties:
+ country:
+ maxLength: 5000
+ type: string
+ required:
+ - country
+ title: eu_bank_transfer_param
+ type: object
+ type:
+ type: string
+ title: bank_transfer_param
+ type: object
+ funding_type:
type: string
- title: configuration_item_params
- type: object
- type: array
- iterations:
- type: integer
- metadata:
- additionalProperties:
- type: string
- type: object
- on_behalf_of:
- type: string
- proration_behavior:
- enum:
- - always_invoice
- - create_prorations
- - none
- type: string
- start_date:
- anyOf:
- - type: integer
- - enum:
- - now
- maxLength: 5000
- type: string
- transfer_data:
- properties:
- amount_percent:
- type: number
- destination:
- type: string
- required:
- - destination
- title: transfer_data_specs
- type: object
- trial:
- type: boolean
- trial_end:
- anyOf:
- - type: integer
- - enum:
- - now
- maxLength: 5000
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ konbini:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ us_bank_account:
+ anyOf:
+ - properties:
+ financial_connections:
+ properties:
+ permissions:
+ items:
+ enum:
+ - balances
+ - ownership
+ - payment_method
+ - transactions
+ maxLength: 5000
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ prefetch:
+ items:
+ enum:
+ - balances
+ - transactions
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ title: invoice_linked_account_options_param
+ type: object
+ verification_method:
+ enum:
+ - automatic
+ - instant
+ - microdeposits
+ type: string
+ x-stripeBypassValidation: true
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ title: payment_method_options
+ type: object
+ payment_method_types:
+ anyOf:
+ - items:
+ enum:
+ - ach_credit_transfer
+ - ach_debit
+ - acss_debit
+ - au_becs_debit
+ - bacs_debit
+ - bancontact
+ - boleto
+ - card
+ - cashapp
+ - customer_balance
+ - eps
+ - fpx
+ - giropay
+ - grabpay
+ - ideal
+ - konbini
+ - link
+ - p24
+ - paynow
+ - paypal
+ - promptpay
+ - sepa_debit
+ - sofort
+ - us_bank_account
+ - wechat_pay
type: string
- required:
- - items
- title: phase_configuration_params
- type: object
- type: array
+ x-stripeBypassValidation: true
+ type: array
+ - enum:
+ - ''
+ type: string
+ save_default_payment_method:
+ enum:
+ - 'off'
+ - on_subscription
+ type: string
+ title: payment_settings
+ type: object
+ pending_invoice_item_interval:
+ anyOf:
+ - properties:
+ interval:
+ enum:
+ - day
+ - month
+ - week
+ - year
+ type: string
+ interval_count:
+ type: integer
+ required:
+ - interval
+ title: pending_invoice_item_interval_params
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Specifies an interval for how often to bill for any pending
+ invoice items. It is analogous to calling [Create an
+ invoice](https://stripe.com/docs/api#create_invoice) for the
+ given subscription at the specified interval.
+ promotion_code:
+ description: >-
+ The ID of a promotion code to apply to this subscription. A
+ promotion code applied to a subscription will only affect
+ invoices created for that particular subscription. This
+ field has been deprecated and will be removed in a future
+ API version. Use `discounts` instead.
+ maxLength: 5000
+ type: string
proration_behavior:
description: >-
- If the update changes the current phase, indicates whether
- the changes should be prorated. The default value is
- `create_prorations`.
+ Determines how to handle
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
+ resulting from the `billing_cycle_anchor`. If no value is
+ passed, the default is `create_prorations`.
enum:
- always_invoice
- create_prorations
- none
type: string
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/subscription_schedule'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/subscription_schedules/{schedule}/cancel':
- post:
- description: >-
- Cancels a subscription schedule and its associated subscription
- immediately (if the subscription schedule has an active subscription). A
- subscription schedule can only be canceled if its status is
- not_started
or active
.
- operationId: PostSubscriptionSchedulesScheduleCancel
- parameters:
- - in: path
- name: schedule
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- invoice_now:
+ transfer_data:
description: >-
- If the subscription schedule is `active`, indicates if a
- final invoice will be generated that contains any
- un-invoiced metered usage and new/pending proration invoice
- items. Defaults to `true`.
- type: boolean
- prorate:
+ If specified, the funds from the subscription's invoices
+ will be transferred to the destination and the ID of the
+ resulting transfers will be found on the resulting charges.
+ properties:
+ amount_percent:
+ type: number
+ destination:
+ type: string
+ required:
+ - destination
+ title: transfer_data_specs
+ type: object
+ trial_end:
+ anyOf:
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
+ - format: unix-time
+ type: integer
description: >-
- If the subscription schedule is `active`, indicates if the
- cancellation should be prorated. Defaults to `true`.
- type: boolean
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/subscription_schedule'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/subscription_schedules/{schedule}/release':
- post:
- description: >-
- Releases the subscription schedule immediately, which will stop
- scheduling of its phases, but leave any existing subscription in place.
- A schedule can only be released if its status is
- not_started
or active
. If the subscription
- schedule is currently associated with a subscription, releasing it will
- remove its subscription
property and set the subscription’s
- ID to the released_subscription
property.
- operationId: PostSubscriptionSchedulesScheduleRelease
- parameters:
- - in: path
- name: schedule
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- preserve_cancel_date:
+ Unix timestamp representing the end of the trial period the
+ customer will get before being charged for the first time.
+ If set, trial_end will override the default trial period of
+ the plan the customer is being subscribed to. The special
+ value `now` can be provided to end the customer's trial
+ immediately. Can be at most two years from
+ `billing_cycle_anchor`. See [Using trial periods on
+ subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
+ to learn more.
+ trial_from_plan:
description: >-
- Keep any cancellation on the subscription that the schedule
- has set
+ Indicates if a plan's `trial_period_days` should be applied
+ to the subscription. Setting `trial_end` per subscription is
+ preferred, and this defaults to `false`. Setting this flag
+ to `true` together with `trial_end` is not allowed. See
+ [Using trial periods on
+ subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
+ to learn more.
type: boolean
+ trial_period_days:
+ description: >-
+ Integer representing the number of trial period days before
+ the customer is charged for the first time. This will always
+ overwrite any trials that might apply via a subscribed plan.
+ See [Using trial periods on
+ subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
+ to learn more.
+ type: integer
+ trial_settings:
+ description: Settings related to subscription trials.
+ properties:
+ end_behavior:
+ properties:
+ missing_payment_method:
+ enum:
+ - cancel
+ - create_invoice
+ - pause
+ type: string
+ required:
+ - missing_payment_method
+ title: end_behavior
+ type: object
+ required:
+ - end_behavior
+ title: trial_settings_config
+ type: object
+ required:
+ - customer
type: object
- required: false
+ required: true
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/subscription_schedule'
+ $ref: '#/components/schemas/subscription'
description: Successful response.
default:
content:
@@ -99507,118 +112557,22 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/subscriptions:
+ /v1/subscriptions/search:
get:
description: >-
- By default, returns a list of subscriptions that have not been
- canceled. In order to list canceled subscriptions, specify
- status=canceled
.
- operationId: GetSubscriptions
+ Search for subscriptions you’ve previously created using Stripe’s Search Query Language.
+
+ Don’t use search in read-after-write flows where strict consistency is
+ necessary. Under normal operating
+
+ conditions, data is searchable in less than a minute. Occasionally,
+ propagation of new or updated data can be up
+
+ to an hour behind during outages. Search functionality is not available
+ to merchants in India.
+ operationId: GetSubscriptionsSearch
parameters:
- - description: Filter subscriptions by their automatic tax settings.
- explode: true
- in: query
- name: automatic_tax
- required: false
- schema:
- properties:
- enabled:
- type: boolean
- required:
- - enabled
- title: automatic_tax_filter_params
- type: object
- style: deepObject
- - description: >-
- The collection method of the subscriptions to retrieve. Either
- `charge_automatically` or `send_invoice`.
- in: query
- name: collection_method
- required: false
- schema:
- enum:
- - charge_automatically
- - send_invoice
- type: string
- style: form
- - explode: true
- in: query
- name: created
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - explode: true
- in: query
- name: current_period_end
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - explode: true
- in: query
- name: current_period_start
- required: false
- schema:
- anyOf:
- - properties:
- gt:
- type: integer
- gte:
- type: integer
- lt:
- type: integer
- lte:
- type: integer
- title: range_query_specs
- type: object
- - type: integer
- style: deepObject
- - description: The ID of the customer whose subscriptions will be retrieved.
- in: query
- name: customer
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- - description: >-
- A cursor for use in pagination. `ending_before` is an object ID that
- defines your place in the list. For instance, if you make a list
- request and receive 100 objects, starting with `obj_bar`, your
- subsequent call can include `ending_before=obj_bar` in order to
- fetch the previous page of the list.
- in: query
- name: ending_before
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -99639,61 +112593,25 @@ paths:
schema:
type: integer
style: form
- - description: Filter for subscriptions that contain this recurring price ID.
- in: query
- name: price
- required: false
- schema:
- maxLength: 5000
- type: string
- style: form
- description: >-
- A cursor for use in pagination. `starting_after` is an object ID
- that defines your place in the list. For instance, if you make a
- list request and receive 100 objects, ending with `obj_foo`, your
- subsequent call can include `starting_after=obj_foo` in order to
- fetch the next page of the list.
+ A cursor for pagination across multiple pages of results. Don't
+ include this parameter on the first call. Use the next_page value
+ returned in a previous response to request subsequent results.
in: query
- name: starting_after
+ name: page
required: false
schema:
maxLength: 5000
type: string
style: form
- description: >-
- The status of the subscriptions to retrieve. Passing in a value of
- `canceled` will return all canceled subscriptions, including those
- belonging to deleted customers. Pass `ended` to find subscriptions
- that are canceled and subscriptions that are expired due to
- [incomplete
- payment](https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses).
- Passing in a value of `all` will return subscriptions of all
- statuses. If no value is supplied, all subscriptions that have not
- been canceled are returned.
- in: query
- name: status
- required: false
- schema:
- enum:
- - active
- - all
- - canceled
- - ended
- - incomplete
- - incomplete_expired
- - past_due
- - paused
- - trialing
- - unpaid
- type: string
- style: form
- - description: >-
- Filter for subscriptions that are associated with the specified test
- clock. The response will not include subscriptions with test clocks
- if this and the customer parameter is not set.
+ The search query string. See [search query
+ language](https://stripe.com/docs/search#search-query-language) and
+ the list of supported [query fields for
+ subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions).
in: query
- name: test_clock
- required: false
+ name: query
+ required: true
schema:
maxLength: 5000
type: string
@@ -99719,28 +112637,32 @@ paths:
$ref: '#/components/schemas/subscription'
type: array
has_more:
- description: >-
- True if this list has another page of items after this one
- that can be fetched.
type: boolean
+ next_page:
+ maxLength: 5000
+ nullable: true
+ type: string
object:
description: >-
String representing the object's type. Objects of the same
- type share the same value. Always has the value `list`.
+ type share the same value.
enum:
- - list
+ - search_result
type: string
+ total_count:
+ description: >-
+ The total number of objects that match the query, only
+ accurate up to 10,000.
+ type: integer
url:
- description: The URL where this list can be accessed.
maxLength: 5000
- pattern: ^/v1/subscriptions
type: string
required:
- data
- has_more
- object
- url
- title: SubscriptionsSubscriptionList
+ title: SearchResult
type: object
x-expandableFields:
- data
@@ -99751,28 +112673,228 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ '/v1/subscriptions/{subscription_exposed_id}':
+ delete:
+ description: >-
+ Cancels a customer’s subscription immediately. The customer will not
+ be charged again for the subscription.
+
+
+ Note, however, that any pending invoice items that you’ve created
+ will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription
+ to cancel at the end of the period, any pending prorations will also be
+ left in place and collected at the end of the period. But if the
+ subscription is set to cancel immediately, pending prorations will be
+ removed.
+
+
+ By default, upon subscription cancellation, Stripe will stop
+ automatic collection of all finalized invoices for the customer. This is
+ intended to prevent unexpected payment attempts after the customer has
+ canceled a subscription. However, you can resume automatic collection of
+ the invoices manually after subscription cancellation to have us
+ proceed. Or, you could check for unpaid invoices before allowing the
+ customer to cancel the subscription at all.
+ operationId: DeleteSubscriptionsSubscriptionExposedId
+ parameters:
+ - in: path
+ name: subscription_exposed_id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ cancellation_details:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ cancellation_details:
+ description: Details about why this subscription was cancelled
+ properties:
+ comment:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ feedback:
+ enum:
+ - ''
+ - customer_service
+ - low_quality
+ - missing_features
+ - other
+ - switched_service
+ - too_complex
+ - too_expensive
+ - unused
+ type: string
+ title: cancellation_details_param
+ type: object
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ invoice_now:
+ description: >-
+ Will generate a final invoice that invoices for any
+ un-invoiced metered usage and new/pending proration invoice
+ items.
+ type: boolean
+ prorate:
+ description: >-
+ Will generate a proration invoice item that credits
+ remaining unused time until the subscription period end.
+ type: boolean
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ get:
+ description: Retrieves the subscription with the given ID.
+ operationId: GetSubscriptionsSubscriptionExposedId
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: subscription_exposed_id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
post:
description: >-
- Creates a new subscription on an existing customer. Each customer can
- have up to 500 active or scheduled subscriptions.
+ Updates an existing subscription to match the specified parameters.
+ When changing prices or quantities, we optionally prorate the price we
+ charge next month to make up for any price changes.
-
When you create a subscription with
- collection_method=charge_automatically
, the first invoice
- is finalized as part of the request.
+ To preview how the proration is calculated, use the upcoming invoice endpoint.
- The payment_behavior
parameter determines the exact
- behavior of the initial payment.
+ By default, we prorate subscription changes. For example, if a
+ customer signs up on May 1 for a 100 price, they’ll
+ be billed 100 immediately. If on May 15 they switch
+ to a 200 price, then on June 1 they’ll be billed
+ 250 (200 for a renewal of her
+ subscription, plus a 50 prorating adjustment for
+ half of the previous month’s 100 difference).
+ Similarly, a downgrade generates a credit that is applied to the next
+ invoice. We also prorate when you make quantity changes.
- To start subscriptions where the first invoice always begins in a
- draft
status, use subscription
- schedules instead.
- Schedules provide the flexibility to model more complex billing
- configurations that change over time.
- operationId: PostSubscriptions
+ Switching prices does not normally change the billing date or
+ generate an immediate charge unless:
+
+
+
+
+ - The billing interval is changed (for example, from monthly to
+ yearly).
+
+ - The subscription moves from free to paid, or paid to free.
+
+ - A trial starts or ends.
+
+
+
+
+ In these cases, we apply a credit for the unused time on the previous
+ price, immediately charge the customer using the new price, and reset
+ the billing date.
+
+
+ If you want to charge for an upgrade immediately, pass
+ proration_behavior
as always_invoice
to create
+ prorations, automatically invoice the customer for those proration
+ adjustments, and attempt to collect payment. If you pass
+ create_prorations
, the prorations are created but not
+ automatically invoiced. If you want to bill the customer for the
+ prorations before the subscription’s renewal date, you need to manually
+ invoice the customer.
+
+
+ If you don’t want to prorate, set the proration_behavior
+ option to none
. With this option, the customer is billed
+ 100 on May 1 and 200 on June
+ 1. Similarly, if you set proration_behavior
to
+ none
when switching between different billing intervals
+ (for example, from monthly to yearly), we don’t generate any credits for
+ the old subscription’s unused time. We still reset the billing date and
+ bill immediately for the new subscription.
+
+
+ Updating the quantity on a subscription many times in an hour may
+ result in rate limiting. If you need to
+ bill for a frequently changing quantity, consider integrating usage-based billing
+ instead.
+ operationId: PostSubscriptionsSubscriptionExposedId
+ parameters:
+ - in: path
+ name: subscription_exposed_id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -99780,18 +112902,39 @@ paths:
add_invoice_items:
explode: true
style: deepObject
+ application_fee_percent:
+ explode: true
+ style: deepObject
automatic_tax:
explode: true
style: deepObject
billing_thresholds:
explode: true
style: deepObject
+ cancel_at:
+ explode: true
+ style: deepObject
+ cancellation_details:
+ explode: true
+ style: deepObject
+ default_source:
+ explode: true
+ style: deepObject
default_tax_rates:
explode: true
style: deepObject
+ description:
+ explode: true
+ style: deepObject
+ discounts:
+ explode: true
+ style: deepObject
expand:
explode: true
style: deepObject
+ invoice_settings:
+ explode: true
+ style: deepObject
items:
explode: true
style: deepObject
@@ -99801,6 +112944,9 @@ paths:
on_behalf_of:
explode: true
style: deepObject
+ pause_collection:
+ explode: true
+ style: deepObject
payment_settings:
explode: true
style: deepObject
@@ -99826,6 +112972,21 @@ paths:
You may pass up to 20 items.
items:
properties:
+ discounts:
+ items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
price:
maxLength: 5000
type: string
@@ -99867,6 +113028,11 @@ paths:
type: object
type: array
application_fee_percent:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
description: >-
A non-negative decimal between 0 and 100, with at most two
decimal places. This represents the percentage of the
@@ -99876,7 +113042,6 @@ paths:
an application fee percentage. For more information, see the
application fees
[documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- type: number
automatic_tax:
description: >-
Automatic tax settings for this subscription. We recommend
@@ -99885,29 +113050,35 @@ paths:
properties:
enabled:
type: boolean
+ liability:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
required:
- enabled
title: automatic_tax_config
type: object
- backdate_start_date:
- description: >-
- For new subscriptions, a past timestamp to backdate the
- subscription's start date to. If set, the first invoice will
- contain a proration for the timespan between the start date
- and the current time. Can be combined with trials and the
- billing cycle anchor.
- format: unix-time
- type: integer
billing_cycle_anchor:
description: >-
- A future timestamp to anchor the subscription's [billing
- cycle](https://stripe.com/docs/subscriptions/billing-cycle).
- This is used to determine the date of the first full
- invoice, and, for plans with `month` or `year` intervals,
- the day of the month for subsequent invoices. The timestamp
- is in UTC format.
- format: unix-time
- type: integer
+ Either `now` or `unchanged`. Setting the value to `now`
+ resets the subscription's billing cycle anchor to the
+ current time (in UTC). For more information, see the billing
+ cycle
+ [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
+ enum:
+ - now
+ - unchanged
+ maxLength: 5000
+ type: string
x-stripeBypassValidation: true
billing_thresholds:
anyOf:
@@ -99926,19 +113097,47 @@ paths:
subscription advanced to a new billing period. Pass an empty
string to remove previously-defined thresholds.
cancel_at:
+ anyOf:
+ - format: unix-time
+ type: integer
+ - enum:
+ - ''
+ type: string
description: >-
A timestamp at which the subscription should cancel. If set
to a date before the current period ends, this will cause a
proration if prorations have been enabled using
`proration_behavior`. If set during a future period, this
will always cause a proration for that period.
- format: unix-time
- type: integer
cancel_at_period_end:
description: >-
Boolean indicating whether this subscription should cancel
at the end of the current period.
type: boolean
+ cancellation_details:
+ description: Details about why this subscription was cancelled
+ properties:
+ comment:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ feedback:
+ enum:
+ - ''
+ - customer_service
+ - low_quality
+ - missing_features
+ - other
+ - switched_service
+ - too_complex
+ - too_expensive
+ - unused
+ type: string
+ title: cancellation_details_param
+ type: object
collection_method:
description: >-
Either `charge_automatically`, or `send_invoice`. When
@@ -99956,18 +113155,9 @@ paths:
description: >-
The ID of the coupon to apply to this subscription. A coupon
applied to a subscription will only affect invoices created
- for that particular subscription.
- maxLength: 5000
- type: string
- currency:
- description: >-
- Three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
- type: string
- customer:
- description: The identifier of the customer to subscribe.
+ for that particular subscription. This field has been
+ deprecated and will be removed in a future API version. Use
+ `discounts` instead.
maxLength: 5000
type: string
days_until_due:
@@ -99988,6 +113178,12 @@ paths:
maxLength: 5000
type: string
default_source:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
description: >-
ID of the default payment source for the subscription. It
must belong to the customer associated with the subscription
@@ -99996,9 +113192,7 @@ paths:
neither are set, invoices will use the customer's
[invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
or
- [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
- maxLength: 5000
- type: string
+ [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
default_tax_rates:
anyOf:
- items:
@@ -100012,20 +113206,75 @@ paths:
The tax rates that will apply to any subscription item that
does not have `tax_rates` set. Invoices created will have
their `default_tax_rates` populated from the subscription.
+ Pass an empty string to remove previously-defined tax rates.
description:
+ anyOf:
+ - maxLength: 500
+ type: string
+ - enum:
+ - ''
+ type: string
description: >-
The subscription's description, meant to be displayable to
the customer. Use this field to optionally store an
explanation of the subscription for rendering in Stripe
- surfaces.
- maxLength: 500
- type: string
+ surfaces and certain local payment methods UIs.
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ description: >-
+ The coupons to redeem into discounts for the subscription.
+ If not specified or empty, inherits the discount from the
+ subscription's customer.
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
+ invoice_settings:
+ description: All invoices will be billed using the specified settings.
+ properties:
+ account_tax_ids:
+ anyOf:
+ - items:
+ maxLength: 5000
+ type: string
+ type: array
+ - enum:
+ - ''
+ type: string
+ issuer:
+ properties:
+ account:
+ type: string
+ type:
+ enum:
+ - account
+ - self
+ type: string
+ required:
+ - type
+ title: param
+ type: object
+ title: invoice_settings_param
+ type: object
items:
description: >-
A list of up to 20 subscription items, each with an attached
@@ -100044,10 +113293,40 @@ paths:
- enum:
- ''
type: string
+ clear_usage:
+ type: boolean
+ deleted:
+ type: boolean
+ discounts:
+ anyOf:
+ - items:
+ properties:
+ coupon:
+ maxLength: 5000
+ type: string
+ discount:
+ maxLength: 5000
+ type: string
+ promotion_code:
+ maxLength: 5000
+ type: string
+ title: discounts_data_param
+ type: object
+ type: array
+ - enum:
+ - ''
+ type: string
+ id:
+ maxLength: 5000
+ type: string
metadata:
- additionalProperties:
- type: string
- type: object
+ anyOf:
+ - additionalProperties:
+ type: string
+ type: object
+ - enum:
+ - ''
+ type: string
price:
maxLength: 5000
type: string
@@ -100101,7 +113380,7 @@ paths:
- enum:
- ''
type: string
- title: subscription_item_create_params
+ title: subscription_item_update_params
type: object
type: array
metadata:
@@ -100134,55 +113413,70 @@ paths:
description: >-
The account on behalf of which to charge, for each of the
subscription's invoices.
+ pause_collection:
+ anyOf:
+ - properties:
+ behavior:
+ enum:
+ - keep_as_draft
+ - mark_uncollectible
+ - void
+ type: string
+ resumes_at:
+ format: unix-time
+ type: integer
+ required:
+ - behavior
+ title: pause_collection_param
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ If specified, payment collection for this subscription will
+ be paused. Note that the subscription status will be
+ unchanged and will not be updated to `paused`. Learn more
+ about [pausing
+ collection](/billing/subscriptions/pause-payment).
payment_behavior:
description: >-
- Only applies to subscriptions with
- `collection_method=charge_automatically`.
-
-
- Use `allow_incomplete` to create subscriptions with
- `status=incomplete` if the first invoice cannot be paid.
- Creating subscriptions with this status allows you to manage
- scenarios where additional user actions are needed to pay a
- subscription's invoice. For example, SCA regulation may
- require 3DS authentication to complete payment. See the [SCA
- Migration
+ Use `allow_incomplete` to transition the subscription to
+ `status=past_due` if a payment is required but cannot be
+ paid. This allows you to manage scenarios where additional
+ user actions are needed to pay a subscription's invoice. For
+ example, SCA regulation may require 3DS authentication to
+ complete payment. See the [SCA Migration
Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication)
for Billing to learn more. This is the default behavior.
- Use `default_incomplete` to create Subscriptions with
- `status=incomplete` when the first invoice requires payment,
- otherwise start as active. Subscriptions transition to
- `status=active` when successfully confirming the payment
- intent on the first invoice. This allows simpler management
- of scenarios where additional user actions are needed to pay
- a subscription’s invoice. Such as failed payments, [SCA
+ Use `default_incomplete` to transition the subscription to
+ `status=past_due` when payment is required and await
+ explicit confirmation of the invoice's payment intent. This
+ allows simpler management of scenarios where additional user
+ actions are needed to pay a subscription’s invoice. Such as
+ failed payments, [SCA
regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication),
- or collecting a mandate for a bank debit payment method. If
- the payment intent is not confirmed within 23 hours
- subscriptions transition to `status=incomplete_expired`,
- which is a terminal state.
-
-
- Use `error_if_incomplete` if you want Stripe to return an
- HTTP 402 status code if a subscription's first invoice
- cannot be paid. For example, if a payment method requires
- 3DS authentication due to SCA regulation and further user
- action is needed, this parameter does not create a
- subscription and returns an error instead. This was the
- default behavior for API versions prior to 2019-03-14. See
- the [changelog](https://stripe.com/docs/upgrades#2019-03-14)
- to learn more.
+ or collecting a mandate for a bank debit payment method.
- `pending_if_incomplete` is only used with updates and cannot
- be passed when creating a subscription.
+ Use `pending_if_incomplete` to update the subscription using
+ [pending
+ updates](https://stripe.com/docs/billing/subscriptions/pending-updates).
+ When you use `pending_if_incomplete` you can only pass the
+ parameters [supported by pending
+ updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
- Subscriptions with `collection_method=send_invoice` are
- automatically activated regardless of the first invoice
- status.
+ Use `error_if_incomplete` if you want Stripe to return an
+ HTTP 402 status code if a subscription's invoice cannot be
+ paid. For example, if a payment method requires 3DS
+ authentication due to SCA regulation and further user action
+ is needed, this parameter does not update the subscription
+ and returns an error instead. This was the default behavior
+ for API versions prior to 2019-03-14. See the
+ [changelog](https://stripe.com/docs/upgrades#2019-03-14) to
+ learn more.
enum:
- allow_incomplete
- default_incomplete
@@ -100272,6 +113566,7 @@ paths:
enum:
- any
- automatic
+ - challenge
type: string
title: subscription_payment_method_options_param
type: object
@@ -100311,6 +113606,14 @@ paths:
- enum:
- ''
type: string
+ sepa_debit:
+ anyOf:
+ - properties: {}
+ title: invoice_payment_method_options_param
+ type: object
+ - enum:
+ - ''
+ type: string
us_bank_account:
anyOf:
- properties:
@@ -100331,6 +113634,7 @@ paths:
items:
enum:
- balances
+ - transactions
type: string
x-stripeBypassValidation: true
type: array
@@ -100348,163 +113652,551 @@ paths:
- enum:
- ''
type: string
- title: payment_method_options
+ title: payment_method_options
+ type: object
+ payment_method_types:
+ anyOf:
+ - items:
+ enum:
+ - ach_credit_transfer
+ - ach_debit
+ - acss_debit
+ - au_becs_debit
+ - bacs_debit
+ - bancontact
+ - boleto
+ - card
+ - cashapp
+ - customer_balance
+ - eps
+ - fpx
+ - giropay
+ - grabpay
+ - ideal
+ - konbini
+ - link
+ - p24
+ - paynow
+ - paypal
+ - promptpay
+ - sepa_debit
+ - sofort
+ - us_bank_account
+ - wechat_pay
+ type: string
+ x-stripeBypassValidation: true
+ type: array
+ - enum:
+ - ''
+ type: string
+ save_default_payment_method:
+ enum:
+ - 'off'
+ - on_subscription
+ type: string
+ title: payment_settings
+ type: object
+ pending_invoice_item_interval:
+ anyOf:
+ - properties:
+ interval:
+ enum:
+ - day
+ - month
+ - week
+ - year
+ type: string
+ interval_count:
+ type: integer
+ required:
+ - interval
+ title: pending_invoice_item_interval_params
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ Specifies an interval for how often to bill for any pending
+ invoice items. It is analogous to calling [Create an
+ invoice](https://stripe.com/docs/api#create_invoice) for the
+ given subscription at the specified interval.
+ promotion_code:
+ description: >-
+ The promotion code to apply to this subscription. A
+ promotion code applied to a subscription will only affect
+ invoices created for that particular subscription.
+ maxLength: 5000
+ type: string
+ proration_behavior:
+ description: >-
+ Determines how to handle
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
+ when the billing cycle changes (e.g., when switching plans,
+ resetting `billing_cycle_anchor=now`, or starting a trial),
+ or if an item's `quantity` changes. The default value is
+ `create_prorations`.
+ enum:
+ - always_invoice
+ - create_prorations
+ - none
+ type: string
+ proration_date:
+ description: >-
+ If set, the proration will be calculated as though the
+ subscription was updated at the given time. This can be used
+ to apply exactly the same proration that was previewed with
+ [upcoming
+ invoice](https://stripe.com/docs/api#upcoming_invoice)
+ endpoint. It can also be used to implement custom proration
+ logic, such as prorating by day instead of by second, by
+ providing the time that you wish to use for proration
+ calculations.
+ format: unix-time
+ type: integer
+ transfer_data:
+ anyOf:
+ - properties:
+ amount_percent:
+ type: number
+ destination:
+ type: string
+ required:
+ - destination
+ title: transfer_data_specs
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: >-
+ If specified, the funds from the subscription's invoices
+ will be transferred to the destination and the ID of the
+ resulting transfers will be found on the resulting charges.
+ This will be unset if you POST an empty value.
+ trial_end:
+ anyOf:
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
+ - format: unix-time
+ type: integer
+ description: >-
+ Unix timestamp representing the end of the trial period the
+ customer will get before being charged for the first time.
+ This will always overwrite any trials that might apply via a
+ subscribed plan. If set, trial_end will override the default
+ trial period of the plan the customer is being subscribed
+ to. The special value `now` can be provided to end the
+ customer's trial immediately. Can be at most two years from
+ `billing_cycle_anchor`.
+ trial_from_plan:
+ description: >-
+ Indicates if a plan's `trial_period_days` should be applied
+ to the subscription. Setting `trial_end` per subscription is
+ preferred, and this defaults to `false`. Setting this flag
+ to `true` together with `trial_end` is not allowed. See
+ [Using trial periods on
+ subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
+ to learn more.
+ type: boolean
+ trial_settings:
+ description: Settings related to subscription trials.
+ properties:
+ end_behavior:
+ properties:
+ missing_payment_method:
+ enum:
+ - cancel
+ - create_invoice
+ - pause
+ type: string
+ required:
+ - missing_payment_method
+ title: end_behavior
+ type: object
+ required:
+ - end_behavior
+ title: trial_settings_config
+ type: object
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/subscriptions/{subscription_exposed_id}/discount':
+ delete:
+ description: Removes the currently applied discount on a subscription.
+ operationId: DeleteSubscriptionsSubscriptionExposedIdDiscount
+ parameters:
+ - in: path
+ name: subscription_exposed_id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/deleted_discount'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/subscriptions/{subscription}/resume':
+ post:
+ description: >-
+ Initiates resumption of a paused subscription, optionally resetting
+ the billing cycle anchor and creating prorations. If a resumption
+ invoice is generated, it must be paid or marked uncollectible before the
+ subscription will be unpaused. If payment succeeds the subscription will
+ become active
, and if payment fails the subscription will
+ be past_due
. The resumption invoice will void automatically
+ if not paid by the expiration date.
+ operationId: PostSubscriptionsSubscriptionResume
+ parameters:
+ - in: path
+ name: subscription
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ billing_cycle_anchor:
+ description: >-
+ Either `now` or `unchanged`. Setting the value to `now`
+ resets the subscription's billing cycle anchor to the
+ current time (in UTC). Setting the value to `unchanged`
+ advances the subscription's billing cycle anchor to the
+ period that surrounds the current time. For more
+ information, see the billing cycle
+ [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
+ enum:
+ - now
+ - unchanged
+ maxLength: 5000
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ proration_behavior:
+ description: >-
+ Determines how to handle
+ [prorations](https://stripe.com/docs/billing/subscriptions/prorations)
+ when the billing cycle changes (e.g., when switching plans,
+ resetting `billing_cycle_anchor=now`, or starting a trial),
+ or if an item's `quantity` changes. The default value is
+ `create_prorations`.
+ enum:
+ - always_invoice
+ - create_prorations
+ - none
+ type: string
+ proration_date:
+ description: >-
+ If set, the proration will be calculated as though the
+ subscription was resumed at the given time. This can be used
+ to apply exactly the same proration that was previewed with
+ [upcoming
+ invoice](https://stripe.com/docs/api#retrieve_customer_invoice)
+ endpoint.
+ format: unix-time
+ type: integer
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/subscription'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/tax/calculations:
+ post:
+ description: >-
+ Calculates tax based on input and returns a Tax
+ Calculation
object.
+ operationId: PostTaxCalculations
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ customer_details:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ line_items:
+ explode: true
+ style: deepObject
+ shipping_cost:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ currency:
+ description: >-
+ Three-letter [ISO currency
+ code](https://www.iso.org/iso-4217-currency-codes.html), in
+ lowercase. Must be a [supported
+ currency](https://stripe.com/docs/currencies).
+ type: string
+ customer:
+ description: >-
+ The ID of an existing customer to use for this calculation.
+ If provided, the customer's address and tax IDs are copied
+ to `customer_details`.
+ maxLength: 5000
+ type: string
+ customer_details:
+ description: 'Details about the customer, including address and tax IDs.'
+ properties:
+ address:
+ properties:
+ city:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ country:
+ maxLength: 5000
+ type: string
+ line1:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ line2:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ postal_code:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ state:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ required:
+ - country
+ title: postal_address
type: object
- payment_method_types:
- anyOf:
- - items:
+ address_source:
+ enum:
+ - billing
+ - shipping
+ type: string
+ ip_address:
+ type: string
+ tax_ids:
+ items:
+ properties:
+ type:
enum:
- - ach_credit_transfer
- - ach_debit
- - acss_debit
- - au_becs_debit
- - bacs_debit
- - bancontact
- - boleto
- - card
- - cashapp
- - customer_balance
- - fpx
- - giropay
- - grabpay
- - ideal
- - konbini
- - link
- - paynow
- - paypal
- - promptpay
- - sepa_debit
- - sofort
- - us_bank_account
- - wechat_pay
+ - ad_nrt
+ - ae_trn
+ - ar_cuit
+ - au_abn
+ - au_arn
+ - bg_uic
+ - bo_tin
+ - br_cnpj
+ - br_cpf
+ - ca_bn
+ - ca_gst_hst
+ - ca_pst_bc
+ - ca_pst_mb
+ - ca_pst_sk
+ - ca_qst
+ - ch_vat
+ - cl_tin
+ - cn_tin
+ - co_nit
+ - cr_tin
+ - do_rcn
+ - ec_ruc
+ - eg_tin
+ - es_cif
+ - eu_oss_vat
+ - eu_vat
+ - gb_vat
+ - ge_vat
+ - hk_br
+ - hu_tin
+ - id_npwp
+ - il_vat
+ - in_gst
+ - is_vat
+ - jp_cn
+ - jp_rn
+ - jp_trn
+ - ke_pin
+ - kr_brn
+ - li_uid
+ - mx_rfc
+ - my_frp
+ - my_itn
+ - my_sst
+ - no_vat
+ - no_voec
+ - nz_gst
+ - pe_ruc
+ - ph_tin
+ - ro_tin
+ - rs_pib
+ - ru_inn
+ - ru_kpp
+ - sa_vat
+ - sg_gst
+ - sg_uen
+ - si_tin
+ - sv_nit
+ - th_vat
+ - tr_tin
+ - tw_vat
+ - ua_vat
+ - us_ein
+ - uy_ruc
+ - ve_rif
+ - vn_tin
+ - za_vat
+ maxLength: 5000
type: string
x-stripeBypassValidation: true
- type: array
- - enum:
- - ''
- type: string
- save_default_payment_method:
+ value:
+ type: string
+ required:
+ - type
+ - value
+ title: data_params
+ type: object
+ type: array
+ taxability_override:
enum:
- - 'off'
- - on_subscription
+ - customer_exempt
+ - none
+ - reverse_charge
type: string
- title: payment_settings
+ title: customer_details
type: object
- pending_invoice_item_interval:
- anyOf:
- - properties:
- interval:
- enum:
- - day
- - month
- - week
- - year
- type: string
- interval_count:
- type: integer
- required:
- - interval
- title: pending_invoice_item_interval_params
- type: object
- - enum:
- - ''
- type: string
- description: >-
- Specifies an interval for how often to bill for any pending
- invoice items. It is analogous to calling [Create an
- invoice](https://stripe.com/docs/api#create_invoice) for the
- given subscription at the specified interval.
- promotion_code:
- description: >-
- The API ID of a promotion code to apply to this
- subscription. A promotion code applied to a subscription
- will only affect invoices created for that particular
- subscription.
- maxLength: 5000
- type: string
- proration_behavior:
- description: >-
- Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
- resulting from the `billing_cycle_anchor`. If no value is
- passed, the default is `create_prorations`.
- enum:
- - always_invoice
- - create_prorations
- - none
- type: string
- transfer_data:
- description: >-
- If specified, the funds from the subscription's invoices
- will be transferred to the destination and the ID of the
- resulting transfers will be found on the resulting charges.
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ line_items:
+ description: A list of items the customer is purchasing.
+ items:
+ properties:
+ amount:
+ type: integer
+ product:
+ maxLength: 5000
+ type: string
+ quantity:
+ type: integer
+ reference:
+ maxLength: 500
+ type: string
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ type: string
+ tax_code:
+ type: string
+ required:
+ - amount
+ title: calculation_line_item
+ type: object
+ type: array
+ shipping_cost:
+ description: Shipping cost details to be used for the calculation.
properties:
- amount_percent:
- type: number
- destination:
- type: string
- required:
- - destination
- title: transfer_data_specs
- type: object
- trial_end:
- anyOf:
- - enum:
- - now
+ amount:
+ type: integer
+ shipping_rate:
maxLength: 5000
type: string
- - format: unix-time
- type: integer
- description: >-
- Unix timestamp representing the end of the trial period the
- customer will get before being charged for the first time.
- If set, trial_end will override the default trial period of
- the plan the customer is being subscribed to. The special
- value `now` can be provided to end the customer's trial
- immediately. Can be at most two years from
- `billing_cycle_anchor`. See [Using trial periods on
- subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
- to learn more.
- trial_from_plan:
- description: >-
- Indicates if a plan's `trial_period_days` should be applied
- to the subscription. Setting `trial_end` per subscription is
- preferred, and this defaults to `false`. Setting this flag
- to `true` together with `trial_end` is not allowed. See
- [Using trial periods on
- subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
- to learn more.
- type: boolean
- trial_period_days:
+ tax_behavior:
+ enum:
+ - exclusive
+ - inclusive
+ type: string
+ tax_code:
+ type: string
+ title: shipping_cost
+ type: object
+ tax_date:
description: >-
- Integer representing the number of trial period days before
- the customer is charged for the first time. This will always
- overwrite any trials that might apply via a subscribed plan.
- See [Using trial periods on
- subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
- to learn more.
+ Timestamp of date at which the tax rules and rates in effect
+ applies for the calculation. Measured in seconds since the
+ Unix epoch. Can be up to 48 hours in the past, and up to 48
+ hours in the future.
type: integer
- trial_settings:
- description: Settings related to subscription trials.
- properties:
- end_behavior:
- properties:
- missing_payment_method:
- enum:
- - cancel
- - create_invoice
- - pause
- type: string
- required:
- - missing_payment_method
- title: end_behavior
- type: object
- required:
- - end_behavior
- title: trial_settings_config
- type: object
required:
- - customer
+ - currency
+ - line_items
type: object
required: true
responses:
@@ -100512,7 +114204,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/subscription'
+ $ref: '#/components/schemas/tax.calculation'
description: Successful response.
default:
content:
@@ -100520,22 +114212,33 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- /v1/subscriptions/search:
+ '/v1/tax/calculations/{calculation}/line_items':
get:
description: >-
- Search for subscriptions you’ve previously created using Stripe’s Search Query Language.
-
- Don’t use search in read-after-write flows where strict consistency is
- necessary. Under normal operating
-
- conditions, data is searchable in less than a minute. Occasionally,
- propagation of new or updated data can be up
-
- to an hour behind during outages. Search functionality is not available
- to merchants in India.
- operationId: GetSubscriptionsSearch
+ Retrieves the line items of a persisted tax calculation as a
+ collection.
+ operationId: GetTaxCalculationsCalculationLineItems
parameters:
+ - in: path
+ name: calculation
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 500
+ type: string
+ style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -100557,26 +114260,16 @@ paths:
type: integer
style: form
- description: >-
- A cursor for pagination across multiple pages of results. Don't
- include this parameter on the first call. Use the next_page value
- returned in a previous response to request subsequent results.
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
in: query
- name: page
+ name: starting_after
required: false
schema:
- maxLength: 5000
- type: string
- style: form
- - description: >-
- The search query string. See [search query
- language](https://stripe.com/docs/search#search-query-language) and
- the list of supported [query fields for
- subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions).
- in: query
- name: query
- required: true
- schema:
- maxLength: 5000
+ maxLength: 500
type: string
style: form
requestBody:
@@ -100596,140 +114289,36 @@ paths:
description: ''
properties:
data:
+ description: Details about each object.
items:
- $ref: '#/components/schemas/subscription'
+ $ref: '#/components/schemas/tax.calculation_line_item'
type: array
has_more:
- type: boolean
- next_page:
- maxLength: 5000
- nullable: true
- type: string
- object:
- description: >-
- String representing the object's type. Objects of the same
- type share the same value.
- enum:
- - search_result
- type: string
- total_count:
description: >-
- The total number of objects that match the query, only
- accurate up to 10,000.
- type: integer
- url:
- maxLength: 5000
- type: string
- required:
- - data
- - has_more
- - object
- - url
- title: SearchResult
- type: object
- x-expandableFields:
- - data
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/subscriptions/{subscription_exposed_id}':
- delete:
- description: >-
- Cancels a customer’s subscription immediately. The customer will not
- be charged again for the subscription.
-
-
- Note, however, that any pending invoice items that you’ve created
- will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription
- to cancel at the end of the period, any pending prorations will also be
- left in place and collected at the end of the period. But if the
- subscription is set to cancel immediately, pending prorations will be
- removed.
-
-
- By default, upon subscription cancellation, Stripe will stop
- automatic collection of all finalized invoices for the customer. This is
- intended to prevent unexpected payment attempts after the customer has
- canceled a subscription. However, you can resume automatic collection of
- the invoices manually after subscription cancellation to have us
- proceed. Or, you could check for unpaid invoices before allowing the
- customer to cancel the subscription at all.
- operationId: DeleteSubscriptionsSubscriptionExposedId
- parameters:
- - in: path
- name: subscription_exposed_id
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- cancellation_details:
- explode: true
- style: deepObject
- expand:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- cancellation_details:
- description: Details about why this subscription was cancelled
- properties:
- comment:
- anyOf:
- - maxLength: 5000
- type: string
- - enum:
- - ''
- type: string
- feedback:
- enum:
- - ''
- - customer_service
- - low_quality
- - missing_features
- - other
- - switched_service
- - too_complex
- - too_expensive
- - unused
- type: string
- title: cancellation_details_param
- type: object
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- invoice_now:
- description: >-
- Will generate a final invoice that invoices for any
- un-invoiced metered usage and new/pending proration invoice
- items.
- type: boolean
- prorate:
- description: >-
- Will generate a proration invoice item that credits
- remaining unused time until the subscription period end.
- type: boolean
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/subscription'
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: '^/v1/tax/calculations/[^/]+/line_items'
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: TaxProductResourceTaxCalculationLineItemList
+ type: object
+ x-expandableFields:
+ - data
description: Successful response.
default:
content:
@@ -100737,10 +114326,24 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ /v1/tax/registrations:
get:
- description: Retrieves the subscription with the given ID.
- operationId: GetSubscriptionsSubscriptionExposedId
+ description: Returns a list of Tax Registration
objects.
+ operationId: GetTaxRegistrations
parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -100752,13 +114355,40 @@ paths:
type: string
type: array
style: deepObject
- - in: path
- name: subscription_exposed_id
- required: true
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
schema:
maxLength: 5000
type: string
- style: simple
+ style: form
+ - description: The status of the Tax Registration.
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - active
+ - all
+ - expired
+ - scheduled
+ type: string
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -100773,7 +114403,38 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/subscription'
+ description: ''
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/tax.registration'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ pattern: ^/v1/tax/registrations
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: TaxProductRegistrationsResourceTaxRegistrationList
+ type: object
+ x-expandableFields:
+ - data
description: Successful response.
default:
content:
@@ -100782,1135 +114443,953 @@ paths:
$ref: '#/components/schemas/error'
description: Error response.
post:
- description: >-
- Updates an existing subscription on a customer to match the specified
- parameters. When changing plans or quantities, we will optionally
- prorate the price we charge next month to make up for any price changes.
- To preview how the proration will be calculated, use the upcoming invoice endpoint.
- operationId: PostSubscriptionsSubscriptionExposedId
- parameters:
- - in: path
- name: subscription_exposed_id
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
+ description: Creates a new Tax Registration
object.
+ operationId: PostTaxRegistrations
requestBody:
content:
application/x-www-form-urlencoded:
encoding:
- add_invoice_items:
- explode: true
- style: deepObject
- automatic_tax:
- explode: true
- style: deepObject
- billing_thresholds:
- explode: true
- style: deepObject
- cancel_at:
- explode: true
- style: deepObject
- cancellation_details:
+ active_from:
explode: true
style: deepObject
- default_source:
- explode: true
- style: deepObject
- default_tax_rates:
- explode: true
- style: deepObject
- description:
- explode: true
- style: deepObject
- expand:
- explode: true
- style: deepObject
- items:
- explode: true
- style: deepObject
- metadata:
- explode: true
- style: deepObject
- on_behalf_of:
- explode: true
- style: deepObject
- pause_collection:
- explode: true
- style: deepObject
- payment_settings:
- explode: true
- style: deepObject
- pending_invoice_item_interval:
- explode: true
- style: deepObject
- transfer_data:
- explode: true
- style: deepObject
- trial_end:
- explode: true
- style: deepObject
- trial_settings:
+ country_options:
explode: true
style: deepObject
- schema:
- additionalProperties: false
- properties:
- add_invoice_items:
- description: >-
- A list of prices and quantities that will generate invoice
- items appended to the next invoice for this subscription.
- You may pass up to 20 items.
- items:
- properties:
- price:
- maxLength: 5000
- type: string
- price_data:
- properties:
- currency:
- type: string
- product:
- maxLength: 5000
- type: string
- tax_behavior:
- enum:
- - exclusive
- - inclusive
- - unspecified
- type: string
- unit_amount:
- type: integer
- unit_amount_decimal:
- format: decimal
- type: string
- required:
- - currency
- - product
- title: one_time_price_data_with_negative_amounts
- type: object
- quantity:
- type: integer
- tax_rates:
- anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- - enum:
- - ''
- type: string
- title: add_invoice_item_entry
- type: object
- type: array
- application_fee_percent:
- description: >-
- A non-negative decimal between 0 and 100, with at most two
- decimal places. This represents the percentage of the
- subscription invoice total that will be transferred to the
- application owner's Stripe account. The request must be made
- by a platform account on a connected account in order to set
- an application fee percentage. For more information, see the
- application fees
- [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- type: number
- automatic_tax:
- description: >-
- Automatic tax settings for this subscription. We recommend
- you only include this parameter when the existing value is
- being changed.
- properties:
- enabled:
- type: boolean
- required:
- - enabled
- title: automatic_tax_config
- type: object
- billing_cycle_anchor:
- description: >-
- Either `now` or `unchanged`. Setting the value to `now`
- resets the subscription's billing cycle anchor to the
- current time (in UTC). For more information, see the billing
- cycle
- [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
- enum:
- - now
- - unchanged
- maxLength: 5000
- type: string
- x-stripeBypassValidation: true
- billing_thresholds:
- anyOf:
- - properties:
- amount_gte:
- type: integer
- reset_billing_cycle_anchor:
- type: boolean
- title: billing_thresholds_param
- type: object
- - enum:
- - ''
- type: string
- description: >-
- Define thresholds at which an invoice will be sent, and the
- subscription advanced to a new billing period. Pass an empty
- string to remove previously-defined thresholds.
- cancel_at:
- anyOf:
- - format: unix-time
- type: integer
- - enum:
- - ''
- type: string
- description: >-
- A timestamp at which the subscription should cancel. If set
- to a date before the current period ends, this will cause a
- proration if prorations have been enabled using
- `proration_behavior`. If set during a future period, this
- will always cause a proration for that period.
- cancel_at_period_end:
- description: >-
- Boolean indicating whether this subscription should cancel
- at the end of the current period.
- type: boolean
- cancellation_details:
- description: Details about why this subscription was cancelled
- properties:
- comment:
- anyOf:
- - maxLength: 5000
- type: string
- - enum:
- - ''
- type: string
- feedback:
- enum:
- - ''
- - customer_service
- - low_quality
- - missing_features
- - other
- - switched_service
- - too_complex
- - too_expensive
- - unused
- type: string
- title: cancellation_details_param
- type: object
- collection_method:
- description: >-
- Either `charge_automatically`, or `send_invoice`. When
- charging automatically, Stripe will attempt to pay this
- subscription at the end of the cycle using the default
- source attached to the customer. When sending an invoice,
- Stripe will email your customer an invoice with payment
- instructions and mark the subscription as `active`. Defaults
- to `charge_automatically`.
- enum:
- - charge_automatically
- - send_invoice
- type: string
- coupon:
- description: >-
- The ID of the coupon to apply to this subscription. A coupon
- applied to a subscription will only affect invoices created
- for that particular subscription.
- maxLength: 5000
- type: string
- days_until_due:
- description: >-
- Number of days a customer has to pay invoices generated by
- this subscription. Valid only for subscriptions where
- `collection_method` is set to `send_invoice`.
- type: integer
- default_payment_method:
- description: >-
- ID of the default payment method for the subscription. It
- must belong to the customer associated with the
- subscription. This takes precedence over `default_source`.
- If neither are set, invoices will use the customer's
- [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
- or
- [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
- maxLength: 5000
- type: string
- default_source:
- anyOf:
- - maxLength: 5000
- type: string
- - enum:
- - ''
- type: string
- description: >-
- ID of the default payment source for the subscription. It
- must belong to the customer associated with the subscription
- and be in a chargeable state. If `default_payment_method` is
- also set, `default_payment_method` will take precedence. If
- neither are set, invoices will use the customer's
- [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
- or
- [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
- default_tax_rates:
- anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- - enum:
- - ''
- type: string
- description: >-
- The tax rates that will apply to any subscription item that
- does not have `tax_rates` set. Invoices created will have
- their `default_tax_rates` populated from the subscription.
- Pass an empty string to remove previously-defined tax rates.
- description:
- anyOf:
- - maxLength: 500
- type: string
- - enum:
- - ''
- type: string
- description: >-
- The subscription's description, meant to be displayable to
- the customer. Use this field to optionally store an
- explanation of the subscription for rendering in Stripe
- surfaces.
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- items:
- description: >-
- A list of up to 20 subscription items, each with an attached
- price.
- items:
- properties:
- billing_thresholds:
- anyOf:
- - properties:
- usage_gte:
- type: integer
- required:
- - usage_gte
- title: item_billing_thresholds_param
- type: object
- - enum:
- - ''
- type: string
- clear_usage:
- type: boolean
- deleted:
- type: boolean
- id:
- maxLength: 5000
- type: string
- metadata:
- anyOf:
- - additionalProperties:
- type: string
- type: object
- - enum:
- - ''
- type: string
- price:
- maxLength: 5000
- type: string
- price_data:
- properties:
- currency:
- type: string
- product:
- maxLength: 5000
- type: string
- recurring:
- properties:
- interval:
- enum:
- - day
- - month
- - week
- - year
- type: string
- interval_count:
- type: integer
- required:
- - interval
- title: recurring_adhoc
- type: object
- tax_behavior:
- enum:
- - exclusive
- - inclusive
- - unspecified
- type: string
- unit_amount:
- type: integer
- unit_amount_decimal:
- format: decimal
- type: string
- required:
- - currency
- - product
- - recurring
- title: recurring_price_data
- type: object
- quantity:
- type: integer
- tax_rates:
- anyOf:
- - items:
- maxLength: 5000
- type: string
- type: array
- - enum:
- - ''
- type: string
- title: subscription_item_update_params
- type: object
- type: array
- metadata:
- anyOf:
- - additionalProperties:
- type: string
- type: object
- - enum:
- - ''
- type: string
- description: >-
- Set of [key-value
- pairs](https://stripe.com/docs/api/metadata) that you can
- attach to an object. This can be useful for storing
- additional information about the object in a structured
- format. Individual keys can be unset by posting an empty
- value to them. All keys can be unset by posting an empty
- value to `metadata`.
- off_session:
- description: >-
- Indicates if a customer is on or off-session while an
- invoice payment is attempted.
- type: boolean
- on_behalf_of:
- anyOf:
- - type: string
- - enum:
- - ''
- type: string
- description: >-
- The account on behalf of which to charge, for each of the
- subscription's invoices.
- pause_collection:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ active_from:
anyOf:
- - properties:
- behavior:
- enum:
- - keep_as_draft
- - mark_uncollectible
- - void
- type: string
- resumes_at:
- format: unix-time
- type: integer
- required:
- - behavior
- title: pause_collection_param
- type: object
- enum:
- - ''
+ - now
+ maxLength: 5000
type: string
+ - format: unix-time
+ type: integer
description: >-
- If specified, payment collection for this subscription will
- be paused.
- payment_behavior:
+ Time at which the Tax Registration becomes active. It can be
+ either `now` to indicate the current time, or a future
+ timestamp measured in seconds since the Unix epoch.
+ country:
description: >-
- Use `allow_incomplete` to transition the subscription to
- `status=past_due` if a payment is required but cannot be
- paid. This allows you to manage scenarios where additional
- user actions are needed to pay a subscription's invoice. For
- example, SCA regulation may require 3DS authentication to
- complete payment. See the [SCA Migration
- Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication)
- for Billing to learn more. This is the default behavior.
-
-
- Use `default_incomplete` to transition the subscription to
- `status=past_due` when payment is required and await
- explicit confirmation of the invoice's payment intent. This
- allows simpler management of scenarios where additional user
- actions are needed to pay a subscription’s invoice. Such as
- failed payments, [SCA
- regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication),
- or collecting a mandate for a bank debit payment method.
-
-
- Use `pending_if_incomplete` to update the subscription using
- [pending
- updates](https://stripe.com/docs/billing/subscriptions/pending-updates).
- When you use `pending_if_incomplete` you can only pass the
- parameters [supported by pending
- updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
-
-
- Use `error_if_incomplete` if you want Stripe to return an
- HTTP 402 status code if a subscription's invoice cannot be
- paid. For example, if a payment method requires 3DS
- authentication due to SCA regulation and further user action
- is needed, this parameter does not update the subscription
- and returns an error instead. This was the default behavior
- for API versions prior to 2019-03-14. See the
- [changelog](https://stripe.com/docs/upgrades#2019-03-14) to
- learn more.
- enum:
- - allow_incomplete
- - default_incomplete
- - error_if_incomplete
- - pending_if_incomplete
+ Two-letter country code ([ISO 3166-1
+ alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ maxLength: 5000
type: string
- payment_settings:
+ country_options:
description: >-
- Payment settings to pass to invoices created by the
- subscription.
+ Specific options for a registration in the specified
+ `country`.
properties:
- payment_method_options:
+ ae:
properties:
- acss_debit:
- anyOf:
- - properties:
- mandate_options:
- properties:
- transaction_type:
- enum:
- - business
- - personal
- type: string
- title: mandate_options_param
- type: object
- verification_method:
- enum:
- - automatic
- - instant
- - microdeposits
- type: string
- x-stripeBypassValidation: true
- title: invoice_payment_method_options_param
- type: object
- - enum:
- - ''
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ at:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- bancontact:
- anyOf:
- - properties:
- preferred_language:
- enum:
- - de
- - en
- - fr
- - nl
- type: string
- title: invoice_payment_method_options_param
- type: object
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ au:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ be:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- card:
- anyOf:
- - properties:
- mandate_options:
- properties:
- amount:
- type: integer
- amount_type:
- enum:
- - fixed
- - maximum
- type: string
- description:
- maxLength: 200
- type: string
- title: mandate_options_param
- type: object
- network:
- enum:
- - amex
- - cartes_bancaires
- - diners
- - discover
- - eftpos_au
- - interac
- - jcb
- - mastercard
- - unionpay
- - unknown
- - visa
- maxLength: 5000
- type: string
- x-stripeBypassValidation: true
- request_three_d_secure:
- enum:
- - any
- - automatic
- type: string
- title: subscription_payment_method_options_param
- type: object
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ bg:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- customer_balance:
- anyOf:
- - properties:
- bank_transfer:
- properties:
- eu_bank_transfer:
- properties:
- country:
- maxLength: 5000
- type: string
- required:
- - country
- title: eu_bank_transfer_param
- type: object
- type:
- type: string
- title: bank_transfer_param
- type: object
- funding_type:
- type: string
- title: invoice_payment_method_options_param
- type: object
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ ca:
+ properties:
+ province_standard:
+ properties:
+ province:
+ maxLength: 5000
type: string
- konbini:
- anyOf:
- - properties: {}
- title: invoice_payment_method_options_param
- type: object
- - enum:
- - ''
+ required:
+ - province
+ title: province_standard
+ type: object
+ type:
+ enum:
+ - province_standard
+ - simplified
+ - standard
+ type: string
+ required:
+ - type
+ title: canada
+ type: object
+ ch:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ cl:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ co:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ cy:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- us_bank_account:
- anyOf:
- - properties:
- financial_connections:
- properties:
- permissions:
- items:
- enum:
- - balances
- - ownership
- - payment_method
- - transactions
- maxLength: 5000
- type: string
- x-stripeBypassValidation: true
- type: array
- prefetch:
- items:
- enum:
- - balances
- type: string
- x-stripeBypassValidation: true
- type: array
- title: invoice_linked_account_options_param
- type: object
- verification_method:
- enum:
- - automatic
- - instant
- - microdeposits
- type: string
- x-stripeBypassValidation: true
- title: invoice_payment_method_options_param
- type: object
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ cz:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ de:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ dk:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ ee:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ es:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ fi:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ fr:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ gb:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ gr:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ hr:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ hu:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ id:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ ie:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ is:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ it:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ jp:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ kr:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ lt:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- title: payment_method_options
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
type: object
- payment_method_types:
- anyOf:
- - items:
- enum:
- - ach_credit_transfer
- - ach_debit
- - acss_debit
- - au_becs_debit
- - bacs_debit
- - bancontact
- - boleto
- - card
- - cashapp
- - customer_balance
- - fpx
- - giropay
- - grabpay
- - ideal
- - konbini
- - link
- - paynow
- - paypal
- - promptpay
- - sepa_debit
- - sofort
- - us_bank_account
- - wechat_pay
- type: string
- x-stripeBypassValidation: true
- type: array
- - enum:
- - ''
+ lu:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
type: string
- save_default_payment_method:
- enum:
- - 'off'
- - on_subscription
- type: string
- title: payment_settings
- type: object
- pending_invoice_item_interval:
- anyOf:
- - properties:
- interval:
+ required:
+ - type
+ title: europe
+ type: object
+ lv:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
enum:
- - day
- - month
- - week
- - year
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
type: string
- interval_count:
- type: integer
required:
- - interval
- title: pending_invoice_item_interval_params
+ - type
+ title: europe
type: object
- - enum:
- - ''
- type: string
- description: >-
- Specifies an interval for how often to bill for any pending
- invoice items. It is analogous to calling [Create an
- invoice](https://stripe.com/docs/api#create_invoice) for the
- given subscription at the specified interval.
- promotion_code:
- description: >-
- The promotion code to apply to this subscription. A
- promotion code applied to a subscription will only affect
- invoices created for that particular subscription.
- maxLength: 5000
- type: string
- proration_behavior:
- description: >-
- Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
- when the billing cycle changes (e.g., when switching plans,
- resetting `billing_cycle_anchor=now`, or starting a trial),
- or if an item's `quantity` changes. The default value is
- `create_prorations`.
- enum:
- - always_invoice
- - create_prorations
- - none
- type: string
- proration_date:
- description: >-
- If set, the proration will be calculated as though the
- subscription was updated at the given time. This can be used
- to apply exactly the same proration that was previewed with
- [upcoming
- invoice](https://stripe.com/docs/api#upcoming_invoice)
- endpoint. It can also be used to implement custom proration
- logic, such as prorating by day instead of by second, by
- providing the time that you wish to use for proration
- calculations.
- format: unix-time
- type: integer
- transfer_data:
- anyOf:
- - properties:
- amount_percent:
- type: number
- destination:
+ mt:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
type: string
required:
- - destination
- title: transfer_data_specs
+ - type
+ title: europe
type: object
- - enum:
- - ''
- type: string
- description: >-
- If specified, the funds from the subscription's invoices
- will be transferred to the destination and the ID of the
- resulting transfers will be found on the resulting charges.
- This will be unset if you POST an empty value.
- trial_end:
- anyOf:
- - enum:
- - now
- maxLength: 5000
- type: string
- - format: unix-time
- type: integer
- description: >-
- Unix timestamp representing the end of the trial period the
- customer will get before being charged for the first time.
- This will always overwrite any trials that might apply via a
- subscribed plan. If set, trial_end will override the default
- trial period of the plan the customer is being subscribed
- to. The special value `now` can be provided to end the
- customer's trial immediately. Can be at most two years from
- `billing_cycle_anchor`.
- trial_from_plan:
- description: >-
- Indicates if a plan's `trial_period_days` should be applied
- to the subscription. Setting `trial_end` per subscription is
- preferred, and this defaults to `false`. Setting this flag
- to `true` together with `trial_end` is not allowed. See
- [Using trial periods on
- subscriptions](https://stripe.com/docs/billing/subscriptions/trials)
- to learn more.
- type: boolean
- trial_settings:
- description: Settings related to subscription trials.
- properties:
- end_behavior:
+ mx:
properties:
- missing_payment_method:
+ type:
enum:
- - cancel
- - create_invoice
- - pause
+ - simplified
type: string
required:
- - missing_payment_method
- title: end_behavior
+ - type
+ title: simplified
type: object
- required:
- - end_behavior
- title: trial_settings_config
- type: object
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/subscription'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/subscriptions/{subscription_exposed_id}/discount':
- delete:
- description: Removes the currently applied discount on a subscription.
- operationId: DeleteSubscriptionsSubscriptionExposedIdDiscount
- parameters:
- - in: path
- name: subscription_exposed_id
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding: {}
- schema:
- additionalProperties: false
- properties: {}
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/deleted_discount'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/subscriptions/{subscription}/resume':
- post:
- description: >-
- Initiates resumption of a paused subscription, optionally resetting
- the billing cycle anchor and creating prorations. If a resumption
- invoice is generated, it must be paid or marked uncollectible before the
- subscription will be unpaused. If payment succeeds the subscription will
- become active
, and if payment fails the subscription will
- be past_due
. The resumption invoice will void automatically
- if not paid by the expiration date.
- operationId: PostSubscriptionsSubscriptionResume
- parameters:
- - in: path
- name: subscription
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- billing_cycle_anchor:
- description: >-
- Either `now` or `unchanged`. Setting the value to `now`
- resets the subscription's billing cycle anchor to the
- current time (in UTC). Setting the value to `unchanged`
- advances the subscription's billing cycle anchor to the
- period that surrounds the current time. For more
- information, see the billing cycle
- [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
- enum:
- - now
- - unchanged
- maxLength: 5000
- type: string
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- proration_behavior:
- description: >-
- Determines how to handle
- [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations)
- when the billing cycle changes (e.g., when switching plans,
- resetting `billing_cycle_anchor=now`, or starting a trial),
- or if an item's `quantity` changes. The default value is
- `create_prorations`.
- enum:
- - always_invoice
- - create_prorations
- - none
- type: string
- proration_date:
- description: >-
- If set, the proration will be calculated as though the
- subscription was resumed at the given time. This can be used
- to apply exactly the same proration that was previewed with
- [upcoming
- invoice](https://stripe.com/docs/api#retrieve_customer_invoice)
- endpoint.
- format: unix-time
- type: integer
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/subscription'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- /v1/tax/calculations:
- post:
- description: >-
- Calculates tax based on input and returns a Tax
- Calculation
object.
- operationId: PostTaxCalculations
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- customer_details:
- explode: true
- style: deepObject
- expand:
- explode: true
- style: deepObject
- line_items:
- explode: true
- style: deepObject
- shipping_cost:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- currency:
- description: >-
- Three-letter [ISO currency
- code](https://www.iso.org/iso-4217-currency-codes.html), in
- lowercase. Must be a [supported
- currency](https://stripe.com/docs/currencies).
- type: string
- customer:
- description: >-
- The ID of an existing customer to use for this calculation.
- If provided, the customer's address and tax IDs are copied
- to `customer_details`.
- maxLength: 5000
- type: string
- customer_details:
- description: 'Details about the customer, including address and tax IDs.'
- properties:
- address:
+ my:
properties:
- city:
- anyOf:
- - maxLength: 5000
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ nl:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ 'no':
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ nz:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ pl:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- country:
- maxLength: 5000
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
type: string
- line1:
- anyOf:
- - maxLength: 5000
+ required:
+ - type
+ title: europe
+ type: object
+ pt:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ ro:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- line2:
- anyOf:
- - maxLength: 5000
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ sa:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ se:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- - enum:
- - ''
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ sg:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ si:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
type: string
- postal_code:
- anyOf:
- - maxLength: 5000
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ sk:
+ properties:
+ standard:
+ properties:
+ place_of_supply_scheme:
+ enum:
+ - small_seller
+ - standard
+ type: string
+ required:
+ - place_of_supply_scheme
+ title: standard
+ type: object
+ type:
+ enum:
+ - ioss
+ - oss_non_union
+ - oss_union
+ - standard
+ type: string
+ required:
+ - type
+ title: europe
+ type: object
+ th:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ tr:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ us:
+ properties:
+ local_amusement_tax:
+ properties:
+ jurisdiction:
+ maxLength: 5000
type: string
- - enum:
- - ''
+ required:
+ - jurisdiction
+ title: local_amusement_tax
+ type: object
+ local_lease_tax:
+ properties:
+ jurisdiction:
+ maxLength: 5000
type: string
+ required:
+ - jurisdiction
+ title: local_lease_tax
+ type: object
state:
- anyOf:
- - maxLength: 5000
- type: string
- - enum:
- - ''
- type: string
+ maxLength: 5000
+ type: string
+ type:
+ enum:
+ - local_amusement_tax
+ - local_lease_tax
+ - state_communications_tax
+ - state_sales_tax
+ type: string
+ x-stripeBypassValidation: true
required:
- - country
- title: postal_address
+ - state
+ - type
+ title: united_states
type: object
- address_source:
- enum:
- - billing
- - shipping
- type: string
- ip_address:
- type: string
- tax_ids:
- items:
- properties:
- type:
- enum:
- - ad_nrt
- - ae_trn
- - ar_cuit
- - au_abn
- - au_arn
- - bg_uic
- - bo_tin
- - br_cnpj
- - br_cpf
- - ca_bn
- - ca_gst_hst
- - ca_pst_bc
- - ca_pst_mb
- - ca_pst_sk
- - ca_qst
- - ch_vat
- - cl_tin
- - cn_tin
- - co_nit
- - cr_tin
- - do_rcn
- - ec_ruc
- - eg_tin
- - es_cif
- - eu_oss_vat
- - eu_vat
- - gb_vat
- - ge_vat
- - hk_br
- - hu_tin
- - id_npwp
- - il_vat
- - in_gst
- - is_vat
- - jp_cn
- - jp_rn
- - jp_trn
- - ke_pin
- - kr_brn
- - li_uid
- - mx_rfc
- - my_frp
- - my_itn
- - my_sst
- - no_vat
- - nz_gst
- - pe_ruc
- - ph_tin
- - ro_tin
- - rs_pib
- - ru_inn
- - ru_kpp
- - sa_vat
- - sg_gst
- - sg_uen
- - si_tin
- - sv_nit
- - th_vat
- - tr_tin
- - tw_vat
- - ua_vat
- - us_ein
- - uy_ruc
- - ve_rif
- - vn_tin
- - za_vat
- maxLength: 5000
- type: string
- x-stripeBypassValidation: true
- value:
- type: string
- required:
- - type
- - value
- title: data_params
- type: object
- type: array
- taxability_override:
- enum:
- - customer_exempt
- - none
- - reverse_charge
- type: string
- title: customer_details
+ vn:
+ properties:
+ type:
+ enum:
+ - simplified
+ type: string
+ required:
+ - type
+ title: simplified
+ type: object
+ za:
+ properties:
+ type:
+ enum:
+ - standard
+ type: string
+ required:
+ - type
+ title: default
+ type: object
+ title: country_options
type: object
expand:
description: Specifies which fields in the response should be expanded.
@@ -101918,59 +115397,18 @@ paths:
maxLength: 5000
type: string
type: array
- line_items:
- description: A list of items the customer is purchasing.
- items:
- properties:
- amount:
- type: integer
- product:
- maxLength: 5000
- type: string
- quantity:
- type: integer
- reference:
- maxLength: 500
- type: string
- tax_behavior:
- enum:
- - exclusive
- - inclusive
- type: string
- tax_code:
- type: string
- required:
- - amount
- title: calculation_line_item
- type: object
- type: array
- shipping_cost:
- description: Shipping cost details to be used for the calculation.
- properties:
- amount:
- type: integer
- shipping_rate:
- maxLength: 5000
- type: string
- tax_behavior:
- enum:
- - exclusive
- - inclusive
- type: string
- tax_code:
- type: string
- title: shipping_cost
- type: object
- tax_date:
+ expires_at:
description: >-
- Timestamp of date at which the tax rules and rates in effect
- applies for the calculation. Measured in seconds since the
- Unix epoch. Can be up to 48 hours in the past, and up to 48
- hours in the future.
+ If set, the Tax Registration stops being active at this
+ time. If not set, the Tax Registration will be active
+ indefinitely. Timestamp measured in seconds since the Unix
+ epoch.
+ format: unix-time
type: integer
required:
- - currency
- - line_items
+ - active_from
+ - country
+ - country_options
type: object
required: true
responses:
@@ -101978,7 +115416,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/tax.calculation'
+ $ref: '#/components/schemas/tax.registration'
description: Successful response.
default:
content:
@@ -101986,33 +115424,11 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/tax/calculations/{calculation}/line_items':
+ '/v1/tax/registrations/{id}':
get:
- description: >-
- Retrieves the line items of a persisted tax calculation as a
- collection.
- operationId: GetTaxCalculationsCalculationLineItems
+ description: Returns a Tax Registration
object.
+ operationId: GetTaxRegistrationsId
parameters:
- - in: path
- name: calculation
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- - description: >-
- A cursor for use in pagination. `ending_before` is an object ID that
- defines your place in the list. For instance, if you make a list
- request and receive 100 objects, starting with `obj_bar`, your
- subsequent call can include `ending_before=obj_bar` in order to
- fetch the previous page of the list.
- in: query
- name: ending_before
- required: false
- schema:
- maxLength: 500
- type: string
- style: form
- description: Specifies which fields in the response should be expanded.
explode: true
in: query
@@ -102024,28 +115440,13 @@ paths:
type: string
type: array
style: deepObject
- - description: >-
- A limit on the number of objects to be returned. Limit can range
- between 1 and 100, and the default is 10.
- in: query
- name: limit
- required: false
- schema:
- type: integer
- style: form
- - description: >-
- A cursor for use in pagination. `starting_after` is an object ID
- that defines your place in the list. For instance, if you make a
- list request and receive 100 objects, ending with `obj_foo`, your
- subsequent call can include `starting_after=obj_foo` in order to
- fetch the next page of the list.
- in: query
- name: starting_after
- required: false
+ - in: path
+ name: id
+ required: true
schema:
- maxLength: 500
+ maxLength: 5000
type: string
- style: form
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
@@ -102060,39 +115461,89 @@ paths:
content:
application/json:
schema:
- description: ''
- properties:
- data:
- description: Details about each object.
- items:
- $ref: '#/components/schemas/tax.calculation_line_item'
- type: array
- has_more:
- description: >-
- True if this list has another page of items after this one
- that can be fetched.
- type: boolean
- object:
- description: >-
- String representing the object's type. Objects of the same
- type share the same value. Always has the value `list`.
- enum:
- - list
- type: string
- url:
- description: The URL where this list can be accessed.
+ $ref: '#/components/schemas/tax.registration'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ post:
+ description: >-
+ Updates an existing Tax Registration
object.
+
+
+ A registration cannot be deleted after it has been created. If you
+ wish to end a registration you may do so by setting
+ expires_at
.
+ operationId: PostTaxRegistrationsId
+ parameters:
+ - in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ active_from:
+ explode: true
+ style: deepObject
+ expand:
+ explode: true
+ style: deepObject
+ expires_at:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ active_from:
+ anyOf:
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
+ - format: unix-time
+ type: integer
+ description: >-
+ Time at which the registration becomes active. It can be
+ either `now` to indicate the current time, or a timestamp
+ measured in seconds since the Unix epoch.
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
maxLength: 5000
- pattern: '^/v1/tax/calculations/[^/]+/line_items'
type: string
- required:
- - data
- - has_more
- - object
- - url
- title: TaxProductResourceTaxCalculationLineItemList
- type: object
- x-expandableFields:
- - data
+ type: array
+ expires_at:
+ anyOf:
+ - enum:
+ - now
+ maxLength: 5000
+ type: string
+ - format: unix-time
+ type: integer
+ - enum:
+ - ''
+ type: string
+ description: >-
+ If set, the registration stops being active at this time. If
+ not set, the registration will be active indefinitely. It
+ can be either `now` to indicate the current time, or a
+ timestamp measured in seconds since the Unix epoch.
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/tax.registration'
description: Successful response.
default:
content:
@@ -102322,8 +115773,10 @@ paths:
flat_amount:
description: >-
A flat amount to reverse across the entire transaction, in
- negative integer cents. This value represents the total
- amount to refund from the transaction, including taxes.
+ the [smallest currency
+ unit](https://stripe.com/docs/currencies#zero-decimal) in
+ negative. This value represents the total amount to refund
+ from the transaction, including taxes.
type: integer
line_items:
description: The line item amounts to reverse.
@@ -102670,7 +116123,185 @@ paths:
- has_more
- object
- url
- title: TaxProductResourceTaxCodeList
+ title: TaxProductResourceTaxCodeList
+ type: object
+ x-expandableFields:
+ - data
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/tax_codes/{id}':
+ get:
+ description: >-
+ Retrieves the details of an existing tax code. Supply the unique tax
+ code ID and Stripe will return the corresponding tax code
+ information.
+ operationId: GetTaxCodesId
+ parameters:
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/tax_code'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ /v1/tax_ids:
+ get:
+ description: Returns a list of tax IDs.
+ operationId: GetTaxIds
+ parameters:
+ - description: >-
+ A cursor for use in pagination. `ending_before` is an object ID that
+ defines your place in the list. For instance, if you make a list
+ request and receive 100 objects, starting with `obj_bar`, your
+ subsequent call can include `ending_before=obj_bar` in order to
+ fetch the previous page of the list.
+ in: query
+ name: ending_before
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ - description: Specifies which fields in the response should be expanded.
+ explode: true
+ in: query
+ name: expand
+ required: false
+ schema:
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ style: deepObject
+ - description: >-
+ A limit on the number of objects to be returned. Limit can range
+ between 1 and 100, and the default is 10.
+ in: query
+ name: limit
+ required: false
+ schema:
+ type: integer
+ style: form
+ - description: >-
+ The account or customer the tax ID belongs to. Defaults to
+ `owner[type]=self`.
+ explode: true
+ in: query
+ name: owner
+ required: false
+ schema:
+ properties:
+ account:
+ type: string
+ customer:
+ maxLength: 5000
+ type: string
+ type:
+ enum:
+ - account
+ - application
+ - customer
+ - self
+ type: string
+ required:
+ - type
+ title: owner_params
+ type: object
+ style: deepObject
+ - description: >-
+ A cursor for use in pagination. `starting_after` is an object ID
+ that defines your place in the list. For instance, if you make a
+ list request and receive 100 objects, ending with `obj_foo`, your
+ subsequent call can include `starting_after=obj_foo` in order to
+ fetch the next page of the list.
+ in: query
+ name: starting_after
+ required: false
+ schema:
+ maxLength: 5000
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ description: ''
+ properties:
+ data:
+ description: Details about each object.
+ items:
+ $ref: '#/components/schemas/tax_id'
+ type: array
+ has_more:
+ description: >-
+ True if this list has another page of items after this one
+ that can be fetched.
+ type: boolean
+ object:
+ description: >-
+ String representing the object's type. Objects of the same
+ type share the same value. Always has the value `list`.
+ enum:
+ - list
+ type: string
+ url:
+ description: The URL where this list can be accessed.
+ maxLength: 5000
+ type: string
+ required:
+ - data
+ - has_more
+ - object
+ - url
+ title: TaxIDsList
type: object
x-expandableFields:
- data
@@ -102681,13 +116312,195 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/tax_codes/{id}':
- get:
+ post:
+ description: Creates a new account or customer tax_id
object.
+ operationId: PostTaxIds
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ owner:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ owner:
+ description: >-
+ The account or customer the tax ID belongs to. Defaults to
+ `owner[type]=self`.
+ properties:
+ account:
+ type: string
+ customer:
+ maxLength: 5000
+ type: string
+ type:
+ enum:
+ - account
+ - application
+ - customer
+ - self
+ type: string
+ required:
+ - type
+ title: owner_params
+ type: object
+ type:
+ description: >-
+ Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`,
+ `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`,
+ `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`,
+ `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`,
+ `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`,
+ `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`,
+ `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`,
+ `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`,
+ `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`,
+ `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`,
+ `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`,
+ `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`,
+ `vn_tin`, or `za_vat`
+ enum:
+ - ad_nrt
+ - ae_trn
+ - ar_cuit
+ - au_abn
+ - au_arn
+ - bg_uic
+ - bo_tin
+ - br_cnpj
+ - br_cpf
+ - ca_bn
+ - ca_gst_hst
+ - ca_pst_bc
+ - ca_pst_mb
+ - ca_pst_sk
+ - ca_qst
+ - ch_vat
+ - cl_tin
+ - cn_tin
+ - co_nit
+ - cr_tin
+ - do_rcn
+ - ec_ruc
+ - eg_tin
+ - es_cif
+ - eu_oss_vat
+ - eu_vat
+ - gb_vat
+ - ge_vat
+ - hk_br
+ - hu_tin
+ - id_npwp
+ - il_vat
+ - in_gst
+ - is_vat
+ - jp_cn
+ - jp_rn
+ - jp_trn
+ - ke_pin
+ - kr_brn
+ - li_uid
+ - mx_rfc
+ - my_frp
+ - my_itn
+ - my_sst
+ - no_vat
+ - no_voec
+ - nz_gst
+ - pe_ruc
+ - ph_tin
+ - ro_tin
+ - rs_pib
+ - ru_inn
+ - ru_kpp
+ - sa_vat
+ - sg_gst
+ - sg_uen
+ - si_tin
+ - sv_nit
+ - th_vat
+ - tr_tin
+ - tw_vat
+ - ua_vat
+ - us_ein
+ - uy_ruc
+ - ve_rif
+ - vn_tin
+ - za_vat
+ maxLength: 5000
+ type: string
+ x-stripeBypassValidation: true
+ value:
+ description: Value of the tax ID.
+ type: string
+ required:
+ - type
+ - value
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/tax_id'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/tax_ids/{id}':
+ delete:
description: >-
- Retrieves the details of an existing tax code. Supply the unique tax
- code ID and Stripe will return the corresponding tax code
- information.
- operationId: GetTaxCodesId
+ Deletes an existing account or customer tax_id
+ object.
+ operationId: DeleteTaxIdsId
+ parameters:
+ - in: path
+ name: id
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding: {}
+ schema:
+ additionalProperties: false
+ properties: {}
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/deleted_tax_id'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ get:
+ description: Retrieves an account or customer tax_id
object.
+ operationId: GetTaxIdsId
parameters:
- description: Specifies which fields in the response should be expanded.
explode: true
@@ -102721,7 +116534,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/tax_code'
+ $ref: '#/components/schemas/tax_id'
description: Successful response.
default:
content:
@@ -102968,9 +116781,9 @@ paths:
- qst
- rst
- sales_tax
- - service_tax
- vat
type: string
+ x-stripeBypassValidation: true
required:
- display_name
- inclusive
@@ -103135,9 +116948,9 @@ paths:
- qst
- rst
- sales_tax
- - service_tax
- vat
type: string
+ x-stripeBypassValidation: true
type: object
required: false
responses:
@@ -103279,6 +117092,9 @@ paths:
expand:
explode: true
style: deepObject
+ offline:
+ explode: true
+ style: deepObject
tipping:
explode: true
style: deepObject
@@ -103307,6 +117123,23 @@ paths:
maxLength: 5000
type: string
type: array
+ name:
+ description: Name of the configuration
+ maxLength: 100
+ type: string
+ offline:
+ anyOf:
+ - properties:
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: offline
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: Configurations for collecting transactions offline.
tipping:
anyOf:
- properties:
@@ -103641,6 +117474,9 @@ paths:
expand:
explode: true
style: deepObject
+ offline:
+ explode: true
+ style: deepObject
tipping:
explode: true
style: deepObject
@@ -103673,6 +117509,23 @@ paths:
maxLength: 5000
type: string
type: array
+ name:
+ description: Name of the configuration
+ maxLength: 100
+ type: string
+ offline:
+ anyOf:
+ - properties:
+ enabled:
+ type: boolean
+ required:
+ - enabled
+ title: offline
+ type: object
+ - enum:
+ - ''
+ type: string
+ description: Configurations for collecting transactions offline.
tipping:
anyOf:
- properties:
@@ -104368,6 +118221,7 @@ paths:
- bbpos_chipper2x
- bbpos_wisepad3
- bbpos_wisepos_e
+ - mobile_phone_reader
- simulated_wisepos_e
- stripe_m2
- verifone_P400
@@ -104773,10 +118627,239 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/terminal/readers/{reader}/process_payment_intent':
+ '/v1/terminal/readers/{reader}/process_payment_intent':
+ post:
+ description: Initiates a payment flow on a Reader.
+ operationId: PostTerminalReadersReaderProcessPaymentIntent
+ parameters:
+ - in: path
+ name: reader
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ process_config:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ payment_intent:
+ description: PaymentIntent ID
+ maxLength: 5000
+ type: string
+ process_config:
+ description: Configuration overrides
+ properties:
+ enable_customer_cancellation:
+ type: boolean
+ skip_tipping:
+ type: boolean
+ tipping:
+ properties:
+ amount_eligible:
+ type: integer
+ title: tipping_config
+ type: object
+ title: process_config
+ type: object
+ required:
+ - payment_intent
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/terminal.reader'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/terminal/readers/{reader}/process_setup_intent':
+ post:
+ description: Initiates a setup intent flow on a Reader.
+ operationId: PostTerminalReadersReaderProcessSetupIntent
+ parameters:
+ - in: path
+ name: reader
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ process_config:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ customer_consent_collected:
+ description: Customer Consent Collected
+ type: boolean
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ process_config:
+ description: Configuration overrides
+ properties:
+ enable_customer_cancellation:
+ type: boolean
+ title: process_setup_config
+ type: object
+ setup_intent:
+ description: SetupIntent ID
+ maxLength: 5000
+ type: string
+ required:
+ - customer_consent_collected
+ - setup_intent
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/terminal.reader'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/terminal/readers/{reader}/refund_payment':
+ post:
+ description: Initiates a refund on a Reader
+ operationId: PostTerminalReadersReaderRefundPayment
+ parameters:
+ - in: path
+ name: reader
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ metadata:
+ explode: true
+ style: deepObject
+ refund_payment_config:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ amount:
+ description: >-
+ A positive integer in __cents__ representing how much of
+ this charge to refund.
+ type: integer
+ charge:
+ description: ID of the Charge to refund.
+ maxLength: 5000
+ type: string
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ metadata:
+ additionalProperties:
+ type: string
+ description: >-
+ Set of [key-value
+ pairs](https://stripe.com/docs/api/metadata) that you can
+ attach to an object. This can be useful for storing
+ additional information about the object in a structured
+ format. Individual keys can be unset by posting an empty
+ value to them. All keys can be unset by posting an empty
+ value to `metadata`.
+ type: object
+ payment_intent:
+ description: ID of the PaymentIntent to refund.
+ maxLength: 5000
+ type: string
+ refund_application_fee:
+ description: >-
+ Boolean indicating whether the application fee should be
+ refunded when refunding this charge. If a full charge refund
+ is given, the full application fee will be refunded.
+ Otherwise, the application fee will be refunded in an amount
+ proportional to the amount of the charge refunded. An
+ application fee can be refunded only by the application that
+ created the charge.
+ type: boolean
+ refund_payment_config:
+ description: Configuration overrides
+ properties:
+ enable_customer_cancellation:
+ type: boolean
+ title: refund_payment_config
+ type: object
+ reverse_transfer:
+ description: >-
+ Boolean indicating whether the transfer should be reversed
+ when refunding this charge. The transfer will be reversed
+ proportionally to the amount being refunded (either the
+ entire or partial amount). A transfer can be reversed only
+ by the application that created the charge.
+ type: boolean
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/terminal.reader'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/terminal/readers/{reader}/set_reader_display':
post:
- description: Initiates a payment flow on a Reader.
- operationId: PostTerminalReadersReaderProcessPaymentIntent
+ description: Sets reader display to show cart details.
+ operationId: PostTerminalReadersReaderSetReaderDisplay
parameters:
- in: path
name: reader
@@ -104789,40 +118872,60 @@ paths:
content:
application/x-www-form-urlencoded:
encoding:
- expand:
+ cart:
explode: true
style: deepObject
- process_config:
+ expand:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
+ cart:
+ description: Cart
+ properties:
+ currency:
+ type: string
+ line_items:
+ items:
+ properties:
+ amount:
+ type: integer
+ description:
+ maxLength: 5000
+ type: string
+ quantity:
+ type: integer
+ required:
+ - amount
+ - description
+ - quantity
+ title: line_item
+ type: object
+ type: array
+ tax:
+ type: integer
+ total:
+ type: integer
+ required:
+ - currency
+ - line_items
+ - total
+ title: cart
+ type: object
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
- payment_intent:
- description: PaymentIntent ID
- maxLength: 5000
+ type:
+ description: Type
+ enum:
+ - cart
type: string
- process_config:
- description: Configuration overrides
- properties:
- skip_tipping:
- type: boolean
- tipping:
- properties:
- amount_eligible:
- type: integer
- title: tipping_config
- type: object
- title: process_config
- type: object
required:
- - payment_intent
+ - type
type: object
required: true
responses:
@@ -104838,18 +118941,12 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
- '/v1/terminal/readers/{reader}/process_setup_intent':
+ /v1/test_helpers/confirmation_tokens:
post:
- description: Initiates a setup intent flow on a Reader.
- operationId: PostTerminalReadersReaderProcessSetupIntent
- parameters:
- - in: path
- name: reader
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
+ description: >-
+ Creates a test mode Confirmation Token server side for your
+ integration tests.
+ operationId: PostTestHelpersConfirmationTokens
requestBody:
content:
application/x-www-form-urlencoded:
@@ -104857,215 +118954,527 @@ paths:
expand:
explode: true
style: deepObject
- process_config:
+ payment_method_data:
+ explode: true
+ style: deepObject
+ shipping:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
- customer_consent_collected:
- description: Customer Consent Collected
- type: boolean
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
- process_config:
- description: Configuration overrides
- properties: {}
- title: process_setup_config
+ payment_method:
+ description: ID of an existing PaymentMethod.
+ maxLength: 5000
+ type: string
+ payment_method_data:
+ description: >-
+ If provided, this hash will be used to create a
+ PaymentMethod.
+ properties:
+ acss_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ institution_number:
+ maxLength: 5000
+ type: string
+ transit_number:
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - institution_number
+ - transit_number
+ title: payment_method_param
+ type: object
+ affirm:
+ properties: {}
+ title: param
+ type: object
+ afterpay_clearpay:
+ properties: {}
+ title: param
+ type: object
+ alipay:
+ properties: {}
+ title: param
+ type: object
+ au_becs_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ bsb_number:
+ maxLength: 5000
+ type: string
+ required:
+ - account_number
+ - bsb_number
+ title: param
+ type: object
+ bacs_debit:
+ properties:
+ account_number:
+ maxLength: 5000
+ type: string
+ sort_code:
+ maxLength: 5000
+ type: string
+ title: param
+ type: object
+ bancontact:
+ properties: {}
+ title: param
+ type: object
+ billing_details:
+ properties:
+ address:
+ anyOf:
+ - properties:
+ city:
+ maxLength: 5000
+ type: string
+ country:
+ maxLength: 5000
+ type: string
+ line1:
+ maxLength: 5000
+ type: string
+ line2:
+ maxLength: 5000
+ type: string
+ postal_code:
+ maxLength: 5000
+ type: string
+ state:
+ maxLength: 5000
+ type: string
+ title: billing_details_address
+ type: object
+ - enum:
+ - ''
+ type: string
+ email:
+ anyOf:
+ - type: string
+ - enum:
+ - ''
+ type: string
+ name:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ phone:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: billing_details_inner_params
+ type: object
+ blik:
+ properties: {}
+ title: param
+ type: object
+ boleto:
+ properties:
+ tax_id:
+ maxLength: 5000
+ type: string
+ required:
+ - tax_id
+ title: param
+ type: object
+ cashapp:
+ properties: {}
+ title: param
+ type: object
+ customer_balance:
+ properties: {}
+ title: param
+ type: object
+ eps:
+ properties:
+ bank:
+ enum:
+ - arzte_und_apotheker_bank
+ - austrian_anadi_bank_ag
+ - bank_austria
+ - bankhaus_carl_spangler
+ - bankhaus_schelhammer_und_schattera_ag
+ - bawag_psk_ag
+ - bks_bank_ag
+ - brull_kallmus_bank_ag
+ - btv_vier_lander_bank
+ - capital_bank_grawe_gruppe_ag
+ - deutsche_bank_ag
+ - dolomitenbank
+ - easybank_ag
+ - erste_bank_und_sparkassen
+ - hypo_alpeadriabank_international_ag
+ - hypo_bank_burgenland_aktiengesellschaft
+ - hypo_noe_lb_fur_niederosterreich_u_wien
+ - hypo_oberosterreich_salzburg_steiermark
+ - hypo_tirol_bank_ag
+ - hypo_vorarlberg_bank_ag
+ - marchfelder_bank
+ - oberbank_ag
+ - raiffeisen_bankengruppe_osterreich
+ - schoellerbank_ag
+ - sparda_bank_wien
+ - volksbank_gruppe
+ - volkskreditbank_ag
+ - vr_bank_braunau
+ maxLength: 5000
+ type: string
+ title: param
+ type: object
+ fpx:
+ properties:
+ bank:
+ enum:
+ - affin_bank
+ - agrobank
+ - alliance_bank
+ - ambank
+ - bank_islam
+ - bank_muamalat
+ - bank_of_china
+ - bank_rakyat
+ - bsn
+ - cimb
+ - deutsche_bank
+ - hong_leong_bank
+ - hsbc
+ - kfh
+ - maybank2e
+ - maybank2u
+ - ocbc
+ - pb_enterprise
+ - public_bank
+ - rhb
+ - standard_chartered
+ - uob
+ maxLength: 5000
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - bank
+ title: param
+ type: object
+ giropay:
+ properties: {}
+ title: param
+ type: object
+ grabpay:
+ properties: {}
+ title: param
+ type: object
+ ideal:
+ properties:
+ bank:
+ enum:
+ - abn_amro
+ - asn_bank
+ - bunq
+ - handelsbanken
+ - ing
+ - knab
+ - moneyou
+ - n26
+ - nn
+ - rabobank
+ - regiobank
+ - revolut
+ - sns_bank
+ - triodos_bank
+ - van_lanschot
+ - yoursafe
+ maxLength: 5000
+ type: string
+ title: param
+ type: object
+ interac_present:
+ properties: {}
+ title: param
+ type: object
+ klarna:
+ properties:
+ dob:
+ properties:
+ day:
+ type: integer
+ month:
+ type: integer
+ year:
+ type: integer
+ required:
+ - day
+ - month
+ - year
+ title: date_of_birth
+ type: object
+ title: param
+ type: object
+ konbini:
+ properties: {}
+ title: param
+ type: object
+ link:
+ properties: {}
+ title: param
+ type: object
+ metadata:
+ additionalProperties:
+ type: string
+ type: object
+ mobilepay:
+ properties: {}
+ title: param
+ type: object
+ oxxo:
+ properties: {}
+ title: param
+ type: object
+ p24:
+ properties:
+ bank:
+ enum:
+ - alior_bank
+ - bank_millennium
+ - bank_nowy_bfg_sa
+ - bank_pekao_sa
+ - banki_spbdzielcze
+ - blik
+ - bnp_paribas
+ - boz
+ - citi_handlowy
+ - credit_agricole
+ - envelobank
+ - etransfer_pocztowy24
+ - getin_bank
+ - ideabank
+ - ing
+ - inteligo
+ - mbank_mtransfer
+ - nest_przelew
+ - noble_pay
+ - pbac_z_ipko
+ - plus_bank
+ - santander_przelew24
+ - tmobile_usbugi_bankowe
+ - toyota_bank
+ - velobank
+ - volkswagen_bank
+ type: string
+ x-stripeBypassValidation: true
+ title: param
+ type: object
+ paynow:
+ properties: {}
+ title: param
+ type: object
+ paypal:
+ properties: {}
+ title: param
+ type: object
+ pix:
+ properties: {}
+ title: param
+ type: object
+ promptpay:
+ properties: {}
+ title: param
+ type: object
+ radar_options:
+ properties:
+ session:
+ maxLength: 5000
+ type: string
+ title: radar_options_with_hidden_options
+ type: object
+ revolut_pay:
+ properties: {}
+ title: param
+ type: object
+ sepa_debit:
+ properties:
+ iban:
+ maxLength: 5000
+ type: string
+ required:
+ - iban
+ title: param
+ type: object
+ sofort:
+ properties:
+ country:
+ enum:
+ - AT
+ - BE
+ - DE
+ - ES
+ - IT
+ - NL
+ type: string
+ required:
+ - country
+ title: param
+ type: object
+ swish:
+ properties: {}
+ title: param
+ type: object
+ type:
+ enum:
+ - acss_debit
+ - affirm
+ - afterpay_clearpay
+ - alipay
+ - au_becs_debit
+ - bacs_debit
+ - bancontact
+ - blik
+ - boleto
+ - cashapp
+ - customer_balance
+ - eps
+ - fpx
+ - giropay
+ - grabpay
+ - ideal
+ - klarna
+ - konbini
+ - link
+ - mobilepay
+ - oxxo
+ - p24
+ - paynow
+ - paypal
+ - pix
+ - promptpay
+ - revolut_pay
+ - sepa_debit
+ - sofort
+ - swish
+ - us_bank_account
+ - wechat_pay
+ - zip
+ type: string
+ x-stripeBypassValidation: true
+ us_bank_account:
+ properties:
+ account_holder_type:
+ enum:
+ - company
+ - individual
+ type: string
+ account_number:
+ maxLength: 5000
+ type: string
+ account_type:
+ enum:
+ - checking
+ - savings
+ type: string
+ financial_connections_account:
+ maxLength: 5000
+ type: string
+ routing_number:
+ maxLength: 5000
+ type: string
+ title: payment_method_param
+ type: object
+ wechat_pay:
+ properties: {}
+ title: param
+ type: object
+ zip:
+ properties: {}
+ title: param
+ type: object
+ required:
+ - type
+ title: payment_method_data_params
type: object
- setup_intent:
- description: SetupIntent ID
- maxLength: 5000
- type: string
- required:
- - customer_consent_collected
- - setup_intent
- type: object
- required: true
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/terminal.reader'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/terminal/readers/{reader}/refund_payment':
- post:
- description: Initiates a refund on a Reader
- operationId: PostTerminalReadersReaderRefundPayment
- parameters:
- - in: path
- name: reader
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- expand:
- explode: true
- style: deepObject
- metadata:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- amount:
- description: >-
- A positive integer in __cents__ representing how much of
- this charge to refund.
- type: integer
- charge:
- description: ID of the Charge to refund.
- maxLength: 5000
+ return_url:
+ description: Return URL used to confirm the Intent.
type: string
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- metadata:
- additionalProperties:
- type: string
+ setup_future_usage:
description: >-
- Set of [key-value
- pairs](https://stripe.com/docs/api/metadata) that you can
- attach to an object. This can be useful for storing
- additional information about the object in a structured
- format. Individual keys can be unset by posting an empty
- value to them. All keys can be unset by posting an empty
- value to `metadata`.
- type: object
- payment_intent:
- description: ID of the PaymentIntent to refund.
- maxLength: 5000
+ Indicates that you intend to make future payments with this
+ ConfirmationToken's payment method.
+
+
+ The presence of this property will [attach the payment
+ method](https://stripe.com/docs/payments/save-during-payment)
+ to the PaymentIntent's Customer, if present, after the
+ PaymentIntent is confirmed and any required actions from the
+ user are complete.
+ enum:
+ - off_session
+ - on_session
type: string
- refund_application_fee:
- description: >-
- Boolean indicating whether the application fee should be
- refunded when refunding this charge. If a full charge refund
- is given, the full application fee will be refunded.
- Otherwise, the application fee will be refunded in an amount
- proportional to the amount of the charge refunded. An
- application fee can be refunded only by the application that
- created the charge.
- type: boolean
- reverse_transfer:
- description: >-
- Boolean indicating whether the transfer should be reversed
- when refunding this charge. The transfer will be reversed
- proportionally to the amount being refunded (either the
- entire or partial amount). A transfer can be reversed only
- by the application that created the charge.
- type: boolean
- type: object
- required: false
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/terminal.reader'
- description: Successful response.
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error'
- description: Error response.
- '/v1/terminal/readers/{reader}/set_reader_display':
- post:
- description: Sets reader display to show cart details.
- operationId: PostTerminalReadersReaderSetReaderDisplay
- parameters:
- - in: path
- name: reader
- required: true
- schema:
- maxLength: 5000
- type: string
- style: simple
- requestBody:
- content:
- application/x-www-form-urlencoded:
- encoding:
- cart:
- explode: true
- style: deepObject
- expand:
- explode: true
- style: deepObject
- schema:
- additionalProperties: false
- properties:
- cart:
- description: Cart
+ shipping:
+ description: Shipping information for this ConfirmationToken.
properties:
- currency:
+ address:
+ properties:
+ city:
+ maxLength: 5000
+ type: string
+ country:
+ maxLength: 5000
+ type: string
+ line1:
+ maxLength: 5000
+ type: string
+ line2:
+ maxLength: 5000
+ type: string
+ postal_code:
+ maxLength: 5000
+ type: string
+ state:
+ maxLength: 5000
+ type: string
+ title: optional_fields_address
+ type: object
+ name:
+ maxLength: 5000
type: string
- line_items:
- items:
- properties:
- amount:
- type: integer
- description:
- maxLength: 5000
- type: string
- quantity:
- type: integer
- required:
- - amount
- - description
- - quantity
- title: line_item
- type: object
- type: array
- tax:
- type: integer
- total:
- type: integer
+ phone:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
required:
- - currency
- - line_items
- - total
- title: cart
+ - address
+ - name
+ title: recipient_shipping_with_optional_fields_address
type: object
- expand:
- description: Specifies which fields in the response should be expanded.
- items:
- maxLength: 5000
- type: string
- type: array
- type:
- description: Type
- enum:
- - cart
- type: string
- required:
- - type
type: object
- required: true
+ required: false
responses:
'200':
content:
application/json:
schema:
- $ref: '#/components/schemas/terminal.reader'
+ $ref: '#/components/schemas/confirmation_token'
description: Successful response.
default:
content:
@@ -105174,7 +119583,7 @@ paths:
amount:
description: >-
The total amount to attempt to authorize. This amount is in
- the provided currency, or defaults to the cards currency,
+ the provided currency, or defaults to the card's currency,
and in the [smallest currency
unit](https://stripe.com/docs/currencies#zero-decimal).
type: integer
@@ -105554,6 +119963,9 @@ paths:
terminal_id:
maxLength: 5000
type: string
+ url:
+ maxLength: 5000
+ type: string
title: merchant_data_specs
type: object
network_data:
@@ -105583,6 +119995,25 @@ paths:
- mismatch
- not_provided
type: string
+ authentication_exemption:
+ properties:
+ claimed_by:
+ enum:
+ - acquirer
+ - issuer
+ type: string
+ type:
+ enum:
+ - low_value_transaction
+ - transaction_risk_analysis
+ - unknown
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - claimed_by
+ - type
+ title: authentication_exemption_specs
+ type: object
cvc_check:
enum:
- match
@@ -105595,6 +120026,20 @@ paths:
- mismatch
- not_provided
type: string
+ three_d_secure:
+ properties:
+ result:
+ enum:
+ - attempt_acknowledged
+ - authenticated
+ - failed
+ - required
+ type: string
+ x-stripeBypassValidation: true
+ required:
+ - result
+ title: three_d_secure_specs
+ type: object
title: verification_data_specs
type: object
wallet:
@@ -106113,6 +120558,178 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
+ '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate':
+ post:
+ description: >-
+ Updates the status
of the specified testmode
+ personalization design object to active
.
+ operationId: >-
+ PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate
+ parameters:
+ - in: path
+ name: personalization_design
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.personalization_design'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate':
+ post:
+ description: >-
+ Updates the status
of the specified testmode
+ personalization design object to inactive
.
+ operationId: >-
+ PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate
+ parameters:
+ - in: path
+ name: personalization_design
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ type: object
+ required: false
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.personalization_design'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
+ '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject':
+ post:
+ description: >-
+ Updates the status
of the specified testmode
+ personalization design object to rejected
.
+ operationId: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject
+ parameters:
+ - in: path
+ name: personalization_design
+ required: true
+ schema:
+ maxLength: 5000
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ encoding:
+ expand:
+ explode: true
+ style: deepObject
+ rejection_reasons:
+ explode: true
+ style: deepObject
+ schema:
+ additionalProperties: false
+ properties:
+ expand:
+ description: Specifies which fields in the response should be expanded.
+ items:
+ maxLength: 5000
+ type: string
+ type: array
+ rejection_reasons:
+ description: The reason(s) the personalization design was rejected.
+ properties:
+ card_logo:
+ items:
+ enum:
+ - geographic_location
+ - inappropriate
+ - network_name
+ - non_binary_image
+ - non_fiat_currency
+ - other
+ - other_entity
+ - promotional_material
+ type: string
+ type: array
+ carrier_text:
+ items:
+ enum:
+ - geographic_location
+ - inappropriate
+ - network_name
+ - non_fiat_currency
+ - other
+ - other_entity
+ - promotional_material
+ type: string
+ type: array
+ title: rejection_reasons_param
+ type: object
+ required:
+ - rejection_reasons
+ type: object
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/issuing.personalization_design'
+ description: Successful response.
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/error'
+ description: Error response.
/v1/test_helpers/issuing/transactions/create_force_capture:
post:
description: >-
@@ -106491,6 +121108,9 @@ paths:
terminal_id:
maxLength: 5000
type: string
+ url:
+ maxLength: 5000
+ type: string
title: merchant_data_specs
type: object
purchase_details:
@@ -106988,6 +121608,9 @@ paths:
terminal_id:
maxLength: 5000
type: string
+ url:
+ maxLength: 5000
+ type: string
title: merchant_data_specs
type: object
purchase_details:
@@ -108110,7 +122733,12 @@ paths:
title: source_params
type: object
network:
- description: The rails used for the object.
+ description: >-
+ Specifies the network rails to be used. If not set, will
+ default to the PaymentMethod's preferred network. See the
+ [docs](https://stripe.com/docs/treasury/money-movement/timelines)
+ to learn more about money movement timelines for each
+ network type.
enum:
- ach
- us_domestic_wire
@@ -108205,7 +122833,12 @@ paths:
title: source_params
type: object
network:
- description: The rails used for the object.
+ description: >-
+ Specifies the network rails to be used. If not set, will
+ default to the PaymentMethod's preferred network. See the
+ [docs](https://stripe.com/docs/treasury/money-movement/timelines)
+ to learn more about money movement timelines for each
+ network type.
enum:
- ach
type: string
@@ -108234,9 +122867,9 @@ paths:
description: >-
Creates a single-use token that represents a bank account’s details.
- This token can be used with any API method in place of a bank account
- dictionary. This token can be used only once, by attaching it to a Custom account.
+ You can use this token with any API method in place of a bank account
+ dictionary. You can only use this token once. To do so, attach it to a
+ Custom account.
operationId: PostTokens
requestBody:
content:
@@ -108267,7 +122900,7 @@ paths:
additionalProperties: false
properties:
account:
- description: Information for the account this token will represent.
+ description: Information for the account this token represents.
properties:
business_type:
enum:
@@ -108410,6 +123043,7 @@ paths:
- public_company
- public_corporation
- public_partnership
+ - registered_charity
- single_member_llc
- sole_establishment
- sole_proprietorship
@@ -108613,6 +123247,25 @@ paths:
type: string
title: address_specs
type: object
+ relationship:
+ properties:
+ director:
+ type: boolean
+ executive:
+ type: boolean
+ owner:
+ type: boolean
+ percent_ownership:
+ anyOf:
+ - type: number
+ - enum:
+ - ''
+ type: string
+ title:
+ maxLength: 5000
+ type: string
+ title: individual_relationship_specs
+ type: object
ssn_last_4:
maxLength: 5000
type: string
@@ -108674,6 +123327,9 @@ paths:
type: string
currency:
type: string
+ payment_method:
+ maxLength: 5000
+ type: string
routing_number:
maxLength: 5000
type: string
@@ -108719,6 +123375,16 @@ paths:
name:
maxLength: 5000
type: string
+ networks:
+ properties:
+ preferred:
+ enum:
+ - cartes_bancaires
+ - mastercard
+ - visa
+ type: string
+ title: networks_param_specs
+ type: object
number:
maxLength: 5000
type: string
@@ -108739,18 +123405,18 @@ paths:
x-stripeBypassValidation: true
customer:
description: >-
- The customer (owned by the application's account) for which
- to create a token. This can be used only with an [OAuth
+ Create a token for the customer, which is owned by the
+ application's account. You can only use this with an [OAuth
access
token](https://stripe.com/docs/connect/standard-accounts) or
[Stripe-Account
- header](https://stripe.com/docs/connect/authentication). For
- more details, see [Cloning Saved Payment
- Methods](https://stripe.com/docs/connect/cloning-saved-payment-methods).
+ header](https://stripe.com/docs/connect/authentication).
+ Learn more about [cloning saved payment
+ methods](https://stripe.com/docs/connect/cloning-saved-payment-methods).
maxLength: 5000
type: string
cvc_update:
- description: The updated CVC value this token will represent.
+ description: The updated CVC value this token represents.
properties:
cvc:
maxLength: 5000
@@ -108766,8 +123432,28 @@ paths:
type: string
type: array
person:
- description: Information for the person this token will represent.
+ description: Information for the person this token represents.
properties:
+ additional_tos_acceptances:
+ properties:
+ account:
+ properties:
+ date:
+ format: unix-time
+ type: integer
+ ip:
+ type: string
+ user_agent:
+ anyOf:
+ - maxLength: 5000
+ type: string
+ - enum:
+ - ''
+ type: string
+ title: settings_terms_of_service_specs
+ type: object
+ title: person_additional_tos_acceptances_specs
+ type: object
address:
properties:
city:
@@ -108985,6 +123671,8 @@ paths:
type: boolean
executive:
type: boolean
+ legal_guardian:
+ type: boolean
owner:
type: boolean
percent_ownership:
@@ -109029,7 +123717,7 @@ paths:
title: person_token_specs
type: object
pii:
- description: The PII this token will represent.
+ description: The PII this token represents.
properties:
id_number:
maxLength: 5000
@@ -109518,7 +124206,10 @@ paths:
transfers appearing first.
operationId: GetTransfers
parameters:
- - explode: true
+ - description: >-
+ Only return transfers that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -110704,7 +125395,10 @@ paths:
description: Returns a list of FinancialAccounts.
operationId: GetTreasuryFinancialAccounts
parameters:
- - explode: true
+ - description: >-
+ Only return FinancialAccounts that were created during the given
+ date interval.
+ explode: true
in: query
name: created
required: false
@@ -111743,6 +126437,28 @@ paths:
FinancialAccount.
operationId: GetTreasuryOutboundPayments
parameters:
+ - description: >-
+ Only return OutboundPayments that were created during the given date
+ interval.
+ explode: true
+ in: query
+ name: created
+ required: false
+ schema:
+ anyOf:
+ - properties:
+ gt:
+ type: integer
+ gte:
+ type: integer
+ lt:
+ type: integer
+ lte:
+ type: integer
+ title: range_query_specs
+ type: object
+ - type: integer
+ style: deepObject
- description: Only return OutboundPayments sent to this customer.
in: query
name: customer
@@ -112079,8 +126795,9 @@ paths:
The description that appears on the receiving end for this
OutboundPayment (for example, bank statement for external
bank transfer). Maximum 10 characters for `ach` payments,
- 140 characters for `wire` payments, or 500 characters for
- `stripe` network transfers. The default value is `payment`.
+ 140 characters for `us_domestic_wire` payments, or 500
+ characters for `stripe` network transfers. The default value
+ is "payment".
maxLength: 5000
type: string
required:
@@ -112405,8 +127122,8 @@ paths:
description: >-
Statement descriptor to be shown on the receiving end of an
OutboundTransfer. Maximum 10 characters for `ach` transfers
- or 140 characters for `wire` transfers. The default value is
- `transfer`.
+ or 140 characters for `us_domestic_wire` transfers. The
+ default value is "transfer".
maxLength: 5000
type: string
required:
@@ -112888,7 +127605,10 @@ paths:
description: Retrieves a list of TransactionEntry objects.
operationId: GetTreasuryTransactionEntries
parameters:
- - explode: true
+ - description: >-
+ Only return TransactionEntries that were created during the given
+ date interval.
+ explode: true
in: query
name: created
required: false
@@ -113103,7 +127823,10 @@ paths:
description: Retrieves a list of Transaction objects.
operationId: GetTreasuryTransactions
parameters:
- - explode: true
+ - description: >-
+ Only return Transactions that were created during the given date
+ interval.
+ explode: true
in: query
name: created
required: false
@@ -113566,6 +128289,8 @@ paths:
- '2022-08-01'
- '2022-11-15'
- '2023-08-16'
+ - '2023-10-16'
+ - '2024-04-10'
maxLength: 5000
type: string
x-stripeBypassValidation: true
@@ -113623,6 +128348,13 @@ paths:
- checkout.session.async_payment_succeeded
- checkout.session.completed
- checkout.session.expired
+ - climate.order.canceled
+ - climate.order.created
+ - climate.order.delayed
+ - climate.order.delivered
+ - climate.order.product_substituted
+ - climate.product.created
+ - climate.product.pricing_updated
- coupon.created
- coupon.deleted
- coupon.updated
@@ -113657,6 +128389,8 @@ paths:
- financial_connections.account.disconnected
- financial_connections.account.reactivated
- financial_connections.account.refreshed_balance
+ - financial_connections.account.refreshed_ownership
+ - financial_connections.account.refreshed_transactions
- identity.verification_session.canceled
- identity.verification_session.created
- identity.verification_session.processing
@@ -113690,6 +128424,8 @@ paths:
- issuing_dispute.funds_reinstated
- issuing_dispute.submitted
- issuing_dispute.updated
+ - issuing_token.created
+ - issuing_token.updated
- issuing_transaction.created
- issuing_transaction.updated
- mandate.updated
@@ -114017,6 +128753,13 @@ paths:
- checkout.session.async_payment_succeeded
- checkout.session.completed
- checkout.session.expired
+ - climate.order.canceled
+ - climate.order.created
+ - climate.order.delayed
+ - climate.order.delivered
+ - climate.order.product_substituted
+ - climate.product.created
+ - climate.product.pricing_updated
- coupon.created
- coupon.deleted
- coupon.updated
@@ -114051,6 +128794,8 @@ paths:
- financial_connections.account.disconnected
- financial_connections.account.reactivated
- financial_connections.account.refreshed_balance
+ - financial_connections.account.refreshed_ownership
+ - financial_connections.account.refreshed_transactions
- identity.verification_session.canceled
- identity.verification_session.created
- identity.verification_session.processing
@@ -114084,6 +128829,8 @@ paths:
- issuing_dispute.funds_reinstated
- issuing_dispute.submitted
- issuing_dispute.updated
+ - issuing_token.created
+ - issuing_token.updated
- issuing_transaction.created
- issuing_transaction.updated
- mandate.updated
diff --git a/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts
index bf667dfb..3a4c69be 100644
--- a/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts
+++ b/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts
@@ -66,6 +66,7 @@ import {
t_code_scanning_default_setup_update_response,
t_code_scanning_organization_alert_items,
t_code_scanning_ref,
+ t_code_scanning_ref_full,
t_code_scanning_sarifs_receipt,
t_code_scanning_sarifs_status,
t_code_search_result_item,
@@ -75,6 +76,7 @@ import {
t_codespace_machine,
t_codespace_with_full_repository,
t_codespaces_org_secret,
+ t_codespaces_permissions_check_for_devcontainer,
t_codespaces_public_key,
t_codespaces_secret,
t_codespaces_user_public_key,
@@ -97,6 +99,7 @@ import {
t_copilot_organization_details,
t_copilot_seat_details,
t_custom_deployment_rule_app,
+ t_custom_property_value,
t_dependabot_alert,
t_dependabot_alert_with_repository,
t_dependabot_public_key,
@@ -107,6 +110,7 @@ import {
t_deployment,
t_deployment_branch_policy,
t_deployment_branch_policy_name_pattern,
+ t_deployment_branch_policy_name_pattern_with_type,
t_deployment_branch_policy_settings,
t_deployment_protection_rule,
t_deployment_reviewer_type,
@@ -164,16 +168,20 @@ import {
t_minimal_repository,
t_oidc_custom_sub,
t_oidc_custom_sub_repo,
+ t_org_custom_property,
t_org_hook,
t_org_membership,
+ t_org_repo_custom_property_values,
t_org_ruleset_conditions,
t_organization_actions_secret,
t_organization_actions_variable,
t_organization_dependabot_secret,
+ t_organization_fine_grained_permission,
t_organization_full,
t_organization_invitation,
t_organization_programmatic_access_grant,
t_organization_programmatic_access_grant_request,
+ t_organization_role,
t_organization_secret_scanning_alert,
t_organization_simple,
t_package,
@@ -183,11 +191,13 @@ import {
t_page_build,
t_page_build_status,
t_page_deployment,
+ t_pages_deployment_status,
t_pages_health_check,
t_participation_stats,
t_pending_deployment,
t_porter_author,
t_porter_large_file,
+ t_prevent_self_review,
t_private_user,
t_private_vulnerability_report_create,
t_project,
@@ -229,6 +239,8 @@ import {
t_review_custom_gates_comment_required,
t_review_custom_gates_state_required,
t_root,
+ t_rule_suite,
+ t_rule_suites,
t_runner,
t_runner_application,
t_runner_label,
@@ -238,6 +250,7 @@ import {
t_secret_scanning_alert_resolution_comment,
t_secret_scanning_alert_state,
t_secret_scanning_location,
+ t_security_advisory_ecosystems,
t_selected_actions,
t_short_blob,
t_short_branch,
@@ -379,19 +392,7 @@ export class ApiClient {
ghsaId?: string
type?: "reviewed" | "malware" | "unreviewed"
cveId?: string
- ecosystem?:
- | "actions"
- | "composer"
- | "erlang"
- | "go"
- | "maven"
- | "npm"
- | "nuget"
- | "other"
- | "pip"
- | "pub"
- | "rubygems"
- | "rust"
+ ecosystem?: t_security_advisory_ecosystems
severity?: "unknown" | "low" | "medium" | "high" | "critical"
cwes?: string | string[]
isWithdrawn?: boolean
@@ -1140,6 +1141,7 @@ export class ApiClient {
perPage?: number
before?: string
after?: string
+ validity?: string
}): Observable<
| (HttpResponse & { status: 200 })
| (HttpResponse & { status: 404 })
@@ -1159,6 +1161,7 @@ export class ApiClient {
per_page: p["perPage"],
before: p["before"],
after: p["after"],
+ validity: p["validity"],
})
return this.httpClient.request(
@@ -2227,6 +2230,21 @@ export class ApiClient {
)
}
+ activityMarkThreadAsDone(p: {
+ threadId: number
+ }): Observable<
+ (HttpResponse & { status: 204 }) | HttpResponse
+ > {
+ return this.httpClient.request(
+ "DELETE",
+ this.config.basePath + `/notifications/threads/${p["threadId"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
activityGetThreadSubscriptionForAuthenticatedUser(p: {
threadId: number
}): Observable<
@@ -3877,6 +3895,7 @@ export class ApiClient {
| (HttpResponse & { status: 401 })
| (HttpResponse & { status: 403 })
| (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
| (HttpResponse & { status: 500 })
| HttpResponse
> {
@@ -3921,7 +3940,7 @@ export class ApiClient {
)
}
- copilotAddCopilotForBusinessSeatsForTeams(p: {
+ copilotAddCopilotSeatsForTeams(p: {
org: string
requestBody: {
selected_teams: string[]
@@ -3983,7 +4002,7 @@ export class ApiClient {
)
}
- copilotAddCopilotForBusinessSeatsForUsers(p: {
+ copilotAddCopilotSeatsForUsers(p: {
org: string
requestBody: {
selected_usernames: string[]
@@ -4766,7 +4785,7 @@ export class ApiClient {
requestBody?: {
email?: string
invitee_id?: number
- role?: "admin" | "direct_member" | "billing_manager"
+ role?: "admin" | "direct_member" | "billing_manager" | "reinstate"
team_ids?: number[]
}
}): Observable<
@@ -5030,7 +5049,7 @@ export class ApiClient {
)
}
- copilotGetCopilotSeatAssignmentDetailsForUser(p: {
+ copilotGetCopilotSeatDetailsForUser(p: {
org: string
username: string
}): Observable<
@@ -5284,51 +5303,66 @@ export class ApiClient {
)
}
- orgsListOutsideCollaborators(p: {
+ orgsListOrganizationFineGrainedPermissions(p: {
org: string
- filter?: "2fa_disabled" | "all"
- perPage?: number
- page?: number
}): Observable<
- (HttpResponse & { status: 200 }) | HttpResponse
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | HttpResponse
> {
- const params = this._queryParams({
- filter: p["filter"],
- per_page: p["perPage"],
- page: p["page"],
- })
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/organization-fine-grained-permissions`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+ orgsListOrgRoles(p: {
+ org: string
+ }): Observable<
+ | (HttpResponse<{
+ roles?: t_organization_role[]
+ total_count?: number
+ }> & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | HttpResponse
+ > {
return this.httpClient.request(
"GET",
- this.config.basePath + `/orgs/${p["org"]}/outside_collaborators`,
+ this.config.basePath + `/orgs/${p["org"]}/organization-roles`,
{
- params,
observe: "response",
reportProgress: false,
},
)
}
- orgsConvertMemberToOutsideCollaborator(p: {
+ orgsCreateCustomOrganizationRole(p: {
org: string
- username: string
- requestBody?: {
- async?: boolean
+ requestBody: {
+ description?: string
+ name: string
+ permissions: string[]
}
}): Observable<
- | (HttpResponse & { status: 202 })
- | (HttpResponse & { status: 204 })
- | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 201 })
| (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 409 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
const headers = this._headers({ "Content-Type": "application/json" })
const body = p["requestBody"]
return this.httpClient.request(
- "PUT",
- this.config.basePath +
- `/orgs/${p["org"]}/outside_collaborators/${p["username"]}`,
+ "POST",
+ this.config.basePath + `/orgs/${p["org"]}/organization-roles`,
{
headers,
body,
@@ -5338,21 +5372,16 @@ export class ApiClient {
)
}
- orgsRemoveOutsideCollaborator(p: {
+ orgsRevokeAllOrgRolesTeam(p: {
org: string
- username: string
+ teamSlug: string
}): Observable<
- | (HttpResponse & { status: 204 })
- | (HttpResponse<{
- documentation_url?: string
- message?: string
- }> & { status: 422 })
- | HttpResponse
+ (HttpResponse & { status: 204 }) | HttpResponse
> {
return this.httpClient.request(
"DELETE",
this.config.basePath +
- `/orgs/${p["org"]}/outside_collaborators/${p["username"]}`,
+ `/orgs/${p["org"]}/organization-roles/teams/${p["teamSlug"]}`,
{
observe: "response",
reportProgress: false,
@@ -5360,48 +5389,38 @@ export class ApiClient {
)
}
- packagesListPackagesForOrganization(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ orgsAssignTeamToOrgRole(p: {
org: string
- visibility?: "public" | "private" | "internal"
- page?: number
- perPage?: number
+ teamSlug: string
+ roleId: number
}): Observable<
- | (HttpResponse & { status: 200 })
- | (HttpResponse & { status: 400 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
- const params = this._queryParams({
- package_type: p["packageType"],
- visibility: p["visibility"],
- page: p["page"],
- per_page: p["perPage"],
- })
-
return this.httpClient.request(
- "GET",
- this.config.basePath + `/orgs/${p["org"]}/packages`,
+ "PUT",
+ this.config.basePath +
+ `/orgs/${p["org"]}/organization-roles/teams/${p["teamSlug"]}/${p["roleId"]}`,
{
- params,
observe: "response",
reportProgress: false,
},
)
}
- packagesGetPackageForOrganization(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsRevokeOrgRoleTeam(p: {
org: string
+ teamSlug: string
+ roleId: number
}): Observable<
- (HttpResponse & { status: 200 }) | HttpResponse
+ (HttpResponse & { status: 204 }) | HttpResponse
> {
return this.httpClient.request(
- "GET",
+ "DELETE",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}`,
+ `/orgs/${p["org"]}/organization-roles/teams/${p["teamSlug"]}/${p["roleId"]}`,
{
observe: "response",
reportProgress: false,
@@ -5409,21 +5428,16 @@ export class ApiClient {
)
}
- packagesDeletePackageForOrg(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsRevokeAllOrgRolesUser(p: {
org: string
+ username: string
}): Observable<
- | (HttpResponse & { status: 204 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
- | HttpResponse
+ (HttpResponse & { status: 204 }) | HttpResponse
> {
return this.httpClient.request(
"DELETE",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}`,
+ `/orgs/${p["org"]}/organization-roles/users/${p["username"]}`,
{
observe: "response",
reportProgress: false,
@@ -5431,76 +5445,58 @@ export class ApiClient {
)
}
- packagesRestorePackageForOrg(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsAssignUserToOrgRole(p: {
org: string
- token?: string
+ username: string
+ roleId: number
}): Observable<
| (HttpResponse & { status: 204 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
- const params = this._queryParams({ token: p["token"] })
-
return this.httpClient.request(
- "POST",
+ "PUT",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/restore`,
+ `/orgs/${p["org"]}/organization-roles/users/${p["username"]}/${p["roleId"]}`,
{
- params,
observe: "response",
reportProgress: false,
},
)
}
- packagesGetAllPackageVersionsForPackageOwnedByOrg(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsRevokeOrgRoleUser(p: {
org: string
- page?: number
- perPage?: number
- state?: "active" | "deleted"
+ username: string
+ roleId: number
}): Observable<
- | (HttpResponse & { status: 200 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
- | HttpResponse
+ (HttpResponse & { status: 204 }) | HttpResponse
> {
- const params = this._queryParams({
- page: p["page"],
- per_page: p["perPage"],
- state: p["state"],
- })
-
return this.httpClient.request(
- "GET",
+ "DELETE",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions`,
+ `/orgs/${p["org"]}/organization-roles/users/${p["username"]}/${p["roleId"]}`,
{
- params,
observe: "response",
reportProgress: false,
},
)
}
- packagesGetPackageVersionForOrganization(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsGetOrgRole(p: {
org: string
- packageVersionId: number
+ roleId: number
}): Observable<
- (HttpResponse & { status: 200 }) | HttpResponse
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | HttpResponse
> {
return this.httpClient.request(
"GET",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}`,
+ `/orgs/${p["org"]}/organization-roles/${p["roleId"]}`,
{
observe: "response",
reportProgress: false,
@@ -5508,45 +5504,47 @@ export class ApiClient {
)
}
- packagesDeletePackageVersionForOrg(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsPatchCustomOrganizationRole(p: {
org: string
- packageVersionId: number
+ roleId: number
+ requestBody: {
+ description?: string
+ name?: string
+ permissions?: string[]
+ }
}): Observable<
- | (HttpResponse & { status: 204 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 200 })
| (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 409 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
return this.httpClient.request(
- "DELETE",
+ "PATCH",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}`,
+ `/orgs/${p["org"]}/organization-roles/${p["roleId"]}`,
{
+ headers,
+ body,
observe: "response",
reportProgress: false,
},
)
}
- packagesRestorePackageVersionForOrg(p: {
- packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
- packageName: string
+ orgsDeleteCustomOrganizationRole(p: {
org: string
- packageVersionId: number
+ roleId: number
}): Observable<
- | (HttpResponse & { status: 204 })
- | (HttpResponse & { status: 401 })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
- | HttpResponse
+ (HttpResponse & { status: 204 }) | HttpResponse
> {
return this.httpClient.request(
- "POST",
+ "DELETE",
this.config.basePath +
- `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}/restore`,
+ `/orgs/${p["org"]}/organization-roles/${p["roleId"]}`,
{
observe: "response",
reportProgress: false,
@@ -5554,42 +5552,26 @@ export class ApiClient {
)
}
- orgsListPatGrantRequests(p: {
+ orgsListOrgRoleTeams(p: {
org: string
+ roleId: number
perPage?: number
page?: number
- sort?: "created_at"
- direction?: "asc" | "desc"
- owner?: string[]
- repository?: string
- permission?: string
- lastUsedBefore?: string
- lastUsedAfter?: string
}): Observable<
- | (HttpResponse & {
- status: 200
- })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
- | (HttpResponse & { status: 422 })
- | (HttpResponse & { status: 500 })
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
const params = this._queryParams({
per_page: p["perPage"],
page: p["page"],
- sort: p["sort"],
- direction: p["direction"],
- owner: p["owner"],
- repository: p["repository"],
- permission: p["permission"],
- last_used_before: p["lastUsedBefore"],
- last_used_after: p["lastUsedAfter"],
})
return this.httpClient.request(
"GET",
- this.config.basePath + `/orgs/${p["org"]}/personal-access-token-requests`,
+ this.config.basePath +
+ `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/teams`,
{
params,
observe: "response",
@@ -5598,30 +5580,372 @@ export class ApiClient {
)
}
- orgsReviewPatGrantRequestsInBulk(p: {
+ orgsListOrgRoleUsers(p: {
org: string
- requestBody: {
- action: "approve" | "deny"
- pat_request_ids?: number[]
- reason?: string | null
- }
+ roleId: number
+ perPage?: number
+ page?: number
}): Observable<
- | (HttpResponse<{
- [key: string]: unknown | undefined
- }> & { status: 202 })
- | (HttpResponse & { status: 403 })
- | (HttpResponse & { status: 404 })
- | (HttpResponse & { status: 422 })
- | (HttpResponse & { status: 500 })
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
| HttpResponse
> {
- const headers = this._headers({ "Content-Type": "application/json" })
- const body = p["requestBody"]
+ const params = this._queryParams({
+ per_page: p["perPage"],
+ page: p["page"],
+ })
return this.httpClient.request(
- "POST",
- this.config.basePath + `/orgs/${p["org"]}/personal-access-token-requests`,
- {
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/users`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsListOutsideCollaborators(p: {
+ org: string
+ filter?: "2fa_disabled" | "all"
+ perPage?: number
+ page?: number
+ }): Observable<
+ (HttpResponse & { status: 200 }) | HttpResponse
+ > {
+ const params = this._queryParams({
+ filter: p["filter"],
+ per_page: p["perPage"],
+ page: p["page"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/outside_collaborators`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsConvertMemberToOutsideCollaborator(p: {
+ org: string
+ username: string
+ requestBody?: {
+ async?: boolean
+ }
+ }): Observable<
+ | (HttpResponse & { status: 202 })
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
+ return this.httpClient.request(
+ "PUT",
+ this.config.basePath +
+ `/orgs/${p["org"]}/outside_collaborators/${p["username"]}`,
+ {
+ headers,
+ body,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsRemoveOutsideCollaborator(p: {
+ org: string
+ username: string
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse<{
+ documentation_url?: string
+ message?: string
+ }> & { status: 422 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "DELETE",
+ this.config.basePath +
+ `/orgs/${p["org"]}/outside_collaborators/${p["username"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesListPackagesForOrganization(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ org: string
+ visibility?: "public" | "private" | "internal"
+ page?: number
+ perPage?: number
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 400 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ package_type: p["packageType"],
+ visibility: p["visibility"],
+ page: p["page"],
+ per_page: p["perPage"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/packages`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesGetPackageForOrganization(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ }): Observable<
+ (HttpResponse & { status: 200 }) | HttpResponse
+ > {
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesDeletePackageForOrg(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "DELETE",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesRestorePackageForOrg(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ token?: string
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({ token: p["token"] })
+
+ return this.httpClient.request(
+ "POST",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/restore`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesGetAllPackageVersionsForPackageOwnedByOrg(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ page?: number
+ perPage?: number
+ state?: "active" | "deleted"
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ page: p["page"],
+ per_page: p["perPage"],
+ state: p["state"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesGetPackageVersionForOrganization(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ packageVersionId: number
+ }): Observable<
+ (HttpResponse & { status: 200 }) | HttpResponse
+ > {
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesDeletePackageVersionForOrg(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ packageVersionId: number
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "DELETE",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ packagesRestorePackageVersionForOrg(p: {
+ packageType: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"
+ packageName: string
+ org: string
+ packageVersionId: number
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "POST",
+ this.config.basePath +
+ `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/versions/${p["packageVersionId"]}/restore`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsListPatGrantRequests(p: {
+ org: string
+ perPage?: number
+ page?: number
+ sort?: "created_at"
+ direction?: "asc" | "desc"
+ owner?: string[]
+ repository?: string
+ permission?: string
+ lastUsedBefore?: string
+ lastUsedAfter?: string
+ }): Observable<
+ | (HttpResponse & {
+ status: 200
+ })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | (HttpResponse & { status: 500 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ per_page: p["perPage"],
+ page: p["page"],
+ sort: p["sort"],
+ direction: p["direction"],
+ owner: p["owner"],
+ repository: p["repository"],
+ permission: p["permission"],
+ last_used_before: p["lastUsedBefore"],
+ last_used_after: p["lastUsedAfter"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/personal-access-token-requests`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsReviewPatGrantRequestsInBulk(p: {
+ org: string
+ requestBody: {
+ action: "approve" | "deny"
+ pat_request_ids?: number[]
+ reason?: string | null
+ }
+ }): Observable<
+ | (HttpResponse<{
+ [key: string]: unknown | undefined
+ }> & { status: 202 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | (HttpResponse & { status: 500 })
+ | HttpResponse
+ > {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
+ return this.httpClient.request(
+ "POST",
+ this.config.basePath + `/orgs/${p["org"]}/personal-access-token-requests`,
+ {
headers,
body,
observe: "response",
@@ -5881,6 +6205,178 @@ export class ApiClient {
)
}
+ orgsGetAllCustomProperties(p: {
+ org: string
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/properties/schema`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsCreateOrUpdateCustomProperties(p: {
+ org: string
+ requestBody: {
+ properties: t_org_custom_property[]
+ }
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
+ return this.httpClient.request(
+ "PATCH",
+ this.config.basePath + `/orgs/${p["org"]}/properties/schema`,
+ {
+ headers,
+ body,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsGetCustomProperty(p: {
+ org: string
+ customPropertyName: string
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/properties/schema/${p["customPropertyName"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsCreateOrUpdateCustomProperty(p: {
+ org: string
+ customPropertyName: string
+ requestBody: {
+ allowed_values?: string[] | null
+ default_value?: string | string[] | null
+ description?: string | null
+ required?: boolean
+ value_type: "string" | "single_select"
+ }
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
+ return this.httpClient.request(
+ "PUT",
+ this.config.basePath +
+ `/orgs/${p["org"]}/properties/schema/${p["customPropertyName"]}`,
+ {
+ headers,
+ body,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsRemoveCustomProperty(p: {
+ org: string
+ customPropertyName: string
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "DELETE",
+ this.config.basePath +
+ `/orgs/${p["org"]}/properties/schema/${p["customPropertyName"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsListCustomPropertiesValuesForRepos(p: {
+ org: string
+ perPage?: number
+ page?: number
+ repositoryQuery?: string
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ per_page: p["perPage"],
+ page: p["page"],
+ repository_query: p["repositoryQuery"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/properties/values`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ orgsCreateOrUpdateCustomPropertiesValuesForRepos(p: {
+ org: string
+ requestBody: {
+ properties: t_custom_property_value[]
+ repository_names: string[]
+ }
+ }): Observable<
+ | (HttpResponse & { status: 204 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 422 })
+ | HttpResponse
+ > {
+ const headers = this._headers({ "Content-Type": "application/json" })
+ const body = p["requestBody"]
+
+ return this.httpClient.request(
+ "PATCH",
+ this.config.basePath + `/orgs/${p["org"]}/properties/values`,
+ {
+ headers,
+ body,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
orgsListPublicMembers(p: {
org: string
perPage?: number
@@ -5997,6 +6493,9 @@ export class ApiClient {
allow_rebase_merge?: boolean
allow_squash_merge?: boolean
auto_init?: boolean
+ custom_properties?: {
+ [key: string]: unknown | undefined
+ }
delete_branch_on_merge?: boolean
description?: string
gitignore_template?: string
@@ -6018,7 +6517,7 @@ export class ApiClient {
visibility?: "public" | "private"
}
}): Observable<
- | (HttpResponse & { status: 201 })
+ | (HttpResponse & { status: 201 })
| (HttpResponse & { status: 403 })
| (HttpResponse & { status: 422 })
| HttpResponse
@@ -6095,6 +6594,60 @@ export class ApiClient {
)
}
+ reposGetOrgRuleSuites(p: {
+ org: string
+ repositoryName?: number
+ timePeriod?: "hour" | "day" | "week" | "month"
+ actorName?: string
+ ruleSuiteResult?: "pass" | "fail" | "bypass" | "all"
+ perPage?: number
+ page?: number
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 500 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ repository_name: p["repositoryName"],
+ time_period: p["timePeriod"],
+ actor_name: p["actorName"],
+ rule_suite_result: p["ruleSuiteResult"],
+ per_page: p["perPage"],
+ page: p["page"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/orgs/${p["org"]}/rulesets/rule-suites`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ reposGetOrgRuleSuite(p: {
+ org: string
+ ruleSuiteId: number
+ }): Observable<
+ | (HttpResponse & { status: 200 })
+ | (HttpResponse & { status: 404 })
+ | (HttpResponse & { status: 500 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath +
+ `/orgs/${p["org"]}/rulesets/rule-suites/${p["ruleSuiteId"]}`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
reposGetOrgRuleset(p: {
org: string
rulesetId: number
@@ -6176,6 +6729,7 @@ export class ApiClient {
perPage?: number
before?: string
after?: string
+ validity?: string
}): Observable<
| (HttpResponse & { status: 200 })
| (HttpResponse & { status: 404 })
@@ -6196,6 +6750,7 @@ export class ApiClient {
per_page: p["perPage"],
before: p["before"],
after: p["after"],
+ validity: p["validity"],
})
return this.httpClient.request(
@@ -9024,6 +9579,26 @@ export class ApiClient {
)
}
+ actionsForceCancelWorkflowRun(p: {
+ owner: string
+ repo: string
+ runId: number
+ }): Observable<
+ | (HttpResponse & { status: 202 })
+ | (HttpResponse & { status: 409 })
+ | HttpResponse
+ > {
+ return this.httpClient.request(
+ "POST",
+ this.config.basePath +
+ `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}/force-cancel`,
+ {
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
actionsListJobsForWorkflowRun(p: {
owner: string
repo: string
@@ -9726,17 +10301,13 @@ export class ApiClient {
reposListAutolinks(p: {
owner: string
repo: string
- page?: number
}): Observable<
(HttpResponse & { status: 200 }) | HttpResponse
> {
- const params = this._queryParams({ page: p["page"] })
-
return this.httpClient.request(
"GET",
this.config.basePath + `/repos/${p["owner"]}/${p["repo"]}/autolinks`,
{
- params,
observe: "response",
reportProgress: false,
},
@@ -10894,7 +11465,13 @@ export class ApiClient {
title?: string
}
started_at?: string
- status?: "queued" | "in_progress" | "completed"
+ status?:
+ | "queued"
+ | "in_progress"
+ | "completed"
+ | "waiting"
+ | "requested"
+ | "pending"
}
}): Observable<
(HttpResponse & { status: 200 }) | HttpResponse
@@ -11460,7 +12037,7 @@ export class ApiClient {
requestBody: {
checkout_uri?: string
commit_sha: t_code_scanning_analysis_commit_sha
- ref: t_code_scanning_ref
+ ref: t_code_scanning_ref_full
sarif: t_code_scanning_analysis_sarif_file
started_at?: string
tool_name?: string
@@ -11701,26 +12278,63 @@ export class ApiClient {
ref?: string
clientIp?: string
}): Observable<
- | (HttpResponse<{
- billable_owner?: t_simple_user
- defaults?: {
- devcontainer_path: string | null
- location: string
- }
- }> & { status: 200 })
+ | (HttpResponse<{
+ billable_owner?: t_simple_user
+ defaults?: {
+ devcontainer_path: string | null
+ location: string
+ }
+ }> & { status: 200 })
+ | (HttpResponse & { status: 401 })
+ | (HttpResponse & { status: 403 })
+ | (HttpResponse & { status: 404 })
+ | HttpResponse
+ > {
+ const params = this._queryParams({
+ ref: p["ref"],
+ client_ip: p["clientIp"],
+ })
+
+ return this.httpClient.request(
+ "GET",
+ this.config.basePath + `/repos/${p["owner"]}/${p["repo"]}/codespaces/new`,
+ {
+ params,
+ observe: "response",
+ reportProgress: false,
+ },
+ )
+ }
+
+ codespacesCheckPermissionsForDevcontainer(p: {
+ owner: string
+ repo: string
+ ref: string
+ devcontainerPath: string
+ }): Observable<
+ | (HttpResponse