UNPKG

node-blaze

Version:

Bindings to blaze, high-performance C++ JSON Schema validator

1,432 lines 511 kB
{ "paths": { "/companies": { "get": { "description": "Returns the list of company accounts that your API credential has access to. The list is grouped into pages as defined by the query parameters.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n\n* Management API—Account read", "operationId": "get-companies", "parameters": [ { "description": "The number of the page to fetch.", "in": "query", "name": "pageNumber", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The number of items to have on a page, maximum 100. The default is 10 items on a page.", "in": "query", "name": "pageSize", "required": false, "schema": { "format": "int32", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-success-200" } }, "schema": { "$ref": "#/components/schemas/ListCompanyResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a list of company accounts", "tags": [ "Account - company level" ], "x-methodName": "listCompanyAccounts", "x-sortIndex": 0 } }, "/companies/{companyId}": { "get": { "description": "Returns the company account specified in the path. Your API credential must have access to the company account. \n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Account read", "operationId": "get-companies-companyId", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-companyId-success-200" } }, "schema": { "$ref": "#/components/schemas/Company" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a company account", "tags": [ "Account - company level" ], "x-methodName": "getCompanyAccount", "x-sortIndex": 0 } }, "/companies/{companyId}/androidApps": { "get": { "description": "Returns a list of the Android apps that are available for the company identified in the path. \nThese apps have been uploaded to Adyen and can be installed or uninstalled on Android payment terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", "operationId": "get-companies-companyId-androidApps", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "The number of the page to fetch.", "in": "query", "name": "pageNumber", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The number of items to have on a page, maximum 100. The default is 20 items on a page.", "in": "query", "name": "pageSize", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The package name that uniquely identifies the Android app.", "in": "query", "name": "packageName", "required": false, "schema": { "type": "string" } }, { "description": "The version number of the app.", "in": "query", "name": "versionCode", "required": false, "schema": { "format": "int32", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-companyId-androidApps-success-200" } }, "schema": { "$ref": "#/components/schemas/AndroidAppsResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a list of Android apps", "tags": [ "Android files - company level" ], "x-methodName": "listAndroidApps", "x-sortIndex": 1 } }, "/companies/{companyId}/androidApps/{id}": { "get": { "description": "Returns the details of the Android app identified in the path. \nThese apps have been uploaded to Adyen and can be installed or uninstalled on Android payment terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write", "operationId": "get-companies-companyId-androidApps-id", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "The unique identifier of the app.", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AndroidApp" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get Android app", "tags": [ "Android files - company level" ], "x-methodName": "getAndroidApp", "x-sortIndex": 3 } }, "/companies/{companyId}/androidCertificates": { "get": { "description": "Returns a list of the Android certificates that are available for the company identified in the path.\nTypically, these certificates enable running apps on Android payment terminals. The certifcates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", "operationId": "get-companies-companyId-androidCertificates", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "The number of the page to fetch.", "in": "query", "name": "pageNumber", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The number of items to have on a page, maximum 100. The default is 20 items on a page.", "in": "query", "name": "pageSize", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The name of the certificate.", "in": "query", "name": "certificateName", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-companyId-androidCertificates-success-200" } }, "schema": { "$ref": "#/components/schemas/AndroidCertificatesResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a list of Android certificates", "tags": [ "Android files - company level" ], "x-methodName": "listAndroidCertificates", "x-sortIndex": 2 } }, "/companies/{companyId}/apiCredentials": { "get": { "description": "Returns the list of [API credentials](https://docs.adyen.com/development-resources/api-credentials) for the company account. The list is grouped into pages as defined by the query parameters.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "get-companies-companyId-apiCredentials", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "The number of the page to fetch.", "in": "query", "name": "pageNumber", "required": false, "schema": { "format": "int32", "type": "integer" } }, { "description": "The number of items to have on a page, maximum 100. The default is 10 items on a page.", "in": "query", "name": "pageSize", "required": false, "schema": { "format": "int32", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-companyId-apiCredentials-success-200" } }, "schema": { "$ref": "#/components/schemas/ListCompanyApiCredentialsResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a list of API credentials", "tags": [ "API credentials - company level" ], "x-methodName": "listApiCredentials", "x-sortIndex": 0 }, "post": { "description": "Creates an [API credential](https://docs.adyen.com/development-resources/api-credentials) for the company account identified in the path. In the request, you can specify which merchant accounts the new API credential will have access to, as well as its roles and allowed origins.\n\nThe response includes several types of authentication details:\n* [API key](https://docs.adyen.com/development-resources/api-authentication#api-key-authentication): used for API request authentication.\n* [Client key](https://docs.adyen.com/development-resources/client-side-authentication#how-it-works): public key used for client-side authentication.\n* [Username and password](https://docs.adyen.com/development-resources/api-authentication#using-basic-authentication): used for basic authentication.\n\n> Make sure you store the API key securely in your system. You won't be able to retrieve it later.\n\nIf your API key is lost or compromised, you need to [generate a new API key](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey).\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "post-companies-companyId-apiCredentials", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "examples": { "post-company-credential": { "$ref": "#/components/examples/post-companies-companyId-apiCredentials-post-company-credential" } }, "schema": { "$ref": "#/components/schemas/CreateCompanyApiCredentialRequest" } } } }, "responses": { "200": { "content": { "application/json": { "examples": { "post-company-credential": { "$ref": "#/components/examples/post-companies-companyId-apiCredentials-post-company-credential-200" } }, "schema": { "$ref": "#/components/schemas/CreateCompanyApiCredentialResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Create an API credential.", "tags": [ "API credentials - company level" ], "x-methodName": "createApiCredential", "x-sortIndex": 0 } }, "/companies/{companyId}/apiCredentials/{apiCredentialId}": { "get": { "description": "Returns the [API credential](https://docs.adyen.com/development-resources/api-credentials) identified in the path.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "get-companies-companyId-apiCredentials-apiCredentialId", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "success": { "$ref": "#/components/examples/get-companies-companyId-apiCredentials-apiCredentialId-success-200" } }, "schema": { "$ref": "#/components/schemas/CompanyApiCredential" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get an API credential", "tags": [ "API credentials - company level" ], "x-methodName": "getApiCredential", "x-sortIndex": 0 }, "patch": { "description": "Changes the API credential's roles, merchant account access, or allowed origins. The request has the new values for the fields you want to change. The response contains the full updated API credential, including the new values from the request. \n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "patch-companies-companyId-apiCredentials-apiCredentialId", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "examples": { "patch-company-credential": { "$ref": "#/components/examples/patch-companies-companyId-apiCredentials-apiCredentialId-patch-company-credential" } }, "schema": { "$ref": "#/components/schemas/UpdateCompanyApiCredentialRequest" } } } }, "responses": { "200": { "content": { "application/json": { "examples": { "patch-company-credential": { "$ref": "#/components/examples/patch-companies-companyId-apiCredentials-apiCredentialId-patch-company-credential-200" } }, "schema": { "$ref": "#/components/schemas/CompanyApiCredential" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Update an API credential.", "tags": [ "API credentials - company level" ], "x-methodName": "updateApiCredential", "x-sortIndex": 0 } }, "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins": { "get": { "description": "Returns the list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential identified in the path.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "get-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "get-allowed-origins": { "$ref": "#/components/examples/get-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-get-allowed-origins-200" } }, "schema": { "$ref": "#/components/schemas/AllowedOriginsResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Get a list of allowed origins", "tags": [ "Allowed origins - company level" ], "x-methodName": "listAllowedOrigins", "x-sortIndex": 0 }, "post": { "description": "Adds a new [allowed origin](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) to the API credential's list of allowed origins.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "post-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "examples": { "add-allowed-origin": { "$ref": "#/components/examples/post-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-add-allowed-origin" } }, "schema": { "$ref": "#/components/schemas/AllowedOrigin" } } } }, "responses": { "200": { "content": { "application/json": { "examples": { "add-allowed-origin": { "$ref": "#/components/examples/post-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-add-allowed-origin-200" } }, "schema": { "$ref": "#/components/schemas/AllowedOriginsResponse" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Create an allowed origin", "tags": [ "Allowed origins - company level" ], "x-methodName": "createAllowedOrigin", "x-sortIndex": 0 } }, "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}": { "delete": { "description": "Removes the [allowed origin](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) identified in the path. As soon as an allowed origin is removed, we no longer accept client-side requests from that domain.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "delete-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-originId", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the allowed origin.", "in": "path", "name": "originId", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content - look at the actual response code for the status of the request. " }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Forbidden - insufficient permissions to process the request." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unprocessable Entity - a request validation error." }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Internal Server Error - the server could not process the request." } }, "security": [ { "BasicAuth": [] }, { "ApiKeyAuth": [] } ], "summary": "Delete an allowed origin", "tags": [ "Allowed origins - company level" ], "x-methodName": "deleteAllowedOrigin", "x-sortIndex": 0 }, "get": { "description": "Returns the [allowed origin](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) identified in the path.\n\nTo make this request, your API credential must have the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—API credentials read and write", "operationId": "get-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-originId", "parameters": [ { "description": "The unique identifier of the company account.", "in": "path", "name": "companyId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the API credential.", "in": "path", "name": "apiCredentialId", "required": true, "schema": { "type": "string" } }, { "description": "Unique identifier of the allowed origin.", "in": "path", "name": "originId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "examples": { "get-allowed-origin": { "$ref": "#/components/examples/get-companies-companyId-apiCredentials-apiCredentialId-allowedOrigins-originId-get-allowed-origin-200" } }, "schema": { "$ref": "#/components/schemas/AllowedOrigin" } } }, "description": "OK - the request has succeeded." }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Bad Request - a problem reading or understanding the request." }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" } } }, "description": "Unauthorized - authentication required." }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestServiceError" }